Searching for a way to connect OptinMonster to WordPress? Your search ends here. OptinMonster is…
Are you planning to connect Slack to WordPress? You’re in the right place.
Slack is a popular messaging platform for businesses. It allows you to send text messages and images to your team members. You can also use it to share important files with each other. You can even create private and public channels (or groups) for different teams or projects – this can be helpful for organizing your work in a better way.
Connecting your WordPress site to Slack will help you to increase your productivity. You and your team can receive notifications for important events happening on your website.
The tool that can connect your WordPress site to Slack is Uncanny Automator. It is a powerful no-code automation plugin for WordPress. And you can use it to connect WordPress plugins and popular web apps.
In this article, we’ll share the step-by-step process of connecting WordPress to Slack with the help of the Uncanny Automator plugin. We’ll also discuss some useful ways in which you can use WordPress and Slack together.
Why Should You Connect Slack to WordPress
Slack is a tool that can help your team to communicate in an organized and secure manner. By connecting Slack to WordPress, you can get notifications for everything that happens on your WordPress site.
Note that we are not just talking about core WordPress here. With the help of the Uncanny Automator plugin, you can also connect WordPress plugins to Slack and receive important notifications on your Slack account.
Here are some ideas for getting notifications on Slack from your WordPress site:
- Someone purchases a product on your WooCommerce site
- A user joins or leaves a social group on your BuddyBoss or BuddyPress site
- Someone submits a form (built using WPForms, Formidable Forms, Fluent Forms, Ninja Forms, or Gravity Forms)
- Someone joins or cancels a membership
- A user completes a lesson or course on your eLearning site (powered by LearnDash, LearnPress, LifterLMS, or MasterStudy LMS)
- A person joins your MailChimp or ActiveCampaign mailing list
- A user registers for a webinar or event
The above examples are just some basic ideas. You can easily connect Slack to popular plugins and get notifications for anything you want.
How to Connect Slack to WordPress
Now that we know why we should connect Slack to WordPress, let’s start with the tutorial part.
Uncanny Automator offers the following 3 actions for creating Slack recipes:
- Create a Slack channel
- Send a direct message to a Slack user
- Send a message to a Slack channel
Now, you can use the free version of Uncanny Automator to follow this tutorial. However, the free version offers 1,000 credits only to try out the premium integrations. Once you use up the free credits, you’ll have to upgrade to the premium version for unlimited usage.
With that said, let’s get started with the step-by-step process of connecting Slack to WordPress with the help of an example – sending a message to a Slack channel when a blog post is published.
Note: We’re assuming that you’ve already installed the Uncanny Automator plugin on your WordPress site.
Step 1: Create a Recipe
The first step is to create a recipe. To do that, you need to head over to Automator -> Add new from the left sidebar of your WordPress admin panel.
Uncanny Automator will now ask you to choose a recipe type. Since we want Slack notifications for our newly published blog posts (and a post can be published by a user with a WordPress account only), so you should select Logged-in users and click on Confirm.
Next, you need to add a title for your recipe in the Add title box. Note that this is just for your future reference and it can be anything you like.
Lets’s name our recipe WordPress to Slack and proceed to the next step.
Step 2: Configure the Trigger
Now it’s time to create our trigger – a new post is published.
To get started, you need to select the trigger integration. Since standard WordPress functions like blog posts are part of the WordPress integration, you should choose WordPress under Select an integration.
Clicking on WordPress will open a list of trigger options. Go ahead to select the option – A user publishes a type of post with a taxonomy term in a taxonomy.
You’ll see some new fields now.
First, you need to select Post from the Post type dropdown since we want to get Slack notifications for our newly published blog posts.
If you want to get notifications from a specific category only, then you should select Category under Taxonomy and the category name under Taxonomy term. However, you don’t need to change these two fields if you want to get notifications from all the categories.
Finally, you should click on the Save button to make your trigger live.
Step 3: Set Up the Action
Let’s configure the action part now. So click on the Add action button to get started.
Next, you need to click on Slack under Select an integration.
If you’re using the Slack integration for the first time, a modal window will open up and will ask you to complete the following two steps:
- Create a free Uncanny Automator account if you’re using the free version or activate your license key if you’re using the premium version
- Connect your Slack account to Uncanny Automator
After completing the steps, you’ll see a list of Slack actions to choose from. Since we want to get notifications on a particular channel, you need to select Send a message to a channel.
Selecting that option will open up two new fields. Let’s configure them.
First, you need to select the channel name from the Slack Channel dropdown.
In the Message field, you can add static text and dynamic tokens. In case you don’t know, tokens are variables that can retrieve dynamic values from the WordPress database.
To add dynamic tokens to the Message field, you need to click on the Asterisk icon and add tokens like Post title and Post URL to it.
Here’s how the Message field may look like with static text and dynamic tokens:
Once you’ve configured both the fields, you need to click on Save to make your action live.
Step 4: Publish the Recipe
After setting up your trigger and action, you need to publish your recipe by changing the toggle option in the Recipe box from Draft to Live.
That’s it! You’ve successfully connected your WordPress site to Slack. From now on, whenever a new blog post is published on your WordPress site, you’ll receive notifications on your Slack channel.
Connect Slack to WordPress Today
Thanks to the Uncanny Automator plugin, you can connect WordPress to Slack and receive notifications for anything happening on your website.
Note that this tutorial was just a basic example. You can easily create complex workflows by adding more triggers or actions to any recipe. For example, you can add the following actions to our “WordPress to Slack” recipe:
- Send your newly published blog post to your MailChimp list
- Share your post on Facebook
- Share your post with your Twitter followers
- Get SMS notifications when a post is published
Also, you can create unlimited workflows by connecting Slack to popular plugins like LearnDash, GiveWP, MemberPress, Easy Digital Downloads, The Events Calendar, HubSpot, and more to get important notifications on your Slack account.
Have any questions on how to connect Slack to WordPress? Feel free to comment below!