Latenode

Automate WhatsApp Sales with AI Chatbots and Product Data

This template receives an incoming WhatsApp Business Cloud message on a Latenode webhook, loads your product catalog page with Apify, and uses ChatGPT to answer from that catalog.

JavaScript reads the question and sender phone. WhatsApp Business Cloud sends the reply. Connect WhatsApp Business Cloud. Put the Cloud API token on the WhatsApp Business Cloud connection.

Updated Sep 16, 2026Est. run: 34sEst. cost: $0.0021
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
  • Loads product copy from the catalog page with Apify
  • Answers from that catalog with ChatGPT
  • 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 the question

JavaScript pulls the message text and sender phone. If the payload is not text, WhatsApp Business Cloud asks the customer to type a question.

3
Action

Load the product catalog

Apify scrapes the product catalog or brochure URL you set so ChatGPT has current product text.

4
AI

Write the sales reply

ChatGPT answers from the catalog text and the customer question. ChatGPT is Latenode AI, so you do not paste an OpenAI key.

5
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

Set the catalog URL

Add Apify and paste the product catalog or brochure URL Apify should scrape. Put the Apify API token on the Apify connection.

4

Parse, answer, send

In JavaScript, read text and phone from the webhook. Send the catalog text plus the question to ChatGPT, then send the reply with WhatsApp Business Cloud.

Requirements

A WhatsApp Business Cloud number and API token stored on the WhatsApp Business Cloud connection
A public product catalog or brochure URL Apify can scrape
An Apify API token stored on the Apify 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.