Skip to content
Digital Inspiration DocsDigital Inspiration Docs

How to Send Google Form Responses to a Webhook

A webhook is a web address that another app gives you. When a response arrives, Form Notifications sends the answers to that address, and the other app does something with them: it adds a contact, opens a ticket or starts an automation.

Use a webhook to connect Google Forms to a CRM, a help desk, Zapier, Make, n8n or your own server.

Priya’s support team at Juniper Home uses a CRM that can receive tickets through a web address. Before, someone copied each form response into the CRM by hand. With a webhook, a ticket appears in the CRM a few seconds after the customer submits the form.

The CRM expects a POST request with a JSON body and a secret token:

Part Value
Method POST
URL https://crm.juniperhome.com/api/tickets
Authorization Bearer token
Body JSON with name, email, topic, message, ticket

Get these from the app that will receive the data:

  • The webhook URL. It must start with https:// or http://.
  • The method it expects. Most webhooks expect POST.
  • How it checks who is calling, if it does: a token, an API key or a user name and password.
  • The names of the fields it expects.

To try a webhook before you connect a real app, get a test address from webhook.site. It shows every request that it receives.

  1. Open the add-on in your form.

  2. Click Create and choose Webhook Notification.

  3. Type a name in Notification Name, such as New request to the CRM.

  4. Choose the method in Method: GET, POST, PUT, PATCH or DELETE.

  5. Paste the address in Request URL.

    Webhooks for Forms screen with the notification name, the POST method and the request URL, above the tabs Query Params, Authorization, Headers and Request Body
    Method (1) and Request URL (2). The four tabs below hold the rest of the request.

A green dot next to a tab name means that the tab has content.

Query parameters are added to the end of the URL, after a ?. Use them when the receiving app reads values from the address.

  1. Open the Query Params tab.
  2. Type a name under Key and a value under Value. A new empty row appears below.
Key Value The URL becomes
source google-forms …/api/tickets?source=google-forms
form {{Form Id}} …/api/tickets?source=google-forms&form=1FAIpQL…

Open the Authorization tab and choose how the receiving app checks the request in Auth Type.

Authorization tab of the webhook with Bearer Token chosen as the auth type and a token field
Choose the auth type, then fill in the fields that appear.
Auth Type Fields What the add-on sends
No Auth None Nothing extra
API Key Add to, API Key, API Value The key and value as a header, or as a query parameter
Bearer Token Bearer Token The header Authorization: Bearer followed by your token
Basic Auth Username, Password The header Authorization: Basic with the encoded name and password
OAuth 2.0 Access Token The header Authorization: Bearer followed by your token

For API Key, type the name of the key in API Key, such as X-API-Key, and the secret in API Value.

OAuth 2.0 sends the access token that you paste. The add-on does not renew the token. If the token of your app expires after an hour, use an API key or a token that doesn’t expire.

Open the Headers tab to send extra headers, such as X-Team: support. A header name can’t have spaces. The add-on replaces a space with a hyphen.

You don’t need to add Content-Type. The add-on sets it from the content type that you choose in the next step.

The body carries the answers. Open the Request Body tab.

  1. Choose the format in Content Type.

  2. A new webhook starts with one row for each question and built-in marker. Delete the rows that you don’t need with the trash icon, and rename the keys to the field names that the receiving app expects.

    Request Body tab with the content type application/json and five key and value rows that map name, email, topic, message and ticket to markers
    Each row is one field. The key is the name the other app expects, and the value is a marker.
  3. Click Save.

Content Type Use it for How you write the body
application/json Most modern apps and automation tools Key and value rows, or raw JSON
application/x-www-form-urlencoded Older apps and HTML form handlers Key and value rows
text/plain, text/html, application/xml, application/javascript Apps that expect that format One text box, Request Body

For JSON and form bodies, the add-on adds one field of its own: created_at, the time of the request in milliseconds.

For Daniel’s request, the CRM receives:

{
"created_at": "1795536720000",
"name": "Daniel Okafor",
"email": "daniel@example.com",
"topic": "Returns",
"message": "The lamp arrived with a cracked base.",
"ticket": "212"
}

The rows make a flat list of fields. For nested JSON, turn on Use Raw Input and type the JSON yourself:

{
"ticket": {
"subject": "{{Topic}} request from {{Your name}}",
"requester": { "name": "{{Your name}}", "email": "{{Submitter Email Address}}" },
"tags": ["google-forms", "{{How urgent is it?}}"]
}
}

Put each marker inside quotes. The add-on fills markers at every level of the JSON. An answer with a quote or a line break can’t break the JSON, because the add-on makes each value safe first.

The add-on has no test button. Submit the form to test.

  1. Click the Preview icon in the form editor and submit a response.
  2. Check that the request arrived in the receiving app, or at webhook.site.
  3. If nothing arrived, see the troubleshooting section.

To send the same response again while you adjust the webhook, use Resend Notifications.

Markers work in the URL, the query parameters, the headers and the body. Webhooks have a few rules of their own:

Marker In a webhook
A question title The answer on one line. Line breaks and tabs become spaces.
{{All Answers}} The questions and answers as plain text
{{All Answers HTML}} The same table of answers that an email shows, as HTML
A Checkboxes answer The ticked options, with <BR/> between them
A File upload answer HTML links to the files in your Google Drive

Every value is sent as text. {{Response Number}} arrives as "212", not as the number 212.

  • A form can have several webhooks. The add-on sends them all at the same time.
  • The add-on sends each request once. It does not retry if the receiving app is down or answers with an error. Paid plans check once an hour for recent responses that were never processed and send them again. A request that the other app rejected is not one of them.
  • Scriptlets, such as {% if %}, are not run in webhooks. Send the raw answers and let the receiving app decide.
  • An exported webhook holds your token or password as readable text. Keep the file safe.
  • Slack, Discord and Google Chat have their own notification types, which are simpler than a webhook. See Slack, Discord and Google Chat.

“Provide a valid URL for HTTP Requests”

Section titled ““Provide a valid URL for HTTP Requests””

Request URL must start with http:// or https:// and have no spaces.

“Please enter valid JSON in the request body.”

Section titled ““Please enter valid JSON in the request body.””

Use Raw Input is on and the text is not valid JSON. Check for a missing comma or quote, and for curly quotes that a word processor added. Paste the text into a JSON checker to find the line.

“API Key and Value fields are required for Authorization”

Section titled ““API Key and Value fields are required for Authorization””

Auth Type is API Key and one of the two boxes is empty. The same kind of message appears for Basic Auth without a user name or password, and for a token type without a token.

  1. Send the webhook to a test address from webhook.site. If it arrives there, the add-on works, and the problem is the URL, the authorization or the field names of the real app.
  2. Check your plan. Webhooks run only on a paid plan or during the trial.
  3. Check that notifications are on. Open Options, choose Form Troubleshooting and click Restart.

The authorization is wrong. Check the token for spaces at either end, and check whether the app wants the key in a header or in the query string.

The body is not what the app expects. Compare your keys with the app’s field names, and check the content type. Many apps accept only application/json.

The add-on sends every value as text. If the receiving app accepts only real numbers, convert the value there, or send the webhook through an automation tool that can change the type.