Skip to content

WordPress Slack Notifications: How to Send and Format Slack Messages from WordPress

Send WordPress Slack notifications with Uncanny Automator and format them so they get read. Includes a Slack message formatting cheat sheet and four recipes.

TLDR? Get the highlights ▾
1Sending messages from WordPress to Slack is only half the battle; they have to be formatted to be readable.
2Uncanny Automator sends WordPress Slack notifications for any site event (orders, form entries, course completions) and you can style messages from inside WordPress.
3Slack has its own formatting rules for messages sent by apps. Put one asterisk on each side of a word to make it bold, use underscores for italics, and wrap a link’s address and its label in angle brackets.
4The Slack message formatting cheat sheet covers bold, italics, strikethrough, code, quotes, links, emoji, @here, @channel and user mentions.
Ready to send Slack messages people read? Try Uncanny Automator free →


You got the integration working. WordPress is connected to Slack, the test message landed, and every new order now pings the sales team channel.

But look at what it’s sending. One grey wall of text. A raw URL that runs off the edge of the screen. No order number anywhere near the top. The person who needed to see it scrolled right past.

That’s the gap this post closes.

Uncanny Automator sends WordPress Slack notifications for any event on your site. Within the same field that you use to draft the message, you can format it also using Slack’s formatting codes. A bold first line, a link back to the order and an @mention are a few extra characters of typing.

I’ll start with the cheat sheet, since you’ll want it open when we start running through some examples together. Then I’ll build one recipe (what Automator calls its automated workflows) step by step and leave you three more to copy.

What You’ll Need

  • Uncanny Automator Lite (free forever), plus a free Automator account. Slack is a cloud integration, so each message it sends uses an app credit (credits for using third-party apps). A free account includes 250 app credits; Automator Pro removes the cap.
  • A Slack workspace where you’re allowed to install apps.
  • The Uncanny Automator bot in your target channel. In Slack, open Apps > Uncanny Automator, then choose “Add this app to a channel.” Private channels won’t show up in Automator until you do this.

Already connected? Skip ahead. If not, the Slack knowledge base article walks you through connecting your account. It takes about two minutes.

Automator’s Slack integration gives you four actions (the things a recipe does):

  • Send a message to a channel
  • Send a direct message to a Slack user
  • Create a channel, and
  • Add users to a channel.

There are no Slack triggers (the events that start a recipe), though Automator Pro allows for incoming webhooks.

Slack Message Formatting Cheat Sheet (Copy and Paste)


First, a quick word on Markdown, because the name will come up. Markdown is a way to format text by typing punctuation instead of clicking buttons: two asterisks around a word make it bold, one asterisk makes it italic, and square brackets followed by parentheses make a link.

Plenty of apps use it, so you may have picked it up without ever hearing the name.

Slack messages sent by apps and other external tools — such as Uncanny Automator — use Slack’s own version of this idea, which Slack calls “mrkdwn.” It looks like Markdown, but the rules are different. In Slack, double asterisks do nothing; single ones make bold.

Whatever you type in Automator’s Message field is what Slack receives, so the codes below work there.

(Note: send one test message before you build the real thing. Rendering rules can change, and a test takes a minute. Slack’s own formatting reference is the source of truth if something looks off.)

Text Styling

Want thisType thisWhat Slack shows
Bold*New order*New order, in bold
Italics_shipped today_shipped today, in italics
Strikethrough~$49.00~$49.00 with a line through it
Inline code`SKU-1042`SKU-1042 in a small code box
Code block“` on its own line, then your text, then “` on its own lineA grey block with fixed-width text
Quote> Loved it. Five stars.The text with a quote bar down the side
Line breakPress Enter in the Message fieldA new line
Bulleted list• Item one, then Enter, then • Item twoA list. Slack has no list syntax, so you type the bullets yourself
Emoji:tada:The party popper emoji
Bold
Type this*New order*
What Slack showsNew order, in bold
Italics
Type this_shipped today_
What Slack showsshipped today, in italics
Strikethrough
Type this~$49.00~
What Slack shows$49.00 with a line through it
Inline code
Type this`SKU-1042`
What Slack showsSKU-1042 in a small code box
Code block
Type this“` on its own line, then your text, then “` on its own line
What Slack showsA grey block with fixed-width text
Quote
Type this> Loved it. Five stars.
What Slack showsThe text with a quote bar down the side
Line break
Type thisPress Enter in the Message field
What Slack showsA new line
Bulleted list
Type this• Item one, then Enter, then • Item two
What Slack showsA list. Slack has no list syntax, so you type the bullets yourself
Emoji
Type this:tada:
What Slack showsThe party popper emoji
Markdown written in an Uncanny Automator Slack message, shown beside the formatted result posted in Slack.
Want thisType thisWhat Slack shows
Link with your own text<https://example.com/order/1042|Open order 1042>Open order 1042, as a clickable link
Plain linkhttps://example.comThe URL, linked automatically
Email link<mailto:[email protected]|Email support>Email support, as a mailto link
Mention a person<@U0123ABCD>@Name, and that person gets notified
Notify active members<!here>@here
Notify the whole channel<!channel>@channel
Link a channel<#C0123ABCD>#channel-name, as a link
Automator tokenPick it from the asterisk menu in the Message fieldThe live value (order total, customer name). Tokens work inside bold, links and quotes
Link with your own text
Type this<https://example.com/order/1042|Open order 1042>
What Slack showsOpen order 1042, as a clickable link
Plain link
Type thishttps://example.com
What Slack showsThe URL, linked automatically
Email link
Type this<mailto:[email protected]|Email support>
What Slack showsEmail support, as a mailto link
Mention a person
Type this<@U0123ABCD>
What Slack shows@Name, and that person gets notified
Notify active members
Type this<!here>
What Slack shows@here
Notify the whole channel
Type this<!channel>
What Slack shows@channel
Link a channel
Type this<#C0123ABCD>
What Slack shows#channel-name, as a link
Automator token
Type thisPick it from the asterisk menu in the Message field
What Slack showsThe live value (order total, customer name). Tokens work inside bold, links and quotes


To find someone’s member ID, open their Slack profile, click the three-dot menu and choose Copy member ID. Channel IDs are at the bottom of a channel’s details panel.

For smoother automations, you can save Slack member IDs as a custom field in WordPress with Automator’s Custom User Fields Addon.

Gotchas

  • &, < and > are special characters in Slack. When you mean the literal character, type &amp; &lt; or &gt; instead.
  • There’s no table or heading syntax. Use a bold line as a heading and a code block to keep columns lined up.
  • Nothing inside inline code gets formatted. It shows exactly as typed, asterisks and all.
  • Mentions need IDs, not names. @Dana is just text; <@U0123ABCD> notifies Dana.
  • A URL with a space in it breaks the link. Tokens that output URLs are fine.

Here’s a skeleton that uses four of the codes at once. Tokens are shown in square brackets; insert the real ones from the asterisk menu.

:tada: *New order [Order number]* for [Order total]
*Customer:* [Billing first name] [Billing last name]
<[Order URL]|Open the order>

Try Uncanny Automator free >>>

Recipe 1: A New-Order Alert You Can Read at a Glance


Order data is the best way to show what formatting does, because an order has a number, a total, a customer and a link, and every one of them wants a different treatment.

If you want the complete WooCommerce-to-Slack walkthrough with five order recipes, we have one. This section is about making the message readable.

Here’s how you can format your Slack messages from within WordPress:

Uncanny Automator recipe sending a WooCommerce order notification to Slack, with the delivered message showing order details.

Step 1: Create and Name a New Recipe

From your WordPress Admin Dashboard, navigate to Automator > Add new recipe.

In the modal that appears, select Logged-in users.

Popup dialog titled 'Select a recipe type' with two selectable cards: left card shows 'Logged-in users' (highlighted in blue) and description; right card shows 'Everyone' with description.

(Note: If you allow guest checkouts, you can select Everyone. However, most “Everyone” triggers for WooCommerce in Automator are only available to Pro users.)

Give your recipe a name. For example, I’ve named this recipe “Send a Slack notification for new WooCommerce orders”.

Step 2: Configure Your Trigger(s)

In the Trigger panel, from the menu of available integrations, select WooCommerce > A user purchases a product.

Set the first dropdown to “pays for” and the product to “Any product,” then click Save.

Your trigger should look something like this:

WooCommerce trigger in Uncanny Automator set to fire when a user completes an order with any product.

Step 3: Configure Your Action(s)

In the Actions panel, click Add action and select Slack. From the dropdown list that appears, select Send a message to a channel, then pick the channel from the dropdown.

Not connected yet? Start with our guide to integrating Slack with WordPress, then come back here.

Now the part that matters. In the Message field, type the formatting codes and insert tokens (i.e., dynamic data from your WordPress site and from within recipes) using the Asterisk.

Something like this:

:tada: *New order [Order number]* for [Order total]
*Customer:* [Billing first name] [Billing last name]
*Items:* [Order items]
<[Order URL]|Open the order in WordPress>

Once you’re finished, click Save.

Slack message field in Uncanny Automator built from WooCommerce order tokens with markdown bold and bullet formatting.

Step 4: Go Live!

Toggle your recipe from Draft to Live.

Uncanny Automator recipe sending a Slack message to a sales channel when a WooCommerce order is completed.

Run a test. Place an order on your store and check the channel or user you sent it to.

The bold first line should be the first thing you see, and the link should open the order in your WordPress admin. If anything shows up as literal asterisks or angle brackets, compare it against the cheat sheet; a stray space or a double asterisk is usually the culprit.

Want your Slack messages to do more? Upgrade to an Automator Pro Plus or higher license to get the Customer User Fields Addon and more powerful automation features >>>

Three More WordPress Slack Notification Recipes


The cheat sheet works the same way in every Slack action, whatever the trigger. Here are three WordPress Slack notification recipes you can copy. Tokens are in square brackets.

A New Lead, Flagged for the Sales Team


Gravity Forms > A form is submitted, then Slack > Send a message to a channel. Pick your lead form and your sales channel. The @here wakes up whoever is online; the email link means one click to reply. (Note: WPForms, Formidable Forms, Fluent Forms and Ninja Forms all have the same trigger.)

<!here> *New lead: [Name]*
*Company:* [Company] · *Budget:* [Budget]
<mailto:[Email]|Reply by email>

A Product Review, Quoted


WooCommerce > A user reviews a product, then Slack > Send a message to a channel. The quote bar makes the customer’s words stand out from your own. Good for a product channel or a support channel.

WooCommerce review tokens in an Uncanny Automator Slack message, beside the posted alert with the rating and review text.

A Course Completion, Sent to the Instructor


LearnDash > A user completes a course, then Slack > Send a direct message to a Slack user. Pick the instructor. A direct message means they see it even if they’ve muted the busy channels.

Uncanny Automator recipe posting a Slack message when a learner completes a LearnDash course, with the message setup shown.

If Slack starts to feel noisy, add a filter (conditional logic that controls when an action runs) so only orders over a certain total, or only leads from a certain form, get through. A delay works too: our post on combining filters, delays and tokens shows both.

Pro Tips

  1. One channel per event type. Orders, leads and reviews each get their own channel. Mentions stay meaningful, and nobody mutes the channel that pays the bills.
  2. Test in a private channel first. Add the bot, send a few messages, then switch the action to the real channel once the formatting looks right.
  3. Keep the first line scannable. Slack shows the first line in notifications and previews, so lead with the thing that matters: the order total, the lead’s name, the course title.

Conclusion


The integration worked all along. What changed is that the messages now do their job: the order number is in bold, the link is one click, and the right person gets pinged. All of it from a Message field you already had.

Keep the cheat sheet handy, build the order alert first, and copy the three recipes whenever a new channel needs a feed. Every notification you don’t have to re-read is a few seconds back, and those add up fast.

Try Uncanny Automator free >>>

What will you do with more time?

Frequently Asked Questions

Does Slack support Markdown?

Not the standard kind. Slack uses its own markup for messages sent by apps: single asterisks for bold, underscores for italics and tildes for strikethrough. Double asterisks and [text](url) links show up as plain text.

How do I put a table in a Slack message?

Slack has no table syntax. The closest thing is a code block, which uses a fixed-width font, so columns you line up with spaces stay lined up. For anything bigger than a few rows, link to the page in WordPress instead.

How do I quote text in a Slack message?

Start the line with > and a space. Each line that starts with > becomes part of the quote. Tokens work inside quotes, which is how the product review recipe above quotes the customer.

Do I need Automator Pro to send Slack notifications from WordPress?

No. Uncanny Automator Lite plus a free Automator account includes 250 app credits, and each Slack message uses one. If you’ll send more than that, Automator Pro includes unlimited app credits.

Can I @mention a specific person in an automated Slack message?

Yes. Use their member ID in the form <@U0123ABCD>. You’ll find it under “Copy member ID” in the three-dot menu on their Slack profile. Typing @ and their name only produces plain text.

Why does my Slack message show asterisks and brackets instead of formatting?

Usually because the message uses standard Markdown. Replace **double asterisks** with *single ones* and [text](url) links with the <url|text> form from the cheat sheet. A space after the opening asterisk, as in * bold*, also breaks the formatting.

author avatar
Brendan Da Costa
Brendan Da Costa is a WordPress content writer with a Shakespearean-level gift of gab (his words, not ours). He left a successful career in economics to pursue his passion for writing and discovered the wonderful world of WordPress while building his own website to showcase his work. As a self-taught enthusiast who spends more time tinkering with plugins and themes than he would care to admit, Brendan writes equally for WordPress beginners and veteran developers alike. With his unique blend of expertise and creativity, he continues to elevate the digital landscape one WordPress article at a time.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

This page may contain affiliate links. Once in a while, we may earn a commission from those links. But with or without commissions, we only recommend products we like.
Back To Top