The Incoming message trigger (WhatsApp trigger) belongs to Trigger blocks and is available only in Triggered scenarios.
The Incoming message trigger (WhatsApp trigger) block starts a scenario when a customer sends your business a WhatsApp message containing any content or specific keywords.
Use this block to:
- Automate WhatsApp communication. Send automated replies with text and buttons.
- Respond to customer inquiries. Automatically reply to incoming messages.
- Connect customers with your other marketing channels. Invite customers to share their email addresses or follow a link to your Telegram bot to avoid Meta limitations related to 24 h messaging window.
- Build AI-powered chatbots. Pass incoming message data to external services to understand customer requests and automate responses.
To use WhatsApp blocks in your scenarios, contact the Selzy support team to enable WhatsApp functionality for your account. For setup instructions, see How to start WhatsApp marketing campaigns.
Set up the Incoming message trigger block
To create a Triggered scenario with the Incoming message trigger block, go to the Omnichannel automation scenarios page, select Triggered scenarios, and click New scenario. The scenario builder will open.
Add the Incoming message trigger block from the toolbox at the bottom of the workspace. Scroll through the available triggers if needed.Β

Alternatively, right-click anywhere on the workspace to add it.Β
In the block settings, select a WhatsApp number from the dropdown menu, if you have a few, or click +Add number to connect a new one. If you have only one number connected, it will be selected automatically.
To connect a new WhatsApp number, follow the instructions in How to start WhatsApp marketing campaigns.
Next, select a trigger type: Any message or Keywords.
Any incoming message, with set keywords or not, opens a 24-hour window for free-form messages to the customer. The window applies only to the WhatsApp number the customer wrote to. If the sender is not in your contacts yet, Selzy creates the contact automatically.Β
Once 24 hours pass without a new message from the customer, only approved templates can be sent.
Any message
The Any message trigger starts the scenario whenever a customer sends a WhatsApp message to your business. This includes text messages, media files, stickers, locations, and contact information.
Following this trigger, you can add a WhatsApp Message 24 h block to send a free-form reply while the customer's 24-hour messaging window is open.The window opens when a customer messages your business and resets each time they send another message.
Keywords
The Keywords trigger starts the scenario when a customer sends a message containing a specified keyword or phrase, such as "guide" or "send me the guide."
If both the Any message and Keywords triggers are configured for the same WhatsApp number in different scenarios, the system prioritizes the Keywords trigger.
To add a keyword, click +Keyword and enter a word or phrase (e.g., "Hello," "Sale," or "Gift").
You can add multiple keywords to account for common variations, including typos, alternative spellings, and similar phrases customers might use. All added keywords will appear in the block settings.
To remove a keyword, click the X icon next to it.
Work with incoming message data
The Incoming message trigger allows you to use information from a customer's message in subsequent scenario blocks.
When someone writes to your WhatsApp number, Selzy looks for an existing contact in your account by WhatsApp ID (BSUID), then by WhatsApp username, then by phone number.Β
If the contact is found by username or phone, Selzy saves the WhatsApp ID to it, so later messages are matched by ID. If no contact is found, Selzy creates a new one.
If two contacts share a phone number, replies go to the contact with the personβs WhatsApp ID; the other contact wonβt receive them. Merge duplicate contacts in Selzy to avoid this issue.
When a customer sends a WhatsApp message, the system saves two values that you can access as variables:
- .type identifies the message type, such as text, image, voice message, or sticker.
- .text contains the message's readable text, if available. For media messages, this may include a caption.
You can use these variables in subsequent blocks, such as the API request block, to pass message data to external services and automate further actions.
For example, an online store can use this functionality to build an AI-powered customer support chatbot. When a customer sends a question about a product, the scenario can forward the message text to an AI agent, which analyzes the request and generates a relevant response.
You can also use the message type to handle different requests. For example, if a customer sends a text message, the scenario can forward it to an AI chatbot. If they send a voice message, the scenario can route the request to a human support agent instead.
Use incoming message data with the block key
Each Incoming message trigger has a unique block key, displayed at the bottom of its settings. The block key allows subsequent scenario blocks to access information received by the trigger.
For example, if the block key is IncomingMessage1, you can use the following variables:
- {{IncomingMessage1.text}} to retrieve the customer's message text.
- {{IncomingMessage1.type}} to retrieve the message type, such as text, image, or voice message.
To use these variables, copy the block key and add .text or .type to reference the information you need. You can then insert the resulting variable into an API request or another block that supports variables.
Pass message data to an external service
To send incoming message data to a CRM, chatbot, or AI service, add an API request block after the Incoming message trigger.
In the API request body, use the trigger's variables to pass the message text and type.
For example:
{
"message": "{{NewMessage1.text | json}}",
"kind": "{{NewMessage1.type}}"
}
Here, .text passes the customer's message text, while .type identifies the message format. The external service can use this information to process the request and determine the next action.
Add the jsonΒ filter to messages from contacts before you send them in a JSON request body. Messages often contain quotes or line breaks, and without the filter these can make the JSON invalid and cause the request to fail.
Note that only text data is available to subsequent blocks. Media files, media IDs, and raw message data are not stored. If a customer sends an image or voice message, the system can identify its type and retrieve an accompanying caption, if available, but it cannot pass the actual file to an external service or download it through an API request.