Skip to main content

GFormBot

Test your Google Forms before they go live.

Create fictional responses or bring your own spreadsheet. GFormBot checks the answers, follows branching sections, and submits when you’re ready.

Install and get started →   ·   Watch the demo   ·   See supported forms

Windows · macOS · Linux   |   Python 3.10+

See it in action

You built a workshop signup form. Will both session choices work? Can someone leave the notes blank? Give GFormBot a few example rows and check the batch before sending it.

An offline demo runs gformbot prepare with a three-row workshop CSV. The CLI saves gformbot-responses.json and prints the preview command. No submissions are made.

The demo runs the real prepare command against an offline form fixture. It checks three rows and saves a response plan without submitting.

Get started

1. Install GFormBot

The features on this page are in the GitHub build. Check the PyPI release history before installing with python -m pip install gformbot.

With Python 3.10 or newer and Git installed, run these commands in PowerShell or Terminal.

python -m pip install "git+https://github.com/yogeshkrishna/google_form_test_bot.git"
python -m gformbot --version

If your Python command is python3 on macOS or Linux, or py on Windows, use that in both lines. Running GFormBot through the same Python you used to install it also works when the short gformbot command is missing from PATH.

Installing without Git

Download the source ZIP, extract it, and open a terminal in the extracted folder containing pyproject.toml. Run python -m pip install . followed by python -m gformbot --version.

2. Open the guided menu

python -m gformbot

Use the arrow keys and Enter. Choose Start a new form and paste the respondent link you would share with someone answering the form. GFormBot accepts forms.gle links and full Google Forms responder URLs. Use a form you own or have permission to test. A test copy keeps sample responses out of your live spreadsheet.

Choose View this form's questions to see the sections, choices, and rules. For a first AI run, choose Generate answers with AI → Create new fictional responses, enter 1 for the count, and add instructions if you like. To try a run without AI, use the three-row CSV example below.

3. Review, then submit

Once the sample appears, choose Review or edit responses to open the local editor in your default browser. Search questions, move between responses, and fix any flagged answers. You can also export the remaining rows as a CSV. Choose Submit N responses when you want Google Forms to receive the batch.

Quick submit and the generate command send answers automatically. Choose Start a new form for a review step, or use prepare to save answers without sending any.

Three ways to get answers

Choose AI, CSV, or random answers. Validate sections and rules. Review, edit, export, or submit.

Answer source What it does When to use it
Generate answers with AI Writes new fictional responses using the form’s wording, choices, rules, and your instructions. An optional guide CSV provides examples and choice patterns. You want varied text answers or a realistic test batch.
Use my own answers Takes complete rows from a CSV or reopens a saved response plan. Each row’s answers stay together. You already have examples, need repeatable tests, or want precise control.
Pick answers randomly Samples eligible choices and can use weights or patterns from existing rows. AI can help finish written or date answers on mixed forms. You mainly need to exercise choice questions and branches.

Use --like guide.csv to guide new AI-written answers. Use --data answers.csv to work with the answers in the file. GFormBot preserves imported CSVs and saved plans supplied as input.

Try the three-row workshop demo yourself

Create a test form with two questions in this order. Make Session a required multiple-choice question with Morning and Evening, and make Notes an optional paragraph. Copy the following into workshop.csv in your terminal’s current folder.

Q1,Q2
Morning,First workshop
Evening,Bringing my laptop
Morning,

Run these commands with your responder link in place of FORM_URL.

python -m gformbot prepare "FORM_URL" --data workshop.csv -n 3
python -m gformbot preview gformbot-responses.json

Use the filename printed by prepare in both commands if it differs from the example. preview opens the saved JSON in your system’s default app. For the visual editor, open the wizard, start the same form, and choose Use my own answers → Open saved responses → Review or edit responses.

Run this command when you’re ready to send the three saved rows.

python -m gformbot generate "FORM_URL" --data gformbot-responses.json

Built for forms with more than one path

Follow the route each answer picks. If “Evening” goes to a different section, GFormBot checks the questions on that route. It handles skipped sections and early submission. A looping or unclear route stops with an error.

Catch bad answers before sending them. Required questions, choice lists, checkbox counts, date formats, grid rules, and supported text and number rules use the same validation for CSV input, generated answers, and edits.

Know what Google confirmed. GFormBot records a submission as confirmed after Google returns a completion page. It shows the completion message and follow-up links when available. Use log --followups to find them later.

Pick up after an interruption. Choose Continue response batch to reopen an unfinished submission. GFormBot skips confirmed rows. If the connection drops after a request was sent and the outcome is unclear, check your form’s Responses tab before deciding whether to retry.

What forms work?

GFormBot supports public respondent forms that accept anonymous answers. Use it for testing surveys, signup forms, questionnaires, and spreadsheet workflows you have permission to test.

Question family Supported inputs
Text Short answers, paragraphs, typed emails, numbers and ranges, character limits, and supported patterns
Choices Multiple choice, dropdowns, checkboxes, explicit Other text, and checkbox selection limits
Ratings Linear scales and icon ratings, including stars, hearts, and thumbs
Dates and times Dates with or without year or time, clock times, and durations
Grids Multiple-choice grids and checkbox grids, including required rows and column rules
Sections Branching, skipped sections, early submission, descriptions, and instructions

Forms requiring a Google login, verified account email, or one response per account cannot be submitted. File-upload questions, unknown validation rules, and unsupported controls on the chosen route stop execution. Images and videos appear in form inspection for you to review. Put any relevant observations in Extra instructions if AI needs them.

CSV headers, checkboxes, grids, and dates
  • Map columns by question title, Q1 / Q2, or entry.ID. For a grid, use the row’s entry ID or the exported header Question [Row].

  • Match choice labels as written on the form. Use a JSON array inside a quoted CSV cell for checkboxes whose labels include commas.

    Q1,Q2
    Student,"[""Roads, footpaths or crossings"",""Bus stops""]"
    
  • An explicit Other answer uses {"choices":["Python"],"other":"Rust"}. For a single-choice Other answer, leave choices empty. GFormBot reports unknown option labels for correction.

  • Use YYYY-MM-DD for dates and YYYY-MM-DD HH:MM for dates with times. For yearless dates, use MM-DD with an optional time. Set --date-order mdy or --date-order dmy if dates from Google’s CSV export are ambiguous.

  • Use HH:MM for clock times and HH:MM:SS for durations. Clock times have minute precision. Blank optional fields can stay blank.

  • Supported text validation includes contains/does-not-contain, length limits, email, URL format, and a subset of Google Forms regular expressions. Unknown patterns and rules get an explicit error.

How AI generation works

GFormBot gives ChatGPT the form description, question wording, choices, rules, and your instructions. If you use a guide CSV, it can also send choice frequencies and up to six sample rows. Give it the context a person filling out your test form would need.

python -m gformbot prepare "FORM_URL" -n 5 -m "Write fictional workshop signups. Vary the session and use short notes only when they add something."

GFormBot adjusts the size of each AI request to fit the job. Large forms are split into groups of questions, with relevant earlier answers carried forward. Each completed response goes through form validation. The tool can ask the model to correct specific invalid answers and review whether related answers agree. It also checks that generated contact fields look plausible and stay distinct within the batch. Review the results for meaning and accuracy before using them.

GFormBot saves accepted work as generation progresses. If a connection or service limit interrupts the run, use the printed prepare --resume command to continue the draft. Submission recovery is separate and lives under Continue response batch.

Set exact rules for your test data

Pass --quality policy.json to prepare or generate when you need more control over AI answers. This example is for a form with a name in Q1, email in Q2, and phone in Q3.

{
  "style": "Use fictional workshop attendees and concise notes.",
  "fields": {
    "Q2": {"email_domain": "workshop.example", "name_from": 1},
    "Q3": {"min_digits": 10}
  }
}

Policies can also fix exact values, allow specific choices, set route-specific values, request choice coverage, link related questions for review, or supply evidence you gathered from the form.

AI availability and privacy

AI mode uses ChatGPT’s unofficial guest service over HTTPS. Guest access can be limited or unavailable. CSV and saved-plan workflows work without AI. The form content, your instructions, and guide examples may leave your device in AI mode. Use fictional data and review anything you share. Form images and videos stay in inspection.

Saved plans, AI drafts, configuration, and run logs are local files. They can contain answers and form details. Keep them in a private folder and retain the local submission journal if you need duplicate protection when resuming. GFormBot preserves plans saved with prepare and files you supply. It can clean up temporary plans it created once Google confirms the entire batch.

Command reference

I want to… Run
Open the guided menu python -m gformbot
Save answers for later python -m gformbot prepare "FORM_URL" -n 5
Prepare my CSV without sending it python -m gformbot prepare "FORM_URL" --data answers.csv -n 5
Open a saved JSON plan python -m gformbot preview "gformbot-responses.json"
Submit a saved plan python -m gformbot generate "FORM_URL" --data "gformbot-responses.json"
Generate with a guide and submit python -m gformbot generate "FORM_URL" --like guide.csv -n 5
Resume AI generation python -m gformbot prepare "FORM_URL" --resume "DRAFT_PATH"
Check setup python -m gformbot doctor --check
See recent run results python -m gformbot log --last 20
Find form directions and completion links python -m gformbot log --followups
View or edit configuration python -m gformbot config --show / python -m gformbot config --edit

Add --help after a command for its flags. -n accepts 1–500 and uses the saved count or one response when omitted. A saved JSON plan carries its own remaining count. Use -m for AI instructions and --like for a guide CSV. --data uses your supplied answers.

Setup and navigation tips
  • Missing command after installation? Run python -m gformbot with the same Python command you used to install it.
  • File picker missing? The wizard’s file picker needs a graphical desktop and Python’s Tk support. On Linux this may require python3-tk. Commands can take paths directly.
  • Want to go back one step? Press Backspace twice. In a text field, both presses need to start with the field empty.
  • Only need to see the questions? Choose More options → View a form's questions.
  • Using a headless machine? Run the commands with explicit paths. Inspection, generation, and submission use HTTPS without Selenium or browser drivers. The visual response editor opens in your default browser.

Ready to test a form? Install GFormBot and start with one response.

Changelog · Contribute · Report an issue · Security

Apache 2.0 license · MIT notice for the ChatGPT protocol adaptation

Metadata

Release files for gformbot 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gformbot 0.4.0
File Size Uploaded Provenance Actions
gformbot-0.4.0.tar.gz 133.1 kB Without provenance Details for gformbot-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gformbot 0.4.0
File Interpreter ABI Platform Actions
gformbot-0.4.0-py3-none-any.whl Python 3 none any Details for gformbot-0.4.0-py3-none-any.whl

Total release size: 272.9 kB

Release files / gformbot-0.4.0.tar.gz

Download URL gformbot-0.4.0.tar.gz
Size 133.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e11e0891c68342913ee45fe579b95c6a8ad676f9a5694c0ffa4f06b286866f50
BLAKE2b-256 checksum
How to use checksums
013eb6f90cf4bd80a9671565f76196d67103bb52730fb26c0b05108fd7fbd0a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / gformbot-0.4.0-py3-none-any.whl

Download URL gformbot-0.4.0-py3-none-any.whl
Size 139.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e48289e181fc88355a068f1f6dcc7daf18faff944b4f15c0687058ce67999cae
BLAKE2b-256 checksum
How to use checksums
342964c6158d0b33ebeef2379640e3d0646022d9a87c2f5f0bddf7a17b1c161c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for gformbot 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page