AI Agents

Build an intelligent agent with memory and conversation

16 nodes 344 201 Automatic trigger
Download

Workflow Description

A workflow that creates an intelligent agent powered by local language models, receives commands through a chat interface, maintains conversation context in memory, and processes complex requests with advanced reasoning capabilities.

How it works

  1. 1.Receive user messages through the chat trigger and capture intent
  2. 2.Load previous context from the memory module to ensure conversation continuity
  3. 3.Process the request via a local language model and generate appropriate responses
  4. 4.Store the new exchange in memory for future reference
  5. 5.Send the reply to the user while preserving full context

Use cases

  • Build a context-aware assistant that answers sequential questions and maintains topic threads
  • Create an automated customer support system that retains chat history and handles personalized inquiries
  • Develop a consulting agent that learns from user interactions to provide increasingly relevant guidance

Requirements

  • Set up a local or accessible Ollama model deployment
  • Run n8n with extensions enabling agent and memory features

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 344
Downloads 201

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