Skip to main content

How to Notify Discord on Google Form Submit

Send a message to a Discord channel when a user submits a Google form by following the steps below.

  1. Create Incoming WebHook in Discord:

    • Open your Discord server and go to the channel where you want to receive notifications.
    • Right-click on the channel name, select "Edit Channel," and go to the "Integrations" tab.
    • Click on "Create Webhook" and customize it as needed. Copy the Webhook URL.
  2. Create a WebHook in Form Email Notifications:

    • Open the Form Email Notifications add-on and click on "Setup Webhooks."
    • Click on "Add Webhook" to create a new Webhook.
    • Fill in the following fields in the Webhook creation window:
      • Webhook Name: Discord Integration
      • URL: Paste the Discord Incoming WebHook URL you copied.
      • Request Method: Select POST.
      • Headers: Leave as is with a default header (Content-Type: application/json).
      • Request Body: Use the following JSON template:
        {"content": "New response for Google form <{{ Form Publish Url }}|{{ Form Name }}>"}
    • Click on Save to create your webhook.
  3. Test Your Webhook:

    • You can test the webhook before saving by clicking the "Test" button on the Webhook Editor Window.
    • If you receive a status code as 200, it means your test was successful.
  4. Submit the Google Form:

    • Open the Google form preview by clicking on the Preview button on the top right of the Google form window.
    • Submit the form, and if everything is configured correctly, you should receive a notification in your Discord channel.
  5. Format the Content

    Did you know that you can format the content you sent as part of the request body in step 2 . Discord supports Markdown syntax for content formatting . You can find the full list of markdown syntax Discord supports at https://birdie0.github.io/discord-webhooks-guide/other/discord_markdown.html and https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51 .

    The above resources are publicly available resources and we in no way promote them.

    Lets look at an example of formatting.

    During configuration you are using the following format in the request body to publish your message.

    {"content": "New response for Google form <{{ Form Publish Url }}|{{ Form Name }}>"}

    Now say you want to have "New Response" in Bold.

    So your new request body will be as below .(Please note the double * for the phrase we want in bold)

    "content": "**New response** for Google form <{{ Form Publish Url }}|{{ Form Name }}>"}

note

The process to create webhook and the json format may have changed after this page was written .Please check Discord developer document for more details.