WHATSAPP BUSINESS API Send text message function

The WHATSAPP BUSINESS API Send text message function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA WhatsApp Business API connector function to send a text message.

For a full list of available functions, please read WHATSAPP BUSINESS API functions.


Description

The Send text message function sends a text message to a phone number via the WhatsApp Business API (Meta). Messages can only be sent within the 24-hour session window after a user messages you first. Use the Send template message function to initiate new conversations.


Setting it up

{{popups:rpas/add:action=whatsapp-send-message}}

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the WHATSAPP BUSINESS Send text message option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the WhatsApp connector to use
Phone Number IDYesText-WhatsApp Business phone number ID (from Meta Business Suite)
ToYesText-Recipient phone number in international format (e.g. 27831234567)
TextYesTextarea-Message text
VariableYesText-Variable to store the result

Output variables

VariableTypeDescription
VariableObjectAPI response with messaging_product, contacts, and messages array

Errors

  • Invalid phone number – the recipient number format is incorrect
  • Session expired – the 24-hour session window has closed (use template message instead)
  • Rate limited – too many messages sent in a short period

Tips

  • Use international format without + prefix: 27831234567 (not +27831234567)
  • Only works within 24 hours of the user’s last message to you
  • For new conversations, use the Send template message function instead
  • Use variables in the text: "Hi {customer_name}, your order {order_id} is ready"

Related functions

  • Send template message – Send a pre-approved template
  • Send media message – Send image, document, or video
  • Mark as read – Mark messages as read

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.