Sending a direct message to a user in Slack from WordPress

  • 27 August 2020
  • 1 reply

Userlevel 1

does anybody knows if this is something possible in WordPress?

allow WordPress to sent direct messages to sack users, not to slack channels?



This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +12

Hi @jossef! I hope you don’t mind that I split your comment to a new post; it looks like the piece that you’re having some trouble with is on the WordPress side of things so it makes more sense to have a new thread for that 🙂


When do you want to send a new message from WordPress? What will happen in WordPress to cause the message to be sent? Here are the triggers for the Zapier WordPress integration, so you can only trigger a Zap from one of the events below:


  • New Comment: Triggers when a new comment is added.
  • New Post: Triggers when a new post is created.
  • New User: Triggers when a new user is created.
  • New Media: Triggers when a new media is uploaded.
  • Updated Post: Triggers when a post is updated.

From there, you can use the Slack action Send Direct Message to send a message to someone in Slack. You’ll probably have to add a step that will find that person in Slack before the send message action, so the Zap would look a bit like this:

  1. WordPress trigger (whatever you want that to be)
  2. Slack - Find user be email (that’s the most reliable way to find a slack user, you could also use Find user by name)
  3. Slack Send direct message

When you send the direct message, don’t forget to use the ID of the Slack user as a custom value for who you want to send the message to (as described in this post)