Create a multi-value constant

Create a multi-value constant to be a placeholder for information you want to use throughout your chatbot, but that might change frequently. You can create several optional values for the constant and select one of them to be the current value. In your chatbot content, you'll see the placeholder chip with the constant's name, but when your chatbot sends its message content, it replaces the chip with the constant's current value. You can add as many value options for a constant as you need.

For example, if your facilities are closed during inclement weather, you could create a constant with one value to use when the facilities are open, and another value to use when the facilities are closed. When you need to change the value, select the new value for the constant and then publish the change to your chatbot.

New and edited constants appear in the draft status in your chatbot version. They must be published before you can use them in your content.

Create a constant

  1. Open the team and chatbot you want to work with.
  2. Click Constants in the left navigation.
  3. Click + Constant.
  4. Type a name for your constant.
    You'll use this name to add the constant to your chatbot content. Keep it short but descriptive. You can change this name later if you need to.
  5. Click Create.
  6. In the Value field, type the first value option for this constant.
  7. Click the menu to the right of the value.
  8. Click Enable multiple values.
  9. Click +Value.
  10. In the new Value field, type the second value option for this constant.
  11. Click Save.

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.