Introducing a new way to review your PRs.

Read the announcement

frappe / crm

Fully featured, open source CRM

View on GitHub

24 documents · Updated Nov 23, 2026

docs / booking-pages-and-public-scheduling

Booking pages and public scheduling

Booking pages let a CRM user publish a shareable page where a visitor chooses an open meeting time, enters contact details, and receives a meeting confirmation. The booking connects the visitor to a lead or deal, creates a calendar event for the selected host, and sends the visitor the details needed to attend or manage the meeting. See also Booking and scheduling.

Booking page settings

The settings area gives sales users one place to create, manage, and share booking pages. A page brings together its public identity, hosts, availability rules, booking form, and actions after a booking.

Page list

The booking page list shows the page title, meeting length, record type, public route, hosts, and live status. Users can create a page for either leads or deals, copy or open its public link, turn it on or off, and remove it when it has no booking history. A page with bookings stays in place so past bookings keep their link to the page; turning it off prevents new bookings.

References: frontend/…/BookingPagesList.vue• L26-90 frontend/…/BookingPagesList.vue• L192-238 frontend/…/BookingPagesList.vue• L240-329

Page editor

The editor groups page settings into Details, Availability, Booking form, and Share. Hosts and page managers can change the page. Other sales users can view it and still use its share controls. Changes to the page and its form are saved together so the public experience does not use only part of an edit.

The Details settings define the page title, route, meeting duration, location, description, and whether the page is live. The location can be Google Meet, a phone call, an in-person address, or a custom web link. A Google Meet location uses the host's connected calendar when available.

References: frontend/…/BookingPageEditor.vue• L21-60 frontend/…/BookingPageEditor.vue• L60-157 frontend/…/BookingPageEditor.vue• L758-766 crm/…/crm_booking_page.py• L14-33

Scheduling rules

Scheduling rules turn a host's stated working hours into safe meeting choices. The public calendar shows only times that fit the page rules and remain free for at least one active host.

Hosts and access

A page has one or more CRM users as hosts. For a team page, the system gives a free slot to one available host in rotation. A host must be an enabled system user with a CRM sales role, which keeps public bookings tied to people who can work with the related CRM record.

Page managers can edit any page. A sales user can edit only a page where they are already a saved host. This prevents a user from gaining control of another person's page by adding themselves during an edit.

References: frontend/…/BookingPageEditor.vue• L159-210 crm/…/crm_booking_page.py• L35-53 crm/…/crm_booking_page.py• L109-151 crm/…/booking.py• L492-510

Availability and limits

The Availability settings define weekly hours in the page timezone. They can include more than one time range per day. A holiday list closes matching dates. The page also controls how often a start time is offered, how much space to leave around meetings, the minimum notice, and how many days ahead a visitor can book.

The system removes busy periods from both CRM events and a host's connected Google Calendar. If several hosts are assigned, a time remains open when at least one host is free. The selected timezone is used for the page rules, while each visitor can view and choose times in their own timezone.

References: frontend/…/BookingPageEditor.vue• L213-424 crm/…/booking.py• L552-612 crm/…/booking.py• L615-726 crm/…/crm_booking_page.py• L60-71

Public booking experience

Each live page presents a focused public flow: view the meeting offer, choose a time, complete the page's form, and manage the resulting booking. The same flow can appear as a standalone page or inside another site.

Public routes and forms

The public route is /crm-book/<route>. The page shows the title, duration, location, description, host details, and the business brand. It then shows a month calendar with open days and time slots. A visitor chooses a timezone before selecting a time.

Each booking page owns a CRM web form for its selected record type. The form always requires an email address. Page editors can add questions such as company or team size. The answers support the new lead or deal and remain attached to the booking for the host to review. Existing CRM records are linked instead of being changed by visitor answers.

References: crm/…/crm_book.py• L12-26 crm/…/crm_book.py• L29-36 crm/…/crm_book.html• L20-87 crm/…/booking.py• L276-315 crm/…/booking.py• L387-429 crm/…/crm_booking_page.py• L73-101

Booking lifecycle

The public flow uses a private booking token after a booking is confirmed. The token lets the visitor reopen the booking from the confirmation email, choose a new time, or cancel the meeting without a CRM account. A cancelled or past meeting remains visible as a record but cannot be managed as an upcoming meeting.

When a visitor submits a time, the system checks the slot again. If another visitor took it first, the page asks the visitor to choose a fresh time. Booking limits also stop one address or one page from filling the calendar or sending excessive mail.

The main visitor flow is:

flowchart LR
    A[Open live booking route] --> B[View available days and times]
    B --> C[Choose time and timezone]
    C --> D[Complete booking form]
    D --> E{Slot still free?}
    E -- No --> B
    E -- Yes --> F[Create or link CRM record]
    F --> G[Create calendar event]
    G --> H[Show confirmation and send email]
    H --> I[Manage later with booking token]

References: crm/…/crm_book.js• L215-245 crm/…/crm_book.js• L307-320 crm/…/crm_book.js• L378-429 crm/…/crm_book.js• L453-515 crm/…/booking.py• L74-136 crm/…/booking.py• L139-197

Sharing and embedding

The Share settings provide the saved public link and an iframe snippet. The embedded page can report its height to the parent site so the host page does not need an inner scroll area. Optional allowed domains limit which sites can embed the page. With no allowed domain, the page remains usable on the CRM site but is not open to other sites.

References: frontend/…/BookingPageEditor.vue• L428-553 frontend/…/bookingPageRules.ts• L128-157 crm/…/crm_form.py• L144-156 crm/…/crm_book.js• L592-602

Calendar events and email delivery

After a successful booking, the system creates one CRM booking record and one calendar event. The event and the email messages keep the host, visitor, time, location, and CRM context aligned when the meeting changes.

Calendar event creation

The event belongs to the selected host and links to the related lead or deal when one exists. Its title comes from the page's meeting title rule, with the guest, host, page, and selected form values available as placeholders. The event carries the location and the visitor's answers for the host.

When the host has a connected Google Calendar, the event can sync there and can receive a Google Meet link. If Google is not connected or cannot accept the event, the CRM still keeps the booking and event. For a Google Meet page in that case, the host email asks the host to send the visitor a link.

The visitor is not added as a calendar participant. Instead, the CRM sends the visitor an iCalendar invite so the visitor receives the booking details without exposing the form answers through calendar synchronization.

References: crm/…/booking.py• L114-136 crm/…/booking.py• L775-844 crm/…/booking.py• L847-904 crm/…/crm_booking.json• L113-151

Booking emails

The guest receives a branded email when the meeting is confirmed, moved, or cancelled. The message includes the meeting time in the guest's timezone, the location or join link, the iCalendar invite when relevant, and a private link to reschedule or cancel. The configured confirmation message appears after a new booking and in its confirmation email.

The host receives a matching notification for changes made by the visitor. The host message can include the visitor's form answers and a link to the related CRM record. A page can also send the guest one reminder before the meeting. The reminder is sent only once and is skipped when the meeting is already inside its reminder window when booked or moved.

References: crm/…/booking.py• L978-1059 crm/…/booking.py• L1062-1095 crm/…/crm_booking.html• L1-41 crm/…/crm_booking_wrapper.html• L18-38 crm/…/crm_booking.py• L15-21

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the public page data, the rendered booking form, and the booking API aligned. A field that is shown to a visitor must still be accepted and checked when the booking is submitted.
  • Keep the page route contract aligned across the settings link, /crm-book/<route>, iframe code, and manage links in email.
  • Keep host selection and busy-time rules aligned with Google Calendar checks. A change in either side can show a time that cannot be booked or hide a time that is free.
  • Keep event changes and booking status changes coupled. Host moves, cancellations, and deletes must also update the visitor's booking view and email path.
  • Keep the booking form's record type aligned with the page's lead-or-deal choice. Each page must continue to own its form and require an email field.
  • Keep the booking token private. It is the guest's access path for rescheduling and cancelling.

Important failure modes

TriggerConsequenceGuard
A visitor submits a slot after another visitor takes itThe requested meeting is not createdRecheck availability and return the visitor to the time picker
A page has no enabled CRM hostNo usable slots are availableAccept only valid CRM hosts and filter disabled users
Weekly ranges overlap or end before they startThe page can offer unclear or invalid timesValidate ranges before saving and show the offending range
Google Calendar is unavailable during slot lookupThe system must not treat an unknown calendar state as freeAvoid caching a failed Google response as free time
A page with bookings is deletedPast booking links and history would breakKeep the page and turn it off instead
A host cancels or moves the CRM eventThe public booking could disagree with the calendarSync the booking status and time from event changes
A custom location is not an HTTP linkThe confirmation could expose an unsafe action linkValidate custom locations before saving

Key files

FileWhy to read it
frontend/…/BookingPageEditor.vueShows the settings model for details, hosts, availability, form behavior, and sharing.
crm/…/booking.pyDefines the public scheduling contract, slot rules, booking lifecycle, event creation, and mail delivery.
crm/…/crm_book.pyConnects a public route to page data and the page-owned form.
crm/…/crm_book.htmlShows the public booking, confirmation, reschedule, and cancellation states.
crm/…/crm_book.jsExplains the visitor flow from slot lookup through booking management.
crm/…/crm_booking_page.pyDefines page validation, host access, and ownership of the booking form.
crm/…/crm_booking_page.jsonDefines the page's product-level settings and their defaults.
crm/…/crm_booking.jsonDefines the stored booking, guest, event, CRM link, status, and token relationships.
crm/…/crm_booking.htmlShows the guest and host email content for meeting changes.
crm/…/test_booking.pySummarizes the end-to-end guarantees for slots, records, events, Google Calendar, permissions, and email behavior.