Qualify and route dental leads with GPT-4, GoHighLevel, Twilio, and Meta Ads
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs when an HTTP GET request hits its webhook URL (plus 4 other triggers). Along the way it connects OpenAI Chat Model, Pinecone Vector Store, Embeddings OpenAI and Twilio and 5 more.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 4 other triggers).
- Merge: merges the data from its input branches
- Fetch Unresponsive GHL Leads (HTTP Request): calls an HTTP API (POST)
- Fetch Performance Metrics (Postgres): select
- Set Workflow Defaults (Edit Fields (Set)): sets 11 fields: PRACTICE_NAME, GHL_API_BASE, GHL_API_TOKEN…
- Follow-Up Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Follow-Up; 1 tool (Access Knowledge Base); memory: Capture Conversation Memory; output parser: Parse Follow-Up Results
- Aggregate Metrics for Dashboard (Code): runs custom JavaScript code
- Prepare Lead Data (Code): runs custom JavaScript code
- Route by Follow-Up Type (Switch): routes items into 3 branches
- Build Dashboard Report (Edit Fields (Set)): sets 3 fields: reportTitle, reportBody, generatedAt
- Lead Qualifier Agent (AI Agent): runs an AI agent, with model: Chat with GPT-4 Model; 4 tools (Calculate Lead Score, Access Knowledge Base, Sync with GoHighLevel, Check Calendar Openings); memory: Capture Conversation Memory; output parser: Parse Lead Results
…plus 14 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (24)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Twilio
n8n-nodes-base.twilio - Send Email
n8n-nodes-base.emailSend - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Google Calendar
n8n-nodes-base.googleCalendar - Postgres
n8n-nodes-base.postgres - Twilio Trigger
n8n-nodes-base.twilioTrigger - Facebook Lead Ads Trigger
n8n-nodes-base.facebookLeadAdsTrigger - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge
From the author
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…