For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Login
HomeDocs
HomeDocs
    • Work with scripted bots
    • Before you begin
    • Build and maintain your bot
      • Work with blocks and apps
        • Build Answers using blocks
        • Serve content using Message blocks
        • Save chatter information using the Capture block
        • Save content in variables using the Set Variable block
        • Target content to chatters using the Conditional block
        • Create selectable menus using the List Option block
        • Serve time-specific content using the Scheduled block
        • Make API requests using the HTTP Request block
        • Calculate values using the Answer Utilities block
        • Format dates using the Answer Utilities block
        • Increment values using the Answer Utilities block
        • Format and validate text using the Answer Utilities block
        • Search for and replace text using the Answer Utilities block
        • Let chatters upload files using the File Upload block
        • Transfer chatters from one Answer to another using the Redirect block
        • Let chatters advance to other Answers with the Quick Replies block
        • Create scrollable menus using the Carousel block
        • Let chatters select dates using the Date Picker app
        • Generate a chat transcript using the Fetch Chat Metadata block
        • Send emails using the Email app
      • Train and manage Answers
      • Create conversations
      • Personalize conversations
      • Change your bot's look and feel
      • Test your bot
      • Manage your bot and your team
      • Understand the settings chatters can control
      • Create phone conversations with Voice
    • Integrate Ada with other tools
    • Use Ada with your website
    • Measure success
Login
LogoLogo
On this page
  • Overview
  • Configure the Increment a Value action
Build and maintain your botWork with blocks and apps

Increment values using the Answer Utilities block

Previous

Format and validate text using the Answer Utilities block

Next
Built with

Overview

The Increment a Value action is a counter. When the block is triggered, the incremented value increases by 1. The incremented value starts at null (or 0), and can be captured as a variable. This action is useful for tracking the number of times an Answer was surfaced in a conversation.

You can set a threshold value to compare the incremented value against. If the threshold value is reached, then a specific action is performed.

Example: If a chatter sees the Not Understood Answer multiple times in a conversation, it’s likely they’re asking something to which the bot doesn’t yet have an answer. Use the Increment a Value utility to track how often the chatter sees the Not Understood Answer. If a predetermined number of times is met, offer the chatter the opportunity to connect with a live agent.

Configure the Increment a Value action

  1. On the Ada dashboard, go to Build > Answers, and create or open an Answer you want to increment values in.

  2. Drag and drop an Answer Utilities block into your Answer.

  3. In the Answer Utilities block, in the Select Action list, select Increment a Value.

  4. Click the Select Optional Inputs drop-down and select one or both optional input fields to add, as needed.

    Input Value

    Use this field to define a starting value to increment.

    • Can be a static integer or a dynamic integer from a variable.

    • If this input is left empty or omitted, the starting value defaults to 0.

    Threshold

    Use this field to define a threshold value at which the chatter is redirected to the Fallback Answer.

    • Incremented values equal to or greater than ( = or > ) the threshold value redirect to the Fallback Answer.

    • Use only integers.

  5. [Optional] Click the Save Response as Variables drop-down and select Incremented Value if you wish to save the incremented value as a variable.

    This feature is useful if you want to track how many times a user has performed an action. To do this, use the same variable in the Input Value and the Incremented Value fields, like in the image below.

  6. [Optional] Choose an existing variable or create a new variable to capture the incremented value.

  7. Click the Fallback Answer drop-down menu and select an Answer to display if an error occurs during the block’s operation.

    If the Threshold input is used, then the Fallback Answer also acts as the Answer the chatter is redirected to once the threshold value is met.

  8. Click Save.

The Increment a Value action is now ready for use.


Have any questions? Contact your Ada team, or email us at help@ada.cx.