...
In the below example, we will use the flow studio and prompt the user to login to continue chatting with the chatbot.
Flow studio
We will create a flow studio flow and add a Custom control followed by a Single input control at the beginning of the flow (as shown below) to prompt the user to login.
...
Then we add an Evaluate node to check if the user logged in successfully.
If true, the flow continues
If anything else, the flow ends with an authentication error message.
...
Experience Designer
Use the below code in a function node to enable the login directive as shown below.
...
Code Block |
---|
msg.orbita.session.isLogin = true; return msg; |
Render Login page in the chat bubble
You can make use of the HTML directive and load the Login page within the Chat bubble.
...
Attachments | ||||||||
---|---|---|---|---|---|---|---|---|
|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|