AI Agents

Build an intelligent agent with memory and continuous dialogue

16 nodes 283 158 Automatic trigger
Download

Workflow Description

A template that creates an intelligent agent receiving messages via chat interface, processing them using a local language model, while maintaining an organized conversation history to ensure context continuity and response quality.

How it works

  1. 1.Trigger the agent when receiving a message from the user
  2. 2.Process the message using Ollama local language model
  3. 3.Maintain conversation memory from previous exchanges
  4. 4.Send the processed response back to the user via chat

Use cases

  • Smart customer support that understands context and conversation history
  • Personal assistant that learns from interactions and improves responses
  • Specialized local consulting without relying on external servers

Requirements

  • Local language model compatible with Ollama
  • Chat interface or application supporting Chat Trigger
  • Sufficient memory to store conversation history

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Chat Trigger Lm Chat Ollama AI Agent Memory

Details

Trigger Automatic trigger
Nodes 16
Apps 4
Views 283
Downloads 158

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

When chat message received

Chat Trigger

#1

Sticky Note

Sticky Note

#2

Sticky Note1

Sticky Note

#3

Sticky Note2

Sticky Note

#4

Sticky Note3

Sticky Note

#5

Ollama Dynamic LLM

Lm Chat Ollama

#6

LLM Router

Agent

#7

AI Agent with Dynamic LLM

Agent

#8

Ollama phi4

Lm Chat Ollama

#9

Router Chat Memory

Memory Buffer Window

#10

Agent Chat Memory

Memory Buffer Window

#11

Sticky Note7

Sticky Note

#12

Sticky Note4

Sticky Note

#13

Sticky Note8

Sticky Note

#14

Sticky Note9

Sticky Note

#15

Sticky Note5

Sticky Note

#16