# Concepts
SUMMARY
- Recipes are user-created automated workflows in Workato that can span multiple apps. Every recipe consists of a trigger and one or more actions.
- Triggers are events that start recipe actions, either in real-time or at scheduled intervals.
- Recipe steps, such as actions, conditional actions, and list actions, execute every time a trigger event occurs.
- Connections authorize recipes to interact with apps, and a job represents the flow of each trigger event through a recipe.
# Recipes
A recipe is an automated workflow that can span multiple apps. For example, you can build a recipe that monitors Salesforce for new accounts and automatically creates corresponding organizations in Zendesk. Every recipe includes a trigger and one or more actions, which are executed when a trigger event occurs.
Starting a recipe activates it to monitor trigger events and execute actions in the background. Stopping a recipe pauses this monitoring.
When you restart a recipe, the recipe processes all trigger events that occurred while it was stopped, resuming from where it left off.
You can set a recipe's visibility to public or private. Public recipes are visible to all Workato users, who can view and clone them.
Each recipe has a unique ID displayed in its URL. For example, the following screenshot shows a recipe with the ID 47979
:
View recipe IDs in the URL of the recipe page
This recipe includes a trigger and an action. The New Account in Salesforce trigger activates when a new account is created in Salesforce. The Create organization in Zendesk action creates an organization in Zendesk for each trigger event.
AUTOMATION INSTITUTE
Explore Workato's Automation Institute to gain hands-on experience with the Workato platform. Complete the Automation Pro courses to learn how to leverage Workato effectively in your workflows. Get started (opens new window).
# Connections
A connection authorizes a recipe to interact with apps like Salesforce and Zendesk through triggers and actions. Connections are reusable, allowing you to use the same connection across multiple recipes.
Learn more about connections.
Salesforce and Zendesk connections from the recipe view
# Triggers
A trigger specifies the event that initiates the actions in a recipe.
Triggers can be activated in various ways. For example, they might activate when a specific event occurs in an app, a new line is added to a file, or on a scheduled basis.
An example of a trigger
Depending on the API, Workato either receives trigger events in real-time or periodically polls the app to detect them.
Learn more about triggers.
# Steps and actions
A recipe executes steps each time a trigger event occurs. Every recipe requires at least one step. The simplest step is an action, such as creating an organization in Zendesk.
An example of an action
Steps in Workato can include actions, conditional actions, list actions, actions that call other recipes, or try/catch blocks.
Learn more about recipe steps and actions.
# Datatree and datapills
Video guide: Datatree, data mapping, and data types
Every step, including triggers, adds data to the recipe. This data is accessible in the recipe through the datatree.
The datatree contains individual data fields called datapills. You can use datapills in subsequent steps to map data to input fields. Learn more about datapills.
The following screenshot displays the output datatree for the New Salesforce account trigger. This datatree lists all variables available when a trigger event occurs.
Output datatree for New Salesforce account trigger
When a new Salesforce account is created, the following values become accessible:
- Account Description
- Account Fax
- Account ID
- Account Name
- Account Phone
- Account Source
- Account Type
You can map these values to input fields in subsequent recipe steps.
# Input fields and fields mapping
Triggers and actions include input fields. The values you map to these fields define how triggers and actions execute customized workflows. Input fields accept variables (datapills) or constants.
Inserting variables (datapills) or constants into input fields is called fields mapping. Learn more about fields mapping.
The following screenshot displays an expanded view of the Create organization in Zendesk action, with values mapped to its Name and Notes input fields.
Input fields for the Create organization in Zendesk action
# Mapping variables
The Salesforce Account Name
datapill is mapped to the Name input field. This mapping ensures that the name of each new Salesforce account detected by the recipe becomes the organization name in Zendesk. For example, a Salesforce account named Sattei Winery creates a Zendesk organization named Sattei Winery.
Input field with variable mapping
# Mapping constants
The Notes input field maps to the constant, Synced over from Salesforce
. This mapping ensures all Zendesk organizations created through Workato include the phrase Synced over from Salesforce
in their Notes field.
Input field with constant mapping
The following screenshot displays the newly created Zendesk organization:
Newly created Zendesk organization Sattei Winery
# Jobs
A job represents the flow of a trigger event through the recipe. Each time a trigger event occurs, the recipe executes its actions. Jobs succeed when all actions execute successfully. If an error occurs, subsequent actions do not run unless error handling is configured.
Learn more about jobs.
# Jobs report
The jobs report summarizes all trigger events processed by the recipe. Each trigger event's flow through the recipe is a job.
This report provides details such as the date, time, and job ID for each processed job. Click a job to view more detailed information.
Learn more about jobs reports.
Jobs report page
# Job details
The job details page provides step-by-step input and output for a single trigger event as the recipe processes it. You can use this page to troubleshoot recipes by viewing the data passed into each step and the output returned after each step executes.
Learn more about job details.
Job details page showing details of the Create organization in Zendesk action
Last updated: 11/20/2024, 5:22:57 PM