Latenode

AI-powered WhatsApp assistant for multi-format content processing

This template receives WhatsApp Business Cloud callbacks on a Latenode webhook, reads the message type in JavaScript, and replies with ChatGPT. Voice notes are downloaded and transcribed with Latenode speech-to-text.

Images and PDFs are downloaded first so ChatGPT can work from text or a short description. Connect WhatsApp Business Cloud and put the Cloud API token on that connection. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key.

Updated Sep 16, 2026Est. run: 25sEst. cost: $0.0016
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Replies to WhatsApp text, voice, images, and PDFs
  • Receives Cloud API callbacks on a webhook
  • Transcribes voice with Latenode speech-to-text
  • Writes the answer with ChatGPT
  • Sends the reply with WhatsApp Business Cloud

How it works

1
Trigger

Receive the WhatsApp callback

The scenario starts when WhatsApp Business Cloud POSTs an incoming message to your webhook.

2
Logic

Read type and content

JavaScript takes the sender, message type, text, and media id. Skip status callbacks that are not customer messages.

3
Action

Download and transcribe

WhatsApp Business Cloud downloads voice, image, and PDF files. Speech-to-text turns voice notes into text.

4
AI

Write the reply

ChatGPT reads the text, transcript, or extracted PDF content and returns the answer.

5
Action

Send on WhatsApp

WhatsApp Business Cloud sends the reply to that customer number.

Setup guide

1

Add a webhook trigger

Add a webhook trigger and copy its URL. In Meta Business Manager, set that URL as the WhatsApp Cloud API callback.

2

Connect WhatsApp Business Cloud

Add a WhatsApp Business Cloud connection and paste your Cloud API token there. Use a phone number that is registered for Cloud API.

3

Parse inbound messages

In JavaScript, read sender, type, text, and media id. Skip status callbacks. Download files for voice, image, and PDF payloads.

4

Reply with ChatGPT

Transcribe voice with Latenode speech-to-text. Send text, transcript, or extracted PDF content to ChatGPT, then send the answer with WhatsApp. ChatGPT is a Latenode AI node. You do not paste an OpenAI key.

Requirements

A WhatsApp Business Cloud app and a registered business number
The Cloud API token stored on the WhatsApp Business Cloud connection
The webhook URL saved as the Cloud API callback in Meta

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.