ByteChef LogoByteChef

Google Forms

Google Forms is a web-based application that allows users to create surveys, quizzes, and forms for data collection and analysis, with real-time collaboration and response tracking.

Categories: Surveys and Feedback

Type: googleForms/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Connection Setup

Create OAuth 2.0 Application

Creation of OAuth 2.0 application is documented here.

Enable Google Forms API

  1. In the Google Cloud Console, select your project.
  2. Go to the APIs & Services.
  3. Click on ENABLE APIS AND SERVICES.
  4. Search for "google forms api" in the search bar.
  5. Click on Google Forms API.
  6. Click Enable.

Actions

Get All Responses

Name: getAllResponses

Get all responses of a form.

Properties

NameLabelTypeDescriptionRequired
formIdForm IDSTRINGID of the form whose responses to retrieve.true

Example JSON Structure

{
  "label" : "Get All Responses",
  "name" : "getAllResponses",
  "parameters" : {
    "formId" : ""
  },
  "type" : "googleForms/v1/getAllResponses"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Find Form ID

To find the Form ID, click here.

Get Form

Name: getForm

Get the information about a form.

Properties

NameLabelTypeDescriptionRequired
formIdForm IDSTRINGID of the form to retrieve.true

Example JSON Structure

{
  "label" : "Get Form",
  "name" : "getForm",
  "parameters" : {
    "formId" : ""
  },
  "type" : "googleForms/v1/getForm"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Find Form ID

To find the Form ID, click here.

Get Response

Name: getResponse

Get the response of a form.

Properties

NameLabelTypeDescriptionRequired
formIdForm IDSTRINGID of the form whose response to retrieve.true
responseIdResponse IDSTRING
Depends On formId
ID of the response to retrieve.true

Example JSON Structure

{
  "label" : "Get Response",
  "name" : "getResponse",
  "parameters" : {
    "formId" : "",
    "responseId" : ""
  },
  "type" : "googleForms/v1/getResponse"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Find Form ID

To find the Form ID, click here.

Find response ID

To find the response ID, click here.

Triggers

New Response

Name: newResponse

Triggers when response is submitted to Google Form.

Type: POLLING

Properties

NameLabelTypeDescriptionRequired
formIdForm IDSTRINGID of the form to watch for new responses.true

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

JSON Example

{
  "label" : "New Response",
  "name" : "newResponse",
  "parameters" : {
    "formId" : ""
  },
  "type" : "googleForms/v1/newResponse"
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.


Additional Instructions

How to find form ID

To find a Google Form ID, open the form in edit mode and look at the URL in your browser's address bar. The ID is the long string of letters, numbers, and hyphens located between /d/ and /edit. Example: https://docs.google.com/forms/d/1234567890abcdefghijklmnopqrstuvwxyz/edit.

How to find response ID

To find a Google Form response ID, open the form in edit mode and open the responses tab. Look at the URL in your browser's address bar. The response ID is the long string of letters, numbers, and hyphens located after response=. Example: https://docs.google.com/forms/d/1y7BeYrN3vKgPkbGMT6UYRzAFCxtjaazfvGioEy7Jppw/edit#response=ACYDBNg3TC2BppQ1hidQeFGKW1nSMue5zxOAA4A-A_cUBQ7Hn05pIXAInZ9S6jF-qw

Troubleshooting

Access Blocked: Verification Process Not Completed

Documentation for how to add a test user can be found here

How is this guide?

Last updated on

On this page