How to Integrate Slack with WordPress (Beginner's Guide)

Would you like to integrate Slack into your WordPress website or WooCommerce shop?

Slack is a powerful team communication suite that allows you to continue working with your team and streamline your workflow.

In this article we will show you how you can easily integrate Slack with WordPress and WooCommerce to receive push notifications directly in your Slack channels.

Slack provides real-time messaging between teams with the ability to archive and search all messages. It's a great tool for bloggers, businesses, and remote teams.

We use Slack for our own team and have many Slack integrations that help us improve our workflow.

You can use Slack as a central communication hub to receive automatic notifications and alerts when:

  • An author updates a blog post on your website
  • A new lead form will be submitted for your sales team to respond to
  • A new customer buys something from your online shop
  • A student is registering for a new course on your membership website
  • A visitor registers for your online webinar
  • … and so much more.

Below is an example screenshot of what an automatic Slack notification looks like:

A WordPress notification displayed on a Slack channel

Now let's look at how to add WordPress automatic notifications in Slack as in the screenshot above.

Here's a quick rundown of the topics we'll cover in this guide:

Connect Slack to WordPress

The easiest way to connect Slack to WordPress is to use Uncanny Automator. It's the best WordPress automation plugin that allows you to create automated tasks and workflows without writing any code.

It acts as a bridge by helping you integrate different WordPress plugins and allowing them to communicate with each other. You can also use it to connect your website to hundreds of online tools, including Slack.

For more information, see our article on Creating Automated Workflows in WordPress Using Uncanny Automator.

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

Once activated, you will also be prompted to install the free version of the Uncanny Automator core plugin. This light version of the plugin is limited in its functions, but is used as the basis for the pro version.

Next you need to go Automator »License Activation Page to enter your license key. You can find this information under your account on the Uncanny Automator website.

Eerie Automator License

After Uncanny Automator is set up, we'll connect it to your Slack workspace.

Just go to Automator »Settings and go to the Slack tab. Here you can enter a name for the bot and a profile photo.

Connect your Slack account

Then click the Connect Account button to continue.

This will take you to the Slack website where your permission will be asked. Click the Allow button to continue.

Allow Slack access

This will bring you back to the Slack settings page on your WordPress website with a success message.

Slack successfully connected to WordPress via Uncanny Automator

That's all, you have successfully connected your WordPress website to Slack using Uncanny Automator.

Now when you visit your Slack workspace, Uncanny Automator will appear as an app in the sidebar. Clicking on it will open the app window where you need to click the More button in the details pane.

Scary Automator app in Slack

In the "More" drop-down menu, you need to select the "Add this app to a channel …" option. This will allow you to send notifications and messages through Uncanny Automator to that particular channel.

Add your app to a Slack channel

When you click on it, a popup will appear asking you to choose a channel and then click the Add button.

Select channel

Uncanny Automator can now send messages and interact on your selected channel.

Now that we've got Slack up and running with WordPress, let's look at some of the nice things you can do with this Uncanny Automator integration by connecting Slack to WordPress.

Creating automation recipes for Slack in WordPress

The first thing you have to do is leave Automator »Add new Page to create your first recipe.

Create a new recipe

You will be asked to choose whether you want to create a recipe for "Logged in" or a recipe for "Anonymous".

Registered recipes can only be triggered by registered users, and anonymous recipes can be triggered by any user.

You'll need to select a recipe type that suits your workflow needs and then click the Confirm button.

For this tutorial, we'll create a recipe that will send a Slack message to a channel when a post is updated on your WordPress blog.

Next, you'll need to provide a title for your recipe. This title is not publicly visible to the user as it is only used to identify a recipe.

Every recipe in Uncanny Automator has two parts Triggers and Actions.

Actions and triggers in Automator

The triggers are the events that start the recipe and execute the processes you have defined. Actions are the tasks you want to perform when the recipe is executed.

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

The Automator will detect any existing integrations that you may have installed on your site. As you can see in the screenshot, WordPress Core, WooCommerce, MemberPress and WPForms were automatically recognized.

Click WordPress as your integration to continue.

Choose WordPress as the trigger

Next, you will be asked to select the event that will trigger this recipe. Select "A post is being updated" as the trigger event.

Triggering Event

Next, you will be asked to select the post type. If you only want to receive updates for blog posts, select Post. You can then leave the "Post" option to any post and click the "Save" button.

Set your trigger event options

Now that your trigger event has been set, the next step is to configure the action. Just click the Add Action button to continue and select Slack as the integration.

Choose Slack as your action integration

After that, you need to select an action event. This is the action you want Slack to take. For example, send a message to a channel.

Choose the action for your recipe too

This will take you to the options for action events. From here you can choose the channel you want to send the message to and enter the message you want to send.

Channel and message

You can also click the star button and add dynamic values ​​to your message. For example, you can add the username and a post url tag to your message.

Add dynamic values ​​to your message

After doing this, don't forget to click the Save button to save your action settings.

Once you're done editing, you'll need to switch your recipes from draft mode to live mode. These will take effect immediately on your website.

Publish your recipe

You can now edit any blog post and hit the refresh button to trigger this recipe. While the recipe is running, you will see a message from your Uncanny Automator bot on your selected channel.

Message previews in Slack

Integrate Slack with WooCommerce

Uncanny Automator works with all of the top WordPress plugins including WooCommerce. So if you run an online store, you can easily integrate it into your Slack workspace.

Just go to Automator »Add new Page to create your recipe. Select the registered option for your recipe type and then WooCommerce as trigger integration.

WooCommerce integration

Select "A user buys a product" for the trigger event.

Select product purchase as the trigger

Next you need to select "Any Product" and then hit the "Save" button.

After that, you can switch to the Action tab. Just click the Add Action button and choose Slack as your integration.

Choose Slack as your action integration

After that, you need to select the action event. For example, here we select "Send message to channel".

Woo Action Event

Next, you can choose the channel you want to send the message to and compose your message. You can use dynamic tags to insert data by clicking the star button.

Compose a Slack message

Don't forget to click the Save button to save your changes.

You can now go ahead and switch your recipe from draft to live mode.

Publish the recipe for your WooCommerce Slack integration

After that, you can test the recipe by making a free purchase from your WooCommerce store to trigger the recipe. You will see a message from the Uncanny Automator bot on your selected channel on Slack.

WooCommerce purchase message in Slack

Other Slack integration ideas for WordPress via Uncanny Automator

The Uncanny Automator allows your WordPress website and plugins to talk to Slack. This opens doors to myriad things you can do by combining your apps together.

Below are just a few recipes you can create to bring WordPress activity right into your Slack workspace:

  • Send a message to Slack when a new user joins your WordPress website.
  • Send content update messages to Slack and keep track of drafts, published posts, and page changes
  • Receive notifications for new orders in your online store right in Slack
  • Receive a message when someone buys your online course through MemberPress
  • Receive new lead notifications when someone submits your WordPress contact form

In addition to Slack, Uncanny Automator lets you create tons of other recipes for all of the different plugins and thousands of other apps.

We hope this article has helped you integrate Slack with WordPress. You might also want to check out our list of the most useful tools for growing your WordPress blog and our comparison of the best plugins for WordPress page builder for creating custom site layouts.

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

Comments are closed.