AI Agent Chatbot with Long-Term Memory and Dynamic Tool Routing - n8n Workflow

The workflow combines message routing, long-term memory, and tool execution so the bot can answer, search, escalate, or send results to external apps.

Workflow Preview

Preview the automation flow before importing the JSON into n8n.

8 Nodes JSON May 18 2026
C
Chat Trigger Trigger
M
Memory Store Step 2
V
Vector Search Step 3
A
AI Agent Step 4
T
Tool Router Step 5
G
Gmail Step 6
T
Telegram Step 7
R
Response Formatter Output

Ready to automate?

Download this n8n workflow JSON and import it into your n8n canvas.

Download Workflow

n8n Nodes Used

Chat Trigger Memory Store Vector Search AI Agent Tool Router Gmail Telegram Response Formatter

Who is this best for?

Support teams and product communities that need a conversational assistant with persistent context.

概覽

The workflow combines message routing, long-term memory, and tool execution so the bot can answer, search, escalate, or send results to external apps.

How it Works

  1. Import the workflow JSON into your n8n canvas.
  2. Connect credentials for each external app and AI provider.
  3. Run a manual test execution and inspect every intermediate output.
  4. Activate the workflow after confirming the delivery channel and error path.

Inputs and Outputs

Required Inputs

  • Source file or trigger event
  • Business rules
  • AI provider credentials

Workflow Outputs

  • Structured result
  • Notification or saved record
  • Execution log

Related n8n Workflows