AI Agents

Build an intelligent agent responding to messages with advanced language processing capabilities

15 nodes 317 163 Automatic trigger
Download

Workflow Description

This template creates an intelligent agent triggered by user messages, processing queries through advanced language models from OpenAI and Ollama, while maintaining conversation context for consistent and smart responses.

How it works

  1. 1.Receive incoming user message through the chat trigger
  2. 2.Process the message with an intelligent agent that evaluates context and intent
  3. 3.Query language models (OpenAI or Ollama) to generate an appropriate response
  4. 4.Maintain previous conversation history using memory buffer storage
  5. 5.Deliver the intelligent response to the user while preserving conversation sequence

Use cases

  • Build an automated customer support assistant that understands context
  • Create a conversational bot for answering common questions intelligently
  • Develop an agent for analyzing complex inquiries and providing solutions

Requirements

  • API key from OpenAI or locally installed Ollama language model
  • n8n platform with permissions to create advanced workflows

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 317
Downloads 163

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