Skip to content

feat(n8n): convert CascadeFlowAgent to standalone execute() node#134

Merged
saschabuehrle merged 3 commits intomainfrom
feat/n8n-agent-standalone-execute
Feb 18, 2026
Merged

feat(n8n): convert CascadeFlowAgent to standalone execute() node#134
saschabuehrle merged 3 commits intomainfrom
feat/n8n-agent-standalone-execute

Conversation

@saschabuehrle
Copy link
Copy Markdown
Collaborator

Summary

  • Converts CascadeFlowAgent from a sub-node (supplyData() outputting ai_agent) to a standalone execute() node with main in/out connectors
  • Adds ai_memory input for optional chat memory persistence (Window Buffer Memory, etc.)
  • Adds systemMessage and text parameters — text defaults to {{ $json.chatInput }} for automatic Chat Trigger wiring
  • All cascade logic (drafter/verifier orchestration, domain routing, tool validation, quality thresholds) preserved unchanged
  • Version bump 0.7.8 → 0.7.9

Why

Nothing in n8n consumes ai_agent from community nodes. Users expect the same UX as the built-in AI Agent: a node they can wire into a workflow with memory and "what happens next" connectors. The CascadeFlowAgent adds value with its own agent loop featuring per-tool cascade/verifier routing and tool call validation — features worth preserving as a standalone agent node.

Test plan

  • pnpm build compiles cleanly
  • pnpm test — all 7 tests pass (2 test files)
  • n8n visual check: node shows main input/output, bottom shows Verifier/Drafter/Memory/Tools connectors
  • Chat Trigger → CascadeFlow Agent → response works end-to-end
  • Memory persistence across messages

… fallback

Rename "Enable Domain Routing" to "Enable Domain Cascading" in both
nodes. Update "Enable Domain Verifiers" label to include
"(Default: Main Verifier)" so users understand the fallback behavior.

Bump to v0.7.8.
The agent node was a sub-node outputting ai_agent via supplyData(), but
nothing in n8n consumes ai_agent from community nodes. Convert to a
regular execute() node with main in/out so it can be wired directly into
workflows (e.g. Chat Trigger → CascadeFlow Agent → response).

- Add main input and main output connectors
- Add ai_memory input for optional chat memory persistence
- Add systemMessage and text parameters (text defaults to chatInput)
- Replace supplyData() with execute() that loops over items, builds
  messages with memory history, runs CascadeFlowAgentExecutor, saves
  to memory, and returns output items with cascade metadata
- Resolve models/memory/tools once outside the item loop
- Bump version to 0.7.9
@saschabuehrle saschabuehrle merged commit 2314769 into main Feb 18, 2026
@saschabuehrle saschabuehrle deleted the feat/n8n-agent-standalone-execute branch February 18, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant