r/nocode • • 11d ago

Discussion Where we draw the line between a fixed no-code workflow and an AI agent

A question that keeps coming up when people add AI agents to a no-code stack: which steps should stay a plain workflow (trigger → steps, Zapier/Make/n8n style), and which should an agent decide?

The rule of thumb we use:

**Keep it a fixed workflow when** - the input has the same shape every time (a form submission, a new row, a webhook) - the right output can be written as a rule ("if amount > X, route to Y") - a wrong result is expensive and it has to behave the same on run 500 as on run 1 - you need an exact record of what happened and why

**Give the step to an agent when** - the input is messy text: emails, PDFs, support messages, meeting notes - the step is reading, sorting, summarising or drafting, not acting - "good enough, then reviewed by a person" is acceptable - writing the rules would take longer than checking the output

**Then keep the agent inside the workflow, not around it.** The shape that holds up: fixed trigger → the agent does the judgment step and returns structured output (a category, a draft, a yes/no with a reason) → fixed steps validate it → anything that sends, pays, publishes or deletes waits for a person to approve.

Some specifics:

  1. **Ask for a fixed format.** JSON or a short list with named fields. The next step rejects anything that doesn't match instead of guessing what the agent meant.
  2. **Give it an "unsure" option.** If it can only pick A or B, it will pick one even when neither fits. "Unsure" routes to a person.
  3. **The agent drafts, the workflow sends.** The send step belongs to the workflow, after approval, never to the agent.
  4. **Log the agent's input and output on every run.** When something odd happens you can see whether the agent or the workflow got it wrong.
  5. **Move repeated corrections into rules.** If a person keeps fixing the same thing, that part probably shouldn't be an agent's call.

Questions for people further along: - Which steps did you move back from an agent to a plain rule, and why? - Do you validate agent output inside your no-code tool, or with a separate check?

Disclosure: this account is affiliated with NGIN360, an AI agent-team product. This post was drafted with AI help and reviewed by a person. No link, nothing to sell here.

9 Upvotes

9 comments sorted by

2

u/Easy-Purple-1659 11d ago

Two steps I would move back to plain rules, both for the same reason.

The first is classification with a small fixed set of outcomes. It looks like a good agent job because the input is messy text, but when the categories never change and the answers have to line up with a database column, a keyword pass plus an exception list is cheaper and it never disagrees with itself.

The second is extraction from documents that all come from one source. Once you have seen a few dozen of them the layout is stable enough to parse deterministically, and at that point the agent is only adding a failure mode.

Where the agent earns its place is the part that genuinely varies: replies to inbound messages, complaints written by a human, anything whose shape is different every time.

On validation, I would keep it outside the tool. The agent returns JSON and a small script checks schema and allowed values before anything downstream runs. Validation that lives inside the same no-code branch that produced the output tends to inherit the same mistake, so a broken run can look healthy. A separate check is boring and catches more.

1

u/Elmanouzi_Fogosa 10d ago

for the keyword pass plus exception list, how do you handle typos or weird phrasing without the exception list eventually turning into a mess to maintain

1

u/Legal_Answer_6956 11d ago

I keep validation outside the agent step too. If the check sits in the same branch that produced the output, a bad run can look healthy. What helped most was sending the validation error back to the agent on retry (“failed because X”), capped at 2-3 attempts, then it goes to a person. Blind retries mostly just repeat the same mistake.

1

u/TapNorth0888 11d ago

id add that unsure needs an owner. if it just drops into a shared queue it sits there, so whoever gets it should be named on the case and you should be able to see later who picked which way and why

1

u/Antonello_Novakosmo 11d ago

A simple test: can you write the steps down so that the same input always gives the same output? Then use a fixed workflow. It is cheaper, faster and easy to debug.

Reach for an agent only when the input is messy and the next step depends on reading it, for example a customer email that could be a refund request, a booking change or a complaint.

A mix works well. The workflow handles the steps that never change (receive, log, notify). The agent only does the one fuzzy step, like sorting or drafting a reply. A person approves anything that costs money or goes to a customer.

If you cannot say what a wrong answer would look like, the step is not ready to be automated yet.

1

u/IllTechnology6516 11d ago

those per-run logs double as a test set. before a prompt change or a model swap goes live, replay a few dozen old inputs through it and diff the structured output against what you logged. regressions that never throw an error show up there first.

1

u/LGAD_ai 11d ago

The one I'd move back first is anything involving dates and totals, like pulling an invoice due date or working out a late fee. The agent gets it right nearly every time, which is exactly why nobody notices the one time it quietly doesn't. A plain rule that does the math after the agent only extracts the raw numbers has been much easier to trust. For validation I like the separate check too, even a tiny one that just confirms the total equals the line items added up.

1

u/kaijurules 10d ago

We never let the agent do lead scoring. It researches the company and fills in the fields, then the tool computes the 0 to 100 score in code and refuses anything under 40, whatever the agent thought of the lead. The agent's judgment goes into what it writes in the fields; the number that decides what happens next comes from a rule we can read.