Webhook-Triggered Conversational AI Chatbot with Memory

@n8n/n8n-nodes-langchain.memory Buffer Window
Webhook Trigger

This n8n workflow establishes a robust, webhook-triggered conversational AI. It functions as a chatbot endpoint, receiving incoming requests via a webhook. The workflow critically leverages the 'Window Buffer Memory' node to maintain context and history for ongoing conversations, ensuring the AI remembers previous interactions within a session. The core intelligence is provided by the 'Chat OpenAI' node, which processes user input and generates natural language responses using a large language model. Finally, the 'Respond to Webhook' node sends the AI's generated reply back to the originating system or user. This setup is ideal for building interactive chatbots, customer support agents, or intelligent assistants that require persistent memory across multiple user turns, enabling dynamic and context-aware dialogues for various applications.

24
Nodes
15
Services
3
Categories
Webhook
Type

Get This Workflow

Free n8n workflow template ready to import

Share on social

File Details

Filename
0700_Code_Respondtowebhook_Send_Webhook.json
Category
Code
Updated
09/04/2025

Services & Integrations

@n8n/n8n-nodes-langchain.memory Buffer Window
Respond To Webhook
@n8n/n8n-nodes-langchain.lm Chat Open Ai
@n8n/n8n-nodes-langchain.tool Http Request
Execute Workflow Trigger
Set
Code
Http Request
@n8n/n8n-nodes-langchain.tool Workflow
@n8n/n8n-nodes-langchain.chat Trigger
Switch
Microsoft Outlook
Sticky Note
@n8n/n8n-nodes-langchain.agent
If

Interactive Workflow Diagram

Official n8n visualization • Click and drag to explore

Loading workflow visualization...

Official n8n visualization

How to Use This Workflow

1

Download the Workflow

Click the "Download Workflow" button above to get the JSON file.

2

Import to n8n

In your n8n instance, go to Workflows → Import and select the JSON file.

3

Configure Credentials

Set up your @n8n/n8n-nodes-langchain.memory Buffer Window and other service credentials in n8n.

4

Activate & Test

Activate the workflow and test it to ensure everything works correctly.

Tags

#code
#@n8n/n8n-nodes-langchain.memory-buffer-window
#respond-to-webhook
#@n8n/n8n-nodes-langchain.lm-chat-open-ai
#webhook
#code
#development
#workflow-automation

Ready to transform your business?