Latenode

AI-powered WhatsApp assistant for multi-format content processing

This intelligent WhatsApp chatbot automation uses OpenAI's language models to understand and respond to a wide range of user inputs, including text, voice notes, images, and PDF documents.

By maintaining conversation history, the bot can engage in context-aware interactions, adapting its responses to the user's needs. Designed for messaging and bot enthusiasts, this workflow seamlessly integrates with WhatsApp and leverages advanced AI capabilities to provide a robust and versatile conversational assistant.

Updated Apr 6, 2026Est. run: 25sEst. cost: $0
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. 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 credits work →
Messaging & bots

Workflow preview

What this template does

  • Processes text, voice notes, images, and PDF documents using AI language models
  • Maintains conversation history for context-aware interactions
  • Integrates with WhatsApp Business Cloud API to enable messaging automation
  • Leverages Supabase to store conversation data and user profiles
  • Provides a versatile conversational assistant powered by OpenAI GPT-3

How it works

1
Trigger

Receive WhatsApp Message

The workflow starts by receiving an incoming WhatsApp message through the WhatsApp Business Cloud integration. This could be text, audio, image, or PDF content from the user.

2
AI

Analyze Message

The message content is then processed using OpenAI's language models to understand the user's intent and extract relevant information, regardless of the message type (text, audio, image, or PDF).

3
Logic

Check Message Type

The workflow then routes the message based on its content type, ensuring the appropriate response is generated for text, audio, image, or PDF inputs.

4
Action

Generate Text Response

For text messages, the workflow generates a contextual text response using the insights from the OpenAI analysis.

5
Action

Generate Audio Response

For audio messages, the workflow converts the text response into an audio file, enabling a natural and engaging conversational experience.

6
Action

Send Response

Finally, the text or audio response is sent back to the user through the WhatsApp Business Cloud integration, completing the conversational loop and providing the user with the appropriate information or assistance.

Setup guide

1

Add WhatsApp Business Cloud API Credential

In the Latenode Credentials panel, add a new credential for the WhatsApp Business Cloud API. Provide the required information such as your WhatsApp Business API access token and other necessary credentials.

2

Configure OpenAI Credential

In the Latenode Credentials panel, add a new credential for the OpenAI API. Provide your OpenAI API key.

3

Add Supabase Credential

In the Latenode Credentials panel, add a new credential for Supabase. Provide your Supabase project URL and API key.

4

Configure WhatsApp Trigger Node

In the Latenode visual builder, add a WhatsApp Trigger node. Configure the node with the WhatsApp Business Cloud API credential you added earlier, and specify the phone number ID and any other required settings.

5

Set up OpenAI Language Model

In the Latenode visual builder, add an OpenAI node. Configure the node with the OpenAI credential you added earlier, and select the appropriate language model for your use case (e.g., GPT-3, GPT-4).

6

// Example Latenode Code node for processing text input
async function processText(inputText) {
  const openaiNode = this.getNode('OpenAI');
  const response = await openaiNode.runModel(inputText);
  return response.text;
}

Requirements

An OpenAI API key for access to their language models
A WhatsApp Business Cloud API account and API credentials for sending and receiving WhatsApp messages
A Supabase account and API credentials for storing conversation history and context
Permission to access and process text, voice notes, images, and PDF documents within the WhatsApp Business Cloud API

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.

More templates

You might also like

Browse all templates →
Messaging & bots

Automate WhatsApp Sales with AI Chatbots and Product Data

This Latenode automation allows users to build a WhatsApp chatbot that acts as a sales agent, providing automated responses to customer inquiries. The chatbot is powered by a product catalog vector store and an AI language model, allowing it to understand and respond to user messages in real-time. The workflow involves importing a product brochure, extracting the text, creating a vector store, and using the OpenAI language model and a memory buffer to generate relevant responses to WhatsApp users. The chatbot can handle both text messages and non-text messages, with the latter triggering a standard response. This automation is designed for businesses looking to enhance their customer support and sales efforts through a conversational WhatsApp interface.

26s$0.0703
Messaging & bots

Instantly sync Facebook Messenger to your WhatsApp for real-time alerts

This automation allows users to automatically send incoming Facebook Messenger messages to a specified WhatsApp account as real-time notifications. It is designed for users who need to stay on top of their Facebook Messenger communications while on the go, allowing them to respond quickly via WhatsApp. The automation integrates with Facebook Messenger and WhatsApp to monitor for new messages and forward them to the designated WhatsApp contact.

26s$0.0703
Messaging & bots

Automate Telegram Chatbots with AI-Powered Responses

This AI-powered Telegram bot aims to provide instant, relevant replies to user messages by integrating with advanced AI models. The bot will analyze incoming messages and generate appropriate responses tailored to the user's queries, drawing from the capabilities of language models and other AI technologies. This solution is designed to streamline communication and enhance the user experience within the Telegram messaging platform, offering an intelligent and conversational interface that can handle a wide range of user inquiries efficiently.

26s$0.0703