https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have an agent that I am using for batch call num...
# ❓・ai-evy-support
r
@AI Evy I have an agent that I am using for batch call numbers, so they're outbound calls to thousands of users. each user number is associated with a bunch of other variables, including their name, their ID, etc. is there a way to configure it such that if one of those users calls us as an inbound now after hearing our voicemail, then the agent will be able to actually personalize the greeting as if it was still an outbound call, accounting for all their names and all the other dynamic variables that we have uploaded in the batch phone call for the original outbound? or will it not have any of that information and treat it as a new user?
a
Thanks for tagging me @reetamg. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, when users call inbound after receiving your batch call, the agent won't automatically have access to the dynamic variables from the original outbound call [(1) ]() . For inbound calls, you need to supply dynamic variables through the Inbound Call Webhook . The documentation indicates that populating dynamic variables is possible at the start_call event [(2) ]() . To achieve personalization for inbound calls from batch call recipients, you'll need to: 1. Set up an Inbound Call Webhook that receives the
from_number
2. Use that phone number to look up the user's information in your system (name, ID, etc.) 3. Return those details as dynamic variables in the webhook response The sources confirm this approach - one user successfully populated caller details from their CRM based on
from_number
for inbound calls . If no details are found for a number, the agent can ask for an account number or registered phone number, then call a function/tool to fetch user details . The dynamic variables you set in batch calls (via
retell_llm_dynamic_variables
) are specific to those outbound call tasks [(3) ]() and don't automatically carry over to subsequent inbound calls. You'll need to implement the webhook logic to recreate that personalized context for inbound scenarios.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Populating dynamic variables (caller details) based on the entity provided by the user (inbound)](https://discord.com/channels/1186424376300679209/1257709468251066439) [[3] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.