Business WhatsApp AI RAG Chatbot
Configured with Agent, Document Default Data Loader, Embeddings Open Ai, Google Drive, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Web / API
- AI & models
- Trigger
- Data store
- Files / media
- Transform
- Routing
- Messaging
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Respond to Webhook | Web / API | Respond To Webhook | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Qdrant Vector Store | Data store | Vector Store Qdrant | See node parameters |
| Create collection | Web / API | HTTP Request | POST |
| Refresh collection | Web / API | HTTP Request | POST |
| Get folder | Files / media | Google Drive | fileFolder |
| Download Files | Files / media | Google Drive | download |
| Embeddings OpenAI | AI & models | Embeddings Open Ai | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Token Splitter | Transform | Text Splitter Token Splitter | See node parameters |
| Verify | Trigger | Webhook | See node parameters |
| Respond | Trigger | Webhook | See node parameters |
| is Message? | Routing | If | See node parameters |
| Only message | Messaging | Whats App | send |
| Send | Messaging | Whats App | send |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDriveOAuth2ApihttpHeaderAuthopenAiApiqdrantApiwhatsAppApi
Workflow notes
STEP 4
STEP 4
RAG System
- Respond webhook receives various POST Requests from Meta regarding WhatsApp messages (user messages + status notifications)
- Check if the incoming JSON contains user message
- Echo back the text message to the user. This is a custom message, not a WhatsApp Business template message
Important!
Important!
Configure the webhook nodes this way:
- Make sure that both Verify and Respond have the same URL
- Verify should have GET HTTP Method
- Respond should have POST HTTP Method
STEP 3
STEP 3
Create Webhook
- Go to your Meta for Developers App page, navigate to the App settings
- Add a production webhook URL as a new Callback URL
- Verify webhook receives a GET Request and sends back a verification code
- After that you can delete this
STEP 1
STEP 1
Create Qdrant Collection
Change:
- QDRANTURL
- COLLECTION
STEP 2
STEP 2
Documents vectorization with Qdrant and Google Drive
Change:
- QDRANTURL
- COLLECTION
Configure AI Agent
Configure AI Agent
Set System prompt and chat model. If you want you can set any tools
Business WhatsApp AI RAG Chatbot
Business WhatsApp AI RAG Chatbot
Purpose and structure
This folder contains the Business WhatsApp AI RAG Chatbot workflow. Its executable nodes use agent, documentDefaultDataLoader, embeddingsOpenAi, googleDrive, httpRequest, if, lmChatOpenAi, manualTrigger, memoryBufferWindow, respondToWebhook, textSplitterTokenSplitter, vectorStoreQdrant, webhook, whatsApp. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’, Verify, Respond
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Webhook/1385_Webhook_Respondtowebhook_Automate_Webhook.json MIT; preserve source notices.