Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Integrate Slack With WordPress (Beginner’s Guide)

Do you want to integrate Slack with your WordPress website or WooCommerce store?

Slack is a powerful communication tool that helps remote teams collaborate. However, you can get even more out of Slack by creating automatic notifications for different events.

In this article, we will show you how how to easily integrate Slack with WordPress so you get automatic WooCommerce notifications in your Slack channels.

How to Integrate Slack With WordPress

Why Integrate Slack with WordPress?

Slack lets people message each other in real time, no matter where they are in the world. Teams can also search and archive all Slack messages, which makes it a great resource for bloggers, businesses, and any remote teams who need to check back on past messages.

At WPBeginner, we use Slack for all our teams, and we have many Slack notifications that allow us to respond to important events quickly. This saves us time, effort, and money while also improving the visitor experience and helping us spot any security threats.

You can use automated workflows to post all kinds of notifications and alerts to Slack. For example, you might create a workflow that automatically posts to Slack every time:

The following image shows an example of an automated Slack notification.

A WordPress notification displayed in a Slack channel

With that being said, let’s see how you can easily integrate Slack with WordPress.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

How to Connect Slack to WordPress With Uncanny Automator

The easiest way to connect Slack with WordPress is by using Uncanny Automator. It is the best WordPress automation plugin that helps you create automated tasks and workflows without writing any code.

Uncanny Automator acts as a bridge so you can get different WordPress plugins talking to each other. For example, whenever someone completes a form, Uncanny Automator can automatically add them to your email list.

Think of it like Zapier but for WordPress websites.

There is a free Uncanny Automator plugin that lets you automate many common tasks. However, in this guide, we will be using the premium plugin because it has a Slack integration.

The first thing you need to do is install and activate the Uncanny Automator plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you will also be asked to install the free version of Uncanny Automator. The free plugin has limited features, but it’s used as the base for the pro version.

After that, you need to head over to Automator » Settings and enter your license key.

Entering the Uncanny Automator license

With that done, click on ‘Activate license.’

Now that Uncanny Automator is set up, let’s connect it to your Slack workspace by clicking on the ‘App Integrations’ tab.

In the left-hand menu, select ‘Slack’ and then click on ‘Connect Slack workspace.’

Connecting Uncanny Automator to Slack

This opens a screen where you can sign into your Slack workspace.

Simply type in the workspace you want to use, and then click on ‘Continue.’

Choosing a Slack workspace

After choosing a workspace, Uncanny Automator will show some information about the data it will have access to and the actions it can perform in your Slack workspace.

If you are happy to go ahead, then click on ‘Allow.’

Giving Uncanny Automator access to Slack

This will take you back to the Slack settings page on your WordPress website with a message confirming that Uncanny Automator now has access to Slack.

You will also see a preview of how Uncanny Automator’s messages will appear in Slack.

Automatically posting a message from WooCommerce to Slack

If you want, then you can change the bot name and icon using the settings under ‘Bot setup.’

You have now successfully connected your WordPress blog or website to Slack. If you visit your Slack workspace, then you will see Uncanny Automator in the sidebar.

Posting notifications to Slack automatically

Creating Automation Recipes for Slack in WordPress

You are now ready to create an automated workflow in WordPress. To get started, go to Automator » Add New. You will be asked whether you want to create a ‘Logged-in’ recipe or an ‘Everyone’ recipe.

Logged-in recipes can only be triggered by logged-in users, but anyone can trigger ‘Everyone’ recipes.

Select the logged in recipe type

As an example, we will create a recipe that publishes a Slack notification every time someone updates a post on your WordPress blog. With that in mind, you must choose ‘Logged-in users’ and then select ‘Confirm.’

Next, type in a title for the recipe. This title is just for your reference, so you can use anything you want.

Add Triggers and Actions

Each Uncanny Automator recipe has two parts: triggers and actions.

Creating an automated workflow in WordPress

A trigger is any event that starts the automated workflow, such as someone buying a product in your online marketplace. Actions are the tasks the recipe will perform, for example posting a new message to Slack.

First, you need to set the trigger part of the recipe by choosing an integration.

Uncanny Automator will automatically detect any integrations that you have already installed on your website. As you can see in the image below, it has automatically detected WordPress Core, OptinMonster, WooCommerce, and WPForms.

To start, simply click on the ‘WordPress’ integration.

Choosing WordPress as the trigger for the WordPress automation workflow

Next, you need to select the event that will trigger the recipe.

Go ahead and choose ‘A user updates a post’ as the trigger event.

Select a user updates a post trigger

Next, you can choose the post types that will trigger the recipe. Since you only want to notify Slack when a blog is updated, open the ‘Post Type’ dropdown and select ‘Post.’

Do you only want to get notifications for a specific blog post? Then simply open the ‘Post’ dropdown and choose from the list.

If you want to get notified about all blogs, then leave ‘Post’ set to ‘Any post.’

Posting a Slack message every time you update a WordPress post

After that, click on the ‘Save’ button.

Once you have set the trigger event, the next step is configuring the action. Simply click on the ‘Add action’ button to continue.

Adding actions to the WordPress automation flow

You can now choose ‘Slack’ as your integration.

With that done, you need to choose an action event. Simply go ahead and select ‘Send a message to a channel.’

Choose the action even for your recipe

You can now open the ‘Slack Channel’ dropdown and choose where Uncanny Automator will send the message.

After that, type the message into the ‘Message’ box.

An automated Slack messaged, created using a WordPress plugin

You can use plain text and tokens, which Uncanny Automator will replace with real values. For example, you will usually want to add a link to the new post so that Slack users can visit it easily.

To add a token, simply click on the ‘*’ symbol. Then, click on the trigger action, which in this case is ‘A user updates any post.’

Creating personalized messages using tokens

You can now click to add a token to the message.

When you are happy with the message, click on the ‘Save’ button to store your changes.

An automatic notification created using a WordPress plugin

How to Publish Your Slack Workflow in WordPress

After that, it’s time to publish the recipe. In the ‘Recipe’ box, click the ‘Draft’ switch so that it shows ‘Live’ instead.

Now, every time you update a blog post, the recipe will run and post a message to Slack.

Publish your recipe

Integrating Slack With WooCommerce

Uncanny Automator works with all of the must-have WordPress plugins, including WooCommerce. If you run an eCommerce store, then you want to be notified about new orders so you can start processing them right away.

WooCommerce purchase message in Slack

Let’s create a recipe that posts to Slack every time a customer buys a product in your WooCommerce store.

To get started, simply head over to Automator » Add New.

Select the logged in recipe type

Here, choose ‘Logged-in’ users and click the ‘Confirm’ button.

You can now type in a title for your recipe and choose WooCommerce as the trigger.

Choosing WooCommerce as the trigger for a Slack automated recipe

In the Trigger’ dropdown, choose: ‘A user completes, pays for, lands on a thank you page for an order with a product’.

You can then open the ‘Triggers’ dropdown and choose ‘Completes.’

Select completes as trigger condition

After that, go ahead and click on the ‘Add Action’ button.

Next, simply choose ‘Slack’ as your integration.

Choosing Slack as an integration for an automated workflow

Just like before, select ‘Send a message to a channel’ as your action and choose the channel where you want to post the notifications.

For example, in the following image, we are posting to a channel called ‘General.’

Posting a notification every time a customer buys a WooCommerce product

After that, you can create the message you want to post.

You can type in plain text or add tokens by clicking on the ‘*’ button.

Creating a Slack message using dynamic text

When you are happy with the message you have created, don’t forget to click on the ‘Save’ button to store your changes.

You can now make your recipe live by clicking on the ‘Draft’ toggle so that it shows ‘Live.’

Publish your recipe for WooCommerce and Slack

Now, Slack will post a message to Slack every time someone buys a product from your WooCommerce store.

Other Slack Integration Ideas for WordPress via Uncanny Automator

Uncanny Automator allows your WordPress website and plugins to communicate with Slack. Now you have made the connection, there are lots more ways to save yourself time and boost your productivity.

Here are just a few recipes you can create:

  • Send a message to Slack when a new user joins your WordPress website.
  • Keep an eye on drafts, published posts, and page changes by sending content update messages to Slack.
  • Get a message every time someone purchases your online course.
  • Get new lead notifications when someone submits your WordPress contact form.

Apart from Slack, you can use Uncanny Automator to create countless recipes for all kinds of plugins and apps.

We hope this article helped you learn how to integrate Slack with WordPress. You may also want to see our list of the best live chat software for small businesses or our guide on how to track website visitors.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

1 CommentLeave a Reply

  1. Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.