Voice scheduling through an API: dates, time zones and confirmation
Prepare API-based availability and booking operations with clear dates, time zones and handling of repeated requests.
- Author
- Tigy AI team
- Published
- Updated
Voice AI scheduling involves retrieving availability, confirming a choice and creating the booking in the responsible system. In Tigy AI, API tools — interfaces allowing systems to communicate — can perform these steps when configured and authorized. Define service, branch, date and time zone. Looking up a slot does not reserve it; announce confirmation only after the creation operation returns its result.
Define the calendar contract
Confirm with the booking team whether the agent can check times and create reservations. These functions may use an API, a connection through which systems exchange information. List the required details: location, service, duration, date and time zone. The technical owner sets up the connection; the service team decides what must be confirmed with the customer.
Document the service's date and time representation. Resolve ambiguity before sending values. Interpret tomorrow as a specific date using trustworthy operational time context rather than guessing.
Offer options returned by the system
Request the required preference and query availability. Present a few options at a time with full dates and locations. Specify the relevant local time when time zones could be ambiguous.
Availability may change between lookup and creation. Treat the creation response as decisive: if the service rejects the slot, query again or route the request to staff.
Confirm the choice and inspect creation
Repeat essential details and confirm booking intent before recording. Use the configured operation and inspect its response before announcing success or a confirmation number.
For an inconclusive response, follow the integration's destination-check procedure before creating again. The API team must define duplicate handling; a prompt asking the agent not to repeat cannot replace that control.
Test corrections and rescheduling separately
Include office changes, corrected dates, unavailable slots and failures after submission. Use test calendars and fictional data to inspect what was actually recorded.
Rescheduling may be a dedicated operation or involve multiple external steps. Define that procedure before offering it. If the integration only captures preferences, explain that staff must still confirm the appointment.
What belongs in the scheduling API contract?
Agree separately on what it means to check a time and create a reservation. Record the details required and how the system shows a confirmed booking. A caller may ask for “Friday morning,” but a specific date and time must be selected and confirmed before booking.
Decide who checks a booking when confirmation does not arrive. For example, the calendar may accept a request and the connection may fail before showing the result. The team needs to locate that request before trying another booking. This protection depends on the calendar and its integration; an agent instruction alone does not prevent duplicates.
Specify inputs making times unambiguous
Calendars need the service, branch, date and time relevant to their procedures, sometimes also clinicians or durations. Separate fields required for lookup from fields required for booking. Collecting every field in the first turn can burden callers before availability is known.
Agree with the connection owner on how the date is sent and confirmed in conversation. “Friday morning” is a preference, not yet a booking time. The agent can look for options in that period, but needs a specific choice before booking.
Do not convert relative dates without sufficient context. Confirm day and month when ambiguous. If callers and branches may use different timezones, identify the reference and explain it understandably. A timestamp valid in one location can represent the wrong appointment for another.
Use known dates in tests and ask the booking owner to check that the connection rejects impossible times or times for another location. A date written in the expected format is not enough: it also needs to represent a valid service option.
Separate availability search from reservation
Availability searches show options at one moment. Another person may reserve before writing, so booking operations must recheck conditions and return independent states. Earlier lookup success cannot serve as final booking evidence.
Offer a small set of confirmed options and request selection. Confirm complete dates when needed rather than pass “second option” without mapping it to an actual value. Changed lists require renewed clarification. Inspect both selected identifiers and spoken explanations to ensure they still refer to the same appointment.
If writing rejects a slot, explain failed confirmation and seek supported alternatives. Do not preserve the earlier promise to avoid disappointment. Speech should follow the latest established state, distinguishing unavailable choices from pending processing.
If two people can choose the same slot, test that situation with the booking team in a test environment. The system should accept or reject each booking according to actual availability. The agent organizes the choice; an instruction saying “do not book twice” does not replace that protection.
Treat corrections as current-request changes
A caller may change Thursday to Friday after discussing documents or prices. Before booking, confirm which date they want now. Check that the new date appears in the request sent to the calendar, not only in the agent’s reply.
Already-created bookings require different treatment. Updating, cancelling and creating another reservation are separate authorized operations. Establish status before choosing the next step. Spoken corrections cannot erase earlier external effects. If update capability is absent, explain the approved staff process.
Test branch and professional changes. Dates can remain equal while resources change, making earlier options invalid. Confirmation should cover the fields determining reservations rather than only times. Keep repeated identifiers associated with the correct service and branch.
When changes remain pending, explain whether the original appointment still exists or review was merely requested. This must come from system evidence. Customers should not infer cancellation from a request to reschedule. Verify destination records after every correction scenario to establish that the final wording matches actual state.
Recover lost responses without duplicate bookings
Responses can disappear after calendar acceptance. Missing returns alone do not establish whether booking occurred. Blind retries risk duplication, while confident success claims risk nonexistent appointments. Treat this as uncertainty rather than collapse it into ordinary failure.
The integration team must be able to identify each request and check whether the booking was created. Agree on and test this procedure before launch. The service team needs to know when to wait, check the calendar or pass on uncertainty, without repeating a booking based on an assumption.
Explain inability to confirm and follow the actual recovery process. Do not invent references absent from returns. Staff-owned recovery needs necessary information without promises of automatic confirmation. The final message should tell callers what is established and what remains unresolved.
Test three situations: a normally confirmed booking, a failure before creation and missing confirmation after possible creation. Check the calendar with the integration owner to establish what happened. This review is essential before offering bookings in real calls.
Review bookings through operational fields
Inspect service, branch, professional where required, date, time and state. Spoken booking confirmation must match calendar records with correct values. Appointments at wrong branches are not useful partial successes for people who need to attend.
Track duplicates, corrections, rejected choices and pending requests. Attempts differ from confirmations; high tool invocation counts do not establish booking outcomes. Include records needing staff repair when evaluating effort, rather than counting only successful initial interactions.
Test operational boundaries such as closing times, month transitions and changing preferences. Use documented calendar rules instead of borrowing hours from similar services. Controlled data makes these cases reproducible and avoids modifying live customer appointments during evaluation.
Rerun tests after API and configuration changes. Existing fields may acquire different meanings, and timezone conversion changes can shift otherwise familiar values. Review complete operations and caller-facing clarity. Preserve critical failures as regression scenarios so subsequent changes cannot silently reintroduce mismatched dates or unsupported confirmation.
When to begin with requests rather than reservations
Without reliable reachable calendar integration, capture preferences for staff. This can be useful when language clearly preserves pending confirmation. Date collection is not automatic booking, and agreeable conversational wording must not erase that difference.
Define reduced actionable records: service, branch, preferences, authorized contact and unresolved work. Assign owners and record discovery. Messages in unowned channels may never become service. Verify the handoff by asking staff to locate requests and continue without assistance from the tester.
Measure subsequent completion and additional contact needs. Sufficient questions can reduce rework; excessive fields can lengthen calls without helping. Adjust requirements with people actually confirming appointments. Compare similar requests so differences in service complexity are not mistaken for agent performance.
Expand to bookings only after verifying contracts, authorization, conflicts and recovery. Initial pilots should demonstrate existing capabilities rather than promise integrations not yet built. Keep request-only scenarios afterward because unavailable calendars may still require that alternative. Clear pending states support continuity without presenting uncertainty as completed reservations.
Questions to answer before launch
How does someone identify the branch offering their selected service? Queries must use a source maintained by operations. When coverage remains uncertain, capture preferences for confirmation and preserve that pending state in the explanation.
What happens if a professional changes their calendar after booking? This policy belongs to the responsible system and staff. Describe documented procedures only, without promising automatic outreach or replacement that has not been implemented.
How can reviewers prove a correction was applied? Read the final state and compare changed fields. Spoken responses must reflect returned outcomes, including partial acceptance. A polite acknowledgment alone is insufficient evidence of a calendar update.
Who handles uncertain booking outcomes? Assign that owner before the pilot. Include a test with a lost response and verify that staff can locate the operation without making a second booking. Record how the caller receives the eventual resolution through an available, authorized channel.
