Trouble with Agent-to-Agent Transfer in n8n (AI Agent Node)

Describe the problem/error/question

I’m working on a WhatsApp sales assistant built in n8n using the AI Agent node. The flow is structured with 3 agents: Descoberta → Encantamento → Fechamento.

Problem

When one agent decides to transfer the conversation (based on prompt/tool), I want the next agent to take over immediately, within the same execution. Right now, the AI Agent node outputs the “transfer” message, but the next agent only kicks in if the lead sends a new message (via webhook).

I’ve tried using Switch/IF nodes after the agent to detect the transfer, but it feels clunky. Ideally, if lead_state changes (e.g., from descoberta to encantamento), I’d like to:

  1. Update the state in Redis.

  2. Immediately invoke the next AI Agent node in the chain.

Has anyone implemented something like this with the AI Agent node?
Is there a best practice for chaining multiple AI Agents so the new one answers in the same execution when a transfer is triggered?

instance information

Debug info

core

  • n8nVersion: 1.108.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 22.17.0
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: fbab9d5d-1013-4e0c-842c-36192bdefeae

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/140.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-09-14T23:37:53.127Z

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.