> ## Documentation Index
> Fetch the complete documentation index at: https://cal.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cal.ai Connect now

> Let callers to your inbound Cal.ai phone agent talk to someone from your team straight away, with an instant video meeting requested during the call.

Connect now lets someone who calls your inbound Cal.ai agent ask to talk to a person right away. The
agent requests an instant meeting on a booking link you choose, keeps the caller on the line, and tells
them when a team member accepts. The caller gets the Cal Video link by email and text message. If nobody
accepts in time, the agent books a later time with its normal booking tools.

An [instant meeting](https://cal.com/help/enterprise/instant-meetings) is a booking for right now instead of
a time slot. Cal.com pages the event's hosts, the first one to accept joins a Cal Video call with the
booker, and the request expires if nobody accepts in time. Connect now uses the same instant meetings,
requested by the agent instead of from the booking page.

> [!NOTE]
>
> Instant meetings are an Enterprise feature, so Connect now needs an organization on the Enterprise plan.

Organization admins can turn off Cal.ai features for everyone in the organization. See
[Turn off Cal.ai features for an organization](https://cal.com/docs/features/organization-ai-opt-out.md).

## Before you start

You need:

* An inbound Cal.ai agent with a phone number, set up from a workflow.
* An organization team event with **Instant booking** turned on. This is the event Connect now books.
  Its hosts are the people who get paged. See [Instant meetings](https://cal.com/help/enterprise/instant-meetings)
  to set one up.
* An event that isn't a managed event. Managed event templates and the copies assigned to members can't
  use instant meetings, so they can't be used for Connect now.
* An event that doesn't require booker email verification. The agent can't collect a verification code,
  so these requests fail.

## Turn on Connect now

**1. Open the agent's Incoming calls tab**

Go to **Workflows**, open the workflow with your Cal.ai agent, open the agent's settings and select
**Incoming calls**.

**2. Pick an instant meeting booking link**

Under the inbound event, choose an event in **Instant meeting booking link**. Only organization team
events with instant booking on that you can use are listed, and managed event templates are left out.
Selecting it sets up everything the agent needs to request instant meetings, including its API key, so
there's nothing to configure by hand.

**3. Add the Connect now section to the prompt**

Open **Suggested prompt**, copy it, and paste it into the agent's general prompt. Cal.com doesn't
change your prompt for you, so the agent won't offer Connect now until you add this section.

**4. Test it**

Call the agent, ask to talk to someone now, and accept the meeting as one of the event's hosts.

Selecting the booking link adds two tools to the agent automatically, `request_instant_meeting` and
`check_instant_meeting_status`. They appear under **Custom functions** with an **Instant meeting** badge.
You can view them but not edit or delete them there. To remove them, set **Instant meeting booking link**
to **None**.

> [!TIP]
>
> Test with a copy of the agent pointed at a test instant event first, so a real team isn't paged while you
> tune the prompt.

## What happens on a call

1. The caller asks to talk to someone now.
2. The agent collects the caller's name, email address and timezone, plus the answers to the event's
   required booking questions.
3. The agent asks whether the caller can stay on the line for up to a couple of minutes. It sends the
   request only if they agree.
4. Cal.com creates the instant meeting and pages the event's hosts, the same way as an instant meeting
   booked on the web.
5. While the caller waits, Cal.com tells the agent what happened:
   * **A host accepts.** The agent is told who accepted. It tells the caller the link was sent by email
     and text message, then ends the call. The caller gets a text with the Cal Video link.
   * **Nobody accepts.** When the wait ends, the agent is told nobody was available, apologises and
     offers to book a later time.

The agent doesn't need to keep checking. These updates arrive in the call on their own.

## The tools

### request\_instant\_meeting

Sends the instant meeting request. Cal.com fills in these values, so the agent can't change them:

| Value | What it is |
| - | - |
| Event | The instant meeting booking link you picked |
| Call ID | The current call, so Cal.com can send updates into it |
| Wait | 120 seconds |

The agent supplies:

| Value | What it is |
| - | - |
| `attendee.name` | The caller's full name |
| `attendee.email` | The caller's email address. The suggested prompt reads it back to confirm it. |
| `attendee.timeZone` | The caller's timezone, for example `America/New_York` |
| `attendee.phoneNumber` | The callback number the caller confirmed, in international format. If the conversation doesn't collect one, the number they're calling from is used. This is where the meeting link is texted. |
| `bookingFieldsResponses` | Answers to the event's required booking questions, keyed by question identifier |

`bookingFieldsResponses` lists every required booking question that shows on the booking page, with its
label and, for questions with options, the allowed values. Questions Cal.com fills from the call, such as
name, email, location and phone number, are left out, and so are hidden and reschedule-only questions.

When the request succeeds, the agent learns how long it will wait, in `instantMeetingExpiresInSeconds`.

### check\_instant\_meeting\_status

Reads the request made earlier in the call. The status is `awaiting_host` while nobody has accepted and
`accepted` once a host has, with the host's name. The suggested prompt only uses it when the caller asks
for an update.

## Write your own prompt

The suggested prompt is a starting point. If you write your own, keep these parts:

* **Collect details before asking about holding.** Ask for the name, email, timezone and booking
  questions first, then ask whether the caller can hold for a couple of minutes.
* **Only call `request_instant_meeting` after the caller agrees to hold.**
* **Say what happens next.** After the request, tell the caller you're looking for someone, how long
  you'll wait, and that the link comes by email and text message.
* **Wait for the update.** Don't end the call or keep checking. Use `check_instant_meeting_status` only
  when the caller asks.
* **Fall back to booking.** When the request fails or nobody accepts, book a later time with
  `check_availability` and `book_appointment`.

```text Suggested prompt theme={null}
## Connect now
You can ask the team to join a video call with the caller right now.
- When the caller wants to talk to someone now, say: "I can request an instant video meeting with someone from the team. Before I send the request, I just need a few details." Then collect the caller's full name, email address (read it back to confirm it), timezone, and the answers request_instant_meeting asks for. If you confirm a callback number with the caller, pass it as attendee.phoneNumber.
- Then ask: "Once I send the request, can you stay on the line for up to a couple of minutes until a team member accepts? If nobody accepts by then, we can schedule a call for a later time." Call request_instant_meeting only if they agree.
- When request_instant_meeting succeeds, tell the caller you have requested an instant video meeting with the team, that you will stay on the line for up to instantMeetingExpiresInSeconds seconds (from the result) while a team member accepts it, and that as soon as someone accepts you will let them know and the meeting link will be sent by email and text message.
- Stay on the line. When you are told someone accepted and the caller is still waiting, say the link is on its way by email and text message, then end the call; if they have moved on to booking a later time, tell them the host is available now and let them choose. When you are told nobody joined, apologise and offer to book a later time.
- Call check_instant_meeting_status only when the caller asks for an update.
- If request_instant_meeting says instant meetings aren't available right now, or that an instant meeting was already requested recently, say: "I'm sorry, nobody is available to join right now, but I can book you in at the earliest available time." Then use check_availability to find the earliest slot and book_appointment to book it.
- If request_instant_meeting fails for any other reason, apologise and use check_availability and book_appointment to book a later time.
```

## When a request fails

| What the agent sees | Why | What the agent should do |
| - | - | - |
| **Instant meetings aren't available right now.** | The event is outside its instant meeting availability. | Book the earliest slot. |
| **You already requested an instant meeting in the last 10 minutes.** | The same phone number or email asked for this event less than 10 minutes ago. | Book the earliest slot. |
| A booking field is missing | The event's booking questions changed after the tools were set up. | Ask the caller for it and retry. |
| Any other error | Something else went wrong. | Apologise and book a later time. |

## When you change the event's booking questions

If you add or change a required booking question on the instant event, the Incoming calls tab shows
**The agent's Connect now tools are out of date. Calls may fail until they're updated.** Select **Update
tools** so the agent asks the new question. Saving the agent also updates them.

## Limits

* **The wait is at most 120 seconds.** A longer host join window on the event is shortened for phone
  requests.
* **A request stays open if the caller hangs up.** A host can still accept, and the caller still gets
  the link by email and text message.
* **One request per person per event every 10 minutes.**
* **There's no tool to cancel a request.**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.