https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Can the built-in booking fu...
# ❓・ai-evy-support
m
@AI Evy Can the built-in booking function for Cal.com also capture and fill in the "description" field for the Cal booked event?
a
Thanks for tagging me @miketyler.. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Book Calendar]() * [Check Calendar Availability]() * [Overview]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() -----------------------------
### Answer Based on the available documentation, I cannot find any specific information about whether Retell AI's built-in Cal.com booking function can capture and fill in the description field. The documentation only shows that the basic booking functionality requires an API key and Event Type ID [(1)]() [(2)]() , but does not detail all the available fields that can be populated. If you need this specific functionality, you may want to consider using a custom function instead, as this allows for more customized integrations with Cal.com [(3)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy How would you prompt the agent to make sure it's also passing on the call summary into the Description field in Cal while booking the call?
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Platform Changelogs | Retell AI]() * [Integrate Function Calling]() * [Book Calendar]() * [LIVE WORKSHOP: Build an Outbound AI Caller for Mortgage Leads!](

▾

) -----------------------------
### Answer Based on the available documentation, I cannot find specific information about passing call summaries to the Cal.com description field using Retell AI's built-in booking function. However, there are two potential approaches mentioned in the sources: 1. You can create a custom function integration instead of using the built-in Cal.com integration [(1)]() . This would allow you to set up your own custom workflow and variables . 2. If you need to use the built-in function, you can use Cal.com custom fields which will automatically display collected data in the booking event [(2)]() . However, the documentation doesn't specifically mention if this works with the description field. Would you like me to provide a general answer about custom function implementation approaches?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy "If you need to use the built-in function, you can use Cal.com custom fields which will automatically display collected data in the booking event" yes let's go with this, exactly what I need
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Book Calendar]() * [Overview]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() * [Platform Changelogs | Retell AI]() -----------------------------
### Answer Based on the changelog, Cal.com custom fields are now supported in Retell. When using Cal.com functions, you can instruct the agent to collect specific information, and it will automatically display the collected data in the booking event [(1)]() . To implement this: 1. First set up your custom fields in Cal.com 2. The fields will then be available to use in Retell 3. Configure your agent to collect the specific information you want to capture The data will automatically appear in the booking event once collected .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy Guide me through the steps.. where will the fields be available? Pls write a prompt for the agent to capture information (call summary / what the user wants). The field in Cal.com is "notes"
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Retell AI - How to use Cal.com Custom Field](

▾

) * [New Dashboard, Warm Transfer, Cal.com Fields, and Partner Programs!]() * [Book Calendar]() * [Automate Scheduling with AI Appointment Booking | Retell AI]() -----------------------------
### Answer 1. First, set up the custom field in Cal.com: - Go to Cal.com's advanced page [(1)](

▾

) - Set up the booking questions - Add your "notes" field 2. In Retell AI: - Create an agent in the Retell AI dashboard - Add the book calendar function with your Cal.com API key and Event Type ID [(2)]() 3. Here's a suggested prompt structure for your agent:
Copy code
When collecting information for the booking, make sure to:
1. Ask the user about their reason for booking/what they want to discuss
2. Summarize their response
3. When user selected a slot, please book the appointment by calling the `book_appointment` function
The custom fields you've added in Cal.com will automatically display the collected data in the booking event [(3)]() . Based on the documentation available, I cannot provide the exact syntax for how the notes field should be formatted in the function call, as this specific detail is not shown in the sources. However, you can verify the setup is working by checking if the information appears correctly in your Cal.com booking as demonstrated in the tutorial video [(1)](

▾

) .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy It doesn't work. Just tested it. How do I inform the team? The documentation seems inaccurate. Also please link the exact search keywords for me to find this on the page changelog page
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Book Calendar]() * [Platform Changelogs | Retell AI]() * [New Dashboard, Warm Transfer, Cal.com Fields, and Partner Programs!]() * [Retell AI - How to use Cal.com Custom Field](

▾

) -----------------------------
### Answer You can find this feature mentioned in the changelog under "4. Cal.com Custom Fields" with the date October 3, 2024 [(1)]() . However, based on recent Discord discussions, users have reported limitations with the Cal.com integration [(2)]() . One user specifically mentioned having inconsistent results with additional fields. To inform the team about this issue, you have two options: 1. Join the Retell Discord channel [(3)]() 2. Visit [Contact Sales]() Additionally, as noted by community members, if you need more control over field population, you might need to use custom functions instead of the built-in Cal.com integration [(2)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy Can you fix my json? says invalid schema { "type": "object", "properties": { "requested_timeslot": { "type": "string", "description": "The requested timeslot for the reschedule in ISO 8601 format." }, "email": { "type": "string", "description": "The customer's email address." } "phone": { "type": "string", "description": "Incoming phone number" } "notes": { "type": "string", "description": "Reason for the call." } }, "required": [ "email", "phone", "requested_timeslot" ] }
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate any system with custom function]() * [Custom Function]() * [Retell AI | How to Integrate Phone AI Agents with Your Existing API Systems]() * [Tool set up help request]() -----------------------------
### Answer The issue in your JSON schema is missing commas between the properties. Here's the corrected version:
Copy code
javascript
{
  "type": "object",
  "properties": {
    "requested_timeslot": {
      "type": "string",
      "description": "The requested timeslot for the reschedule in ISO 8601 format."
    },
    "email": {
      "type": "string",
      "description": "The customer's email address."
    },
    "phone": {
      "type": "string",
      "description": "Incoming phone number"
    },
    "notes": {
      "type": "string",
      "description": "Reason for the call."
    }
  },
  "required": [
    "email",
    "phone",
    "requested_timeslot"
  ]
}
The key fixes are: 1. Added comma after the email property 2. Added comma after the phone property 3. Fixed indentation for consistency 4. Added comma between required fields This follows the JSON schema format required for custom functions in Retell AI [(1)]() [(2)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy perfect thanks. Should phone number be a string?
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate any system with custom function]() * [LLM WebSocket]() * [Live Workshop: Retell x GoHighLevel Integration](

▾

) * [Discord message from @noahreis on 2024-11-18]() -----------------------------
### Answer Yes, phone numbers should be type "string". This is confirmed in the example from the documentation where phone numbers are shown in E.164 format (e.g. "+12137771234") [(1)]() . Phone numbers are handled as strings because they: 1. Can contain special characters ("+") 2. Need to preserve leading zeros 3. Follow the E.164 format which includes the country code So your current schema using "type": "string" for the phone field is correct.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy Are there any default variables such as the incoming number? I need this to pass in a custom function, and the agent asked me for my phone number. I said that they already have it, but in fact they didn't, and the function failed. How can I make sure that instead of asking me for my number, my actual number that I'm making the call from is being used?
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Custom Function]() * [Integrate any system with custom function]() * [Outbound calls (make calls)]() * [LLM WebSocket]() -----------------------------
### Answer When a custom function is called, Retell sends a POST request to your endpoint that includes the caller's phone number in the request body under
call.from_number
[(1)]() . The request body structure looks like this:
Copy code
javascript
{
  "call": {
    "call_type": "phone_call",
    "from_number": "+12137771234",
    "to_number": "+12137771235",
    "direction": "inbound",
    "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
    "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
    "call_status": "registered",
    "metadata": {},
    "retell_llm_dynamic_variables": {
      "customer_name": "John Doe"
    },
    "opt_out_sensitive_data_storage": true
  }
}
[(2)]() So instead of having the agent ask for the phone number, you should modify your endpoint to extract the phone number from
call.from_number
in the request body [(1)]() . This way, you'll automatically get the caller's phone number without needing to ask for it. Based on a Discord discussion, there isn't currently a built-in variable within the prompt that allows direct access to the incoming caller's phone number without using custom functions or webhooks [(3)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy Okay, I see. it's not being sent correctly to my endpoint, in Make.com, I don't have any of these variables you wrote. This is what my JSON looks like for the custom function. Should I add it there? { "type": "object", "properties": { "name": { "type": "string", "description": "Full name of the caller." }, "requested_timeslot": { "type": "string", "description": "The requested timeslot for the reschedule in ISO 8601 format." }, "notes": { "type": "string", "description": "Reason for the call." }, "phone": { "type": "string", "description": "Incoming phone number" }, "email": { "type": "string", "description": "The customer's email address." } }, "required": [ "email", "phone", "requested_timeslot" ] }
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate any system with custom function]() * [Custom Function]() * [Retell AI | Branded Caller IDs and Verified Phone Numbers: Why They Matter and How They Boost Your Customer’s Trust]() * [Discord message from @fyodor2572 on 2024-10-29]() -----------------------------
### Answer According to the documentation, when Retell sends a POST request to your endpoint, it includes: - A header with
X-Retell-Signature
for verification - A body containing
name
,
call
, and
args
objects [(1)]() [(2)]() For Make.com specifically, some users have reported issues with function parameters not showing up correctly [(3)]() . A suggested workaround is to use Make.com's phone number module which helps separate country code from the number [(4)]() . Your JSON schema looks correct for defining the parameters you want to collect. However, the actual caller information should come automatically in the
call
object of the request, separate from your defined parameters. If you're not seeing this data in Make.com, this might be a technical issue that needs to be reported. Would you like me to provide information about alternative approaches or how to report this issue?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy can I use from_number as a variable in my prompt? so the agent can double check with the user
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Outbound calls (make calls)]() * [Pronounce the phone numbers correctly]() * [Discord message from @kevinstonepdx on 2024-11-19]() -----------------------------
### Answer Yes, you can use
{{user_number}}
as a dynamic variable in your prompt. This is a default system variable that represents the user's phone number (from_number for inbound calls, to_number for outbound calls) [(1)]() . For example, you could add this to your prompt:
Copy code
json
"I see you're calling from {{user_number}}. Is this the number you'd like to use for the booking?"
This variable is automatically provided by Retell - no configuration required . Note: The phone number will be in E.164 format (e.g., "+12137771234") .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy What's wrong with this JSON? I get the error "Invalid JSON Schema" and it worked just a moment ago { "type": "object", "properties": { "name": { "type": "string", "description": "Full name of the caller." }, "requested_timeslot": { "type": "string", "description": "The requested timeslot for the reschedule in ISO 8601 format." }, "company": { "type": "string", "description": "User's Company." }, "notes": { "type": "string", "description": "Reason for the call." }, "email": { "type": "string", "description": "The customer's email address." } }, "required": [ "requested_timeslot" ] }
a
Thanks for the follow-up, @miketyler.. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Integrate any system with custom function]() * [custom function Error with VALID JSON Schema]() * [Tool set up help request]() * [JSON Schema not saving in custom functions]() -----------------------------
### Answer Your JSON schema looks syntactically correct according to the example format shown in the documentation [(1)]() . A few things to check: 1. Make sure there are no hidden characters or formatting issues 2. Verify that all quotes are straight quotes (
"
) not curly quotes (
"
) 3. Double-check that all commas are in place between properties 4. Ensure the JSON is properly formatted with correct indentation If the issue persists, try copying and modifying this basic working example from the documentation:
Copy code
javascript
{
  "type": "object",
  "properties": {
    "city": {
      "type": "string",
      "description": "The city of the weather"
    }
  },
  "required": [
    "city"
  ]
}
Based on community discussions, sometimes the schema validator can be sensitive to additional fields or formatting [(2)]() . Try updating the schema incrementally, adding one field at a time to identify where the issue might be occurring.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.