Triggering Flows

Each flow starts with a trigger. Triggers can be used to reply with content or execute actions.

Text trigger

This trigger is used when you want to reply to a text of voice message. Drag and drop the text trigger from the trigger library. Determine based on what a user says or types what his or her intention is. Next to determining the user intent, the system can extract data from a sentence in the form of entities. Text triggers work with advanced contextual language classification (NLP) and contextual matching algorithms.

Exact match

If you train your intent with less then 5 examples, the text trigger will only respond to exact matches of the entered data.

Natural Language Processing

To get better results from the NLP, we recommend that you train your intent with at least 10 examples.

Quick replies and buttons

Text triggers can be called using quick replies and buttons with a payload type.

To create quick replies, you select the response on your flow canvas. In the right pane, you see the options to add quick replies.

There are two types of quick replies, send a text or share location. Every quick reply has a label and a value. The label can, for example, say “YES” and the value sent can be “Yes, I want to go there”.

quick replies

Event Trigger

Events are system triggers a user does not visibly notice. You can use events to specifically trigger flows. This is useful for example to automatically show a welcome message or trigger a flow from cloud code or webhooks.

Events also allow you to design complex apps that reuses flows.

Note:

You can only use events as the starting trigger of a flow.

Trigger event using cloud code action

(function(payload) {

  trigger('EVENT_NAME')

})

Unknown Trigger

Whenever the system receives a trigger it cannot match it will be triggered. You can use this for fallback scenarios.

Our AI system learns based on the examples you train for each step. It also works the other way around. You can teach the AI what it should not match. This is especially useful in delicate situations like customer support.

Unknown triggers can be placed within context of a flow. That way you can easily differentiate the reply actions based on the context of a flow.

Note that the unknown is also triggered when a user for example shares an image and you do not have a flow handling this specific situation.

Nothing Trigger

The nothing trigger is a timer that is triggered when a user is inactive for a given number of second. You can use the trigger after a reply or as a branch within a flow.

Nothing

Location Trigger

If a user decides to share his or her location you can respond to that. The system automatically adds the latitude and longitude values to the params of the query. Location triggers can also be placed within the context of flows so it also allows.

File Triggers

Image, audio, video, audio and file triggers allow to create responses whenever a user shares one of these types. Just like the location trigger the shared resource is available inside the params of a query and can be used within the context of a Flow.

Anything Trigger

The Anything trigger is a special case where you want to respond to anything a user might say or send. This allows you to respond to broad input you cannot train the AI for.

Use cases are open input like asking a user about a complaint. Whenever a user says something it gets put inside a param you can specify the name for.