Workflow Recipe: New Review → AI Sentiment Analysis → Slack Alert
A new customer review lands on your site. Your team finds out three days later. This workflow fires the moment a review is submitted — AI scores the sentiment, formats a concise summary, and posts it to your Slack channel in seconds. Your team sees every review as it happens.
Before You Start
You’ll need:
- Familiar with the workflow builder (First Custom Workflow guide)
- A Slack workspace with an incoming webhook configured
- WooCommerce with product reviews enabled
- Time needed: ~10 minutes
- Plan required: Pro
What This Workflow Does
Trigger: New WooCommerce review (comment) submitted → AI analyzes sentiment and formats summary → sends to Slack channel.
Step 1: Create the Workflow
Go to AI Copilot → Workflows → Create New Workflow. Name it: “New Review → Slack Alert”.
Step 2: Set the Trigger
| Setting | Value |
|---|---|
| Trigger | Comment Added |
| Comment Type | Review (WooCommerce product review) |
| Comment Status | Any — fires on submission, before moderation approval |
| Minimum rating | Leave empty to capture all ratings (including 1-star) |
Step 3: Write the AI Prompt
Analyze this customer review and create a Slack notification for the team.Review details:
- Product: {post_title}
- Rating: {comment_rating} / 5 stars
- Reviewer: {comment_author}
- Review text: {comment_content}Format the Slack message exactly like this:
[RATING EMOJI] *New {comment_rating}★ Review — {post_title}*
👤 From: {comment_author}
💬 "{comment_content}"
🎯 Sentiment: [Positive/Neutral/Negative]
⚡ Action needed: [None / Respond warmly / Escalate immediately]For "Action needed":
- 5 stars, positive → "None"
- 3-4 stars, mixed → "Respond warmly"
- 1-2 stars, negative → "Escalate immediately"For rating emoji: 1-2 stars = 🔴, 3 stars = 🟡, 4-5 stars = 🟢
Step 4: Configure the Slack Output
| Setting | Value |
|---|---|
| Output Action | Send Slack Message |
| Webhook URL | Your Slack incoming webhook URL |
| Message | {ai_output} |
| Channel | Set in webhook configuration (e.g. #customer-reviews) |
Getting a Slack webhook: Slack workspace → Apps → Incoming Webhooks → Add to Slack → choose channel → copy webhook URL.
Verify It’s Working
Submit a test review on any product (you can delete it afterward). Within 15–30 seconds, a formatted message should appear in your Slack channel with sentiment analysis and action guidance.
Common Issues
Problem: “Workflow fires for regular post comments, not just product reviews.”
Fix: Set Comment Type to “review” specifically. If that option isn’t available, add a condition: Post Type equals “product”.
Problem: “Slack message shows {comment_rating} as literal text, not a number.”
Fix: Verify this variable is available for your trigger type. Some versions use {review_rating} instead — check your variables reference.
What’s Next
- 📧 Automate welcome emails: Workflow Recipe: Personalized Welcome Email
- 📦 WooCommerce order notifications to Slack: Order Notifications guide
- 📋 More copy-paste recipes: 5 Ready-Made Workflows
Last verified: AIWU v.4.9.2 · Updated: 2026-02-25
