Google Forms
The robomotion googleforms CLI connects to Google Forms API for form and response management. It creates forms, adds and manages questions, retrieves form submissions, and lists available forms.
When to use
- Create new Google Forms with custom questions
- Retrieve and list form responses/submissions
- Manage form questions and settings
Prerequisites
robomotionCLI installed- Package installed:
robomotion install googleforms - Google Forms OAuth2 or Service Account credentials configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install googleforms - Connect with session:
robomotion googleforms googleforms_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion googleforms googleforms_list_responses --client-id "<client-id>" --form-id <form> --session-id "<session-id>" --output json - Disconnect when done:
robomotion googleforms googleforms_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion googleforms create_form --title [--type] --output jsonCreates a new Google Form or Quiz with the specified titlerobomotion googleforms add_open_ended_question --form-id --question-title --1 [--type] --output jsonAdds a text-based question (short answer or paragraph) to a Google Formrobomotion googleforms add_closed_ended_question --form-id --question-title --answers --1 [--type] [--correct-answers] [--1] --output jsonAdds a multiple choice question (radio٫ checkbox٫ or dropdown) to a Google Formrobomotion googleforms get_responses --form-id --output jsonRetrieves all submitted responses for a Google Formrobomotion googleforms open_form --form-url --output jsonOpens an existing Google Form by URL for further operationsrobomotion googleforms get_form --form-id --output jsonRetrieves the full form structure including questions and settingsrobomotion googleforms delete_question --form-id --1 --output jsonDeletes a question from a Google Form by its position index
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)