Templates / Triage pharmacy expiry actions with Google Sheets, Slack, Gmail and Gemini

Triage pharmacy expiry actions with Google Sheets, Slack, Gmail and Gemini

Ready for 3.0

by iamvaar ✓ · 2 views · created 2026-10-07 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on a schedule (every day at 06:00). Along the way it connects Google Sheets, Slack, Gmail and Google Gemini Chat Model.

How it runs

Trigger: On a schedule (every day at 06:00).

  1. Set Configuration Parameters (Edit Fields (Set)): sets 9 fields: sheet_id, slack_channel_id, email_override…
  2. Read Inventory from Sheets (Google Sheets): uses Google Sheets
  3. Read Sales Log from Sheets (Google Sheets): uses Google Sheets
  4. Read Branch Stock from Sheets (Google Sheets): uses Google Sheets
  5. Read Supplier Policies from Sheets (Google Sheets): uses Google Sheets
  6. Calculate Expiry Decisions (Code): runs custom JavaScript code
  7. Aggregate: combines items into one
  8. Prepare Pharmacist Briefing (Basic LLM Chain): sends a prompt to an LLM, with model: Run Gemini Chat Model
  9. Send Approval Request via Slack (Slack): send and wait for a reply
  10. Set Decision Fields (Edit Fields (Set)): sets 4 fields: status, decided_by, decided_at…

…plus 10 more steps. See the full node list below.

Services it uses

Google SheetsSlackGmailGoogle Gemini Chat Model

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.

Nodes used (12)

From the author

Quick overview Linkedin: https://www.linkedin.com/feed/update/urn:li:activity:7513219338414219265/ This workflow runs every day at 6AM to analyze pharmacy inventory in Google Sheets, predict expiry risk using recent sales velocity, and request a pharmacist’s…

Excerpt from iamvaar's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.