AI Agents

Intelligent Workflow Automation with Agents and Memory

15 nodes 192 93 Automatic trigger
Download

Workflow Description

A workflow template that integrates AI agents with advanced language models for interactive conversations. It maintains conversation context through memory buffers and processes complex requests using OpenAI or Ollama, enabling production-ready chatbot automation.

How it works

  1. 1.Trigger conversation through chat interface
  2. 2.Route request to intelligent agent for processing
  3. 3.Invoke appropriate language model (OpenAI or Ollama)
  4. 4.Retain conversation history in memory buffer
  5. 5.Chain LLM operations for sequential execution
  6. 6.Deliver response to user

Use cases

  • Building context-aware customer support chatbots
  • Automating multilingual virtual assistant workflows
  • Processing complex queries with continuous conversation memory

Requirements

  • OpenAI API keys or local Ollama server setup
  • Understanding of LLM chains and agent workflows
  • Adequate memory allocation for extended conversations

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger AI Agent OpenAI Memory LLM Chain Lm Chat Ollama

Details

Trigger Automatic trigger
Nodes 15
Apps 6
Views 192
Downloads 93

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 (15)

/

When chat message received

Chat Trigger

#1

AI Agent

Agent

#2

DeepSeek

OpenAI

#3

Window Buffer Memory

Memory Buffer Window

#4

Basic LLM Chain2

LLM Chain

#5

Sticky Note

Sticky Note

#6

Sticky Note1

Sticky Note

#7

Ollama DeepSeek

Lm Chat Ollama

#8

Sticky Note2

Sticky Note

#9

Sticky Note3

Sticky Note

#10

DeepSeek JSON Body

HTTP Request

#11

DeepSeek Raw Body

HTTP Request

#12

Sticky Note4

Sticky Note

#13

Sticky Note5

Sticky Note

#14

Sticky Note6

Sticky Note

#15