You are helping me build the following AI agent workflow. ## Goal Classify Intercom Messages & Route to ClickUp or Slack: New Intercom message? The agent classifies it by category and urgency. ## Specification - What it does: You get incoming Intercom messages automatically sorted by category and urgency so you can focus on the right work. The agent creates structured tasks in ClickUp for operational requests or sends real-time alerts to Slack when a sales lead arrives. - Trigger: Triggered by an event (Event ยท on new conversation) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Intercom: Webhook intake of new conversations - OpenAI Chat Model: Classify category, sentiment, and urgency - Code: Parse AI output and merge with details - ClickUp: Create tasks for Support or Product requests - Slack: Send alerts for Sales inquiries ## Known pitfalls, handle each one explicitly in your implementation 1. ClickUp task creation might fail if required custom fields are missing in the destination list, validate field IDs during setup. 2. Slack message formatting can break if the AI output contains unescaped special characters, sanitize all text before sending. ## Reference implementation https://n8n.io/workflows/7933 (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/classify-intercom-messages-route-to-clickup-or-slack/ via usecasesforagents.com