# Recipe design

Recipe design is the process of planning and structuring an automation workflow to achieve a specific goal. A recipe is a sequence of steps that integrate different applications and process data automatically.

The following considerations can help you design successful recipes that require minimal adjustments over time:

  • Goal: What is the goal of the recipe? Define what the recipe does.
  • Data flow: What data needs to be processed? Identify the information you need to transfer between apps or modify.
  • Apps: Which apps need to interact? Determine which apps send, receive, or process the data.
  • Error handling: How should the workflow handle errors? Plan for potential issues to avoid failures.
Build your first recipe with this video guide

# Considerations for recipe design

A recipe follows a structured flow that defines when it runs, what actions it takes, how data moves, and how errors are managed. Each component is interconnected, and understanding these relationships helps you design recipes that are efficient, reliable, and maintainable.

A recipe typically uses the following components:

  • Trigger: Defines when the recipe starts running.
  • Action: Specifies what tasks the recipe performs.
  • Data flow: Controls what data moves between apps.
  • Logic and conditions: Determines how different scenarios, such as missing targeted data are handled.
  • Error handling: Ensures the recipe can recover from failures.

# Define a clear trigger

Every recipe starts with a trigger. A trigger listens for an event in an application and starts the recipe when the specified conditions are met. Triggers define when an automation runs and what initial data is available for the workflow. Choose from the following trigger types:

  • Event-based triggers: The recipe runs in response to an event, such as a new employee is added in Workday.

  • Scheduled triggers: The recipe runs at a fixed time, such as every night at 12 AM.

# Plan actions and data flow

An action defines what the recipe does after it is triggered. Each action interacts with an application to modify or retrieve data. A recipe can have one or multiple actions, depending on the automation’s complexity. Consider the following questions when you design your recipe:

  • Which applications need to interact?
  • What data needs to move between the apps?
  • How should data be formatted and structured?

Recipes frequently contain the following actions:

  • Create a new record
    • For example: Create a new Jira user when an employee is added to Workday.
  • Update an existing record
    • For example: Update an employee’s permissions in Okta when their role changes.
  • Send a notification
    • For example: Email the IT team when a new hire’s accounts are set up.

# Conditional logic and loops

Recipes can be dynamic and can make decisions based on incoming data.

  • Conditional statements (If-Else) control the workflow based on specific conditions.
  • Loops process multiple records in a single execution.

Example: If an order value is above $1,000, assign it to a priority sales team, otherwise, route it normally.

An IF condition lets you make decisions based on specific conditions. You can control your recipe workflow by executing different actions depending on whether a condition you specify is true or false.

flowchart TD A([Assign an order]) --> B(Is the order value higher than $1000?) B -->|If <b>Yes</b>| C(Assign the order to \n a priority sales team) B ---->|If <b>No</b>| E(Process the order normally) classDef default fill:#67eadd,stroke:#b3e0e1,stroke-width:2px,color:#000; classDef WorkatoPink fill:#f3c1c2,stroke:#f3c1c2,stroke-width:1px; class E WorkatoPink

# Error Handling

Your recipe must handle errors effectively to prevent failures from stopping the entire recipe. Make a plan for how your recipe should handle the following types of errors:

  • Missing or invalid data, such as an empty field.
  • Duplicate records.
  • API failures, such as server disruption to a connected app.

For example, if the issue is a temporary API failure, the recipe can retry the action a configurable number of times before logging an error.

# Learn more about recipe components

Customize your recipe with the different types of triggers, actions, and other steps.

Use triggers to configure your recipe to run...

Use steps to define your recipe logic, such as to...

# Modify the data in your recipe

# Expand your automation possibilities

# After you create your recipe


Last updated: 3/21/2025, 5:23:40 PM