View as Markdown
Google Forms icon

Google Forms ACTION

Create Choice Question

Adds one multiple-choice (radio), checkbox, or dropdown question to a Google Form. Use it when the user asks for a question where responders pick from a fixed list of answers. To add a short-answer or paragraph question, use Create Text Question instead. When index is omitted the question is appended to the end of the form (the form is fetched to count its items; if someone else edits the form in between, the call fails instead of inserting mid-form, so call it again). includeOther works only with RADIO or CHECKBOX; the tool throws an error for DROP_DOWN. Each call adds exactly one question; call it again to add more. Returns the new question's itemId, questionId, index, title, type, options (the choice values), and required. Example: formId=1FAIpQLSdExampleFormId, title=Preferred meeting day, type=RADIO, options=[Monday,Wednesday,Friday], required=true → returns the new item's itemId and its position in the form. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Forms account once, then configure and run Create Choice Question from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_forms-create-choice-question",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_forms: { authProvisionId: "apn_xxxxxxx" },
    formId: "Form ID",
    title: "Title",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Choice Question inputs
Property Type Description
formId Form ID string
The ID of the form to add the question to, e.g. 1FAIpQLSdExampleFormId. It is the formId returned by Create Form or Get Form.
Required
title Title string
The question text shown to responders, e.g. Preferred meeting day.
Required
type Type string
How responders choose, e.g. RADIO: RADIO (pick one), CHECKBOX (pick several), or DROP_DOWN (pick one from a dropdown).
Required
options Options string[]
The answer choices, in display order, e.g. ["Monday", "Wednesday", "Friday"]. Provide at least one.
Required
description Description string
Optional helper text shown under the question, e.g. Pick the day that suits you best.
Optional
required Required boolean
Set to true to make an answer mandatory, e.g. true. When omitted the question is optional.
Optional
includeOther Include Other boolean
Set to true to add a free-text "Other" choice, e.g. true. Only valid with RADIO or CHECKBOX. When omitted no "Other" choice is added.
Optional
shuffle Shuffle boolean
Set to true to show the options in random order to each responder, e.g. true. When omitted the order is kept.
Optional
index Index integer
0-based position to insert the question at, e.g. 0 for the top of the form. Must be between 0 and the current number of items. When omitted the question is appended to the end.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
google_forms-create-choice-question
Version
0.0.1
App
Google Forms
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes