Skip to content
FlowHubFluxonLab
A
AI Automationfree

Recover overdue invoices with GPT-4o-mini, Gmail, Google Sheets and Slack

by Rahul Joshiadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentCCodeGmailGmailGoogle SheetsGoogle SheetsOpenAI Chat ModelOpenAI Chat ModelSlack
Share Post Share
AgAI Recovery AgentAI Recovery Age…Send Recovery Email to ClientSend Recovery E…Send Escalation Alert to Legal TeamSend Escalation…ScDaily Invoice CheckDaily Invoice C…Read Overdue InvoicesRead Overdue In…IfAny Overdue Invoices?Any Overdue Inv…GPT-4o-mini Language ModelGPT-4o-mini Lan…CoParse & Structure AI ResponseParse & Structu…IfNeeds Escalation?Needs Escalatio…Update Invoice Status in SheetUpdate Invoice …Append Row to Recovery LogAppend Row to R…Slack: AI Error AlertSlack: AI Error…Slack: No Invoices Found AlertSlack: No Invoi…123456789101112131415
1/5
STEPS · 15
Runs on a schedule

Quick overview This workflow runs every 24 hours to read overdue invoices from Google Sheets, uses OpenAI (GPT-4o-mini) to draft personalized recovery emails and determine escalation, sends emails via Gmail, logs outcomes back to Google Sheets, and posts status and error alerts to Slack. How it works Runs every 24 hours on a schedule trigger. Reads invoice rows from a Google Sheets “invoices” tab and checks whether there are any valid invoice entries to process. If no invoices are found, posts a “no overdue invoices” message to a Slack channel. For each invoice found, uses OpenAI (GPT-4o-mini) to assign an escalation level, draft a personalized HTML email (including payment plans when applicable), and recommend an escalation action. Parses the AI output into structured fields and sends the recovery email to the client via Gmail. If the AI recommends escalation, sends an internal escalation alert email to the legal team via Gmail. Updates the invoice row in Google Sheets with the new escalation level and AI summary, then appends a full audit log row to a “Recovery sheet” tab. If AI processing fails, posts an error alert to Slack and continues with the next invoice.

Tags

n8nreference-onlyagentgmailgoogle-sheetslm-chat-open-aislack
Connects
AAI AgentCCodegmailGmailsheetsGoogle SheetsopenaichatmodelOpenAI Chat ModelSlack
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes13
AddedJun 24, 2026

Related workflows

See all AI Automation
ACgmailsheets
free

Analyze YouTube comments with OpenAI, Google Sheets, and Gmail

Quick overview This workflow monitors a Google Sheets list of YouTube video IDs, fetches video details and top comments from the YouTube Data API, analyzes the comments with OpenAI into structured sentiment and themes, emails an HTML report via Gmail, and writes the results back to Google Sheets. How it works Triggers every minute when a row in Google Sheets is added or updated. Reads the video ID and status from the row and continues only if the status is set to “Pending”. Calls the YouTube Data API to fetch the video’s metadata and the top comment threads for that video. Flattens the comment threads, calculates basic stats (comment count and average likes), and compiles a limited comment text block for analysis. If comments exist, sends the compiled comments and video title to OpenAI to generate a structured analysis (sentiment score, sentiment breakdown, themes, questions, feedback, insights, and summary). Builds an HTML email report from the structured results, sends it to the configured recipient with Gmail, and updates the Google Sheet row with the analysis fields; if no comments exist, marks the row as “No comments”. Setup Create or duplicate a Google Sheet with at least “Vi

by Dr. Firas
ACgmailgoogledrive
free

Qualify leads and send personalized audio follow-ups with Gemini and Smallest.ai

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 i

by Zain Khan
ACgmailsheets
free

Triage supplier capacity risk with Groq, Gmail, Slack, and Google Sheets

Quick overview This workflow runs daily to pull supplier performance data from an HTTP endpoint, calculate fulfillment and delay risk metrics, use Groq (Llama 3.3) to classify supplier risk and generate mitigation actions, then notify via Gmail and Slack and log outcomes to Google Sheets. How it works Runs every day at the scheduled time. Fetches supplier performance data from an HTTP API and stops if the supplier has no orders. Normalizes the supplier fields and calculates fulfillment rate, delay, rule-based flags, and a risk score. Sends the metrics to Groq (Llama 3.3) to classify risk (Low/Medium/High) with a reason and confidence, then merges the AI result with the computed metrics (falling back to the rule-based classification if parsing fails). If the AI risk is Medium, Groq generates three mitigation actions and the workflow fetches backup supplier options from an HTTP API, then combines both into a single alert payload. Sends the mitigation actions by Gmail email and Slack message, then appends a “high risk” audit row to Google Sheets. If the AI risk is not Medium, appends a “no alert sent” audit row to Google Sheets with the assessed risk details. Setup Add Groq API creden

by WeblineIndia