{"agent":"claude","input":"Confirm tomorrow's appointments by phone. Practice: {practice}, time zone {time_zone}, callback number {callback_number}.\n\n1. With the Google Calendar connection, call events.list on the calendar '{calendar_id}' with timeMin and timeMax covering tomorrow in {time_zone}, singleEvents true, orderBy startTime. Skip all-day events and events marked cancelled.\n2. For each event, read the client's name, the service and the clinician from the title, and from the description the line 'Phone:' and the line 'Reminder calls: yes'. Call only events with both lines. List every other event as skipped with the reason (no phone, no consent).\n3. For each client to call, start one LumisReach job with start_ai_phone_call: to_numbers [the phone], goal 'Confirm the appointment for {service} with {clinician} tomorrow at {time}, or take the client's preferred new day and time if they cannot make it', instructions 'You are the AI assistant for {practice}. Be brief. Do not give medical or pricing advice. If they want to reschedule, ask for two times that suit them and say the front desk will confirm in the morning. If they ask not to be called, apologise and end the call.', opening_message 'Hi, this is the AI assistant for {practice}, calling about your appointment tomorrow at {time}. Is this {client_first_name}?', retry_attempts 1, retry_delay_minutes 20, max_call_duration_seconds 180, voicemail_enabled true, voicemail_message 'This is {practice} with a reminder of your appointment tomorrow at {time}. If you need to change it, call us at {callback_number}.'\n4. Poll get_quick_action_status for each job until its target is no longer pending or in_progress. For answered calls, read the call record, with its transcript, using get_call on last_call_id.\n5. Write confirmations.md: a count per outcome at the top, then one table row per appointment sorted by time: time, client, service, outcome (confirmed, reschedule, cancelled, voicemail, no answer, failed, opted out, skipped), the client's own words about a new time if any, and the next step for the front desk. Change nothing in Google Calendar and call no number that is not in an event description.","connections":["google-calendar","lumisreach"]}