Writing a Real Recipe with AI-banner

Workato Labs: Setup & Writing a Real Recipe with AI

AI tools are transforming developer workflows from coding to requirement specifications, enhancing efficiency in software development.

With the rapid evolution of AI tooling for developers, our role is quickly shifting from writing software to describing software requirements in detail and validating the results. While this does not replace the expertise of a seasoned software engineer, it does unlock potential to accelerate development.

Up until now, the Workato recipe development workflow has always been the same: Open the application in the browser, use the recipe editor to implement the recipe logic, map data pills, and test.

Through Workato’s latest developer toolchain, a paradigm shift in the developer workflow has arrived. The central aspect of the workflow revolves around describing Workato recipes locally as a JSON artifact that we can publish to the platform.

Developer writes the specification → agent writes the recipe using recipe-skills → developer reviews code (using recipe visualizer) → linter validates (wk lint) → push from CLI (wk push)

Workato Labs developer workflow: Developer writes the specification, Agent writes the recipe using recipe-skills, Developer reviews code using recipe visualizer, Linter validates with wk lint, CLI pushes with wk push, to Workato

Let’s take a look at the key components that enable this:

TOOL WHAT THIS ENABLES
Recipe Skills Gives AI agents the ability to define Workato recipes as JSON
Recipe Lint Validates the structure of the JSON file as it relates to a Workato recipe. Comes out-of-the box with preset standards, but allows for extensibility and customization per your organization’s standards.
Recipe Visualizer Allows us to visualize the JSON file as a flowchart and assess, at a high level, the correctness of the implementation
WK CLI Enables us to interact with Workato directly from the command line

The rest of this post describes the setup, and an example where I used these tools to implement a recipe in Workato without ever touching the recipe editor.

Prerequisites

  • A Workato API token with access to the folder where we will push our recipe. The documentation for how to set this up if you don’t already have one can be found here.
  • Access to Claude Code, Codex, or a similar AI command line tool

The walkthrough

1.

Run the quick start

Start with the Workato Labs install guide to install the wk CLI, recipe linter, recipe visualizer, and clone the recipe skills repository.

2.

Authenticate

In your command line, run the following command to log into Workato:

wk auth login

This creates an auth profile tied to a region, workspace, and environment. Profiles are how you segregate access to your Workato workspaces.

3.

Initialize the project

Navigate to the directory where you will implement the recipe logic, and initialize the project:

wk init

This generates a wk.toml file in your project directory. This file will contain information about how to map your local folder structure to Workato, which workspace to deploy to, and the auth profile to use. See the WK CLI Documentation for more information about this.

4.

Install the recipe skills

This is the part where we give the agent information about how to actually build the recipes. The skills are packaged knowledge about Workato recipe JSON: datapill syntax, trigger shapes, control flow structures, and provider names.

CLAUDE CODE /plugin marketplace add workato-devs/recipe-skills
/plugin install recipe-skills@workato-labs
CODEX codex plugin marketplace add https://github.com/workato-devs/recipe-skills

Example Implementation

Now it’s time to see the power of all these tools put to use. I have prepared a small but non-trivial example: a callable recipe that takes an array of exam scores, loops over them, and returns the average, the highest score, a count of passing scores, and a letter grade. Just enough complexity to showcase many of the fundamental components that make up a typical recipe: Variables, loops, conditional logic, error handling etc.

Example recipe flowchart: callable trigger with scores and pass_mark, try block checking if scores present, declaring accumulators, foreach loop over score_item computing total and highest and passing count, py_eval compute_grade, return success, with catch path logging failure and returning error
STEP 1

Write the Software Requirement Specification

Now that we know what we are trying to accomplish, we need to describe how to do it to the AI agent. This is the most critical part of the workflow, and the stage at which most of your time will be spent.

When communicating with AI, it might be easy to forget that we are still communicating with a computer that needs clear instructions. As of today, the standard mechanism to deliver those instructions is using markdown files.

Here are some things I think about while building a specification for an AI agent:

01

Be precise about not only what to do, but also what not to do: Without this clarity, agents will default to solving the problem with the shortest path that fits the boundaries you define.

02

Describe reasoning for why certain rules in the implementation exist: This will allow the agent to make better generalizations as it understands your decision making process, and reduces mistakes where there is room for assumptions.

03

Explicitly document gaps and things to ignore: By tracking these decisions in the requirement specification, the information will carry-over across sessions. This helps the agents avoid getting distracted “fixing” things that you already reached a conclusion on.

04

Be specific about when to stop: While a human intuitively understands when a task is complete, AI agents are more prone to cross the intended boundary of a given task.

Sample Specification

Using the above methodology, I created a solution design document containing enough information for an AI Agent to implement our example use case: Download the specification

NOTE

Results may vary based on AI model and effort level. I got good results using Claude Opus 5 (High Effort)

STEP 2

AI Agent Does the Implementation

Now it’s time to see some results! I fed my specification to the agent, and it generated the recipe JSON file in my working directory:

PROMPT Implement this solution using the Workato recipe skills '/path/to/grade-calculator-prompt.md'
STEP 3

Linting

In a streamlined workflow, the linting step could be included in the prompt used to do the implementation. The agent would then run the linter, read the output, and fix the JSON file itself before handing anything back to me. However, I kept it separate here to make the CLI steps visible:

CLAUDE CODE ! wk lint student_grade_calculator.recipe.json -j

This outputs the linting results to the command line as JSON, and can even be fed back into the agent to fix any errors before attempting to push to Workato.

STEP 4

Use the Recipe Visualizer

In VS Code, with the Recipe Visualizer plugin installed, Shift + Ctrl + V opens the Recipe Visualizer and renders the JSON as a graph.

The visualizer shows you the shape of the recipe: the step sequence, conditional branches, loops, and try/catch blocks:

While it does not nearly replace the Workato UI, it does give a good indication of whether or not the flow of the recipe is correct. In other words, the visualizer answers the question of “Is this the recipe I asked for?”. It does not answer “Is this step configured correctly?” For that, let’s continue to the next step: Pushing to Workato.

two-checks-validation
STEP 5

Pushing to Workato

1.

The last step before we can push the recipe to Workato and test it out, is to inform the CLI of where in your Workato workspace to put the recipe. (see CLI docs for more information on these commands)

CLAUDE CODE ! wk sync add --sync "Workato Labs Blog Demo:." --verify

This command maps your local directory to a Workato folder and stores that configuration in the wk.toml file. The --verify flag verifies that the target exists before it commits to it.

2.

Next, we can validate the mappings are correct:

CLAUDE CODE ! wk sync list
SERVER_PATH             LOCAL_PATH   FOLDER_ID
Workato Labs Blog Demo  .         32195722
3.

Finally, we can push to the Workato platform to see the recipe and test it out:

CLAUDE CODE ! wk push

Results:

Setup & Writing a Real Recipe with AI
Result: Setup & Writing a Real Recipe with AI

The AI Development Workflow Loop

The process I went through to get this example working is exactly the paradigm shift I described at the beginning of this post. Most of my time was spent writing instructions that AI can understand, and filling in the gaps where things went wrong.

Nothing works perfectly on the first try, and that is expected. What this tooling enables is a rapid, continuous feedback loop where we can prove concretely what works and what doesn’t. Then, do the next iteration of changes and repeat until the results are precisely as desired.

How this affects Workato Developers today

So, should everybody build this way? Not immediately, and not for everything. Modifying a single recipe through the browser is still much faster and gives you immediate feedback. However, if you are standardizing how recipes look across your workspace, adding logging steps to every recipe, or otherwise making changes that affect many recipes at once - you have a good use case where AI will be much faster than any human. Each task requires evaluation of the tools at our disposal before choosing the right one for the job.

In general, using AI for any software development demands that we shift our focus to:

Describing

the expected behavior by writing software specifications that survive an agent’s interpretation.

Validating

the output and providing feedback on the implementation, without having built it.

These responsibilities supplement our technical skills, but do not replace them. Developers must still be able to spot bad coding practices and other implementation problems, in order to deliver quality. The difference is that now we can do that at a much faster pace.

What surprised me

Using Claude code, I was able to get a decent first attempt. However, I found that the existing recipe skills and context that are there out of the box were not enough to be successful right away. The first-try results did get me most of the way there, with about 75% of the implementation being correct and working immediately when deployed to Workato. However, it did not do well with writing formulas for datapill mappings, along with other steps being misconfigured and not caught even by the linting step.

Getting the rest of the task completed required me to point out specific lines in the recipe that didn’t work, show Claude the way that does work, and then try again. One important consideration is that AI can be unpredictable; the strength of the model I was using (Opus 5 with High Effort) played a big factor in my results.

What’s next

Although the capabilities today are not perfect, we now have a blueprint for how to develop skills for local recipe development. Follow along in this series to learn about how we can extend the Workato skills repository, and use custom hooks to improve the quality and speed of our output.

Building recipes with AI on Workato? Talk to our Workato team. Contact API People →

FAQs

1. What is the Workato Labs developer toolchain?

It's a set of tools (Recipe Skills, Recipe Lint, Recipe Visualizer, and the WK CLI) that let a developer describe a Workato recipe locally as a JSON artifact, have an AI agent write that Workato recipe, and then validate and push it to the platform without using the browser-based recipe editor.

2. What is required before building a Workato recipe this way?

A Workato API token with access to the target folder, and access to an AI command line tool such as Claude Code or Codex.

3. What is the role of the Software Requirement Specification in this workflow?

It's the markdown document that tells the AI agent exactly how to build the Workato recipe, including what not to do, the reasoning behind specific rules, known gaps to ignore, and when the task should be considered complete. It is the stage where most of the developer's time is spent.

4. What does the Recipe Visualizer actually confirm about a Workato recipe?

It renders the Workato recipe JSON as a graph so you can check whether the step sequence, conditional branches, loops, and try/catch blocks match what you intended. It confirms the shape of the recipe is correct, but it does not confirm that each individual step is configured correctly.

5. How accurate was the AI-generated Workato recipe on the first attempt?

About 75% of the Workato recipe was correct and working immediately when deployed. The remaining issues were mostly around datapill mapping formulas and misconfigured steps that the linter did not catch, which required pointing the agent to specific failing lines and iterating.

6. Should every Workato recipe be built this way going forward?

No. Modifying a single Workato recipe through the browser is still faster for one-off changes. This workflow pays off when standardizing recipes across a workspace, adding the same logging steps to many recipes, or making changes that affect many recipes at once.

Free PDF

Read it offline — get the full PDF

Fill in two fields and the download starts right here.

  • Every figure and diagram at full resolution
  • All sources, linked and cited
Document Download Form [Articles]

No spam. We respect your inbox and your data.
Contact Us

Talk to an integration expert

About your environment — no pitch deck required.

Simple Contact Form [blog page]

Erick Figueroa
Erick Figueroa

Erick is a Solutions Architect at APIPeople, based in Yakima, Washington. He designs integration and automation solutions for banks and credit unions using iPaaS platforms such as MuleSoft and Workato, with a focus on core banking connectivity and payment workflows. He brings 8+ years of software development experience across Java, JavaScript, and Ruby, including building custom connectors.

Articles: 2
Stay ahead on integration & automation

Insights, product releases and event invites for technology leaders — straight to your inbox.

Discover more from API People

Subscribe now to keep reading and get access to the full archive.

Continue reading