30% Discount On All Licenses For A Limited Time

30% Discount

Data Flow and Variable Handling

Input System Overview #

The workflow builder features a sophisticated input handling system that allows nodes to receive data from previous nodes and dynamic variables. Each node that can accept input displays these options through two main interfaces:

  • Input Tags: Access data from previous nodes in the workflow
  • Dynamic Variables: Access system-wide variables and dynamic content

input handler

Input Tags #

Basic Structure #

Input tags follow these formats:

  • Basic Input: [Input from node-id]
  • Specific Field: [[field_name] from node-id]

Available Inputs #

Each node displays available inputs through a green tag showing “X Inputs Available” where X is the number of available input sources. This includes:

  • All connected upstream nodes
  • Custom inputs specific to the node type
  • Previously processed data

input tag

Node-Specific Inputs #

Trigger Node #

  • Webhook Trigger
    • Custom webhook keys
    • Raw webhook data
  • Form Triggers (Gravity Forms, WPForms, Contact Form 7, Ninja Forms)
    • All form fields by label
    • Form metadata
  • WordPress Core Triggers
    • Post-related data
    • User data
    • Comment data
    • Status changes
  • RSS Trigger
    • Latest item details
    • Feed information
    • All items data

Specialized Node Inputs #

  • Firecrawl (Web Scraper)
    • Full content
    • Extracted field data
  • Extract Information
    • Named extracted fields
    • List-type data indicators
  • Research Node
    • Research results
    • Source citations
  • Google Drive Output
    • File link
    • File name
    • File ID

Dynamic Variables #

Dynamic variables are special placeholders that automatically insert real-time data into your workflows. Unlike inputs from previous nodes, these variables can be used anywhere in your workflow and will always provide current, contextual information. They’re accessible through an orange “Dynamic Variables” tag in any node’s input options.

dynamic variables

Date & Time Variables #

Dynamic time-based variables help you work with dates and times in your workflows. They automatically adjust to your WordPress site’s timezone settings:

  • Current Date: Inserts today’s date in YYYY-MM-DD format, perfect for database records or file naming
  • Current Time: Shows the current time in HH:mm:ss format, useful for logging or scheduling
  • Current Date & Time: Combines both date and time for complete timestamps
  • Current Timestamp: Provides a Unix timestamp, ideal for technical operations
  • Yesterday’s Date: Automatically calculates yesterday’s date, helpful for reporting
  • Tomorrow’s Date: Shows tomorrow’s date, useful for scheduling tasks
  • Current Month Name: Displays the full month name (e.g., “January”)
  • Current Year: Shows the four-digit year
  • Current Day Name: Provides the full day name (e.g., “Monday”)

WordPress Variables #

These variables give you access to your WordPress site’s core information:

  • Site Name: Your WordPress site’s configured name
  • Site URL: Your site’s full URL, including protocol (http/https)
  • Admin Email: The primary administrator email address

Post/Page Variables #

When working with WordPress content, these variables provide access to the current post or page data:

  • Post/Page ID: The unique identifier for the current content
  • Post/Page Title: The main title of the current content
  • Post Excerpt: The short summary or excerpt
  • Post/Page Content: The complete content including formatting
  • Post Author: The content creator’s username
  • Publication Date: When the content was first published
  • Last Modified Date: When the content was last updated
  • Post Type: The content type (post, page, custom post type)
  • Post Status: Current publication status (draft, published, etc.)
  • Post URL: The complete URL to view the content
  • Categories: List of assigned categories
  • Tags: List of assigned tags

User Variables #

These variables provide information about the currently logged-in user:

  • Username: The current user’s display name
  • User Email: The user’s registered email address
  • User ID: The unique identifier for the current user

WooCommerce Variables #

Available only when WooCommerce is active, these variables help you work with product and cart data:

Product Variables #

Access current product information:

  • Product ID: The unique product identifier
  • Product Name: The product’s title
  • Current Price: The active price (considering sales)
  • Regular Price: The normal, non-sale price
  • Sale Price: The current discount price if active
  • SKU: The product’s Stock Keeping Unit
  • Stock Quantity: Current inventory level
  • Stock Status: Whether the item is in stock
  • Product Categories: List of assigned product categories
  • Product Type: Simple, variable, grouped, etc.
  • Product URL: Direct link to the product
  • Average Rating: Current product rating
  • Review Count: Number of customer reviews

Cart Variables #

Access current shopping cart information:

  • Cart Total: The complete cart value with tax and shipping
  • Cart Subtotal: The cart value before additional charges
  • Items in Cart: Total number of items
  • Cart URL: Direct link to the cart page
  • Checkout URL: Direct link to the checkout page

Random Generators #

These variables generate random values each time they’re used:

  • Random Number (0-100): Generates a random number up to 100
  • Random Number (0-1000): Generates a random number up to 1000
  • Random String: Creates an 8-character random string for unique identifiers
  • Unique ID: Generates a guaranteed unique identifier

Best Practices #

Using Input Tags #

  1. Always verify the data structure of incoming nodes
  2. Use specific field references when available
  3. Consider data type compatibility between nodes
  4. Handle potential null or undefined values

Working with Dynamic Variables #

  1. Use appropriate variables for the context
  2. Consider timezone implications for date/time variables
  3. Verify WooCommerce is active when using those variables
  4. Test variable resolution in different contexts

Error Handling #

  1. Provide fallback values for optional inputs
  2. Validate input data before processing
  3. Handle missing or malformed data gracefully
  4. Log invalid input patterns for debugging

Technical Implementation #

Input Processing #

  1. Nodes automatically detect available inputs
  2. Input tags are parsed at runtime
  3. Data is passed through the workflow engine
  4. Variables are resolved in the execution context

Data Flow #

  1. Data flows from left to right in the workflow
  2. Each node processes inputs sequentially
  3. Output becomes available to downstream nodes
  4. Data transformations are tracked for debugging

Security Considerations #

  1. Input data is sanitized before processing
  2. Sensitive data is masked in logs
  3. User permissions are checked for variable access
  4. API keys and credentials are handled securely

Troubleshooting #

Common Issues #

  1. Missing Inputs
    • Verify node connections
    • Check input tag syntax
    • Confirm upstream node execution
  2. Invalid Data
    • Verify data types
    • Check for null values
    • Validate input formatting
  3. Variable Resolution
    • Confirm variable availability
    • Check context requirements
    • Verify plugin dependencies

Debugging Tips #

  1. Use the workflow debugger to inspect data flow
  2. Check node execution logs
  3. Verify variable resolution in the current context
  4. Test inputs with sample data

What are your feelings

Updated on February 14, 2025

Explore AI Workflow Automation in Action

Discover how AI can streamline your workflow and enhance productivity through real-world demonstrations.

Visit our dedicated demos page to explore practical examples of AI workflow automation, including how it can be applied to various industries and use cases. See the benefits of automation in improving efficiency, saving time, and optimizing processes for your business.

Comments are closed.