https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way to track tool user mid flow
# ❓・ai-evy-support
x
@AI Evy is there a way to track tool user mid flow? so we can do smth like this. If x tool used more than Y transition
a
Thanks for tagging me @xx. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there isn't a built-in feature to track how many times a specific tool has been called mid-flow and use that count as a transition condition (e.g., "if tool X used more than Y times, transition") . However, you could potentially implement this using a workaround: 1. Use a dynamic variable as a counter – You can create a dynamic variable (e.g.,
{{tool_x_count}}
) and increment it each time the tool is called by having your custom tool endpoint return an updated count value. [(1) ]() 2. Use equation-based transitions – Conversation Flow supports equation-based transitions where you can write conditions like
{{tool_x_count}} > 3
to transition based on variable values. [(2) ]() 3. Store the count in response variables – When defining your custom tool, you can use
response_variables
to capture values from the tool response and store them for use in transitions. [(3) ]() The limitation is that you'd need to manage the counter logic yourself (either in your tool endpoint or by structuring your flow to increment a variable) . I don't have documentation showing a native "tool call count" tracking feature. If this is a critical requirement, you may want to reach out for additional guidance. Check out these potentially useful sources: [Dynamic Variables]() , [Platform Changelogs]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) ​