Bika
GuideAutomation

Variable Selector

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.

Invoke Variable Selector

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.

Run Test to generate output for Variable Selector

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.

Variable type icons

Object Type

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

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.
Array variable in Loop action

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

Use array output in Loop action

String & Number

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

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)
Preformatted text variable output
  • 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:

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

    Grid List (Text) variable in report

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.
Preview variable structure with Run Test

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.
Run History panel for variable output

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.

Recommend AI Automation Templates
Lightweight CRM
Lightweight CRM
Manage your startup or small business relationships efficiently with this Lightweight CRM template. Track sales activities, monitor client tracking and company contacts, automate workflows with CRM workflow automation, and generate insightful CRM reporting. Perfect for startups, small businesses, and teams looking for a streamlined CRM workflow solution to improve organization, sales, and customer management.
Discourse Community Manager
Discourse Community Manager Agent is an AI community assistant that helps you quickly generate clear, friendly, and well-structured replies to user posts. This AI reply generator makes community moderation easier, faster, and more professional.
Office Docs Helper
Create professional business, internal, and HR documents with AI. Instantly generate announcements, reports, and forms to boost office productivity.
Legal Case Tracking and Billing
Legal Case Tracking and Billing
Streamline your legal workflow with the Legal Case Tracking and Billing Management template. Designed for law firms to efficiently manage cases, clients, and billing, it integrates lawyer time tracking, law firm billing, and expense management into one system. Automate communications, track case progress, and simplify law firm finance operations. Perfect for lawyers, managers, and accounting teams seeking better legal data management and law office automation.
AI VAT Invoice Information Recognition (China)
AI VAT Invoice Information Recognition (China)
This AI VAT Invoice Information Recognition (China) template uses Baidu AI Cloud to deliver AI invoice extraction and end‑to‑end invoice workflow automation for Chinese VAT invoices. Automatically recognize key fields, verify invoices, and write results into your database to streamline financial data management. Support supplier invoice processing and purchase order invoices in the same flow, reducing manual input, lowering error rates, and helping finance teams, SMEs, accountants, and procurement departments keep VAT invoice records accurate, searchable, and audit‑ready.
Automated Stock Data Retrieval (JavaScript)
Automated Stock Data Retrieval (JavaScript)
The Automated Stock Data Retrieval (JavaScript) template automatically fetches US stock data every day and writes it into a structured table, giving you clean, consistent time series for analysis. Use it as part of your financial data automation stack to power stock trend analysis, dashboards, alerts, and quantitative analysis data for models and backtests. Designed for financial analysts, investment managers, data scientists, quants, and portfolio managers, it saves time on manual data collection so you can focus on research, strategy, and better investment decisions.