Skip to main content
Auto Form Builder
Download FREE
A WordPress form submission arriving as a new message in a Slack channel

How to Send WordPress Form Submissions to Slack (Step by Step)

A Slack message for every new form submission means your team sees new leads the moment they arrive, right where they already work. With the free Slack Notifications add-on in Auto Form Builder, each submission posts a message to the Slack channel you choose. You decide which forms send a message, which channel each one goes to, and whether the visitor’s answers are included. Setup takes about ten minutes, and you only do it once.

What you need before you start

  • A WordPress site with Auto Form Builder and a form you want to connect, such as a contact form
  • A Slack workspace where you can add apps (a free workspace is fine)
  • A channel for the messages, for example #form-submissions

You don’t need any code, and you don’t need Zapier or Make.

Step 1: Activate the Slack Notifications add-on

In WordPress, go to Auto Form Builder, then Add-Ons in the left menu. Find Slack Notifications and click Activate. Like every add-on, it comes free with the plugin. The card now says Active; click its Settings button to open the add-on.

The settings page has a short Getting Started box, a Default Webhook box that is still empty, and a Form Notifications table with all of your forms. Keep this tab open.

The Slack Notifications card on the Auto Form Builder Add-Ons screen with its Activate button

Step 2: Create an app in Slack

Slack lets websites post into a channel through an incoming webhook: a private address that belongs to one channel. To get one, you first create a small Slack app.

  1. Open a new tab and go to api.slack.com/apps. Sign in to your workspace if Slack asks.
  2. Click Create New App.
  3. Under From scratch, click Pick features, then Continue. Make sure you click it: Paste a manifest is selected when the window opens, and if you just click Continue, Slack takes you down a different path.
  4. Give the app a name, such as Form Alerts. This name appears on every message, so pick something clear.
  5. Choose your workspace. You can’t change it later.
  6. Slack shows a summary with no permissions and no events. That’s fine, because a webhook doesn’t need them. Create the app.

Choosing Pick features in the Slack Create new app window, then naming the app Form Alerts

Step 3: Turn on incoming webhooks and copy the URL

You’re now on the app’s settings page. In the left menu, under Features, click Incoming Webhooks and turn the switch at the top to On.

Scroll down and click Add New Webhook. Slack asks where the app should post: choose your channel, such as #form-submissions, and click Allow. Back on the page, there’s now a webhook URL for that channel, starting with https://hooks.slack.com/services/. Copy it.

Treat this URL like a password. Anyone who has it can post into your channel, so don’t share it or paste it anywhere public.

The Slack Incoming Webhooks page switched on, with a webhook URL for the form-submissions channel

Step 4: Connect Slack to WordPress and send a test

Back in WordPress, paste the URL into Default Webhook URL. Only Slack incoming webhook URLs are accepted. If you paste anything else, the plugin tells you and doesn’t save it.

Click Send Test. The result appears at the bottom of the page, next to Save Settings: Test message sent! Check your Slack channel. Switch to Slack, and you’ll see a test message from Auto Form Builder, posted by your app.

Now click Save Settings. After a refresh, the Last Delivery box on the right says Delivered successfully (HTTP 200)., which simply means Slack received the message.

Pasting the Slack webhook URL into Default Webhook URL and clicking Send Test

Step 5: Turn on Slack messages for a form

Scroll down to Form Notifications. Every form has its own row. Find the form you want, tick Notify and click Save Settings.

Send a test entry from that form. In Slack, a message arrives: New form submission, with the form name, the site name and a View submissions link that opens your entries in WordPress. None of the visitor’s answers are in it. That’s the default, and a good choice when your forms collect personal details you’d rather keep out of Slack.

To see the answers in Slack, tick Include answers for that form and save. The next message lists each field, such as the name, email address and message. A few things are never sent, even with this option on: passwords, CAPTCHA values and the contents of uploaded files. A file upload shows only its file name.

The Form Notifications table with Notify and Include answers ticked for the Contact form

Step 6: Send different forms to different channels

Maybe contact messages should go to one channel and order or sales inquiries to another. That’s what the Webhook URL (optional override) box in each row is for. When it’s empty, the form uses the default webhook.

To send a form somewhere else, go back to your Slack app’s Incoming Webhooks page, click Add New Webhook again, choose the second channel (for example #sales-leads) and click Allow. Copy the new URL, paste it into that form’s Webhook URL box in WordPress and save. From now on, that form posts to the second channel, and every other form keeps using the default one.

Two WordPress forms posting to two different Slack channels through their own webhook URLs

If something doesn’t work

  • No message arrives. Check that Notify is ticked for that form and that you clicked Save Settings. Then look at the Last Delivery box.
  • Last Delivery says Slack rejected the webhook URL. The webhook was removed in Slack, or the app was deleted. Create a new incoming webhook and paste it in again.
  • The URL isn’t saved. It must start with https://hooks.slack.com/services/. Copy it again from Slack, in full.
  • The app is called “Demo App”. You clicked Continue while Paste a manifest was selected. Delete the app and create it again, clicking Pick features first.

Summary

To send WordPress form submissions to Slack: activate the free Slack Notifications add-on, create a Slack app with Pick features, turn on incoming webhooks and copy the URL, paste it into Default Webhook URL and send a test, then tick Notify for each form you want. Add Include answers when you want the details in Slack, and give a form its own webhook URL to send it to a different channel. To send entries to a CRM or other tools as well, use webhooks, and to keep spam out of your channel, add spam protection.

Related reading: Slack Notifications add-on · Connect WordPress forms to Google Sheets · Managing WordPress form submissions

Install Auto Form Builder free from WordPress.org

FAQ

Do I need a paid Slack plan or Zapier?

No. Incoming webhooks work in a free Slack workspace, and the add-on posts to Slack directly, so you don't need Zapier, Make or any other connector. The Slack Notifications add-on itself is free, like every Auto Form Builder add-on.

Are the visitor's answers sent to Slack?

Only if you tick Include answers for that form. By default the message shows just the form name, the site name and a link to the entry. Even with answers on, passwords and CAPTCHA values are never sent, and file uploads appear by file name only.

What happens if Slack is down or the webhook stops working?

Your visitors can still send the form. The message is sent after the submission is saved, so a Slack problem never blocks anyone. The Last Delivery box on the settings page tells you what went wrong, for example that Slack rejected a webhook that was removed.

Related

Build it free with Auto Form Builder

Install from WordPress.org — every core field and feature is included free.