Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Мониторинг, эксплуатация и инциденты

Мониторинг, эксплуатация и инциденты

Сортировка действий по истечению срока годности в аптеке с Sheets, Slack, Gmail и Gemini

Запускается каждое утро, отмечает партии товара, срок годности которых близок к окончанию, Gemini готовит сводку для фармацевта на утверждение в Slack, после чего выполняет одобренные обновления в таблицах и отправляет письма.

Что делает

## 💊 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

Шаги

  1. When Scheduled Daily at 6AM
  2. Set Configuration Parameters
  3. Read Inventory from Sheets
  4. Read Sales Log from Sheets
  5. Read Branch Stock from Sheets
  6. Read Supplier Policies from Sheets
  7. Calculate Expiry Decisions
  8. Aggregate Expiry Actions
  9. Prepare Pharmacist Briefing
  10. Send Approval Request via Slack
  11. Set Decision Fields
  12. Split Action List
  13. Append Decision to Sheets
  14. Check Approval Status

Всего шагов: 22.

Похожие автоматизации