You are helping me build the following AI agent workflow. ## Goal Shopify Payment Reminders And Order Cancellations: Daily agent checks Shopify for unpaid orders, sends staged reminder emails, cancels long-overdue ones with restocking. ## Specification - What it does: You recover revenue by having this agent automatically send payment reminders and cancel overdue orders to free up your inventory. It handles the entire process daily by emailing customers via Gmail and updating your Shopify store with cancellation reports. - Trigger: On a schedule (Scheduled ยท daily 8:00 AM) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Shopify GraphQL API: Querying orders and managing tags/cancellations - Gmail: Sending payment reminders and admin reports - Code: Logic for thresholds and CSV generation ## Known pitfalls, handle each one explicitly in your implementation 1. Emails may land in spam folders if you do not properly configure SPF, DKIM, and DMARC records for your domain. 2. Inventory might be double-counted if the cancellation process does not explicitly trigger a restock webhook or API call. ## Reference implementation https://n8n.io/workflows/16084 (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/automate-shopify-payment-reminders-and-order-cancellations/ via usecasesforagents.com