Leveling Up - Advanced Techniques & Best Practices
Mastering Variables
Unlock dynamic and reusable workflows by effectively using variables in Jsonify.
Variables are a cornerstone of creating dynamic, reusable, and scalable automations in Jsonify. They allow you to run the same workflow logic with different inputs, personalize actions, and manage data flow effectively.
In Jsonify, a variable is essentially a named placeholder for a piece of data that can change. When the workflow runs, the placeholder is replaced with its actual value for that specific run or iteration. Variable names are case-sensitive.
Reusability: Build a generic workflow and use variables to adapt it to different specific inputs without duplicating the entire workflow.
Dynamic Operations:
Open different URLs based on a list.
Perform searches with varying keywords.
Instruct data extraction based on changing criteria.
Personalize interactions (e.g., typing a specific username).
Data Input: Easily feed lists of data (e.g., from a CSV, or typed in) into your workflow using the Open datasets block.
Data Chaining: Use data extracted by one Extract Data block as a variable input for subsequent blocks within the same processing loop (e.g., for each item in a list).
The primary way to introduce a list of varying inputs into your workflow is through the Open datasets block.
Columns as Variable Names: Each column header you define in the Open datasets table becomes a variable name (e.g., company_name, product_url, search_keyword). Remember, these names are case-sensitive.
Rows as Value Sets: Each row in the table represents a distinct set of values for these variables. The workflow (or the part of it following Open datasets) will run once for each row.
Special Column Name URL: If you name a column exactly URL (case-sensitive) in the Open datasets block and provide valid, complete URLs (starting with http:// or https://) in its rows, the AI Agent will automatically open each of these URLs. In this specific case, a subsequent Open Websites block is not required to open these particular URLs. For any other column name intended to hold URLs that you want to open via the Open Websites block, ensure the values are complete URLs.
Refer to the detailed guide on the Open datasets block for configuration specifics.
When you use an Extract Data block, the NAME you give to each attribute (e.g., product_title, reviewer_name) can act as a variable for subsequent blocks within that same iteration or loop. These are also case-sensitive.
Example:
Open Websites (opens a category page)
Find Links (finds links to all product pages, e.g., outputs product_page_url)
Follow Links (configured to “Follow each link” product_page_url)
Now, for each product page visited:
Extract Data (extracts product_name and price from the current product page)
Search on Google (can use {{product_name}} from the previous step: Search for 'competitors of {{product_name}}')
This allows you to chain operations based on data extracted in real-time.
Open datasets Scope: Variables defined in Open datasets are available to all subsequent blocks for each iteration (row) defined in the Open datasets block.
Extract Data Scope: Variables created from Extract Data field names are scoped to the current item being processed in a list or the current page for that specific iteration.
Understanding and effectively utilizing variables will dramatically increase the flexibility and power of your Jsonify workflows, allowing you to automate more complex and varied tasks with less effort.