Qualify and route dental leads with GPT-4, GoHighLevel, Twilio, and Meta Ads

Go to Workflow
0 views
Built by Joseph Fadero Joseph Fadero
Created on September 09, 2026

Description

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.

Nodes Used (16)

AI Agent
@n8n/n8n-nodes-langchain.agent
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Code
n8n-nodes-base.code
Code Tool
@n8n/n8n-nodes-langchain.toolCode
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
Facebook Graph API
n8n-nodes-base.facebookGraphApi
Google Calendar
n8n-nodes-base.googleCalendar
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone
Postgres
n8n-nodes-base.postgres
Send Email
n8n-nodes-base.emailSend
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Twilio
n8n-nodes-base.twilio