When you add a script to a passage, you configure any additional information the script requires. For example, a script that starts a different passage when outside your organisation's business hours may need you to specify which set of business hours to use and which passage to start.
Script values are defined when you create the script. See Script parameters.
Script values are configured for each script message bubble or response, just like a button configuration is configured for just that button bubble. Each time you add a script in a passage, you configure the values that should be used. If you want to change those values, you'll need to change them in each place you've used the script.
Script values can use placeholder chips just like chatbot messages and buttons can. A script value can be a maximum of 4096 characters long after the placeholder chips have been replaced with values. If the total script value length is longer than the limit, the script value is truncated to 4096 characters.
To change the values in a script sent as a chatbot message:
- Click Create in the left navigation, then click Conversations.
- Click the conversation with the passage you want to edit.
- Click the passage you want to edit.
- Click the script you want to change, then click Config.
- Change the values.
Type @ to add the placeholder chip for a variable, constant, or entity. - Click Save to close the script configuration.
- Click Save to save the changes to the passage.
To change the values in a script that runs after the chatbot user's response: