AutomationFlowsAI & RAG › Transcribe Whatsapp Voice Notes and Auto-reply with Openai Whisper and Gpt-4o

Transcribe Whatsapp Voice Notes and Auto-reply with Openai Whisper and Gpt-4o

ByTaseeb Saeed @taseeb17 on n8n.io

This workflow receives WhatsApp Cloud API webhook events, transcribes incoming voice notes with OpenAI Whisper, generates a reply with OpenAI GPT-4o, and sends the response back to the sender via the WhatsApp Graph API while also handling plain text messages. Receives WhatsApp…

Webhook trigger★★★★☆ complexityAI-powered25 nodesHTTP RequestOpenAI
AI & RAG Trigger: Webhook Nodes: 25 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #16897 — we link there as the canonical source.

This workflow follows the HTTP Request → OpenAI recipe pattern — see all workflows that pair these two integrations.

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 →

Download .json
{
  "id": "xnUrEqfLp0rNycNu",
  "meta": {
    "aiBuilderAssisted": true,
    "templateCredsSetupCompleted": true
  },
  "name": "WhatsApp AI Voice Note Transcriber and Auto Reply",
  "tags": [],
  "nodes": [
    {
      "id": "71c43109-3a5a-4f27-ac9c-c18029168512",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "245d6a9d-e43e-42e3-b59c-22d848cf54dc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7346b906-6436-4b8f-bcc9-c6acaf01b309",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e5452a84-a5c9-4fbf-bc33-27335a161d9b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        256
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4bc9bd6b-e5f2-4e1c-a2b9-10cd8d97c741",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        -96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3d196155-6e57-441d-9245-74106a8e2c5e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8f76c0f4-2097-4f0a-b0c1-be53716346dd",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864,
        224
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2b00069f-5d3d-40e1-89a6-3f16e4fbd5ad",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3136,
        272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "be8dbe17-35f1-4cf7-bf77-c88741dc988f",
      "name": "Verify Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        992,
        160
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "1a9f75c9-24ba-4972-8a7c-67b64d1be5fc",
      "name": "If Token Valid",
      "type": "n8n-nodes-base.if",
      "position": [
        1232,
        160
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5cc78549-ff78-4606-963d-635d0f708476",
      "name": "Respond Verified",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1472,
        96
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "77c2f3bb-ba18-44ab-bb2e-370f1c760652",
      "name": "Respond Verify Failed",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1472,
        240
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5f7fb6fa-a5f6-4b76-9802-8343e92e80bc",
      "name": "Message Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        992,
        576
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "f48f2ae6-5067-4ee8-8f70-0ebb9c07d781",
      "name": "Extract Message Content",
      "type": "n8n-nodes-base.code",
      "position": [
        1232,
        576
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "15e350f8-316e-4734-9a39-57cff482a2cd",
      "name": "If Real Message",
      "type": "n8n-nodes-base.if",
      "position": [
        1472,
        576
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3c416020-86af-4ee8-98ad-93a2e1d38ec2",
      "name": "Determine Message Type",
      "type": "n8n-nodes-base.if",
      "position": [
        1936,
        432
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a74d424c-5e99-42a5-935a-ccc44e922567",
      "name": "Fetch Audio Download URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1952,
        64
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "1153f13a-c685-4930-afe3-f2d738aea2f1",
      "name": "Download Audio Track",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2192,
        64
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "cb82e36c-b06e-41d4-a48d-f07263f98927",
      "name": "Whisper Transcription",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2432,
        320
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "fe26845f-f1a6-4363-b0cc-ea2c6968d83f",
      "name": "Set Audio Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        2672,
        320
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b5d208dd-1e1c-4f93-a903-c5250dfb9840",
      "name": "Create AI Reply",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2912,
        432
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "2204cb48-7d5a-4719-805c-d15404a18a8f",
      "name": "Set Text Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        2176,
        560
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "73b5cf0a-49ee-40ab-ad00-4776df35fda0",
      "name": "Acknowledge Message",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1712,
        784
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ae48f069-9d53-4411-811f-8a8ad516bc79",
      "name": "Post WhatsApp Reply",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3184,
        432
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "f6cf6f56-ea3d-4d02-9835-767da8fac038",
      "name": "Respond OK",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3424,
        432
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "settings": {
    "binaryMode": "separate",
    "availableInMCP": true,
    "executionOrder": "v1"
  },
  "versionId": "a5062fab-928f-47f4-96fa-2a55d029777e",
  "connections": {
    "If Token Valid": {
      "main": [
        [
          {
            "node": "Respond Verified",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond Verify Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create AI Reply": {
      "main": [
        [
          {
            "node": "Post WhatsApp Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Real Message": {
      "main": [
        [
          {
            "node": "Determine Message Type",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Acknowledge Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Text Prompt": {
      "main": [
        [
          {
            "node": "Create AI Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Audio Prompt": {
      "main": [
        [
          {
            "node": "Create AI Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post WhatsApp Reply": {
      "main": [
        [
          {
            "node": "Respond OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio Track": {
      "main": [
        [
          {
            "node": "Whisper Transcription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Whisper Transcription": {
      "main": [
        [
          {
            "node": "Set Audio Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Determine Message Type": {
      "main": [
        [
          {
            "node": "Fetch Audio Download URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Text Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify Webhook Trigger": {
      "main": [
        [
          {
            "node": "If Token Valid",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Message Content": {
      "main": [
        [
          {
            "node": "If Real Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message Webhook Trigger": {
      "main": [
        [
          {
            "node": "Extract Message Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Audio Download URL": {
      "main": [
        [
          {
            "node": "Download Audio Track",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow receives WhatsApp Cloud API webhook events, transcribes incoming voice notes with OpenAI Whisper, generates a reply with OpenAI GPT-4o, and sends the response back to the sender via the WhatsApp Graph API while also handling plain text messages. Receives WhatsApp…

Source: https://n8n.io/workflows/16897/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow captures new leads via webhook, enriches and scores them with Apollo and Google Gemini, logs everything in Google Sheets, and automates outreach, reply handling, follow-ups, meeting prep

HTTP Request, Google Gemini, Google Sheets +3
AI & RAG

This powerful n8n automation workflow is designed to execute advanced B2B lead enrichment and hyper-personalization for cold email outreach. By orchestrating a complex chain of data scraping, AI analy

OpenAI, HTTP Request, Airtable
AI & RAG

Propulsar — Content Engine v3. Uses openAi, httpRequest, googleSheets. Webhook trigger; 73 nodes.

OpenAI, HTTP Request, Google Sheets
AI & RAG

Eu Clara – Funil Kiwify Completo. Uses postgres, openAi, httpRequest, gmail. Webhook trigger; 70 nodes.

Postgres, OpenAI, HTTP Request +1
AI & RAG

Postagem Redes — Portal: Ações. Uses openAi, googleGemini, ollama, httpRequest. Webhook trigger; 58 nodes.

OpenAI, Google Gemini, Ollama +4