Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Triage pharmacy expiry actions with Sheets, Slack, Gmail and Gemini
Runs each morning to flag inventory batches nearing expiry, has Gemini draft a pharmacist briefing for Slack approval, then executes approved sheet updates and emails.
What it does
## 💊 Pharmacy Expiry Cascade ### How it works This workflow runs every morning to read pharmacy inventory, sales, branch stock, and supplier policy data from Google Sheets, then calculates which batches are approaching expiry. It packages recommended actions, uses Gemini to create a pharmacist-facing briefing, and sends it to Slack for approval. Approved actions are logged, routed, and executed through sheet updates, branch or supplier emails, and compliance alerts. ### Setup steps - Configure Google Sheets credentials and set the correct sheet_id in the Config node, ensuring the inventory, sales log, branch stock, supplier policies, decision log, reorder, and batch status sheets/tabs have the expected columns. - Configure Slack credentials, the slack_channel_id, and any Slack interactivity/approval settings needed for the Pharmacist Approval and Compliance Alert nodes. - Configure Google Gemini credentials for the Gemini Chat Model used by the Pharmacist Briefing chain. - Configure Gmail credentials for the branch and supplier email nodes, and set email_override if test routing or a fixed recipient is required. - Review the Daily 6AM schedule timezone and set horizon_days to the desired expiry look-ahead window. ### Customization Adjust horizon_days, supplier policy fields, approval text, routing rules, and the email/Slack message templates to match the pharmacy’s operating procedures and escalation thresholds. @youtube
The steps
- When Scheduled Daily at 6AM
- Set Configuration Parameters
- Read Inventory from Sheets
- Read Sales Log from Sheets
- Read Branch Stock from Sheets
- Read Supplier Policies from Sheets
- Calculate Expiry Decisions
- Aggregate Expiry Actions
- Prepare Pharmacist Briefing
- Send Approval Request via Slack
- Set Decision Fields
- Split Action List
- Append Decision to Sheets
- Check Approval Status
22 steps in total.
Similar automations
Monitoring, Ops & IncidentsSSL Certificate Expiry Alerts via Gmail, Telegram and Ntfy24 stepsMonitoring, Ops & IncidentsSend domain expiry and WHOIS change alerts by email with Apify5 stepsMonitoring, Ops & IncidentsCheck SSL certificate expiry daily and alert via Telegram6 stepsMonitoring, Ops & IncidentsAlert by Email When Website SSL Certificates Expire6 steps