Start a scenario from an incoming chat message Choose which chat channels and keyword phrases can start a scenario in Simla.com. false W3sidGl0bGUiOiJTY2VuYXJpb3MiLCJ1cmwiOiIvdXNlcnMvc2NlbmFyaW9zLyJ9LHsidGl0bGUiOiJTY2VuYXJpb3MgdG9vbCIsInVybCI6Ii91c2Vycy9zY2VuYXJpb3Mvc2NyaXB0cy10b29sLyJ9XQ== Scenarios /users/scenarios/ ["users","Scenarios"] ["users","Scenarios","Scenarios tool"] users

Start a scenario from an incoming chat message

Choose which chat channels and keyword phrases can start a scenario in Simla.com.

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

  1. When creating a scenario, choose “Event” as the start type. Then select “Incoming chat message” in the start block.
  2. In “Channels”, select one or more active channels. Leave the field empty to accept messages from all channels.
  3. 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 typeHow the message is matched
EqualsThe entire text matches the phrase. For example, a /start message matches /start.
ContainsThe phrase occurs anywhere in the text. For example, “Where is my order?” contains my order.
Starts withThe 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.

Thank you for your feedback.
Was this article helpful?
No
  • The recommendations did not help
  • There is no answer to my question
  • The text is difficult to understand
  • I do not like the described functionality
Yes
Previous article
Default conversion window
Default conversion windows for email, SMS and chat actions in scenarios.
Next article
Attach files to a scenario chat message
Add files to an automated chat message and check when the selected channel supports attachments.