Send Discord Message for Purchases of Tagged Products in Shopify

Keep your team updated in real-time by automatically sending a Discord message when a tagged product is purchased in your Shopify store. This MESA workflow template ensures your team receives instant notifications, making it easy to follow any special instructions or requirements associated with specific products. Improve communication and streamline order handling with automated alerts.

🔧  Setup is needed:
✏️  Add your tag to the Filter
🔌  Connect with Discord
➕  Add your Channel ID


Follow the steps below to set up this workflow.

Step 1

Update the Filter step with a product tag from your store.

Step 2

In the  Discord Create Channel Message step, select an existing connection or create a new connection to connect Discord with MESA.

When creating a new connection, you will need to add your Discord's Client IDClient Secret, and Bot Token

Step 3

Locate and add your Bot Token.

In a separate tab, log in to your Discord account and go to the Applications page within the Developer Portal.

Click on New Application on the top right-hand corner. If you already have an application, select it and skip to Step 3.

Add the Name of your application and click Create.

Step 4

On the left-hand sidebar, click on OAuth2.

Under Redirects, click on Add Redirect and add https://app.getmesa.com/apps/mesa/oauth/redirect-token.

Step 5

Click the Save Changes button.

Step 6

On the left-hand sidebar, click on Bot.

Click on Add Bot in the right-hand corner. If you already have a Bot, you can skip to Step 6 and select your Bot.

When prompted with a modal, click on Yes, do it!

You will see that a wild bot has appeared! Within the same Bot page, scroll down until you see Authorization Flow.

Step 7

Enable Requires OAuth2 Code Grant, Presence Intent, and Server Members Intent. Optionally, you could disable Public Bot.

Step 8

Click on  Save Changes.

Step 9

Within the same Bot page, scroll all the way up and locate your Bot's Token.

Click on the Copy button to copy the Bot's token.

Return to your MESA workflow.

Locate the  Account Credentials section of the Discord Create Channel Invite step.

Paste the copied value into the Bot Token field in MESA.

Step 10

Locate and add your Client ID and Client Secret.

Return to the Discord's Applications page within the Developer Portal and view your newly created application.

On the left-hand sidebar, click on oAuth2.

Locate your Applications' Client Information.

Click on the Copy button under the Client ID and the Client Secret sections.

Return to your workflow on the MESA dashboard. 

Paste these values into their corresponding  Client ID and Client Secret fields.

Step 11

Click on Connect with Discord.

You will be redirected to a Discord screen that asks which server you'd like to add the Bot to. Select a server and click on Continue

If you have not created a server just yet, you can follow this Discord documentation.

Step 12

If you have created a new server, refresh the Discord screen page to see it appear and select it in the Add to Server drop-down menu.

On the next prompted modal, click on Authorize. Your Discord server is now connected to MESA!

Step 13

In the Discord Create Channel Invite step, enter the Channel ID that the customer will receive an invite for.

To locate the Channel ID, log in to the Discord application on your computer.

Make sure you have Developer Mode enabled.

If you don't have Developer Mode enabled, go to your User Settings (gear icon).

On the left-hand sidebar, locate Advanced and toggle Developer Mode on.

Close this view by clicking the x in the top right corner.

Locate your server's channel in the left sidebar and right-click on the channel.

Click on Copy ID.

Return to your MESA workflow.

Paste the copied ID value into the  Channel ID field of the Discord Created Channel Invite step.

Step 14

At the top of or below the workflow, click the Save changes button to save your changes.

Step 15

At the top or bottom of the page, switch Off to On to turn on your workflow to start automating.


Optional Customizations

Adjust the messaging in the Content field of the Discord Channel Message Create step to better fit your team's needs.

✋ Still have questions? We got you. Email us at contact@getmesa.com where actual humans are on standby, ready to help.