Documentation
HomeAPISign In
  • Getting Started
    • Overview
      • Core Concepts
      • Building your First Workflow
    • API Reference
  • Your Data
    • Brand Kits
    • Knowledge Bases
      • Add Data
        • Upload Files
        • Web Scrape
        • Import from Google Drive
        • Import from SQL Database
        • Import from Shopify
      • Knowledge Base Search
      • Knowledge Base Metadata
      • Knowledge Base API
  • Building Workflows
    • Workflow Concepts
      • Workflow Inputs
        • Input Types
      • Workflow Outputs
      • Variable Referencing
      • Liquid Templating
    • Workflow Steps
      • AI
        • Prompt LLM
          • Model Selection Guide
          • Prompting Guide
        • Transcribe Audio File
      • Web Research
        • Google Search
        • Web Page Scrape
      • Code
        • Run Code
        • Call API
        • Format JSON
        • Run SQL Query
        • Write Liquid Text
      • Flow
        • Condition
        • Iteration
        • Human Review
        • Content Comparison
        • Error
      • Data
        • Read from Grid
        • Write to Grid
        • Search Knowledge Base
        • Write to Knowledge Base
        • Get Knowledge Base File
      • AirOps
        • Workflow
        • Agent
      • Image & Video
        • Generate Image with API
        • Search Stock Images
        • Fetch Stock Image with ID
        • Resize Image
        • Screenshot from URL
        • Create OpenGraph Image
        • Create Video Avatar
      • SEO Research
        • Semrush
        • Data4SEO
      • Content Quality
        • Detect AI Content
        • Scan Content for Plagiarism
      • Content Processing
        • Convert Markdown to HTML
        • Convert PDF URL to Text
        • Group Keywords into Clusters
      • B2B Enrichment
        • Hunter.io
        • People Data Labs
      • CMS Integrations
        • Webflow
        • WordPress
        • Shopify
        • Contentful
        • Sanity
        • Strapi
      • Analytics Integrations
        • Google Search Console
      • Collaboration Integrations
        • Gmail
        • Google Docs
        • Google Sheets
        • Notion
        • Slack
    • Testing and Iteration
    • Publishing and Versioning
  • Running Workflows
    • Run Once
    • Run in Bulk (Grid)
    • Run via API
    • Run via Trigger
      • Incoming Webhook Trigger
      • Zapier
    • Run on a Schedule
    • Error Handling
  • Grids
    • Create a Grid
      • Import from Webflow
      • Import from Wordpress
      • Import from Semrush
      • Import from Google Search Console
    • Add Columns in the Grid
    • Run Workflows in the Grid
      • Add Workflow Column
      • Run Workflow Column
      • Map Workflow Outputs
      • Review Workflow Run Metadata
    • Review Content in the Grid
      • Review Markdown Content
      • Review HTML Content
      • Compare Content Difference
    • Publish to CMS from Grid
    • Pull Analytics in the Grid
    • Export as CSV
  • Copilot
    • Chat with Copilot
    • Edit Workflows with Copilot
    • Fix Errors with Copilot
  • Monitoring
    • Task Usage
    • Analytics
    • Alerts
    • Execution History
  • Your Workspace
    • Create a Workspace
    • Folders
    • Settings
    • Billing
    • Use your own LLM API Keys
    • Secrets
    • Team and Permissions
  • Chat Agents (Legacy)
    • Agent Quick Start
    • Chat Agents
    • Integrate Agents
      • Widget
      • Client Web SDK
  • About
    • Ethical AI and IP Production
    • Principles
    • Security and Compliance
Powered by GitBook
On this page
  • Types of Variables
  • Referencing Input Variables
  • Referencing Step Output Variables
  • Best Practices
  • Common Use Cases

Was this helpful?

  1. Building Workflows
  2. Workflow Concepts

Variable Referencing

Last updated 2 months ago

Was this helpful?

Variables are a key component of AirOps Workflows, allowing you to create dynamic, personalized, and contextual content. Learn how to reference variables in your Workflows, whether they come from inputs or from step outputs.

Types of Variables

In AirOps Workflows, you can reference two primary types of variables:

  1. Input Variables: Values defined in the Start step of your Workflow, including:

    • Custom inputs (text, numbers, JSON, files, etc.)

    • Brand Kit attributes

  2. Step Output Variables: Results generated by previous steps in your Workflow

Referencing Input Variables

Input variables are referenced using the Variable Selector (the pink icon on the top right of an input field) or using Liquid syntax with double curly braces: {{ variable_name }}

Example: Custom Input Variables

When you define an input in your Workflow's Start step (like "topic" or "keyword"), you can reference it in subsequent steps:

{{ topic }}
{{ keyword }}

Example: Brand Kit Variables

If you've connected a Brand Kit to your Workflow, you can reference its attributes:

{{ brand_kit.brand_name }}
{{ brand_kit.brand_about }}
{{ brand_kit.writing_persona }}
{{ brand_kit.brand_url }}

Referencing Step Output Variables

Every step in your Workflow generates an output that can be referenced in subsequent steps. These are referenced using the step number and the output property:

{{ step_1.output }}

For steps that return structured data (like JSON), you can access specific properties:

{{ step_2.output.title }}
{{ step_3.output.keywords[0] }}

Best Practices

  • Use the Variable Selector (purple pill button) to easily add variable references without typing the syntax

  • Preview outputs in the Test panel to understand their structure before referencing

  • For JSON outputs, check the structure in the Test panel to correctly reference nested properties

  • Remember that variables can only reference previous steps, not future ones

Common Use Cases

  • Pass user input into an LLM prompt: Write an article about {{ topic }}

  • Include brand voice in prompts: {{ brand_kit.writing_persona }}

  • Process the output of an LLM in a subsequent step: {{ step_1.output }}

  • Extract specific data from API responses: {{ step_3.output.results[0].url }}

  • Format text with previous step results: The generated headline is: {{ step_2.output.headline }}

By effectively leveraging variables in your Workflows, you can create powerful, dynamic applications that respond to inputs and build upon the results of each step.