Quick Overview
This workflow runs every 12 hours to process completed visits, validates the data, and sends either a WhatsApp review request for first-time customers or a rebooking nudge for returning customers, then logs what was sent and skips invalid, out-of-window, or already-messaged visits.
How it works
- Runs every 12 hours on a schedule.
- Loads completed visit records and validates that each row has an appointment ID, customer name, phone number, and a parseable visit time.
- Routes invalid visit rows to an error log and continues only with valid rows.
- Filters visits to a 20–34 hour post-visit window and skips visits that are not yet due or already outside the window.
- Prevents duplicate messages by tracking which appointment IDs have already received a follow-up.
- Builds a WhatsApp message that asks first-time customers for a review and nudges returning customers to rebook based on the treatment type.
- Sends the follow-up message via a placeholder send step (to be replaced with WhatsApp Business Cloud, SMS, or email) and logs whether a review ask or rebooking nudge was sent.
Setup
- Replace the demo visit source with your production data source (for example, a Google Sheets spreadsheet of completed visits) and ensure it provides appointment_id, customer_name, phone, visited_at, treatment, and first_visit fields.
- Replace the placeholder send step with your chosen messaging integration (for example, WhatsApp Business Cloud, Twilio SMS, or email) and add the required credentials.
- Update the REVIEWLINK text in the review message to point to your business’s review page and adjust treatment intervals or the 20–34 hour window if needed.