Script bot response control
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Virtual Agent
Use the Script bot response control in a Virtual Agent topic to run a script that returns a single response or a multi-part response.
Use the Script bot response control when creating a more complex response that relies on scripted calculations or requires a multi-part response. Scripted output can include text, image, cards, links, and HTML to create a versatile response.
Script bot response control properties
Property | Description |
---|---|
Node name | The name that identifies this Script bot response control node in the topic flow. |
Script output type | The type of output returned by the script, either single-part or multi-part. |
Script response message | The script that generates the selected output type. |
Advanced | |
Hide this node | |
Conditionally show this node if | No-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true. |
Channel support
Example script
In this example, the script calculates the time two hours from the current time and outputs a multi-part message that includes this information.
Example Script bot response control
Script properties | Script bot response output |
---|---|
![]() |
![]() |