Quick Overview
This workflow receives lead submissions via a webhook, uses Google Gemini to qualify the lead and write a personalized spoken follow-up script, and for qualified leads generates an MP3 with Smallest.ai, shares it from Google Drive, emails it via Gmail, logs outcomes to Google Sheets, and alerts sales in Slack.
How it works
- Receives a POST webhook request containing a lead’s name, email, and message.
- Sends the lead details to a Google Gemini–powered AI agent to determine whether the lead is qualified and, if so, generate a short personalized audio script.
- Parses the agent’s JSON response and routes the workflow based on the qualified flag.
- If the lead is qualified, Smallest.ai synthesizes the script into an MP3 and uploads it to Google Drive.
- Shares the Google Drive audio file publicly and sends the lead a Gmail message with a link to listen.
- Appends the qualified lead record (including the audio link and timestamp) to Google Sheets and posts a notification to a Slack channel.
- If the lead is unqualified, appends the lead details and timestamp to Google Sheets without generating audio or sending email.
Setup
- Enable the webhook and copy the generated /lead-capture URL into your lead form or source system that sends the POST request.
- Add credentials for Google Gemini (LangChain Chat Model) and Smallest.ai so the workflow can generate the qualification result and synthesize speech.
- Connect your Google Drive and Gmail accounts, and confirm the Drive/folder and email content/recipient mapping match your lead fields.
- Connect your Google Sheets account and update the spreadsheet/document ID and sheet tab to the leads log you want to append to.
- Connect your Slack account and replace YOUR_SLACK_CHANNEL_ID with the channel where sales should be notified.