AI Agents

Build an intelligent agent responding to webhook requests

11 nodes 297 166 Webhook
Download

Workflow Description

Advanced template that creates an AI-powered agent receiving requests via webhook, maintains conversation history in memory, and processes queries using OpenAI before returning responses. Perfect for building context-aware conversational systems.

How it works

  1. 1.Receive incoming request via webhook and pass it to the agent
  2. 2.Store conversation context and previous messages in buffer memory
  3. 3.Process request using OpenAI model and intelligent agent logic
  4. 4.Send response back through webhook to the requester

Use cases

  • Create a customer support assistant that answers inquiries while maintaining conversation context
  • Build a conversational bot that learns from prior interactions within a session

Requirements

  • Valid OpenAI API key with appropriate permissions
  • Webhook endpoint capable of receiving and sending JSON-formatted data

Service Value

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

Apps Used

Memory OpenAI AI Agent

Details

Trigger Webhook
Nodes 11
Apps 3
Views 297
Downloads 166

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

/

Set your system promt for AI

Set

#1

Local n8n memory

Memory Buffer Window

#2

ChatGPT model

OpenAI

#3

Send respond

Webhook

#4

Sticky Note

Sticky Note

#5

Getting message from Instagram

Webhook

#6

Sticky Note1

Sticky Note

#7

AI Agent

Agent

#8

Sticky Note2

Sticky Note

#9

Sticky Note3

Sticky Note

#10

Sticky Note4

Sticky Note

#11