Quick overview
This workflow captures leads from a webhook, Twilio SMS replies, and Meta Lead Ads, then uses OpenAI with a Pinecone knowledge base to qualify and route them into GoHighLevel with automated SMS/email responses, calendar booking, voice-call alerts, follow-up automation, and performance reporting.
How it works
- Receives new leads from a webhook endpoint, Twilio SMS reply events, and Meta Lead Ads submissions.
- Merges all sources, applies workflow configuration, and normalizes the lead fields into a consistent format.
- Uses an OpenAI-powered agent with conversation memory, Pinecone RAG retrieval, calendar-availability checking, GoHighLevel update actions, and a scoring tool to generate a structured qualification result.
- Routes the qualified lead by treatment type and creates or updates the contact, pipeline stage, and custom fields in GoHighLevel.
- Sends an immediate response via Twilio SMS and SMTP email, optionally replies via Facebook Graph API, and logs the interaction to Postgres.
- If the lead is marked high priority, triggers a Twilio voice call and posts an alert to Slack, and books an appointment in Google Calendar.
- On a schedule, pulls unresponsive leads from GoHighLevel, uses OpenAI to choose the next follow-up action, and routes the lead into the appropriate follow-up path.
- On a schedule, queries lead/performance metrics from Postgres, aggregates and formats a dashboard report, then sends it to GoHighLevel via HTTP and by email.
Setup
- Configure the lead sources by copying the Webhook URL into your form/landing page, connecting Twilio for the SMS reply trigger, and connecting Meta for the Facebook Lead Ads trigger (select the Page and Lead Form).
- Add OpenAI API credentials for both chat models and embeddings, and set up a Pinecone credential and index for the practice knowledge base used by the agents.
- Provide GoHighLevel API access for the HTTP requests that create/update contacts, pipeline stages, custom fields, and for fetching unresponsive leads.
- Connect Twilio for outbound SMS and voice calls, connect an SMTP account for outbound email, and connect Slack for high-priority notifications.
- Connect Google Calendar and select the target calendar, and configure Postgres credentials plus the target schema/table(s) for activity logging and performance metric queries.