https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to increment a counter
# ❓・ai-evy-support
m
@AI Evy Is it possible to increment a counter ?
a
Thanks for tagging me @micheldenizob. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't see specific information about incrementing counters in the Retell AI chat API documentation. The sources show how to list chats [(1) ]() and retrieve specific chat details [(2) ]() , but don't contain examples of counter increment functionality. The chat objects do include various data fields like
start_timestamp
,
end_timestamp
, and cost information [(1) ]() [(2) ]() , but there's no explicit counter increment mechanism shown in these particular API references. I'd recommend checking the broader Retell AI documentation or asking for clarification about what specific type of counter you're looking to increment - whether it's related to chat sessions, message counts, or another metric within your Retell AI implementation. Would you like me to try providing a general answer based on common counter patterns, or do you have more specific documentation about the counter functionality you're referring to?
​ To learn more, see the sources I considered: [[1] List Chat](https://docs.retellai.com/api-references/list-chat) [[2] Get Chat](https://docs.retellai.com/api-references/get-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy If I have like a counter dynamic variable, is it possible to increment it in a node ?
a
Thanks for the follow-up, @micheldenizob. I'll get back to you soon.
### Answer The sources don't show specific functionality for incrementing counter dynamic variables within nodes [(1) ]() [(2) ]() . The Extract Dynamic Variable Node is designed to extract information from conversation and store them as dynamic variables, but it's not intended for mathematical operations like incrementing counters [(1) ]() . The node supports variable types including Text, Number, Enum, and Boolean , but the documentation doesn't describe increment operations. Dynamic variables can be used in various parts of agents including prompts, tool descriptions, and other settings [(2) ]() , and you can extract values from tool responses and save them as dynamic variables for later use [(3) ]() . However, the available sources don't demonstrate counter increment functionality within the conversation flow. For counter-like functionality, you might need to use external tools or APIs through MCP nodes or custom tool calls to handle the increment logic and return updated values as new dynamic variables. I don't have specific information about incrementing counters in nodes based on the available sources. Would you like me to try providing a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.