https://retellai.com/?utm_source=discord&utm_medium=seo logo
WHen booking an appointment with cal
# ❓・ai-evy-support
c
@AI Evy WHen booking an appointment with cal.com how do I capture the phone number and additional notes that will then appear in the cal.com notification email?
a
Thanks for tagging me @clientele3617. I'll look through relevant sources and get back to you shortly.
### Answer To capture phone numbers and additional notes for Cal.com appointments through Retell AI, you need to configure custom fields in Cal.com and ensure your agent passes this data correctly. ## Setting Up Custom Fields in Cal.com First, configure custom fields in your Cal.com event type [(1) ](

▾

) . In the Cal.com dashboard, navigate to the advanced page where you can set up booking questions for appointments . You can add phone number questions and other custom fields that will appear in the booking form . ## Configuring the Retell AI Agent In your Retell AI agent, you need to set up the book appointment function with your Cal.com credentials [(2) ]() . Enter your Cal.com API key and event type ID in the function configuration . The book appointment tool can be configured as shown in the API documentation:
Copy code
javascript
{
  "type": "book_appointment_cal",
  "name": "book_appointment",
  "description": "Book an annual check up.",
  "cal_api_key": "cal_live_xxxxxxxxxxxx",
  "event_type_id": 60444,
  "timezone": "America/Los_Angeles"
}
[(3) ]() ## Ensuring Data is Passed Correctly A common issue is that Retell AI doesn't always send all collected data (like phone numbers) to the booking function [(4) ]() . To fix this, explicitly instruct your agent in the system prompt to always transfer all required information . Add this instruction to your prompt: "Important: Always transfer the date/time, email, name and telephone number to the functions with each call" . ## Phone Number Field Considerations For phone numbers to work properly with Cal.com's confirmation workflows, ensure the phone number is being passed as
phoneNumber
in the booking payload [(5) ]() . If SMS confirmations work when booking directly through Cal.com but not via the Retell agent, it usually means the phone number isn't being passed in the correct field format . Note that using phone number fields as required in Cal.com may require an organization plan, as both email and phone being required can cause issues on lower-tier plans [(6) ]() .
​ To learn more, see the sources I considered: [[1] Retell AI - How to use Cal.com Custom Field](

https://www.youtube.com/watch?v=b59o1YCcvjc▾

) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] book_appointment doesn’t send phone attribute to cal](https://discord.com/channels/1186424376300679209/1329010496765956206) [[5] Issue with cal.com phone number text confirmation workflow](https://discord.com/channels/1186424376300679209/1319852079975497908) [[6] Booking an appointment with phone and email via cal.com Not working.](https://discord.com/channels/1186424376300679209/1292657398233960458) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.