Learn how to automate sending Discord channel messages for new messages posted in Slack channels using Pabbly Connect. Follow our detailed tutorial for seamless integration.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Slack and Discord Integration

To start the process of sending Discord channel messages for new messages posted in Slack channels, you need to access Pabbly Connect. Begin by creating a free account on the Pabbly Connect dashboard, where you can set up your automation.

Once logged in, click on ‘Create Workflow’ and name your workflow, such as ‘Slack to Discord’. This will help you identify the automation later. After naming the workflow, click on ‘Create’ to proceed.


2. Configuring the Trigger Event in Slack

In this section, you will set up the trigger event within Pabbly Connect to capture new messages from your Slack channel. In the trigger window, search for Slack and select it as the app.

From the dropdown menu, choose ‘New Message’ as the trigger event. Next, click on ‘Connect’ and select ‘Add New Connection’. This will prompt you to connect your Slack account with Pabbly Connect. Click on the ‘Connect with Slack’ button and follow the prompts to authorize the connection.

  • Select the type of token: User-based or Bot-based.
  • Authorize Pabbly Connect to access your Slack account.
  • Choose the specific Slack channel to monitor for new messages.

Once the connection is established, you can test the trigger by sending a message in your selected Slack channel. This will allow Pabbly Connect to capture the details of the message.


3. Retrieving Message Details from Slack

After setting up the trigger, Pabbly Connect will capture the details of the new message sent in Slack. You will see information such as the username of the sender, message text, and timestamp in the response.

To enhance the message being sent to Discord, you may want to retrieve the sender’s name using the user ID captured in the previous step. This is done by adding another action step in Pabbly Connect, where you select Slack again and choose ‘Get User by ID’ as the action event.

  • Map the user ID from the previous Slack message response.
  • Test this step to retrieve the user’s real name.

Once you have the user’s real name, you can use it when sending the message to the Discord channel, ensuring the message appears as if it came from the original sender.


4. Sending Messages to Discord Channel

The final step in the automation process involves sending the captured message from Slack to your Discord channel using Pabbly Connect. Add a new action step and search for Discord. Select it as the app and choose the action event ‘Send Channel Message’.

To connect Discord with Pabbly Connect, you will need to create a webhook URL in your Discord server. Navigate to your Discord server settings, go to Integrations, and create a new webhook. Select the channel where you want to send messages and copy the webhook URL.

Paste the webhook URL into Pabbly Connect. Map the message text from the Slack response to the message field. Optionally, customize the bot name to reflect the original sender’s name.

After setting this up, test the action step, and if successful, your automation will be complete. Now, every time a new message is posted in Slack, it will automatically be sent to your Discord channel.


5. Testing the Automation Workflow

Once you have configured everything in Pabbly Connect, it’s time to test the automation workflow. To do this, send a new message in your Slack channel. Wait for a few minutes, and check your Discord channel to see if the message appears.

Pabbly Connect operates on a polling mechanism, meaning it will check for new messages every 10 minutes. Therefore, it may take a short while for the message to appear in Discord. Ensure that your automation is functioning correctly by verifying that the message is delivered accurately.

If everything is set up correctly, you will see the same message appear in your Discord channel, sent by the bot with the appropriate name. This confirms that your integration between Slack and Discord via Pabbly Connect is successful.


Conclusion

In this tutorial, we explored how to automate sending Discord channel messages for new messages posted in Slack channels using Pabbly Connect. By following these steps, you can streamline communication between different platforms efficiently. This automation saves time and ensures that messages are consistently shared across channels.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.