WorkflowOtherOpen

WhatsApp chatbot n8n workflow for voice, images and PDFs

This n8n workflow is a WhatsApp chatbot that understands text, voice notes, images and PDF documents. It suits businesses that talk to customers on WhatsApp and want one AI agent to answer whatever kind of message arrives, with replies sent back in the same chat.

What it does

A WhatsApp trigger receives the message and a switch routes it by type. Audio is downloaded and transcribed, images are downloaded and analyzed, documents go through Extract From File, and an OpenAI powered agent writes the response.

How to use it

Follow the included steps: create a Business app on Meta for Developers, link a phone number to WhatsApp, and add the WhatsApp and OpenAI credentials in n8n.

Requirements and limits

You need a Meta Business account, a Facebook developer account, a verified business and a phone number for WhatsApp.

More in Other and the n8n workflow library.

Full text

Front matter
name: AI-Powered WhatsApp Chatbot for Text, Voice, Images & PDFs
description: Triggered manually or by an app event. Connects Code, Condition, Extract From File, HTTP request, Switch, WhatsApp. ## Text ## Voice ## Image ## Document ## Response How to obtain Whatsapp API? ### ✅ Prerequisites Before you begin, make sure you have: - A **Meta Business Account** - A **Facebook Developer Account** - A **Verified Business** - A **Phone Number** to link to WhatsApp - Access to **Meta's Graph API Explorer** or **Meta for Developers portal** - ### 🪜 STEP 1: Create a Meta App 1. Go to [{{ $env.WEBHOOK_URL }}]({{ $env.WEBHOOK_URL }} 2. Click **“Create App”** 3. Choose **"Business"** as the
category: Automation
kind: Workflow
software: Code|Condition|Extract From File|HTTP request|Switch|WhatsApp

AI-Powered WhatsApp Chatbot for Text, Voice, Images & PDFs

Triggered manually or by an app event. Connects Code, Condition, Extract From File, HTTP request, Switch, WhatsApp. ## Text ## Voice ## Image ## Document ## Response How to obtain Whatsapp API?

✅ Prerequisites

Before you begin, make sure you have:

  • A Meta Business Account
  • A Facebook Developer Account
  • A Verified Business
  • A Phone Number to link to WhatsApp
  • Access to Meta's Graph API Explorer or Meta for Developers portal

🪜 STEP 1: Create a Meta App

  1. Go to [{{ $env.WEBHOOK_URL }}]({{ $env.WEBHOOK_URL }}
  2. Click “Create App”
  3. Choose "Business" as the

Steps

  • WhatsApp Trigger (whatsAppTrigger)
  • Download Image (httpRequest)
  • Analyze Image (noOp)
  • Download Audio (httpRequest)
  • Transcribe Audio (noOp)
  • OpenAI Chat Model (noOp)
  • AI Agent1 (noOp)
  • Download File (httpRequest)
  • Extract from File (extractFromFile)
  • Simple Memory (noOp)
  • Get File Url (whatsApp)
  • Only PDF File (if)
  • Fix mimeType for Audio (code)
  • Send message (whatsApp)
  • Send audio (whatsApp)
  • Incorrect format (whatsApp)
  • Text (set)
  • Audio (set)
  • Image (set)
  • File (set)
  • Not supported (whatsApp)
  • Get Image Url (whatsApp)
  • Get Audio Url (whatsApp)
  • Generate Audio Response (noOp)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • From audio to audio? (if)
  • Input type (switch)
  • Sticky Note5 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/2033_Code_Extractfromfile_Automate_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.