❄️ Winter Sale: 40% OFF AIWU
WINTER_SECRET
Valid until Mar 1st
Discord: How to Send Messages and Embeds - AIWU – AI Plugin for WordPress
Table of Contents
< All Topics

Discord: How to Send Messages and Embeds

Introduction

Discord Integration in AIWU allows you to send automated messages and rich embeds directly to your Discord channels from WordPress. Whether you need to notify your team about new orders, share content updates, or create automated alerts — this integration makes it seamless.

With Discord Integration, you can:

  • Send text messages to any Discord channel via webhooks
  • Create rich embed messages with custom formatting, images, and colors
    • Automate notifications based on WordPress events using Workflow Builder
  • Customize bot username and avatar for each message

This guide will walk you through setting up the Discord integration and using both available functions: Send Message and Send Embed.


Part 1: Setting Up Discord Integration

Before using Discord actions in Workflow Builder, you need to connect your Discord account to AIWU.

Step 1: Create a Discord Account

If you don’t have a Discord account yet, create one at discord.com.

Step 2: Create a Discord Server and Channel

  1. Open Discord and create a new server (or use an existing one)
  2. Create a text channel where you want to receive messages from AIWU
Discord server and settings button of your current text chat

Discord server and settings button of your current text chat

Step 3: Create a Webhook Integration

  1. Go to your Discord channel
  2. Click on the gear icon (Edit Channel) next to the channel name
  3. Navigate to IntegrationsWebhooks
  4. Click New Webhook
  5. Give your webhook a name (e.g., “AIWU Bot”)
  6. Copy the Webhook URL — you’ll need this for AIWU
Discord webhook creation screen showing New Webhook button and Copy URL option

Discord webhook creation screen showing New Webhook button and Copy URL option

Step 4: Add Discord Account in AIWU

  1. Go to your WordPress dashboard
  2. Navigate to AIWUIntegrations
  3. Find the Discord section and click Add Account
  4. Enter a name for this connection (e.g., “My Discord Channel”)
  5. Paste the Webhook URL you copied from Discord
  6. Click Save
AIWU Integrations page with Discord account setup

AIWU Integrations page with Discord account setup


Part 2: Using Discord Action in Workflow Builder

Now that your Discord account is connected, you can use it in your automation workflows.

Adding Discord Action to Your Workflow

  1. Go to AIWUWorkflow Builder
  2. Create a new workflow or edit an existing one
  3. In the workflow editor, add a new node
  4. Go to Actions category
  5. Select Discord Action
  6. Choose the function you need:
    • Send Message — for simple text messages
    • Send Embed — for rich formatted messages
Workflow Builder with Discord Actions node being added

Workflow Builder with Discord Actions node being added


Part 3: Send Message Function

The Send Message function allows you to send simple text messages to your Discord channel.

Configuration Options

FieldDescriptionLimits
AccountSelect your connected Discord accountRequired
MessageThe text content of your messageMax 2000 characters
Username Custom bot username for this message
Avatar URL Custom avatar image URL for the botMust be a valid image URL

How to Configure Send Message

  1. Select Send Message as the function
  2. Choose your Discord account from the Account dropdown
  3. Enter your message text in the Message field
    • You can use dynamic variables from previous workflow nodes
    • Example: New order received: {{order_id}} from {{customer_name}}
  4. (Optional) Set a custom Username for this message
  5. (Optional) Add a custom Avatar URL to change the bot’s profile picture
Send Message configuration panel with example values

Send Message configuration panel with example values

Example Use Cases

  • New WooCommerce Order Alert: Trigger on new order → Send message: “🛒 New order #{{order_id}} — {{order_total}}”
  • New Post Published: Trigger on post publish → Send message: “📝 New article published: {{post_title}}”
  • Form Submission Notification: Trigger on form submit → Send message: “📩 New contact from {{name}}: {{email}}”

Part 4: Send Embed Function

The Send Embed function creates rich, formatted messages with titles, descriptions, colors, images, and more.

Configuration Options

FieldDescriptionLimits
AccountSelect your connected Discord accountRequired
TitleThe embed title (displayed in bold at the top)Max 256 characters
DescriptionMain content of the embedMax 4096 characters
Embed URLClickable link for the titleValid URL
Color (HEX)Left border color of the embedHEX format (e.g., #FF5733)
Thumbnail URL (optional)Small image in the top-right cornerValid image URL
Image URL (optional)Large image below the descriptionValid image URL
Footer Text (optional)Small text at the bottom of the embedMax 2048 characters

How to Configure Send Embed

  1. Select Send Embed as the function
  2. Choose your Discord account from the Account dropdown
  3. Fill in the embed fields:
    • Title: Enter a headline for your embed
    • Description: Add the main message content
    • Embed URL: Add a link that opens when users click the title
    • Color: Set the accent color using HEX code (e.g., #5865F2 for Discord blue)
  4. (Optional) Add visual elements:
    • Thumbnail URL: Adds a small image in the top-right corner
    • Image URL: Adds a large image below the description
  5. (Optional) Add Footer Text for additional context
Send Embed configuration panel with all fields filled

Send Embed configuration panel with all fields filled

Example Use Cases

  • Product Launch Announcement: Title: “🚀 New Product Available!” / Description with details / Image of the product / Link to product page
  • Weekly Report Summary: Title: “📊 Weekly Stats” / Description with metrics / Brand color / Company logo as thumbnail
  • Event Reminder: Title: “📅 Upcoming Webinar” / Description with date/time / Registration link / Event banner image

Best Practices

  1. Keep messages concise: Discord users prefer quick, scannable content
  2. Use emojis: They help messages stand out and convey tone
  3. Set brand colors: Use your brand’s HEX color for embed consistency
  4. Test your webhooks: Always test with a sample message before going live
  5. Use dynamic variables: Leverage Workflow Builder variables to personalize messages
  6. Don’t spam: Be mindful of message frequency to avoid annoying your audience

Troubleshooting

IssueSolution
Messages not sendingVerify webhook URL is correct and not deleted in Discord
Embed not displaying correctlyCheck that all URLs are valid and accessible
Color not showingEnsure HEX code includes # (e.g., #FF5733, not FF5733)
Images not appearingVerify image URLs are direct links to images (ending in .jpg, .png, etc.)

Summary

Discord Integration in AIWU Workflow Builder offers two powerful functions for automated messaging:

  • Send Message: Simple text messages (up to 2000 characters) with optional custom username and avatar
  • Send Embed: Rich formatted messages with titles, descriptions, colors, images, and footer text

Combined with Workflow Builder triggers, you can create powerful automations that keep your team informed and your community engaged.

Scroll to Top