guides

We Ran Our Workflow Templates Step by Step. Here's What Broke and What We Fixed.

We Ran Our Workflow Templates Step by Step. Here's What Broke and What We Fixed.
8 min read
Krešimir Čoko

TL;DR: We imported 18 of our workflow templates, ran them step by step and found problems in eight of them. None showed up as a red error: an empty joke email, tickets that all went to sales, CVs filed under the wrong key. All 26 templates now have a note on every step, and the ones that need setup have a yellow Setup note on the canvas. One of the bugs was in ByteChef itself, and its fix shipped in v0.37.0.

Every Saturday and Sunday at 8:00 London time, one of our templates is supposed to email you a joke. For a while, it sent an email with no joke in it, and the run in ByteChef was green.

The joke API it called had started answering every request with HTTP 503. The HTTP Client step didn't treat that as a failure, so the workflow carried on and sent an empty email.

If one template could fail that quietly, others could too. So we imported 18 of our workflow templates into one project, went through them step by step and fixed what we found. While we were in there, we made every template explain itself. All 26 templates now have a note on every step, and the ones that need setup have a note on the canvas that tells you what to do first.

How we tested

We imported each template from bytechef.io/workflow-templates into a single project. Then we went through every step: we checked each parameter against the current version of its component, ran the steps with Test Action and read what came out, not just whether the step turned green.

We also held each template to one rule: it had to work with only what it told us. If we needed a value, a table or a setting the template didn't mention, we counted that as a bug too.

What was broken

Most of the problems were small, and none of them showed up as a red error.

TemplateWhat went wrongFix
Email yourself a daily quote on weekdays and a joke on weekendsThe joke API answered every request with 503, so the weekend email arrived emptySwitched to JokeAPI in safe mode
Triage after-hours Gmail with OpenAI and auto-reply or alert SlackThe business week ended on Tuesday, and the Google Sheets log wrote 2 of its 7 columnsThe week ends on Friday, and all 7 columns are written
Reply to appointment emails with free Google Calendar slots via AIIt replied to every incoming email, and its slot check used an expression ByteChef rejectsOpenAI flags appointment requests and the rest are skipped and logged; the check uses built-in date functions
Rewrite new HubSpot tickets with OpenAI and route them to SlackEvery ticket went to the sales channelThe condition compares the model's actual answer
Score CVs from Google Forms with OpenAI and sort them in Google DriveA skipped optional question shifted the answer numbers, so the CV landed on the wrong keyAll three questions are required, in a fixed order
Build a monthly Nifty time report in Google Sheets and email itIt used a fixed date, and ByteChef evaluated the Sheets SUM formula itselfIt uses the current date and sends the formula as text
Validate CSV rows and insert them into PostgreSQLIt inserted into "CITY" but counted the rows in cityBoth use city
Compare USD exchange rates in Python and act when they riseThe description talked about scraping a battery catalogIt describes the EUR/USD comparison

Four templates also used parameters that no longer matched the current versions of their components: the appointment replies, the Nifty report, CV scoring and the CSV to PostgreSQL load. We updated them to the current definitions.

Ticket routing shows the pattern best. The template asks OpenAI whether a new HubSpot ticket is a tech issue, and a condition then posts it to the tech channel or the sales channel. The condition was written like this:

='${openAi_2}'=='tech'

The quotes around the data pill made ByteChef compare the literal text openAi_2 with tech. That is never true, so every ticket went to the sales team, and every run succeeded. The fix is one line:

=${openAi_2} == 'tech'

We also changed the prompt to ask for exactly tech or support, in lowercase and nothing else, so the condition always has a known value to check.

A note on every step

Open any step in a ByteChef template and look at its Description tab. Every one of the 181 steps across all 26 templates now has a note there, and each note answers the same three questions:

  • What does this step do in this workflow?
  • What does it take from earlier steps, and what do later steps take from it?
  • What do you have to fill in yourself?

Here is the note on Download CV in the CV scoring template:

Downloads the CV that the candidate uploaded in question 3, using the file ID from the form response. The file is used for text extraction and for the final upload.

And on Categorize Ticket in the ticket routing template:

Reads the ticket and answers with a single lowercase word: tech for a technical issue, or support otherwise. The next step routes on this answer.

Before, some steps had a generic description of the component and some had nothing. Now you can read a template from start to finish without running it.

The Description tab of the Download CV step in the CV scoring template, showing the Google Drive component, the step title and its note about downloading the CV uploaded in question 3

Setup and warning notes on the canvas

A step note helps once you open the step. Some things you need to know before you open anything, so we added a yellow Setup note to 14 templates; the two A2A templates already had one. The note sits on the canvas to the left of the flow. It lists what has to exist outside the workflow and how to try it.

For the CV scoring template, that means a Google Form with three required questions in a fixed order, a results sheet with the right headers, two Drive folders and OpenAI added as an AI provider.

Two templates also have an orange warning, because they act on other people's email:

  • Classify Gmail emails with OpenAI forwards every new email to a team address. If that address delivers back into the inbox the workflow watches, the copy is picked up and forwarded again, in a loop. The note explains how to avoid it.
  • Reply to appointment emails sends an automatic reply to every email that OpenAI marks as an appointment request. The note tells you to try it on a separate inbox first and to check which emails were skipped.
The yellow Setup note and the orange Watch out note on the canvas to the left of the appointment replies workflow, next to its Gmail, OpenAI and condition steps

We also replaced two old notes in the after-hours template. They described setting up Google Search Console, when the trigger actually needs a Google Cloud Pub/Sub topic for Gmail.

Nothing of ours left in your copy

Several templates still pointed at the accounts of the people who built them: spreadsheet and form IDs, Drive folders, calendars, Slack channels, Gmail labels, a HubSpot app, a Nifty project, a Pub/Sub topic and local file paths. An imported copy pointed at resources you can't open. We removed all of them, and each template's prerequisites and Setup note now say which fields need your own values.

A platform fix came out of it

The empty joke email wasn't only a template problem. An HTTP Client step without a connection never looked at the status code, and its Ignore Response Code option had no effect. We reported it as issue #7579, and the fix shipped in ByteChef v0.37.0. A non-2xx response now fails the step, unless you turn Ignore Response Code on.

That bug is one of six quiet failures we found along the way. A follow-up post will cover all six and how to catch them in your own workflows.

Try it

Pick a template at bytechef.io/workflow-templates, click Use template and read the yellow note before you run anything. If a step does something you didn't expect, open its Description tab.

All 26 templates live in the bytechef-workflows repository on GitHub. If you find one that's broken, or a note that's wrong, open an issue there; pull requests are welcome too. And if ByteChef is useful to you, a star on GitHub helps more people find it.

Subscribe to the ByteChef Newsletter

Get the latest guides on complex automation, AI agents, and visual workflow best practices delivered to your inbox.

Related posts