Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Qualify and score omnichannel leads with OpenAI, Gmail, and Google Sheets

When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets.

What it does

## PF-001 - Omnichannel AI Lead Qualification & Response Hub ### How it works This workflow receives new leads from Gmail or a webhook, normalizes them into a shared format, applies business configuration, and validates required lead details. It checks Google Sheets for duplicates, restores the lead payload, then uses an OpenAI-powered analyzer and scoring code to qualify the lead. Qualified leads are saved to Google Sheets, routed by score, and hot leads get an AI-written Gmail draft prepared for follow-up. ### Setup steps - Configure Gmail credentials for the Gmail trigger and Gmail draft creation nodes. - Configure the webhook URL and ensure incoming webhook payloads match the fields expected by the normalization code. - Connect Google Sheets credentials and select the spreadsheet/range used for loading existing leads and saving new lead rows. - Configure OpenAI credentials for both AI chain nodes and verify the selected chat models are available. - Update the “CONFIGURE PF-001 HERE” node with the business name, business description, services offered, and hot lead threshold. - Confirm the Google Sheet has columns compatible with the duplicate check and prepared database row output. ### Customization Adjust the hot-lead threshold, scoring logic, AI prompts, lead fields, and routing branches to match the business’s qualification criteria and follow-up process.

The steps

  1. Route by Lead Score
  2. OpenAI GPT-5.6 Response
  3. Parse Response Output
  4. Set Lead Configuration
  5. Restore Lead Data
  6. Capture Webhook Leads
  7. Check for Duplicate Leads
  8. Capture Gmail Leads
  9. Set Gmail Lead Data
  10. Set Webhook Lead Data
  11. If Lead Valid
  12. Read Existing Leads from Sheets
  13. If Duplicate Lead
  14. Analyze Lead with AI

22 steps in total.

Similar automations