It seems you may be using English. Would you like to go to the international site? bika.ai
Guide
Basic
Automation Guide
Database
Integration Guide
Dashboard
Self-hosted
Open API
Business AI Agent Template
Cookbook
Reference
Automation Triggers
Automation Actions
Integrations
Node Resources
Database Views
Database Fields
Dashboard Widgets
Missions
Ai Wizard
Formula
Space
Release Notes
Videos

Variable Selector

Overview

The Variable Selector is a visual tool in Automation workflows that lets you reference output data from upstream triggers or actions. It helps pass data between steps, making it easy to handle more complex business scenarios.

For example, to set up a workflow for sending mass emails:

  1. Use the Get Records action to filter a list of target customers.
  2. Use a Loop action to process each customer one by one.
  3. For each customer, use the DeepSeek – Text Generation action to create a personalized email.
  4. Finally, pass the customer's email address as a variable to the Send Email action.

How to Use It

  1. While setting up an action in the workflow, click into an input field.
  2. Press the / key on your keyboard to invoke the Variable Selector.
  3. Browse available variables in the pop-up menu.
  4. Click on a variable to insert it into the current field.

Note: Not all fields support variable insertion. Please follow the on-screen hints when configuring.

How It Works

The Variable Selector shows the output of all triggers and actions that run before the current step. Each trigger or action produces structured JSON output when executed. The selector turns this into a clickable list for easy reference.

To make sure variables load correctly, click Run Test in the trigger or action panel. This generates the necessary output for the picker to use.

Variable Data Types

Variables are based on JavaScript data types. Common types include:

  • Object
  • Array
  • String
  • Number

Each variable in the list has an icon to show its type.

Object Type

  • A ">" icon means the object can be expanded to view subfields.
  • A "Select" button lets you insert the entire object if supported.

Array Type

Just like objects, arrays can be expanded to see individual items. Arrays are often used with the Loop action to handle multiple entries at once.

Example:

  1. The Get Records action returns an array of customer records.
  2. The Loop action processes each customer individually.
  3. The personalized message and email address are passed to the Send Email action.

Below is a GIF showing how to use the Get Records output as input in the Loop action:

String & Number

  • These don't have subfields, so there's no expand icon.
  • Just click to insert directly.

Special Variables

Some triggers or actions output preformatted text variables. These usually come from database-related components like:

  • When record meets condition (trigger)
  • When new record is created (trigger)
  • Get/Create/Update Record (actions)
  • The variable Record List (Text) outputs a list of records in Markdown format. It's best used with the Send Report or Send Email actions. When inserted into an report, it looks like this:

  • The variable Grid List (Text) outputs a table of records in Markdown format.

How to View Variable Structure or Values

To use a variable correctly, preview its structure by running a test:

  1. Click Run Test in the trigger or action panel.
  2. Check the full JSON output in the popup.

Note: Some components like the Webhook trigger only generate output when a real request is received. If "Run Test" doesn’t work:

  • Go to the main workflow view.
  • Click Run Now to perform a real execution.
  • Then check the output in the Run History panel.

FAQs

Q: Why don’t I see certain variables?

  • Only outputs from previous steps (that have been tested or run) will show up.
  • Make sure to run a test or perform a real execution for each step.

Q: How can I check the structure of a variable? Run the workflow once, then go to the "Run history" to view the output of each step and inspect the variable structure.

bika cta

Recommend Reading

Recommend AI Automation Templates

B2B AI CRM
AI automation to manage your clients, prompt you or your sales team to write visit records every week, suitable for B2B sales teams targeting enterprise organizations.
Customer After-Sales Service Management
This template integrates customer case tracking, after-sales service, employee training, and customer information management, providing comprehensive support for delivering a high-quality customer experience. And can be used in scenarios such as retail and e-commerce, residential property maintenance, home appliance installation and repair, and domestic services.
Customer development CRM
A customer development CRM template to manage customer personas, interviews, problem statements, and feature enhancements for product improvement
Customer Order Management
The customer order management template is suitable for highly customized products that require manual entry. It covers key processes from order input to customer notification, sales follow-up, and weekly report generation. By using automated email reminders and weekly order summaries, it ensures that customers receive timely order information. Additionally, it generates and sends weekly transaction reports to sales personnel and team leaders, enhancing the efficiency of the customer team and helping them effectively track customer information and manage order processes uniformly.
Customer projects
This template is ideal for consulting companies, law firms, and sales since it helps calculate the hours worked that require compensation, provides a high-level overview of the progress of your projects, and creates a collaborative platform.
Customer Satisfaction Form and Analysis
The Customer Satisfaction Form and Analysis Template simplifies collecting, organizing, and analyzing customer feedback. With structured forms, Automated email reminder for followers to categorize insights, and a detailed dashboard, this template helps teams measure satisfaction, identify trends, and take action to improve products and services.