Google Forms API Connector Overview

The Workflows connector defines the built-infunctions that can be used to access other Google Cloud products within aworkflow.

This page provides an overview of the individual connector.There is no need to import or load connector libraries in a workflow—connectorswork out of the box when used in a call step.

Google Forms API

Reads and writes Google Forms and responses.To learn more, see theGoogle Forms API documentation.

Google Forms connector sample

YAML

# This workflow demonstrates how to use the Google Forms connector:# Create, update, get, and delete a Google Form# Expected output: "SUCCESS"-init:assign:-form_title:"sample-form"-create_form:call:googleapis.forms.v1.forms.createargs:body:info:title:${form_title}result:create_form_resp-update_form:call:googleapis.forms.v1.forms.batchUpdateargs:formId:${create_form_resp.formId}body:requests:-updateFormInfo:info:title:"new-title"updateMask:title-get_form:call:googleapis.forms.v1.forms.getargs:formId:${create_form_resp.formId}-list_responses:call:googleapis.forms.v1.forms.responses.listargs:formId:${create_form_resp.formId}pageSize:10-delete_form:call:http.deleteargs:url:${"https://www.googleapis.com/drive/v3/files/" + create_form_resp.formId}auth:type:OAuth2scope:https://www.googleapis.com/auth/drive-the_end:return:"SUCCESS"

JSON

[{"init":{"assign":[{"form_title":"sample-form"}]}},{"create_form":{"call":"googleapis.forms.v1.forms.create","args":{"body":{"info":{"title":"${form_title}"}}},"result":"create_form_resp"}},{"update_form":{"call":"googleapis.forms.v1.forms.batchUpdate","args":{"formId":"${create_form_resp.formId}","body":{"requests":[{"updateFormInfo":{"info":{"title":"new-title"},"updateMask":"title"}}]}}}},{"get_form":{"call":"googleapis.forms.v1.forms.get","args":{"formId":"${create_form_resp.formId}"}}},{"list_responses":{"call":"googleapis.forms.v1.forms.responses.list","args":{"formId":"${create_form_resp.formId}","pageSize":10}}},{"delete_form":{"call":"http.delete","args":{"url":"${\"https://www.googleapis.com/drive/v3/files/\" + create_form_resp.formId}","auth":{"type":"OAuth2","scope":"https://www.googleapis.com/auth/drive"}}}},{"the_end":{"return":"SUCCESS"}}]

Module: googleapis.forms.v1.forms

Functions
batchUpdateChange the form with a batch of updates.
createCreate a new form using the title given in the provided form message inthe request.Important: Only the form.info.title andform.info.document_title fields are copied to the new form. All otherfields including the form description, items and settings aredisallowed. To create a new form and add items, you must first callforms.create to create an empty form with a title and (optional)document title, and then call forms.update to add the items.
getGet a form.

Module: googleapis.forms.v1.forms.responses

Functions
getGet one response from the form.
listList a form's responses.

Module: googleapis.forms.v1.forms.watches

Functions
deleteDelete a watch.
listReturn a list of the watches owned by the invoking project. The maximumnumber of watches is two: For each invoker, the limit is one for eachevent type per form.
renewRenew an existing watch for seven days. The state of the watch afterrenewal isACTIVE, and theexpire_time is seven days from therenewal. Renewing a watch in an error state (e.g.SUSPENDED) succeedsif the error is no longer present, but fail otherwise. After a watch hasexpired, RenewWatch returnsNOT_FOUND.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.