AI Agents

Automated workflow

5 nodes 218 143 Automatic trigger
Download

Workflow Description

An intelligent agent workflow that combines OpenAI's language model with a dynamic conversation memory buffer and SerpAPI search capability, enabling the agent to answer user inquiries with current web-sourced information while maintaining conversation context.

How it works

  1. 1.Activate the workflow when a user message arrives through the chat trigger
  2. 2.Store and retrieve previous conversation context from the memory buffer window
  3. 3.Process the user query using OpenAI's language model integrated within the agent
  4. 4.Execute web search via SerpAPI tool when fresh information is required
  5. 5.Deliver the complete response to the user while preserving conversation history

Use cases

  • Build an intelligent assistant that answers questions using real-time web information
  • Automate interactive customer support with full conversation context awareness
  • Create an advanced search bot that maintains historical records of inquiries and responses

Requirements

  • Valid OpenAI API key with appropriate model access
  • SerpAPI key for web search functionality
  • Active chat channel or webhook endpoint to receive user messages
  • Memory buffer configured with appropriate retention limits

Service Value

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

Apps Used

Chat Trigger Memory OpenAI Tool AI Agent

Details

Trigger Automatic trigger
Nodes 5
Apps 5
Views 218
Downloads 143

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

When chat message received

Chat Trigger

#1

Simple Memory

Memory Buffer Window

#2

OpenAI Chat Model

OpenAI

#3

SerpAPI

Tool Serp Api

#4

AI Agent

Agent

#5