You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/n8n_integration.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ cascadeflow is a **Language Model sub-node** that sits between your AI model nod
78
78
✅ **Flexible** - Use any combination of models from different providers
79
79
✅ **Universal** - Compatible with OpenAI, Anthropic, Ollama, Azure, Google, and more
80
80
81
-
> **ℹ️ Note:**cascadeflow works with n8n Chain nodes but**not with AI Agent nodes**, as n8n only allows whitelisted models for Agent inputs. Use with Basic LLM Chain, Chain, or other nodes that accept Language Model connections.
81
+
> **ℹ️ Note:**Use **CascadeFlow (Model)**with n8n Chain/LLM nodes, and**CascadeFlow Agent** for agent workflows (tool calling + multi-step). The Agent node adds trace metadata and supports tool routing.
82
82
83
83
---
84
84
@@ -142,7 +142,7 @@ First, add and configure two AI Chat Model nodes in your workflow:
142
142
1. Add a **Basic LLM Chain** or **Chain** node
143
143
2. Connect the cascadeflow node to it (Model input)
144
144
3. Configure your chain as usual
145
-
4.**Note:** Does not work with AI Agent nodes (n8n limitation)
145
+
4.For agent workflows, use the **CascadeFlow Agent** node (connect tools to its `Tools` input).
146
146
147
147
### Step 4: Execute and View Results
148
148
@@ -160,7 +160,7 @@ First, add and configure two AI Chat Model nodes in your workflow:
@@ -292,7 +297,7 @@ cascadeflow provides detailed logging of every cascade decision directly in n8n'
292
297
293
298
The logs provide complete visibility into the cascade decision-making process, showing exactly which path was taken for each request.
294
299
295
-
> **ℹ️ Important:**cascadeflow does **not work with AI Agent nodes** in n8n, as n8n only allows whitelisted models for Agent inputs. Use with Basic LLM Chain, Chain, or other nodes that accept Language Model connections.
300
+
> **ℹ️ Important:**If you need agent-style tool orchestration, use the **CascadeFlow Agent** node. It is designed for n8n agent flows and records a step-by-step trace in `response_metadata.cf.trace`.
296
301
297
302
---
298
303
@@ -329,7 +334,7 @@ The logs provide complete visibility into the cascade decision-making process, s
329
334
**Configuration:**
330
335
- Drafter: Claude 3.5 Haiku
331
336
- Verifier: Claude 3.5 Sonnet
332
-
- Quality Threshold: 0.75
337
+
- Quality Threshold (if complexity thresholds are disabled): 0.75
333
338
334
339
---
335
340
@@ -396,7 +401,7 @@ The logs provide complete visibility into the cascade decision-making process, s
396
401
**Configuration:**
397
402
- Drafter: Ollama qwen2.5:3b (local, free)
398
403
- Verifier: GPT-4o (cloud)
399
-
- Quality Threshold: 0.7
404
+
- Quality Threshold (if complexity thresholds are disabled): 0.7
400
405
- Savings: ~99% on drafter calls
401
406
402
407
---
@@ -503,6 +508,7 @@ You can connect models from different providers:
503
508
504
509
### 5. Use Different Thresholds for Different Use Cases
505
510
511
+
If you disable **Use Complexity Thresholds**, you can tune **Quality Threshold** per workflow:
506
512
-**Customer support**: 0.75 (prioritize quality)
507
513
-**Content drafts**: 0.6 (prioritize speed/cost)
508
514
-**Code review**: 0.7 (balance)
@@ -517,7 +523,7 @@ You can connect models from different providers:
### Issue: "This node cannot be connected" when connecting to AI Agent
576
582
577
-
**Solution:**This is expected. cascadeflow does **not work with AI Agent nodes**because n8n only allows whitelisted models for Agent inputs. Use cascadeflow with:
583
+
**Solution:**Use the **CascadeFlow Agent**node for agent workflows. Use the **CascadeFlow (Model)** node for Chain/LLM workflows.
578
584
- ✅ Basic LLM Chain
579
585
- ✅ Chain
580
586
- ✅ Other nodes that accept Language Model connections
Copy file name to clipboardExpand all lines: packages/integrations/n8n/README.md
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The cascadeflow node is a **Language Model sub-node** that sits between your AI
61
61
62
62
**Result:** 70-80% of queries accept the drafter, saving 40-85% on costs.
63
63
64
-
> **ℹ️ Note:**cascadeflow works with n8n Chain nodes but**not with AI Agent nodes**, as n8n only allows whitelisted models for Agent inputs. Use with Basic LLM Chain, Chain, or other nodes that accept Language Model connections.
64
+
> **ℹ️ Note:**Use **CascadeFlow (Model)**with n8n Chain/LLM nodes, and**CascadeFlow Agent** for agent workflows (tool calling + multi-step). The Agent node adds trace metadata and supports tool routing.
65
65
66
66
## Installation
67
67
@@ -99,12 +99,12 @@ RUN cd /usr/local/lib/node_modules/n8n && npm install @cascadeflow/n8n-nodes-cas
99
99
2.**Add the cascadeflow node**
100
100
- Connect the drafter model to the **Drafter** input
101
101
- Connect the verifier model to the **Verifier** input
102
-
-Adjust the **Quality Threshold** (default: 0.7)
102
+
-Optionally adjust the **Quality Threshold** (default: 0.4, and per-complexity thresholds are enabled by default)
103
103
104
104
3.**Connect to a Chain node**
105
105
- The cascadeflow node outputs a Language Model connection
106
106
- Connect it to nodes that accept AI models (Basic LLM Chain, Chain, etc.)
107
-
-**Note:** Does not work with AI Agent nodes (n8n limitation)
107
+
-For agent workflows, use the **CascadeFlow Agent** node (connect tools to its `Tools` input).
108
108
109
109
### Example Workflow
110
110
@@ -120,7 +120,7 @@ RUN cd /usr/local/lib/node_modules/n8n && npm install @cascadeflow/n8n-nodes-cas
The logs provide complete visibility into the cascade decision-making process, showing exactly which path was taken for each request.
402
407
403
-
> **ℹ️ Important:**cascadeflow does **not work with AI Agent nodes** in n8n, as n8n only allows whitelisted models for Agent inputs. Use with Basic LLM Chain, Chain, or other nodes that accept Language Model connections.
408
+
> **ℹ️ Important:**If you need agent-style tool orchestration, use the **CascadeFlow Agent** node. It is designed for n8n agent flows and records a step-by-step trace in `response_metadata.cf.trace`.
404
409
405
410
## Compatibility
406
411
@@ -433,11 +438,11 @@ The logs provide complete visibility into the cascade decision-making process, s
433
438
434
439
### Issue: "This node cannot be connected" when connecting to AI Agent
435
440
436
-
**Solution:**This is expected. cascadeflow does **not work with AI Agent nodes**because n8n only allows whitelisted models for Agent inputs. Use cascadeflow with:
441
+
**Solution:**Use the **CascadeFlow Agent**node for agent workflows. Use the **CascadeFlow (Model)** node for Chain/LLM workflows.
437
442
- ✅ Basic LLM Chain
438
443
- ✅ Chain
439
444
- ✅ Other nodes that accept Language Model connections
0 commit comments