Generate Workflow relies too much on generate text block

While building a few different AI agents that all have a multi-step process of getting a specific automated task done, I first tried to make them via Generate Workflow, but soon noticed that it tends to under utilize handlebars or writing function scripts to deal with certain steps.

This often results in the generated workflow failing because its passing variable information to an LLM, causing it to get confused and messy.

I’d just wish the Generate Workflow to be smarter and try to notice when its better/faster/easier to write a function to handle a particular step.

As an example, like “reformat this CSV row into a text block where commas are replaced with newlines”

So something like “title, url, tags” would become:

title
url
tags

This kind of operation doesn’t need an AI to do it since the type of transformation can be handled by a javascript. It will massively increase speed and reduce costs down to 0 for such steps and be more accurate/less error prone.

1 Like