Latenode

Automate WhatsApp responses with AI or predefined logic

This template receives an incoming WhatsApp Business Cloud message on a Latenode webhook, pulls the text and sender phone in JavaScript, detects intent with Google Dialogflow ES, and sends the reply with WhatsApp Business Cloud. Connect WhatsApp Business Cloud and Dialogflow. Put the Cloud API token on the WhatsApp connection and the Google key on the Dialogflow connection.

Updated Sep 16, 2026Est. run: 8sEst. cost: $0.0005
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 Business Cloud messages as they arrive
  • Reads the inbound payload in JavaScript
  • Classifies the text with Google Dialogflow ES
  • Sends the reply with WhatsApp Business Cloud

How it works

1
Trigger

Receive the WhatsApp webhook

Meta posts the incoming WhatsApp Business Cloud message to your Latenode webhook.

2
Logic

Read text and sender

JavaScript pulls the message text and sender phone from the webhook payload.

3
AI

Detect intent

Google Dialogflow ES classifies the text and returns the reply fulfillment.

4
Action

Send the WhatsApp reply

WhatsApp Business Cloud sends that text back to the sender.

Setup guide

1

Connect WhatsApp Business Cloud

Add a WhatsApp Business Cloud connection and paste your Cloud API token there.

2

Point Meta at the webhook

Add a webhook trigger and set that URL as the WhatsApp Cloud callback. Confirm the verify token Meta expects.

3

Connect Google Dialogflow ES

Add a Dialogflow connection and paste your Google key there. Choose the agent that should classify inbound chats.

4

Parse, detect, send

Use JavaScript to read text and phone from the webhook, detect intent in Dialogflow, then send the reply with WhatsApp Business Cloud.

Requirements

A WhatsApp Business Cloud number and API token stored on the WhatsApp connection
A Google Dialogflow ES agent and Google key stored on the Dialogflow connection
A Latenode webhook URL registered as the Cloud callback

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.