Listen
Button Node
Allows user to choose between clickable buttons
Present users with clickable buttons during a conversation at this step and wait for the user to select one.
Node Inputs
Each button has the input to display the text on the button.
- Type:
Text
Node Parameters
On the face of the node:
- Allow user message: Whether to allow the user to send a message in the conversation.
- Type:
Toggle
- Type:
Node Outputs
The button node does not have any node outputs but can be connected to other nodes either by connecting with the handle to other nodes or by adding the button node in the dependency array of the other node. Each button will have a handle and if the user message is allowed, the user can send a message in the conversation and it will be treated as a separate path in the conversation like other button paths.
Considerations
- The button node can be used in cyclic pipelines.
- If the user message is allowed only then the user can enter text into chat.
Example
The below example is a pipeline for asking a user to choose between two options option 1 or option 2.
- Start Node: Represents the entry point of the pipeline
- Message Node: Displays the message to the user
- Message:
Choose option 1 or Option 2
- Message:
- Button Node: Allow user to choose between buttons
- Button 1:
Option 1
- Button 2:
Option 2
- Button 1:
- Message Node: Displays the message to the user
- Message:
Option 1 has been selected
- Message:
- Message Node: Displays the message to the user
- Message:
Option 2 has been selected
- Message: