> This page is for version Scripted.
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# Increment values using the Answer Utilities block

## Overview\[#UUID-354dbb56-1f8f-fad6-4e84-f01aaf09440c_id_1500011229801_id_h_01F60BRENJE25BFAWG6243EZ6G]

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\[#UUID-354dbb56-1f8f-fad6-4e84-f01aaf09440c_id_1500011229801_id_h_01F60BVYZ1PHSDKW4525P6PM5D]

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.

   <table>
     <tbody>
       <tr>
         <td>
           **Input Value**
         </td>

         <td>
           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.
         </td>
       </tr>

       <tr>
         <td>
           **Threshold**
         </td>

         <td>
           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.
         </td>
       </tr>
     </tbody>
   </table>

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.

   > **Note**
   >
   > 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.

   > **Note**
   >
   > 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**.

![](/_fern-files/_img/3dc2b2581aff8d114e900a2008cb763a92536a0fcb9c720e62396ef8fce5d2d3.webp)

The Increment a Value action is now ready for use.

---

Have any questions? Contact your Ada team, or email us at [](<mailto:help@ada.support%20%E2%80%9CHelp Docs inquiry%E2%80%9D>).