You are helping me build the following AI agent workflow. ## Goal Shopify VIP Order Alerts & Summary: Monitors Shopify for orders over $200, summarizes customer history via AI, and posts VIP alerts to Slack. ## Specification - What it does: Catch high-value Shopify orders over $200 instantly while gaining immediate AI-generated insights into each customer's purchase history. You receive detailed VIP alerts directly in Slack that summarize buying behavior, letting you focus only on the most important opportunities without sifting through low-value noise. - Trigger: Triggered by an event (Event ยท on new Shopify order) - Autonomy: Fully hands-off - Expected setup effort: under an hour - Tools/services involved: - Shopify: Trigger and fetch customer data - OpenAI Chat Model: Summarize order history - Slack: Send VIP alerts to team ## Known pitfalls, handle each one explicitly in your implementation 1. The customer ID might be null for guest checkouts so add a conditional branch to skip the history fetch and alert if no customer record exists. 2. Large order histories can exceed token limits so truncate the response or paginate carefully before sending data to the OpenAI model to prevent errors. 3. Slack message formatting breaks with special characters so sanitize the AI summary text by removing unescaped HTML tags before posting to the channel. ## Reference implementation https://n8n.io/workflows/4384 (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/shopify-vip-order-alerts-summary/ via usecasesforagents.com