Listening to Events
You can listen to an event that occurs in embedded cal link as follows. You can think of them as DOM events.Usage
| Wrong ❌ | Correct ✅ | Comments |
|---|---|---|
Cal.ns.yournamespace.on(...) | Cal.ns.yournamespace('on', ...) | To be used when a namespace is used which you can identify by seeing if “init” call has namespace in it.Cal("init", "yournamespace", { origin: "https://cal.com" }).The Embed snippet you get from the Cal.com app uses a namespace derived from the event type slug. |
Cal.on(...) | Cal('on', ...) | To be used when namespace is not used which you can identify by seeing if the “init” call has no namespace in it.Cal("init", { origin: "https://cal.com" }) |
Event Reference
eventTypeSelected
Description: When user chooses an event-type from the listing.
Properties:
eventType:object- Event Type that has been selected
bookingSuccessfulV2
It deprecates bookingSuccessful event.
Description: When a fresh booking is successfully done. It might not be confirmed.
Properties:
uid:string|undefined- Unique identifier for the bookingtitle:string|undefined- Title of the bookingstartTime:string|undefined- Start time of the bookingendTime:string|undefined- End time of the bookingeventTypeId:number|null|undefined- Event type id of the bookingstatus:string|undefined- Status of the bookingpaymentRequired:boolean- Whether payment is required for the bookingisRecurring:boolean- Whether the booking is recurringallBookings:object- Array of objects withstartTimeandendTime. Applicable only ifisRecurringistruevideoCallUrl:string- URL of the video call
rescheduleBookingSuccessfulV2
It deprecates rescheduleBookingSuccessful event.
Description: When a booking is rescheduled.
Properties:
uid:string|undefined- Unique identifier for the bookingtitle:string|undefined- Title of the bookingstartTime:string|undefined- Start time of the bookingendTime:string|undefined- End time of the bookingeventTypeId:number|null|undefined- Event type id of the bookingstatus:string|undefined- Status of the bookingpaymentRequired:boolean- Whether payment is required for the bookingisRecurring:boolean- Whether the booking is recurringallBookings:object- Array of objects withstartTimeandendTime. Applicable only ifisRecurringistrue
linkReady
Description: Tells that the link is ready to be shown now.
Properties: None
linkFailed
Description: Fired if link fails to load.
Properties:
code:string- Error Codemsg:string- Human Readable msgdata:object- More details to debug the error (includes url)
dryRunBookingSuccessfulV2
Description: When a dry run booking is successfully created (test mode).
Properties:
Same properties as bookingSuccessfulV2 (without uid)
dryRunRescheduleBookingSuccessfulV2
Description: When a dry run reschedule is successful (test mode).
Properties:
Same properties as bookingSuccessfulV2 (without uid)
bookingCancelled
Description: When a booking is cancelled.
Properties:
booking:object- Booking details including cancellationReasonorganizer:object- Organizer details (name, email, timeZone)eventType:object- Event type details
routed
Description: When a routing form routes to an action (event type, external URL, or custom page).
Properties:
actionType:string- Type of action: “customPageMessage”, “externalRedirectUrl”, or “eventTypeRedirectUrl”actionValue:string- The value/URL of the action
navigatedToBooker
Description: When user navigates to the booker interface.
Properties: None
bookerViewed
Description: Fires once when the booker becomes visible to the user for the first time. Not fired during prerendering.
Properties:
eventId:number|null- Event type ID (null if slots not loaded)eventSlug:string|null- Event type slug (null if slots not loaded)slotsLoaded:boolean- Whether slots are loaded
bookerReopened
Description: Fires when the booker is reopened after the modal was closed. Distinguishes between first view and subsequent reopens.
Properties:
eventId:number|null- Event type ID (null if slots not loaded)eventSlug:string|null- Event type slug (null if slots not loaded)slotsLoaded:boolean- Whether slots are loaded
bookerReloaded
Description: Fires when the booker undergoes a full page reload within the modal.
Properties:
eventId:number|null- Event type ID (null if slots not loaded)eventSlug:string|null- Event type slug (null if slots not loaded)slotsLoaded:boolean- Whether slots are loaded
bookerReady
Description: Fires when the booker view is loaded and slots are ready for user interaction. Only fires for booker pages (not booking success or other views).
Properties:
eventId:number- Event type IDeventSlug:string- Event type slug
With GTM App enabled for an Event type, these events are automatically sent to GTM and GTM could be setup to send these events to your desired destination like Google Analytics, etc.
Internal Events
These events are used internally by the embed system for communication between the iframe and parent window. They are prefixed with__ and are not intended for external use.
Events that start with
__ are internal and should not be relied upon for external integrations as they may change without notice.Copy Prompt embed
The Copy Prompt embed adds a button to your website that helps visitors book the event type through an AI assistant. Depending on the mode you pick, the button either copies booking instructions for the visitor to paste into their assistant, or opens one assistant with the instructions already typed. The assistant connects to the Cal.com MCP server and books the event type. To create one, open an event type’s options menu, select Embed, and click the Copy Prompt button below the embed type cards.

https://app.cal.com/ai-assistants/claude.svg. With Auto, the HTML snippet switches colors with a prefers-color-scheme media query and the React snippet listens for changes with matchMedia. The button text on your website is always in English.
Multiple assistants
When a visitor clicks the button, it copies this prompt to their clipboard and shows the tooltip “Copied. Open your assistant and paste the instructions”:Specific assistant
The button is a link that opens the chosen assistant in a new tab with the prompt in its chat box. Nothing is copied and no tooltip is shown. The HTML snippet is a plain link with no script. ChatGPT, Claude, Grok and Perplexity get the same prompt as in Multiple assistants mode. Cal.ai opens the Cal.com assistant on the Home page withbook <username>/<event-type-slug> typed in, because it already knows how to book on Cal.com. Visitors who aren’t signed in are asked to sign in first and then see the prompt in the chat box.

<username>/<event-type-slug>.
The Copy Prompt embed is only available for event types. The embed dialogs for routing forms and Cal Events don’t offer it.
Cal Event embed
You can embed a published Cal Event on your website. To open the embed generator from the Events list, go to Events, open the... menu on the event’s row, and select Embed. You can also select Embed in the event editor’s header.

