Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
previewfalse
uploadfalse
oldfalse
patterns.*json
Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@130ff
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "directive" and type = "page" and space = "OCS"
labelsdirective