You are helping me build the following AI agent workflow. ## Goal Pharmacy Inventory Alerts for Low Stock: Daily at 9 AM, the agent checks pharmacy stock levels and expiry dates in Google Sheets. ## Specification - What it does: You get daily morning alerts at 9 AM if your pharmacy inventory is running low or nearing expiry. This process checks your Google Sheet for medicine data, updates status markers in the sheet, and emails you immediately when action is needed to prevent stockouts and waste. - Trigger: On a schedule (Scheduled ยท daily 9 AM) - Autonomy: Fully hands-off - Expected setup effort: under an hour - Tools/services involved: - Google Sheets: Store and retrieve inventory data - Code: Check expiry dates and low stock thresholds - Send Email: Notify pharmacist of alerts ## Known pitfalls, handle each one explicitly in your implementation 1. Timezone mismatches can cause false expiry alerts so explicitly convert all date comparisons to the pharmacy's local timezone before evaluating. 2. Email delivery failures will leave pharmacists uninformed so add a retry mechanism with logging for any failed notification attempts. 3. Hardcoded thresholds may become obsolete so parameterize stock levels and expiry warnings in configuration rather than embedding them directly in code. ## Reference implementation https://n8n.io/workflows/7177 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/pharmacy-inventory-alerts-for-low-stock/ via usecasesforagents.com