How to Use Discord Webhook for Form Submission Notifications
🔍 WiseChecker

How to Use Discord Webhook for Form Submission Notifications

You want to receive a notification in your Discord server every time someone submits a form on your website. Discord webhooks let you send messages automatically from external apps without using a bot. This article explains how to create a Discord webhook, configure your form tool, and test the integration. By the end, you will have a working system that posts form submissions directly to your Discord channel.

Key Takeaways: Setting Up Discord Webhook for Form Notifications

  • Server Settings > Integrations > Webhooks: Create a new webhook and copy the URL from your Discord server.
  • Form tool webhook field (e.g., Typeform, Google Forms, Zapier): Paste the webhook URL to send data when a form is submitted.
  • JSON payload structure: Customize the message content, embed fields, and username sent to your Discord channel.

ADVERTISEMENT

What Is a Discord Webhook and How Does It Work With Forms

A Discord webhook is a simple HTTP endpoint that accepts JSON data and posts it as a message in a specific channel. You do not need to run a bot or write complex code to use it. When a form is submitted, your form platform or automation tool sends a POST request to the webhook URL. Discord then displays the data as a formatted message, including text, embeds, and file attachments.

The webhook URL contains a unique token that identifies your server and channel. Anyone with this URL can send messages to that channel, so keep it private. Most form builders like Typeform, Google Forms, and JotForm have a webhook option in their settings. For tools that do not support webhooks directly, you can use automation services like Zapier or Make to bridge the gap.

Prerequisites for Using Discord Webhooks With Forms

Before you start, you need these three things:

  • A Discord server where you have the Manage Webhooks permission. This is available for server owners and users with the Manage Server permission.
  • A form tool that supports webhook integration or can connect through Zapier, Make, or a custom script.
  • The webhook URL from your Discord channel. You will copy this URL and paste it into your form tool.

Steps to Create a Discord Webhook and Connect It to a Form

Follow these steps to set up a webhook and link it to your form submission system.

  1. Open Server Settings
    In Discord, go to your server and click the server name at the top left. Select Server Settings from the dropdown menu.
  2. Navigate to Integrations
    In the left sidebar, click Integrations. This page shows all bots, webhooks, and app connections for your server.
  3. Create a New Webhook
    Click the Create Webhook button. A form appears where you can name the webhook and choose the target channel. Select the channel where you want form submissions to appear.
  4. Copy the Webhook URL
    After creating the webhook, click Copy Webhook URL. Save this URL in a secure text file. You will need it in the next step.
  5. Open Your Form Tool Settings
    Go to your form builder or automation service. For example, in Typeform, open your form and click Connect then Webhook. In Zapier, create a new Zap with the trigger set to your form and the action set to Discord webhook.
  6. Paste the Webhook URL
    In the form tool, paste the Discord webhook URL into the designated field. If the tool asks for a URL endpoint, this is where the data will be sent.
  7. Test the Connection
    Submit a test entry on your form. Switch back to Discord and check the channel you selected. You should see a new message with the form data. If no message appears, verify the webhook URL and the form tool settings.

Customizing the Webhook Message Format

By default, the webhook message shows raw JSON data. To make it readable, you can send a formatted JSON payload with an embed. Here is an example payload structure:

{
  "content": "New form submission received",
  "embeds": [{
    "title": "Contact Form",
    "fields": [
      {
        "name": "Name",
        "value": "{{form_name}}",
        "inline": true
      },
      {
        "name": "Email",
        "value": "{{form_email}}",
        "inline": true
      }
    ],
    "color": 5814783
  }]
}

Replace {{form_name}} and {{form_email}} with the actual field placeholders from your form tool. The color value is a decimal number representing the embed bar color. You can also set a custom username and avatar by adding "username": "Form Bot" and "avatar_url": "https://example.com/avatar.png" at the top of the payload.

ADVERTISEMENT

If Discord Webhook Does Not Send Form Notifications

No message appears in the channel after form submission

This usually happens when the webhook URL is incorrect or the form tool did not send the request. Double-check the URL you copied from Discord. In the form tool, look for a test or send button that triggers a manual request. Also confirm that the webhook is enabled in Discord. Go to Server Settings > Integrations, find your webhook, and verify the channel is set correctly.

Webhook sends a message but it shows raw JSON

The form tool sent the data as plain text instead of a structured embed. Use an automation service like Zapier to transform the data into a JSON payload with an embed object. In Zapier, you can use the Code step to format the payload before sending it to Discord. Alternatively, some form builders allow you to edit the webhook payload format in their advanced settings.

Webhook works but the message is slow to appear

Discord webhooks deliver messages in real time. If you see a delay, the issue is likely on the form tool side. Check the form tool’s processing time or any queuing settings. For example, Google Forms with a Zapier integration may have a few seconds of delay due to polling intervals. Use a tool that triggers instantly, such as Typeform or a custom script, to reduce lag.

Discord Webhook vs Bot: Choosing the Right Tool for Form Notifications

Item Webhook Bot
Setup time Under 5 minutes 30 minutes to 1 hour
Permission requirements Manage Webhooks in server Manage Server and OAuth2 scopes
Customization Limited to JSON payload Full control via code
Rate limits 30 requests per 60 seconds per webhook Varies by bot setup
Best use case Simple notifications from external apps Complex workflows with user interactions

You can now receive Discord notifications for every form submission using a webhook. Start by creating the webhook in your server and configuring your form tool to send data to the URL. For advanced formatting, use a JSON payload with embeds to display fields cleanly. If you need to trigger actions like assigning roles or sending follow-up messages, consider building a dedicated bot with the Discord API.

ADVERTISEMENT