You are helping me build the following AI agent workflow. ## Goal Predict Customer Churn: Monitors customer health by analyzing support sentiment and usage trends to alert teams of churn risks with actionable next steps. ## Specification - What it does: You stay ahead of customer churn by getting alerts when support sentiment or usage trends signal high-risk accounts. The system analyzes your HubSpot and Google Sheets data to generate health scores and automatically sends actionable email recommendations to the right team member before customers leave. - Trigger: On a schedule (Scheduled ยท continuous monitoring) - Autonomy: Fully hands-off - Expected setup effort: a few focused days - Tools/services involved: - HubSpot: Fetch deals and CRM data - Google Sheets: Collect feature usage context - OpenAI Chat Model: Sentiment analysis and risk evaluation - Send Email: Alert responsible team members ## Known pitfalls, handle each one explicitly in your implementation 1. Sentiment analysis may misinterpret sarcasm or technical jargon so include clear examples of expected output in your system prompt. 2. Google Sheets data might be missing for new customers so add a fallback logic to handle null values gracefully. 3. Email delivery can fail if the recipient address is invalid so validate email formats before triggering the send node. ## Reference implementation https://n8n.io/workflows/10199 (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/predict-customer-churn-with-ai/ via usecasesforagents.com