Automates lead extraction from Gmail and sends structured data to a CRM, reducing manual processing time.
This project automates the process of handling incoming leads from email. It scans Gmail threads, extracts key information such as name, email, and phone number, and sends the data to a CRM using webhooks.
I built this during my internship to reduce manual work and make lead processing faster and more efficient.
- Scans Gmail threads automatically
- Extracts:
- Phone number
- Name (if available)
- Filters leads from specific sources
- Sends data to a CRM using webhooks
- Labels processed emails to avoid duplicates
- JavaScript (Google Apps Script)
- Gmail API
- Webhooks (CRM integration)
- Searches Gmail for unprocessed emails
- Extracts lead information using pattern matching
- Sends valid leads to the CRM
- Marks emails as processed
- Deploy the script in Google Apps Script
- Configure your webhook URL
- Run
runOnce()to process emails
{
"firstName": "John",
"lastName": "Doe",
"email": "john@email.com",
"phone": "+1234567890"
}