Skip to main content

Overview

Tool name: Rex | Book Time in Calendar | Pro Use this tool to create a Rex calendar event. See Calendar Booking Overview for how availability and booking work across providers.

Provider Settings

IDSettingTypeRequiredDefaultWhat it does
160calendar_idstringNoteam configRex calendar ID. If left blank, the tool falls back to team config.
161user_idsarray/tagsNoteam configRex user IDs for availability and booking. Can be entered as tags or comma-separated values.
162contact_idstringYesnoneRex contact ID to attach to the booking.
163titlestringYesnoneAppointment title for the Rex calendar event.
164descriptiontextNoemptyDescription written to the Rex event.
165locationstringNoemptyLocation text written to event_location.description.
166duration_minutesinteger, minutesNo30Appointment duration.
167business_daysarrayNoprovider/config defaultBusiness days to offer, using ISO weekday numbers where Monday is 1 and Sunday is 7. Example: [1,2,3,4,5].
168business_hourstime range objectNoprovider/config defaultBusiness hours window to offer. Example: [0900,1730].

Common Settings

IDSettingTypeRequiredDefaultWhat it does
0Number of WeeksintegerNo4Weeks to check availability. Tool definition range is 1-8.
1SMS MessagetextNoemptyCustom SMS confirmation message. Written to {{sms.message}}.
3Booking PurposetextNoemptyPurpose of the appointment. Written to {{calendar.purpose}}.
5Check Timezone Before BookingbooleanNofalseWhether the flow verifies the user’s timezone before booking. Written to {{timezone.check_timezone}}.
6Send SMS ConfirmationbooleanNotrueWhether to send an SMS confirmation after booking. Written to {{calendar.sms_flag}}.
7Booking Window Start Offset (Minutes)integerNo15Availability starts this many minutes after call start.

Availability Behavior

Rex availability is calculated from the configured calendar, users, business days, business hours, and duration. The flow checks the user’s selected time against the loaded availability, then creates a Rex event attached to the configured contact.

Global Variables Written or Maintained

VariableWhen setMeaning
{{calendar.purpose}}Tool entryBooking purpose configured on the tool.
{{sms.message}}Tool entryCustom SMS confirmation message.
{{timezone.check_timezone}}Tool entryTimezone verification flag.
{{calendar.sms_flag}}Tool entrySMS confirmation flag.
{{calendar.event_id}}Availability loadRex calendar or integration identifier.
{{calendar.availability_spoken}}Availability checkSpoken availability response.
{{calendar.booking_time_raw}}Slot validation and booking successExact selected slot in ISO date-time format.
{{calendar.booking_time_spoken}}Booking successSpoken confirmation time.
{{calendar.booking_time_written}}Booking successWritten confirmation time.
{{calendar.booking_id}}Booking successRex event ID.
{{calendar.booking_link}}Booking successLink returned by provider logic when available. Usually empty for Rex.

Cancellation Behavior

If the user cancels during the same call, the flow uses the Rex cancellation path where supported. A successful cancellation clears the stored booking ID, booking link, and stored booking time values. Output variable result is boolean true when the appointment was booked successfully.