Skip to main content

How to Send Webhooks from Google Forms

Form Email Notifications add-on allows you to go beyond sending emails and integrate with other apps using WebHooks. A WebHook is a way for one web application to interact with another by sending messages when certain events occur.

What is a WebHook?

In simple terms, a WebHook is a method for web applications to communicate with each other by sending HTTP requests when specific events happen.

Learning Through Examples

Let's walk through an example of how you can use Form Email Notifications to send a notification to a Google Chat Room when someone responds to a Google form.

  1. Create a new Google Chat Room by following the instructions provided by Google.

  2. Create an incoming WebHook for the Google Chat Room by following the instructions provided.

  3. Copy the Webhook URL from the previous step, as we will use it for configuration in the add-on.

  4. Click on "Setup Webhooks" from the Add-on menu.

  5. In the sidebar, click on "Add Webhook" to create a new Webhook.

  6. Fill in the following fields in the Webhook creation window:

    • Webhook Name: Give a name for easy identification.
    • URL: Paste the Webhook URL you copied earlier.
    • Request Method: Select POST.
    • Headers: Leave as is with a default header (Content-Type: application/json).
    • Request Body: Use the following JSON template:
      {"text" : "You have received a new response for Google form <{{ Form Publish Url }}| {{ Form Name }}>"}

    Click on Save to create your webhook.

  7. Now you can open the Google form preview, submit the form, and if everything is configured correctly, you should receive a notification in your Google Chat Room.

  8. You can use the same process to create multiple Webhooks to interact with other apps such as Slack, IFTTT, Zapier, Integrately, and Automate.io.

Testing Your Webhook

Before saving, it's recommended to test your webhook. In the "Edit Webhook" window, there is a "TEST" button that you can use to verify that your webhook is working correctly before saving. You can also utilize tools like reqbin, requestbin, webhook.site, and Postman for request mocking and testing.