Create booking draft and pay link
create_booking_draftHold one time with one psychologist (for 30 minutes, and never later than 15 minutes before the session) and return a single-use pay link for the customer. Call check_availability first and use one of its times. psychologist (optional): the slug of the person the customer asked for (from by_psychologist); the time is then held for that person only, or refused with 'not free'. Without it ElloMind assigns someone free at that time. Either way the response names the psychologist (slug, name, role), and that is who the session is booked with. Collect the customer's name, phone (with country code) and email first. Couples: also partner_2 (their own name and email or phone; each partner signs their own consent form before the first joint session). Teen (13 to 17): the contact is the parent or guardian, who pays and signs the teen consent form; also give teen_name. Also required: lead_source (how the customer found ElloMind; ai_assistant if they are booking for themselves through you and did not say) and booked_by ('customer' when the customer books for themselves, otherwise your own name). The price is set by ElloMind; you cannot set an amount. Plans: plan4, plan8 or plan12 (see list_services). In person: individual single sessions only. Every problem with the details comes back at once. Bookings close 10 minutes before the session. Limits: at most 3 unpaid drafts per phone at a time (cancel_booking_draft frees one) and 8 new drafts per hour from one network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | default online; in_person = Kakkanad clinic | |
| name | Yes | the contact: the client, or for teen sessions the parent or guardian | |
| Yes | |||
| phone | Yes | with country code, e.g. +91 98xxxxxxxx | |
| teen_age | No | teen only, if known: 13 to 17 | |
| booked_by | Yes | 'customer' if the customer books for themselves; otherwise your name | |
| partner_2 | No | couples only: the second partner | |
| plan_code | Yes | 'single' for one session; 'plan4', 'plan8' or 'plan12' for a plan (see list_services) | |
| slot_date | Yes | YYYY-MM-DD from check_availability | |
| slot_time | Yes | HH:MM 24h IST from check_availability | |
| teen_name | No | teen only: the young person's name | |
| source_ref | No | an EM-XXXX ref the customer was given, if any | |
| lead_detail | No | required for referral (who referred them) and other | |
| lead_source | Yes | how the customer found ElloMind | |
| psychologist | No | slug (e.g. 'nithya-s'), ONLY if the customer asked for that psychologist | |
| session_type | Yes | ||
| email_checked | No | true only after the customer confirmed an unusual email domain |