---
title: "How to Send a Message to a Slack Channel from a WordPress Form?"
url: https://nexterwp.com/docs/send-a-message-to-a-slack-channel-from-a-wordpress-form/
date: 2025-04-17
modified: 2026-04-14
author: "Aditya Sharma"
description: "Want real-time alerts in Slack whenever someone submits your WordPress form? By connecting your form to a Slack channel, you can instantly notify your team, track leads, or manage support..."
image: https://nexterwp.com/wp-content/uploads/2025/04/send-a-message-to-a-slack-channel-from-a-wordpress-form-1024x519.jpg
word_count: 484
---

# How to Send a Message to a Slack Channel from a WordPress Form?

## Key Takeaways

- Nexter Blocks includes a Form block that connects WordPress forms to a Slack channel for real-time alerts.
- Users must provide a Slack User OAuth Token and a Channel Name to enable message notifications in Slack.
- The Form block allows customization of form fields and supports sending messages to a selected Slack channel upon submission.

Want real-time alerts in Slack whenever someone submits your WordPress form? By connecting your form to a Slack channel, you can instantly notify your team, track leads, or manage support requests without missing a beat. 

With the Form block from Nexter Blocks, you can easily connect a Slack channel to your WordPress form.

*To check the complete feature overview documentation of the Nexter Blocks Form block,* *[click here](https://nexterwp.com/docs/add-a-form-in-wordpress/).*

***Requirement  - This block is a part of the Nexter Blocks, make sure it's installed & activated to enjoy all its powers.***

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/blocks/)

## Learn via Video Tutorial

https://www.youtube.com/watch?v=XSN9mE22zxE

For this, you must have a Slack User OAuth Token and a Channel Name.

### Get a Slack User OAuth Token

[Create an account in Slack](https://slack.com) if you don’t already have one. Once you are logged into your account, follow the steps - 

> *Note: You must have a workspace in your Slack account; if not, then *[*create a workspace in Slack*](https://slack.com/intl/en-in/help/articles/206845317-Create-a-Slack-workspace)*.*

1. Go to the [Slack API](https://api.slack.com/).

2. Click on **Your apps** in the top menu.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-1.png)

3. On the next page, click on the **Create an App** button.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-2.png)

4. It will open a pop-up; click on **From scratch**.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-3.png)

5. In the next screen, add your app name.

6. Then select the appropriate workspace and click on the **Create App** button.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-4.png)

7. In the Settings page, click on **OAuth & Permissions** from the left sidebar.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-5.png)

8. In the OAuth & Permissions page, scroll down to the Scopes section. In the **User Token Scopes** section, add the necessary scopes. For example, to read messages, add ***channels: history;*** to post messages, add ***chat: write***.

9. Then scroll up to the page and click on the **Install to (Your Workspace Name)** button.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-7.png)

10. If you are the admin of the workspace, then just click on the **Allow** button, and your app will be installed.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-8.png)

On the next screen, you’ll see your User OAuth Token; copy it into a notepad.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-oauth-9.png)

### Find a Slack Channel Name

In your Slack app, all the names under the **Channel** dropdown are channel names. A Slack channel name starts with #, so copy the channel name where you want to send the messages.

![](https://nexterwp.com/wp-content/uploads/2025/04/slack-channel-name-1.png)

### Use the Form Block

Now, add the Form block to the page and select the appropriate form type, then follow the steps -

1. Add the required form fields and customize them as per your requirements.

2. Then select the main form block and go to the **Action After Submit** tab and select **Slack **from the **Options** dropdown.

3. Now you’ll see the **Slack **tab, open it.

4. Then add your User OAuth Token and the channel name where you want to send the message in the **User OAuth Token** and **Channel Name** fields.

> *Note: Make sure to add the channel name with # in front.*

Now, when a user fills out your form, it will add a message in your selected Slack channel.

## Frequently Asked Questions

**Q: What should I do if my Slack User OAuth Token isn't working?**
A: If your Slack User OAuth Token isn't working, double-check that you've followed the steps to create the app correctly in the Slack API. Ensure that you've added the necessary scopes in the OAuth &amp; Permissions section, such as 'channels:history' for reading messages and 'chat:write' for posting messages. If you're not the admin of the workspace, you may need to request permission to install the app.

**Q: Can I send messages to multiple Slack channels from one WordPress form?**
A: The tutorial does not mention sending messages to multiple Slack channels from one form. However, you can create multiple forms, each configured with a different channel name. This way, you can manage notifications across various channels based on the forms submitted.

**Q: What is the best way to customize my WordPress form before sending messages to Slack?**
A: Customize your WordPress form by adding relevant fields that match your needs, such as name, email, and message. This ensures that the information sent to Slack is useful and actionable. Use the Form block from Nexter Blocks to easily modify the form fields and set up notifications effectively.

**Q: What happens if I forget to include the '#' in my Slack channel name?**
A: If you forget to include the '#' in your Slack channel name, the message will not be sent to the intended channel. Slack requires the channel name to start with '#' to recognize it correctly. Always double-check the channel name format before finalizing your form settings.

**Q: How can I find my Slack channel name for the integration?**
A: To find your Slack channel name, open your Slack app and look for the names listed under the Channel dropdown. Remember that a Slack channel name starts with '#', so copy the channel name exactly as it appears, including the '#', to ensure proper integration with your WordPress form.
