WhatsApp automation
WhatsApp automation in 2Chat runs on Flows, a visual workflow builder. Pick the event that starts each workflow, add messages, menus, conditions and HTTP requests, and publish it without writing code.

How it works
Each workflow starts from a trigger on one of your WhatsApp channels and runs the steps you connect on the canvas, in order, for every conversation that matches.
Open Flows, click New flow and select the WhatsApp channel and the event that starts the workflow.
Press the plus button to add messages, menus and questions, then connect each step to the next one.
Use conditions to split the workflow into true and false paths, and HTTP requests to read or send data.
Publish to start running it, keep it as a draft while you build, or unpublish it to stop it.
Capabilities
The triggers, steps and data you can combine in a workflow, in the order you use them on the canvas.
Message received, call missed, webhook invoked and four WhatsApp group events start a workflow.
Set how long a conversation keeps its context before the same event can start the workflow again.
Send text with variables, images, videos, audio and documents, with an optional delay and typing indicator.
Wait for the contact's reply and save it to a custom field that later steps can use.
Offer numbered or keyword options, each connected to its own next step, plus a branch for unexpected replies.
Compare variables, chat session data or the last message, including time ranges in your number's time zone.
Call an external API with parameters, headers and a body, and map the JSON response to custom fields.
Start a workflow from any app with an HTTP POST to the workflow's URL, passing the number and variables.
Uses
Greet each new contact by name and offer a text menu that sends them to the right next step.
Check the current time against your opening hours and send a different reply when the team is offline.
Start a workflow when a call is missed and message the caller in their own language.
Trigger a workflow from your store, CRM, Make or Zapier with a webhook call that carries the number and variables.

Technical details
Triggers, steps, variables and access rules for workflows built with 2Chat Flows.
| Attribute | Value |
|---|---|
| Builder | Visual canvas with no code: add steps with the plus button, connect them, and duplicate or delete any step. |
| Triggers | Message received, call missed, webhook invoked, group message received, someone joined a group, someone left a group and someone was removed from a group. |
| Steps | Message, message and wait for reply, text menu, condition and HTTP request. |
| Variables | Built-in contact and message data such as first name, language code, phone number, country code, last user message and current time, plus custom fields and webhook variables. |
| Condition operators | Text (equals, contains, starts with, ends with and their negatives), number, date, inside or outside a time range, and true or false. |
| Media | Images, videos, audio and documents from the 2Chat media library, with a delay in seconds and a typing indicator per message. |
| Webhook trigger | Public URL available after saving; send an HTTP POST with a JSON body that includes to_number and a variables object. |
| Access | Super admins and admins create and edit workflows; operators do not see Flows. |
| Availability | Included on every 2Chat plan. |
Send workflow data to Make or Zapier with an HTTP request step, or start a workflow from them through its webhook URL.
Questions & answers
Pick a trigger, connect the steps on the canvas and publish your first workflow today.