
Curated by n8n Markets team
Last updated: June 13, 2026
# 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 admin) - OpenAI account - Pinecone account (free Starter plan works) --- ## Workflow Architecture This workflow uses two webhooks with the same URL path but different HTTP methods: | Webhook | Method | Purpose | |---------|--------|---------| | Facebook Verification Webhook | GET | Handles Facebook's webhook verification | | Facebook Message Webhook | POST | Receives incoming messages | Both webhooks share the same URL: `https://your-n8n.com/webhook/facebook-messenger-webhook` n8n automatically routes requests based on HTTP method: - GET requests → Verification flow - POST requests → Message processing flow ### RAG Enhancement ``` User Message → Batching → AI Agent ─┬─ OpenAI Chat Model ├─ Conversation Memory └─ Pinecone Assistant Tool (RAG) │ ▼ Search your documents │ ▼ Answer with citations ``` --- ## Step 1: Install the Pinecone Assistant Community Node The Pinecone Assistant node is a community node that must be installed separately. 1. In n8n, go to Settings → Community Nodes 2. Click Install a community node 3. Enter: `@pinecone-database/n8n-nodes-pinecone-assistant` 4. Click Install 5. Restart n8n if prompted > Note: Community nodes must be enabled in your n8n instance. For Docker, set `N8N_COMMUNITY_PACKAGES_ALLOW_INSTALL=true`. --- ## Step 2: Create Pinecone Account & Assistant ### 2.1 Create Pinecone Account 1. Go to [Pinecone](https://www.pinecone.io/) 2. Sign up for a free account (Starter plan includes 100 files per assistant) 3. Complete the onboarding ### 2.2 Create an Assistant 1. In the Pinecone console, go to Assistants 2. Click Create Assistant 3. Name it `n8n-assistant` (or choose your own name) 4. Select your preferred region 5. Click Create ### 2.3 Upload Your Documents 1. Click on your newly created assistant 2. Go to the Files tab 3. Click Upload Files 4. Upload your documents (PDFs, text files, etc.) 5. Wait for processing to complete ### 2.4 Get Your Pinecone API Key 1. In the Pinecone console, click on your profile/account 2. Go to API Keys 3. Copy your API key (or create a new one) --- ## Step 3: Get Your OpenAI API Key 1. Go to [OpenAI Platform](https://platform.openai.com/api-keys) 2. Sign in with your OpenAI account 3. Click Create new secret key 4. Copy and save the API key --- ## Step 4: Create Facebook App & Get Page Access Token ### 4.1 Create Facebook App 1. Go to [Facebook Developers](https://developers.facebook.com) 2. Click My Apps → Create App 3. Select Other → Next 4. Select Business → Next 5. Enter app name and contact email 6. Click Create App ### 4.2 Add Messenger Product 1. In your app dashboard, scroll to Add products to your app 2. Find Messenger and click Set up ### 4.3 Connect Your Facebook Page 1. In Messenger settings, find Access Tokens section 2. Click Add or Remove Pages 3. Select your Facebook Page and grant permissions 4. Click Done ### 4.4 Generate Page Access Token 1. Back in Messenger settings, find your page in the list 2. Click Generate Token 3. Copy and save the token --- ## Step 5: Create Your Verify Token The verify token is a secret string for Facebook webhook verification. 1. Create a random string (e.g., `my-secret-token-12345`) 2. Save this value - you'll need it in Steps 7 and 10 --- ## Step 6: Create n8n Credentials ### 6.1 Pinecone Credential 1. In n8n, go to Credentials → Add Credential 2. Search for "Pinecone" (or "Pinecone API") 3. Configure: - Name: `Pinecone API` - API Key: Paste your Pinecone API key from Step 2.4 4. Click Save ### 6.2 OpenAI API Credential 1. In n8n, go to Credentials → Add Credential 2. Search for "OpenAI API" 3. Configure: - Name: `OpenAI API` - API Key: Paste your OpenAI API key from Step 3 4. Click Save ### 6.3 Facebook Graph API Credential 1. In n8n, go to Credentials → Add Credential 2. Search for "Facebook Graph API" 3. Configure: - Name: `Facebook Page Access Token` - Access Token: Paste your Page Access Token from Step 4.4 4. Click Save --- ## Step 7: Import the Workflow 1. In n8n, click Add Workflow → Import from File 2. Select the `workflow.json` file from this folder 3. The workflow will open in the editor ### 7.1 Configure the Verify Token 1. Find the "Is Token Valid?" node 2. Click on the node to open its settings 3. In the conditions, find Value 2 that shows `YOUR_VERIFY_TOKEN_HERE` 4. Replace it with your verify token from Step 5 ### 7.2 C
n8n instance (self-hosted or cloud). credentials.
1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation
Included in Builder Pro — $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
⚠️ 2 services require credentials. Make sure you have accounts set up before importing.
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!