Use this event to start a scenario when a customer sends a chat message that matches a keyword phrase. For example, a /start message can trigger a scenario that creates a task for a manager.
Set up the start event
- When creating a scenario, choose “Event” as the start type. Then select “Incoming chat message” in the start block.
- In “Channels”, select one or more active channels. Leave the field empty to accept messages from all channels.
- Under “Keywords”, enter at least one phrase and choose how to match it. Select Add keywords to enter more phrases. The text passes the check if it matches any one of the phrases.
| Match type | How the message is matched |
|---|---|
| Equals | The entire text matches the phrase. For example, a /start message matches /start. |
| Contains | The phrase occurs anywhere in the text. For example, “Where is my order?” contains my order. |
| Starts with | The text begins with the phrase. For example, “I need help with my order” starts with I need help. |
Matching is literal and ignores letter case and spaces at the start and end of the message and the phrase. Messages with no text are skipped.
Link or create a customer
The scenario uses the customer already linked to the chat. If the chat has no linked customer, the system searches the channel’s store first by phone number and then by email address. If it finds a customer, it links the chat to that customer.
Enable “Save customers” to create a customer record before the scenario starts if the search finds no match. The option is off by default. If it is off and the chat cannot be linked to a customer, the scenario skips the message.
To check other customer data, add a “Condition” block after the start block.
Set how often the scenario starts
Set the overall scenario frequency in Settings → General. When it is set to “Every time”, the start block shows “React to message”. Choose “Every time” to start the scenario for each matching message, or “Once per dialog” to start it for the first matching message in each dialog.
With the overall frequency set to “Once” or “Periodically”, the limit applies per chat. “Once” allows one run per chat. “Periodically” uses the configured maximum number of runs within the period.
Select Save in the start block, connect it to the next step, and start the scenario.