Facebook Messenger Chatbot That Learns From Your Documents
UnknownWhat this workflow does
This AI workflow has 20 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Pinecone Assistant (community).
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Is Token Valid? (If): checks a condition and branches into true / false
- Acknowledge Event (Respond to Webhook): sends the response back to the webhook caller
- Respond with Challenge (Respond to Webhook): sends the response back to the webhook caller
- Respond Forbidden (Respond to Webhook): sends the response back to the webhook caller
- Filter Valid Messages (If): checks a condition and branches into true / false
- Store Message for Batching (Code): runs custom JavaScript code
- Send Seen Indicator (HTTP Request): calls an HTTP API (POST)
- Wait: waits 3 seconds
- Retrieve Batched Messages (Code): runs custom JavaScript code
- Has Messages to Process? (If): checks a condition and branches into true / false
…plus 5 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @pinecone-database/n8n-nodes-pinecone-assistant is verified or supports 3.0 (used in Get context snippets in Pinecone Assistant).
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Pinecone Assistant Tool
@pinecone-database/n8n-nodes-pinecone-assistant.pineconeAssistantTool - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Quickstart Guide: Facebook Messenger Chatbot with Pinecone RAG Step-by-step instructions to get this workflow running in n8n. --- Prerequisites - Self-hosted n8n instance (v1.113.0+ recommended) - Community nodes enabled in n8n - Facebook Page (you must be an…