Detect missing alcohol test records with Gemini, Gmail, Slack and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs when someone submits an n8n form (“Alcohol Test Record”) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, Google Sheets, Gmail and Slack.
How it runs
Trigger: When someone submits an n8n form (“Alcohol Test Record”) (plus 1 other trigger).
- Normalize submission (Edit Fields (Set)): sets 9 fields: recordId, driverId, shiftDate…
- Configure check rules (Edit Fields (Set)): sets 3 fields: spreadsheetId, checkDate, managerSlackChannel
- Save test record (Google Sheets): append
- Get today's roster (Google Sheets): uses Google Sheets
- Get submitted records (Google Sheets): uses Google Sheets
- Find drivers with no record (Merge): merges the data from its input branches
- Summarise missing checks (Code): runs custom JavaScript code
- Anyone missing? (If): checks a condition and branches into true / false
- Split into individual drivers (Split Out): splits a list into separate items
- Confirm all checks completed (Slack): uses Slack
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut
From the author
Quick overview This workflow collects driver alcohol test submissions via an n8n form and stores them in Google Sheets, then runs a daily check against a roster to find missing records and uses Google Gemini to draft Japanese reminders that are sent via Gmail…