AI Agents

Automated workflow

16 nodes 239 168 Automatic trigger
Download

Workflow Description

An automated workflow that integrates an intelligent agent powered by a local language model to handle messages and inquiries. It maintains continuous conversation history through a buffer memory system, enabling coherent contextual interactions without relying on external cloud services.

How it works

  1. 1.Receive messages through the chat trigger endpoint
  2. 2.Process inquiries using the local Ollama language model
  3. 3.Execute intelligent agent actions based on detected context
  4. 4.Store conversation history in the buffer memory window
  5. 5.Return contextually relevant responses to the user

Use cases

  • Build an offline-capable smart assistant for customer inquiry responses
  • Automate handling of repetitive queries while maintaining conversation context
  • Create a conversational agent that learns from prior interactions within a session

Requirements

  • Ollama installed and running with a supported language model
  • Chat trigger configured to connect with your communication channel
  • Memory buffer window sized appropriately for conversation volume

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 239
Downloads 168

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