field-note2026-03-28

Workflow orchestration for AI: a practical primer

Why we wire LLMs into CRMs, ERPs and warehouses through a workflow engine — and the patterns that keep those workflows maintainable.

YKY. Karim
8 min read

When clients ask how we connect AI to their existing stack, the honest answer is: with far less custom code than they expect. For a large class of orchestration problems — enrich a lead when it lands in the CRM, triage inbound documents, draft and route a weekly report — a workflow engine covers the plumbing so the engineering effort goes into the decisions, not the connections.

Where the workflow engine earns its keep

Three things make it work in production. First, connectors: hundreds of maintained integrations mean the CRM trigger, the warehouse query and the Slack notification are configuration, not code. Second, visibility: a failed run is a red node on a canvas that an operations person can read, not a stack trace in a log aggregator. Third, escape hatches: when a step genuinely needs code, a function node or a call to an internal service slots in without fighting the framework.

Patterns that keep workflows sane

Treat every LLM step as fallible: validate its output against a schema before anything downstream consumes it, and route failures to a human queue instead of retrying blindly. Keep prompts in version control and inject them into the workflow, so a prompt change is a reviewed diff, not a midnight edit in a UI. And split big workflows into small ones connected by queues — the unit of failure should be one document, not one batch.

The workflow engine is not the architecture. It is the glue between systems that already know what they are doing.

Used this way, the orchestration layer is not a toy or a shortcut — it is the difference between an integration backlog measured in quarters and one measured in weeks. The intelligence lives in the models and the data; the orchestration just has to be reliable, observable and cheap to change.