|
|
ADK with Google Forms - Collecting Structured Input
Author: Venkata Sudhakar
Google Forms is a practical way to collect structured data from store staff, vendors, and customers without building a custom UI. ShopMax India uses Forms to run monthly store audits and vendor satisfaction surveys. An ADK agent can create forms programmatically, distribute them via Gmail, and later retrieve and summarise the responses - all in one automated workflow.
The Forms API v1 supports creating forms with questions, retrieving form metadata, and reading responses. The API requires the forms.body scope for creating forms and forms.responses.readonly for reading answers. Unlike Sheets or Docs, the Forms API does not support domain-wide delegation in all configurations - service account access requires the form to be explicitly shared or created by the service account.
The below example shows an ADK agent that creates a store audit form and reads the submitted responses.
It gives the following output,
Store audit form created:
Title : ShopMax Store Audit - Pune - April 2026
Questions: 4 (stock, safety, cleanliness, comments)
Link : https://docs.google.com/forms/d/1FormIdXYZ.../viewform
Share this link with the Pune store manager to begin the audit.
Automate the full audit cycle by chaining three agents: the Forms agent creates the form, the Gmail agent emails the link to store managers in Mumbai, Bangalore, Pune, and Hyderabad, and a third scheduled agent reads the responses after the deadline and writes a consolidated report to Sheets. Use Cloud Scheduler to trigger each step at the right time during the month-end cycle.
|
|