Slack Integration: Notify Your Team from WordPress Automatically
After this setup, your AIWU workflows will post messages to Slack channels automatically — notifying your team about new orders, form submissions, AI-generated content, or any WordPress event you choose.
In this article: Connect Slack · Slack Actions · Order Notification Example · Common Issues
Before You Start
You’ll need:
- AIWU plugin v4.9+ installed
- A working knowledge of AIWU Workflows — build your first workflow first
- A Slack workspace where you have admin access (or permission to add apps)
- Time needed: ~10 minutes
Step 1: Create a Slack App and Get a Webhook URL
1a. Create a Slack App
Go to api.slack.com/apps → Create New App → From scratch.
Name your app “AIWU Notifications”. Select your workspace. Click Create App.
1b. Enable Incoming Webhooks
In your app settings, go to Incoming Webhooks → toggle ON.
Click Add New Webhook to Workspace. Select the channel where you want notifications. Click Allow.
What you should see: A Webhook URL like https://hooks.slack.com/services/T.../B.../xxx. Copy it.
Step 2: Add Slack Webhook to AIWU
Go to WordPress Admin → AI Copilot → Settings → Integrations → Slack.
Paste your Webhook URL. Give it a name (e.g., “Orders channel”). Click Save & Test.
What you should see: A test message appears in your selected Slack channel within a few seconds.
Step 3: Using Slack in Workflows
Open any workflow and click Add Action → Send Slack Message.
Slack Action Fields
| Field | Description | Example |
|---|---|---|
| Webhook | Select your saved connection | “Orders channel” |
| Message | Text to send — supports variables and emoji | 🛒 New order #{{order_id}} from {{billing_first_name}} |
| Rich Format | Optional: structured blocks with fields | Order details in a formatted card |
Formatting Tips
- Use
*bold*for important info - Use
nfor line breaks - Emoji work natively:
✅ 🛒 🚨 - All workflow variables work:
{{order_total}},{{post_title}},{{user_email}}
Practical Example: WooCommerce Order → Slack Notification
This workflow posts to Slack every time a new WooCommerce order comes in:
- Trigger: WooCommerce New Order
- Action 1: Generate Text — “Write a 1-sentence summary of this order: Items: {{order_items}}, Total: {{order_total}}, Customer: {{billing_first_name}} {{billing_last_name}}”
- Action 2: Send Slack Message
🛒 *New Order #{{order_id}}* Customer: {{billing_first_name}} {{billing_last_name}} Total: ${{order_total}} {{generated_text}} 👉 View order: {{order_admin_url}}
See the full recipe: WooCommerce Order Notifications.
Another Example: New Review → AI Response → Slack
A workflow that gets an AI response to a new product review, then posts both to Slack for team approval before publishing:
- Trigger: WooCommerce Review Submitted
- Action 1: Generate Text — “Write a professional, empathetic 2-sentence response to this review: {{review_content}}”
- Action 2: Send Slack — “📝 New review on {{product_name}}:n*Review:* {{review_content}}n*Draft AI response:* {{generated_text}}nApprove and post? {{review_admin_url}}”
Full recipe: Workflow Recipe: WooCommerce Review → AI Response → Slack.
Verify It Works
- Trigger your workflow manually using the Test Run button.
- Check the target Slack channel — your message should appear within 5 seconds.
- In AIWU, go to Workflows → [workflow] → Logs — look for a green “Success” status on the Slack action.
Common Issues
Problem: “Error: invalid_payload” in workflow logs.
Fix: The message contains a special character or unclosed variable. Check for {{}} placeholders that weren’t replaced — this happens when a variable name is misspelled.
Problem: Slack shows the message but formatting looks wrong (asterisks visible).
Fix: Make sure your message text doesn’t wrap the bold markers in quotes or HTML tags. Slack’s mrkdwn format uses *text* not **text**.
Problem: Webhook URL stopped working after a while.
Fix: Slack webhooks are permanent, but apps can be revoked by workspace admins. Go to api.slack.com/apps → [your app] → Incoming Webhooks and verify the webhook is still active. Re-add if needed.
Problem: Messages come through but the wrong channel.
Fix: Webhook URLs are channel-specific. If you moved the app to a different channel in Slack, generate a new webhook URL and update it in AIWU settings.
Still stuck? Check the general troubleshooting guide or contact support.
What’s Next
- 🟢 WooCommerce notifications: WooCommerce + Workflows: Auto-Notify on New Orders — complete order notification setup
- 🟡 Review response automation: Recipe: WooCommerce Review → AI → Slack — automate customer review responses
- 🔵 Try Discord instead: Discord: Send Messages and Embeds — similar setup for Discord channels
- 🔧 More integrations: Gmail & Outlook Integration — add email alongside Slack notifications
Last verified: AIWU v.4.9.2 · Updated: 2026-02-25
