Qualify student leads from Google Sheets with OpenAI, Twilio, Telegram and Gmail
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI, Telegram and Gmail and 1 more. It also calls api.twilio.com over HTTP.
How it runs
Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).
- Fetch Unprocessed Leads from Sheet (Google Sheets): uses Google Sheets
- Slack: uses Slack
- Filter – Skip Empty or Incomplete Rows (If): checks a condition and branches into true / false
- Normalise Lead Data (Code): runs custom JavaScript code
- AI – Score and Classify Lead Intent (OpenAI): uses OpenAI
- Parse AI Response and Assign Counsellor (Code): runs custom JavaScript code
- Write Enriched Lead to CRM Sheet (Google Sheets): append or update
- Mark Source Row as Processed (Google Sheets): update
- Build WhatsApp and Telegram Message Content (Code): runs custom JavaScript code
- WhatsApp – Send Welcome Message via Twilio (HTTP Request): calls api.twilio.com
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.twilio.com
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow polls a Google Sheets lead intake every 15 minutes, uses OpenAI (GPT-4o-mini) to score and classify each student enquiry, logs it to a CRM sheet, then sends a Twilio WhatsApp welcome message plus Telegram and Gmail notifications…