Fragile expression — likely to fail when production data shape differs from test data — These expressions work reliably against test data where all fields are present. In production, fields may be absent, null, or differently typed — causing a runtime error or silent null propagation at the point of the expression.
AI node has no output token cap — Without a cap, models occasionally produce very long outputs — particularly when given an ambiguous or open-ended prompt. This increases cost unpredictably and can cause downstream parsing to fail if the consumer expects a bounded response.
Side-effect node has no audit trail — If this action is disputed, replayed, or causes a data inconsistency, there is no structured record of what was sent, when, and with what data. Debugging requires cross-referencing n8n execution history with the external system's own logs.
| Check | Description | Status |
|---|---|---|
| Failure Alerting | Failures silent — only visible in execution log | Missing |
| Retry on Failure | Transient failures cause permanent stops | Present |
| Request Timeouts | Slow providers can block execution indefinitely | Missing |
| Duplicate Prevention | Retry on write events creates duplicate records | Missing |
| Empty Response Handling | Zero-result lookups break downstream logic | Present |
| AI Output Limits | Output cost and parsing risk unbounded 1 of 3 AI nodes missing token cap | Partial |
| AI Output Format | Free-form output will break downstream parsers | Present |
| Activity Logging | Side effects unlogged | Missing |
| Write Deduplication | Webhook replays may create duplicate records | Present |
Run this analysis on your own workflows
- Add label to message
These expressions work reliably against test data where all fields are present. In production, fields may be absent, null, or differently typed — causing a runtime error or silent null propagation at the point of the expression.
- In `messageId`, change {{ $('Gmail Trigger').item.json.id }} to {{ $('Gmail Trigger')?.item?.json?.id }}.
- In `labelIds`, change {{ $json.labelId }} to {{ $json?.labelId }}.
- AI Agent
These expressions work reliably against test data where all fields are present. In production, fields may be absent, null, or differently typed — causing a runtime error or silent null propagation at the point of the expression.
- In `text`, change {{ $('Gmail Trigger').item.json.subject }} to {{ $('Gmail Trigger')?.item?.json?.subject }}.
- In `text`, change {{ $('Gmail Trigger').item.json.from.value[0].address }} to {{ $('Gmail Trigger').item.json.from.value?.[0].address }}.
- AI Agent
- OpenAI Chat Model
- OpenAI Chat Model1
A single slow external call can block the entire workflow execution. At high trigger frequency, accumulated stuck executions can exhaust the n8n execution queue.
Set a timeout under the node's Additional Options. A value of 10,000–30,000 ms (10–30 seconds) is a reasonable starting point for most APIs; adjust based on the provider's documented SLA.
- AI Agent
- OpenAI Chat Model
- Structured Output Parser
Operators cannot tell from external signals that a run failed. Silent failures go undetected until a downstream system shows missing data or a user reports a problem.
Connect a dedicated Error Workflow in workflow settings, or add a per-node onError: "continueErrorOutput" path that sends an alert via Slack, email, or a logging service.
- AI Agent
Without a cap, models occasionally produce very long outputs — particularly when given an ambiguous or open-ended prompt. This increases cost unpredictably and can cause downstream parsing to fail if the consumer expects a bounded response.
Set maxTokens to a value appropriate for the task. Classification tasks rarely need more than 100 tokens; structured JSON output typically needs 200–500; long-form summaries may need 1,000–2,000. Start conservative and increase if needed.
- Add label to message
- Get many labels
If this action is disputed, replayed, or causes a data inconsistency, there is no structured record of what was sent, when, and with what data. Debugging requires cross-referencing n8n execution history with the external system's own logs.
After the write node, add a step that records the key fields of the action to a log — a Google Sheet row append, a database insert to an audit table, or a Slack message to a dedicated ops channel. Include: timestamp, action type, affected ID, and result.
- AI Agent
In production, agents can enter loops — repeatedly calling a tool that returns ambiguous results. Without an iteration cap, a single execution can generate hundreds of tool calls, causing unpredictable cost spikes and potentially triggering rate limits on connected APIs.
Set maxIterations to 10–20 for most agentic tasks. Monitor actual iteration counts in execution history and adjust up if legitimate tasks are being cut short.
- AI Agent
Token costs scale with the size of the payload. A full $json object or a field containing HTML, transcripts, or email bodies can be orders of magnitude larger than the task actually requires.
Select only the fields the model needs for its task. If the content must be large (e.g., summarizing a full document), set a maxTokens output cap and consider chunking the input across multiple calls.
Currently covers AI/LLM nodes. Non-AI API costs will be added in a future update.
- AI Agent
- Full payload in prompt — unbounded input tokens
- No output cap — unbounded output tokens
- Agent iteration risk — no max iterations set
Set maxTokens to a value appropriate for the task. Classification tasks rarely need more than 100 tokens; structured JSON output typically needs 200–500; long-form summaries may need 1,000–2,000. Start conservative and increase if needed.
| # | Issue title | Issue description | Affected nodes | |||
|---|---|---|---|---|---|---|
| 1 | Cost Risk | AI node has no output token cap | Node "AI Agent" has no | AI Agent | High | 85% |
| 2 | Reliability | External call with no timeout configured | Node "AI Agent" makes an external call with no timeout parameter set. The n8n execution will wait indefinitely if the provider is slow or unresponsive. | AI Agent, OpenAI Chat Model, OpenAI Chat Model1, Add label to message, Get many labels | High | 90% |
| 3 | Reliability | Fragile expression — likely to fail when production data shape differs from test data | Node "AI Agent" contains expression(s) with risky patterns that assume fields are always present. | AI Agent | High | 90% |
| 4 | Reliability | Fragile expression — likely to fail when production data shape differs from test data | Node "Add label to message" contains expression(s) with risky patterns that assume fields are always present. | Add label to message | High | 85% |
| 5 | Reliability | No error handler or failure notification path | Workflow has 7 high-risk nodes (external calls or writes) with no configured error workflow and no inline notification path. If a production execution fails, the failure only appears in execution history. | AI Agent, OpenAI Chat Model, Structured Output Parser, OpenAI Chat Model1, Add label to message, Code in JavaScript, Get many labels | High | 85% |
| 6 | Cost Risk | AI agent has no iteration limit | Agent node "AI Agent" has no | AI Agent | Medium | 85% |
| 7 | Cost Risk | Full or large payload detected in AI prompt | Node "AI Agent" receives text: large-payload keyword 'body' in its prompt parameter. This sends an unbounded amount of data to the model. | AI Agent | Medium | 80% |
| 8 | Observability | Side-effect node has no audit trail | Node "Add label to message" performs a write node: "add label to message" (sideeffect: external_write) operation with no logging or audit trail detected downstream. | Add label to message | Medium | 70% |
| 9 | Observability | Side-effect node has no audit trail | Node "Get many labels" performs a write node: "get many labels" (sideeffect: external_write) operation with no logging or audit trail detected downstream. | Get many labels | Medium | 70% |
| 10 | Reliability | Finding: external without retry | Node "AI Agent" (@n8n/n8n-nodes-langchain.agent) is a read-only external call with no retry configured.. sideEffect: read_only, role: ai_agent. Read-only calls are typically safe to retry; enabling retryOnFail improves resilience to transient failures. | AI Agent | Info | 70% |
| 11 | Reliability | Finding: external without retry | Node "OpenAI Chat Model" (@n8n/n8n-nodes-langchain.lmChatOpenAi) is a read-only external call with no retry configured.. sideEffect: read_only, role: ai_model_call. Read-only calls are typically safe to retry; enabling retryOnFail improves resilience to transient failures. | OpenAI Chat Model | Info | 70% |
| 12 | Reliability | Finding: external without retry | Node "OpenAI Chat Model1" (@n8n/n8n-nodes-langchain.lmChatOpenAi) is a read-only external call with no retry configured.. sideEffect: read_only, role: ai_model_call. Read-only calls are typically safe to retry; enabling retryOnFail improves resilience to transient failures. | OpenAI Chat Model1 | Info | 70% |