AI Agents

Build an AI Agent with OpenAI Memory and Search Integration

5 nodes 320 184 Automatic trigger
Download

Workflow Description

An intelligent agent that receives queries through a chat interface, maintains conversation history in memory, and uses search tools to answer complex questions with full context awareness and consistent dialogue flow.

How it works

  1. 1.Receive user message via chat trigger
  2. 2.Process input with OpenAI language model
  3. 3.Maintain conversation history in buffer memory
  4. 4.Access search tools when required for information
  5. 5.Return contextual response to user

Use cases

  • Smart customer service assistant that remembers previous interactions
  • Interactive data analyst that gathers information from multiple sources
  • Virtual tutor that provides personalized guidance based on conversation history

Requirements

  • Valid OpenAI API key configured
  • Search tool service enabled (SerpApi)
  • Active chat interface connection

Service Value

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

Apps Used

OpenAI Memory Tool Chat Trigger AI Agent

Details

Trigger Automatic trigger
Nodes 5
Apps 5
Views 320
Downloads 184

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)

OpenAI Chat Model

OpenAI

#1

Window Buffer Memory

Memory Buffer Window

#2

SerpAPI

Tool Serp Api

#3

When chat message received

Chat Trigger

#4

AI Agent

Agent

#5