> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oktivo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp step

> Send an approved template or a free text message from an Auto Workflow

# WhatsApp step

The **WhatsApp** step sends a message to the lead (or any number you choose) from your connected WhatsApp number.

## Before you start

Connect WhatsApp under **Connecter > WhatsApp**. Until then the step is greyed out in the palette with "Connect WhatsApp first". A workflow that contains a WhatsApp step cannot be activated while WhatsApp is disconnected.

## Template or free text

* **Template.** Pick one of your approved templates. The list shows approved templates only. Fill each `{{1}}`, `{{2}}` value with text or a placeholder such as `{{lead.name}}` or `{{trigger.body.cart_url}}`, and see the message preview update. If the template has an image, video or document header, add its link. If it has a button with a link ending, fill that too.
* **Free text.** Type the message (up to 4,000 characters). WhatsApp only allows free text within **24 hours** after the customer last wrote to you. The step shows an amber warning for this.

**Recipient** defaults to the lead's phone. Numbers must have 8 to 15 digits.

## When the 24-hour window is closed

Choose what free text does outside the window:

* **Skip** (default): nothing is sent, the step is marked skipped and the workflow continues on the normal output.
* **Send a template instead**: sends the fallback template you choose, with its own values.
* **Fail**: the workflow continues on the **error** output.

## What else can stop a message

* The contact opted out of WhatsApp, or is on your Do Not Disturb list: nothing is sent and the step is shown as skipped.
* The template was removed or is no longer approved, or the number of values does not match: the step fails on the error output and the editor shows a banner.
* Too many messages in a minute: the step fails with a rate limit message.

## No duplicates

The same step in the same run never sends twice to the same number, even if a run is retried. If the system cannot tell whether a message went out (for example a timeout), the step reports "uncertain" and does not send again. A loop that reaches the step again does send again.

## Outputs

`default` runs after a send or a skip. `error` runs when the message could not be sent. Later steps can read the message id, the status (`sent`, `skipped`), the reason, and whether the window was open.

## Switching from the old step

Open an old **Send WhatsApp** step and click **Switch to the new WhatsApp step**. Nothing changes until you click.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.