pop123450530
08/01/2025, 2:53 PMAI Evy
08/01/2025, 2:53 PMAI Evy
08/01/2025, 2:53 PMWhen user selected a slot, please book the appointment by calling the `book_appointment` function.AI Evy
08/01/2025, 2:53 PMdefault_dynamic_variables includes customer information like "customer_name": "John Doe" .
The booking function expects the email to be available when called. If the email variable isn't being passed through, check that:
- The agent is actually collecting the email during conversation
- The email is stored in the correct variable format
- Your prompt instructs the agent to collect email before booking
You can also check the tool invocation logs in your call history dashboard to see exactly what data is being passed to the booking function [(5) ]() .AI Evy
08/01/2025, 2:53 PMAI Evy
08/01/2025, 2:53 PMpop123450530
08/01/2025, 2:54 PMAI Evy
08/01/2025, 2:54 PMAI Evy
08/01/2025, 2:54 PMretell_llm_dynamic_variables field [(1) ]() . All values must be strings .
2. Tool Invocation Logs
Check your call history dashboard to see exactly what data is being passed to the booking function [(2) ]() . This will show if the email variable is reaching the Cal.com function.
3. Prompt Instructions
Ensure your prompt explicitly tells the agent to collect email before booking [(3) ]() :
When user selected a slot, please book the appointment by calling the `book_appointment` function.
4. Variable Extraction
If using Conversation Flow, verify your Extract Dynamic Variable Node is properly configured to capture the email as a "Text" type variable [(4) ]() .
Could you share the screenshots you mentioned? That would help me provide more specific guidance for your particular setup.AI Evy
08/01/2025, 2:54 PMAI Evy
08/01/2025, 2:54 PMpop123450530
08/01/2025, 3:20 PMAI Evy
08/01/2025, 3:20 PMAI Evy
08/01/2025, 3:20 PM{{current_time}} dynamic variable in the prompt: "You can say something like: This is today's date and time: {{current_time}}. Please consider this in checking calendar availability and booking."
Conversation Flow Booking Issues:
@jayzpio experienced similar problems: "can't seem to get the book appointment on cal function to work for the conversation flow agent... anyone got any tips" and "not only cal.com, on retell the book_appointment function doesn't work inside the conversation flow..." [(3) ](AI Evy
08/01/2025, 3:20 PMretell_llm_dynamic_variables field where all values must be strings [(4) ]() .
For your specific email variable issue, ensure you're using the correct dynamic variable syntax {{email}} in your tool description and that the email is properly extracted during the conversation before the booking function is called .AI Evy
08/01/2025, 3:20 PMAI Evy
08/01/2025, 3:20 PMpop123450530
08/01/2025, 5:44 PMAI Evy
08/01/2025, 5:44 PMAI Evy
08/01/2025, 5:45 PMjson
{
"email": "user@example.com",
"name": "John Doe"
}AI Evy
08/01/2025, 5:45 PM{{email}} and {{name}} .
2. Configure speech behavior - Enable "Speak after execution" so the agent can continue the conversation and use the retrieved data for booking [(1) ]() [(2) ]() .
Webhook Response Handling:
From the Discord discussions, there's a common issue where custom function webhook responses aren't being read by the agent [(3) ]() . The solution is to use the returned data as dynamic variables rather than expecting the agent to speak the response directly .
Integration with Booking:
Your approach of using a custom function to populate the email variable before calling the booking function should work. The custom function can retrieve the survey data from Make.com, set the email as a dynamic variable, and then the booking function should have access to {{email}} [(4) ]() .
Troubleshooting:
If the agent isn't using the webhook response data, make sure you're extracting the response values as dynamic variables in the custom function configuration, then referencing those variables in your booking function or prompt [(3) ]() .
This workaround should resolve the issue where the email variable exists in Retell but doesn't get passed to the Cal.com booking function.AI Evy
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMpop123450530
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMAI Evy
08/01/2025, 5:45 PMpop123450530
08/01/2025, 5:46 PMAI Evy
08/01/2025, 5:46 PMAI Evy
08/01/2025, 5:46 PMname, email, and time as parameters to your custom function . But based on your description, you want to retrieve these values from your Make.com webhook, not have the agent provide them as input parameters.
Recommended Approach:
If you're retrieving data from your Make.com webhook (rather than having the agent provide the data) , you might want to simplify your parameter schema or remove the required fields entirely . For example:
json
{
"type": "object",
"properties": {},
"required": []
}AI Evy
08/01/2025, 5:46 PM{{name}}, {{email}}, and {{time}} [(2) ]() .
Dynamic Variable Usage:
Once your custom function executes and saves the response as dynamic variables, you can reference them later using the double curly brace syntax . This should make the email variable available for your booking appointment node.
Potential Issue:
From the Discord discussions, there's a known issue where dynamic variables sometimes don't get passed correctly to custom functions [(3) ]() . Make sure your Make.com webhook returns the data in a format that can be extracted as response variables in your custom function configuration [(1) ]() .AI Evy
08/01/2025, 5:46 PMAI Evy
08/01/2025, 5:46 PMpop123450530
08/01/2025, 5:51 PMAI Evy
08/01/2025, 5:51 PMAI Evy
08/01/2025, 5:52 PMjson
{
"type": "object",
"properties": {},
"required": []
}
2. Configure Response Variables:
In your custom function configuration, set up response variables to extract the data from your Make.com webhook response and save them as dynamic variables . For example, if your webhook returns:
json
{
"name": "John Doe",
"email": "john@example.com",
"time": "2024-12-15T14:00:00Z"
}
Extract these values and reference them later using {{name}}, {{email}}, and {{time}} [(2) ]() .
3. Update Your Prompt:
Include explicit instructions for when to call your custom function and the booking function [(3) ]() . Here's a recommended prompt structure:
When the user is ready to book an appointment, first call the `retrieve_client_data` function to get their information from the system. After successfully retrieving the client data, proceed to book the appointment by calling the `book_appointment` function.AI Evy
08/01/2025, 5:52 PMAI Evy
08/01/2025, 5:52 PMAI Evy
08/01/2025, 5:52 PMpop123450530
08/01/2025, 5:52 PMAI Evy
08/01/2025, 5:52 PMAI Evy
08/01/2025, 5:52 PMjson
{
"type": "object",
"properties": {},
"required": []
}
[(1) ]() , [(2) ]()
Why this change:
Since you want your custom function to retrieve the name, email, and time from your Make.com webhook response, you don't need the agent to provide these as input parameters [(1) ]() . Instead, you'll extract these values from your webhook response using the response variables configuration .
Next steps:
1. Configure response variables in your custom function to extract values from your Make.com webhook response and save them as dynamic variables
2. Set up your Make.com webhook to return the data in a format that can be extracted, such as:
json
{
"name": "John Doe",
"email": "john@example.com",
"time": "2024-12-15T14:00:00Z"
}
3. Extract and reference these values later using {{name}}, {{email}}, and {{time}} [(3) ]()
This approach ensures your custom function retrieves the client data from Make.com and makes it available as dynamic variables for your booking appointment node [(3) ]() [(1) ]() .AI Evy
08/01/2025, 5:52 PMAI Evy
08/01/2025, 5:52 PMpop123450530
08/01/2025, 5:59 PMAI Evy
08/01/2025, 5:59 PMAI Evy
08/01/2025, 5:59 PMjson
{
"name": "John Doe",
"email": "john@example.com",
"time": "2024-12-15T14:00:00Z"
}
You would extract these values in your custom function's response variables configuration and then reference them later using {{name}}, {{email}}, and {{time}} [(2) ]() .
The key is ensuring your webhook response format matches what you're trying to extract as dynamic variables [(1) ]() . Once you share the actual webhook data structure, I can provide more specific guidance on how to configure the response variables extraction.AI Evy
08/01/2025, 5:59 PMAI Evy
08/01/2025, 5:59 PM