Quick overview
Youtube Video: https://youtu.be/7wos2lrvHHc?si=IAoZLBwHOSZCbBLR
This workflow runs daily and reads insurance Policies and Claims from Google Sheets, uses Gemini to draft customer outreach, sends messages via WhatsApp, Twilio SMS, or Gmail, creates follow-up tasks in HighLevel, logs activity back to Google Sheets, and posts escalation and digest updates to Slack.
How it works
- Runs every day at 9:00 AM (or manually for testing) and loads configuration values like the Google Sheets spreadsheet ID, messaging senders, and thresholds.
- Pulls Claims and Policies data from Google Sheets and classifies each policy/claim into renewal or claim follow-up actions based on expiry date, claim status, and staleness rules.
- Filters to actionable items, sorts by priority score, limits the batch size per run, and pauses briefly to rate-limit outbound messaging.
- Sends the case details to Google Gemini to generate structured WhatsApp, SMS, and email content plus priority, escalation flag, and an internal agent summary.
- Sends the generated message through the customer’s preferred channel using WhatsApp, Twilio SMS, or Gmail.
- Upserts the contact in HighLevel, creates a follow-up task, logs the outreach result to the Outreach_Log sheet, updates the Policies sheet with last contact details, and posts Slack escalation alerts and a daily run digest.
Setup
- Create a Google Sheets document with Policies, Claims, and Outreach_Log tabs and update the spreadsheet ID (and column names) in the workflow’s configuration.
- Add Google Service Account credentials with access to the spreadsheet, plus Gmail OAuth2 credentials for sending email.
- Add WhatsApp Cloud API credentials and set your WhatsApp Phone Number ID, and add Twilio credentials and set the Twilio “from” number.
- Add Google Gemini (PaLM) API credentials for the message generation step.
- Add HighLevel OAuth2 credentials for contact upserts and task creation, and add Slack credentials and set the target channel ID for escalation and digest messages.