AI Agents

Build an Intelligent Agent with Memory and Search Tools

5 nodes 296 179 Automatic trigger
Download

Workflow Description

Automation that creates a smart agent responding through chat, maintaining conversation history, and using OpenAI with search capabilities to answer user queries accurately. The agent retains context across interactions for coherent conversations.

How it works

  1. 1.Receive user message through the chat interface
  2. 2.Store message and previous context in memory buffer
  3. 3.Process request using OpenAI model with search tool access
  4. 4.Execute the intelligent agent to answer the query
  5. 5.Return response while preserving conversation history

Use cases

  • Create a contextual assistant that answers questions while understanding conversation history
  • Build a customer support bot that searches for information and remembers past interactions
  • Automate knowledge consultations requiring research and reasoning

Requirements

  • Valid OpenAI API key configured
  • Search tool (SerpApi) enabled and authenticated
  • Chat interface set up for user interactions

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 296
Downloads 179

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