Adding a language model to a workflow does not automatically make the workflow intelligent. It adds a probabilistic component: useful when the input is ambiguous, but inappropriate for rules that must always produce the same answer.
1. Choose a process, not a vague ambition
A good first candidate has a clear trigger, repeatable inputs, an identifiable owner, and enough volume to justify maintenance. “Improve sales with AI” is not a process. “Classify inbound leads, enrich the record, and assign the correct owner” is.
2. Draw the workflow before opening n8n
Write down the trigger, required data, deterministic rules, AI decisions, external actions, and failure path. n8n is the orchestrator: it connects systems and makes the execution visible. The model should receive only the context needed for its bounded decision.
If the answer can be expressed as an exact condition, use code or a rule. If it requires interpreting unstructured language, an AI model may help.
3. Design the control points
Not every output needs review. Define thresholds: low-risk cases may continue automatically; uncertain or high-impact cases go to a person. Record the input, model version, output, decision, and correction. That evidence is what makes improvement possible.
4. Treat errors as part of the product
A production workflow needs timeouts, retries that do not duplicate actions, alerts with useful context, and a manual recovery route. Test missing fields, unavailable APIs, malformed model output, and duplicate events—not only the happy path.
5. Measure the business outcome
Track time saved, successful completion rate, human review rate, cost per execution, correction rate, and cycle time. Compare against a baseline. A technically successful workflow that creates more review work is not an operational success.
A sensible first architecture
- A webhook, schedule, or application event starts the workflow.
- The workflow validates and normalizes the data.
- Deterministic rules resolve what does not require AI.
- The model handles a narrow interpretation or generation task with structured output.
- A confidence or risk rule routes the case automatically or to human review.
- The workflow records the result, notifies the owner, and exposes failures.
When not to automate yet
Wait when the process changes every week, no one owns it, source data is unreliable, or the cost of an incorrect action is not understood. Fixing the process or data first is often the faster path.
Primary references
Do you have a process that might be ready?