The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "WhatsApp \u2192 OpenAI (FastAPI)",
"nodes": [
{
"parameters": {
"path": "whatsapp",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json.query[\"hub.mode\"] || ''}}",
"operation": "isNotEmpty"
}
]
}
},
"name": "Is Verification?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"respondWith": "text",
"responseBody": "={{$json.query[\"hub.challenge\"] || ''}}",
"options": {}
},
"name": "Respond Verification",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
650,
200
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://bot:8000/webhook/whatsapp",
"jsonParameters": true,
"bodyParametersJson": "={{ JSON.stringify({\"from\": $json.entry[0].changes[0].value.messages[0].from, \"text\": $json.entry[0].changes[0].value.messages[0].text.body}) }}",
"headerParametersJson": "={\"x-bot-secret\": $env.BOT_SECRET}",
"options": {
"timeout": 30000
}
},
"name": "Send to Bot",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
650,
400
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={\"status\": \"ok\"}",
"options": {}
},
"name": "Respond OK",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
850,
400
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Is Verification?",
"type": "main",
"index": 0
}
]
]
},
"Is Verification?": {
"main": [
[
{
"node": "Respond Verification",
"type": "main",
"index": 0
}
],
[
{
"node": "Send to Bot",
"type": "main",
"index": 0
}
]
]
},
"Send to Bot": {
"main": [
[
{
"node": "Respond OK",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
WhatsApp → OpenAI (FastAPI). Uses httpRequest. Webhook trigger; 5 nodes.
Source: https://github.com/Ruben-Sucre/wa-gpt-bridge/blob/30b00b3f6647ca44f0b19a350d1cd5a09d09a6bb/n8n/flows/wa-gpt-openai.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This template provides a simple and powerful backend for adding speech-to-text capabilities to any application. It creates a dedicated webhook that receives an audio file, transcribes it using OpenAI'
Generate Text-To-Speech Using Elevenlabs Via Api. Uses respondToWebhook, httpRequest, stickyNote. Webhook trigger; 6 nodes.
Semantic Search API Workflow. Uses httpRequest. Webhook trigger; 3 nodes.
Quiz Generator Workflow. Uses httpRequest. Webhook trigger; 3 nodes.
This workflow automates end-to-end social media publishing powered by Late API. It generates text content with Google Gemini, creates branded visuals with Kie.ai, uploads media to Late, and publishes