You've probably heard the word 'portal' before. A portal provides access from one place to another - it acts as a direct link. At Tidio, portals is what we call the act of triggering one flow from another.
Currently, there are two different ways of creating a portal. The first (and more flexible) method makes use of the dedicated action called To Another Flow (and the optional trigger From Another Flow). The second method uses the action called Decision (Quick Replies), and makes it work with the trigger Visitor Says to create a working portal.
In this article, you'll learn:
Creating a portal - method #1
To create a working portal, you need two flows: one will act as the source, while the other will act as the target.
The source flow requires the To Another Flow action in order to allow a connection with the target flow of your choice. The target flow, which you want to launch from the source flow, does not require any special trigger or setup - you can connect any flow this way!
To Another Flow - the action
The available target flows will be listed in a dropdown menu inside the To Another Flow action:
When you select a target flow in the To Another Flow action, you get the option to directly open that flow in the editor - by clicking on Open selected Flow. This lets you view and customize the target flow, if necessary:
In practice, the target flow will be triggered when your website visitor reaches the To Another Flow action while using the source flow. Effectively, reaching this step in the flow ends the visitor's interaction with the source flow, and the target flow takes over. Ideally, this transition won't even be noticeable for the visitor!
From Another Flow - the trigger
There also exists a dedicated trigger called From Another Flow. It is not required to make your portals work, but it can still be very useful. With this dedicated portal trigger, you can create a unique flow that won't work any other way - it would only be launched if a source flow targets it specifically, with its To Another Flow action.
A practical example
The source flow pictured below allows the visitor to select one of two options, each leading to a different To Another Flow action. Each of these actions is linked to a completely separate flow that already exists in the Tidio account.
The source flow shown above can trigger any other flow that you currently have in your list.
The particular To Another Flow action below is linked to the 'FAQ' flow - a flow that is normally triggered by clicking on the Tidio chat icon. Thanks to this setup, the FAQ flow can also be triggered by the portal:
The second To Another Flow action is linked to a different flow - one called 'Returns policy' in this example. This specific flow uses only one trigger: From Another Flow. This ensures that the 'Returns policy' flow can only be triggered by the main source flow, thanks to the portal.
Below you can see this portal in action. After finishing the source flow's flow, the separate target flow is started and takes over:
Creating a portal - method #2
This method brings similar results, but uses a different action as well as different trigger in the two flows you're connecting. This used to be the only method in the past, before we've introduced the dedicated To Another Flow action (described in method #1 above). In this method, however, you are required to use a specific combination of action and trigger.
Decision (Quick Replies) and Visitor Says - working together
The source flow requires the Decision (Quick Replies) action in order to allow a connection with the target flow. The target flow, which you want to launch from the source flow, needs to use the Visitor Says trigger. Please note that other Decision actions will not work here!
In practice, the target Visitor Says flow can be triggered when your website visitor clicks on one of the buttons inside the Decision (Quick Replies) action - as long as the button is not connected to any other actions:
To make the portal complete, the target flow's Visitor Says trigger needs to include the exact same text that is used in the Decision (Quick Replies) button:
When a visitor clicks that button, it basically acts like a message sent by that visitor; the target Visitor Says flow will recognise that message and trigger accordingly.
A practical example
Pictured below, you can see a flow with the Decision (Quick Replies) action - that's the source flow in this example. The two buttons in the Decision node are not connected to any other action - the flow effectively ends there.
The flow above (the source flow) can trigger another flow with the Visitor Says trigger (the target flow), as long as the trigger includes the exact same message as the button from the first flow.
Below you can see the target flow setup - with the Visitor Says trigger, which includes the same phrase as one of the buttons in the source flow.
Below you can see this portal in action. After clicking on the button - the source flow triggers the target flow:
Comments
0 comments
Please sign in to leave a comment.