How it works
Automating Webhook and Supabase takes no code: a ready-made scenario does the routine for you.
- Starts when: Webhook
- Check: Switch
- If yes: Find Patient (Booking)
- Check: Check Time Availability
- If yes: Get Existing Appointments
- Check: Time Slot Already Taken?
- If yes: Notify Appointment Conflict
- If no: Verify Patient Phone Number
- Then: Create Appointment Record
- Starts when: Notify Appointment Time
- If no: Create Appointment
- If no: Find Patient (Reschedule)
- Then: Fetch Patient's Current Appointment
- Then: Check Doctor Availability for New Slot
- Check: Is Reschedule Possible?
- If yes: Notify: Time Slot Taken
- If no: Update Appointment to New Slot
- Starts when: Confirm Rescheduled Appointment
- If no: Find Patient (Cancel)
- Then: Delete Appointment Record
- Starts when: Notify Cancelation Success
- If no: Find Patient (List Appointments)
- Check: Check Insurance Status
- If yes: Notify Insurance Accepted
- If no: Notify Insurance Rejected
- If no: Find Insurance Record
- Then: Fetch Patient Appointments
- Then: Aggregate Patient Appointments
- Then: Summarize Appointment Data
- Starts when: Send Summarized Appointment List
- If no: Generate Availability With AI
- Starts when: Send Availability Response
- If no: Fetch All Doctors
- Then: Aggregate Doctors Data
- Then: Summarize Doctors Data
- Starts when: Send Doctors List
- Then: LLM Engine
- Then: Fetch Doctor’s Appointments
You can launch this Webhook + Supabase integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.