How to Use Gemini content classification in Factory Droid
Gemini evaluates supplied text, images, audio, video, or PDFs and returns yes/no probabilities, category decisions, or rubric scores. Use it to classify content or grade evidence against explicit rules.
Prompts to try with Gemini content classification in Factory Droid
Copy an example into Factory Droid, or ask in your own words.
Retrieve five open issues from pandas-dev/pandas and use Gemini content classification on each issue's text to choose documentation, installation, runtime error, or other. Save the decisions and candidate probabilities as JSON in this project.
Retrieve Python's Errors and Exceptions tutorial and use Gemini content classification to score its examples from 0 for no runnable example to 3 for an example with recovery behavior. Save the score and probabilities in the project's research notes.
Retrieve Stripe's webhook documentation and use Gemini content classification to estimate whether it supports the claim 'Webhook event delivery order is guaranteed.' Add the returned probability to a documentation review fixture.
Retrieve NASA's latest Perseverance announcement and use Gemini content classification to choose science finding, rover operations, mission planning, or other. Store the classification and probabilities in a sample content queue.
Retrieve the risk factors section of Apple's latest annual report and use Gemini content classification to score its relevance to supply chain research from 0 for unrelated to 3 for directly relevant. Save the rubric results in this project.
How to set up Gemini content classification in Factory Droid
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.
droid mcp add spiral https://api.spiral.ai/mcp --type http
- Sign in
Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.
- Check it
Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.
droid mcp list
Use the Spiral skill
- Send Factory Droid this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Gemini content classification
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "gemini", "model": "gemini-decision-1", "input": { "input": "<input>", "questions": {} } }'
Then paste one of the prompts above: Factory Droid finds Gemini content classification on Spiral, shows the price and runs it.
Gemini content classification providers and prices
Spiral runs Gemini content classification through Gemini. Open a card for today's price, with every fee included.
What can you do with Gemini content classification in Factory Droid?
Turn public issue reports into categorized work queues in your project. Gemini's category probabilities and rubric scores give your code explicit values for routing and review.
Route public bug reports
Classify supplied issue text into documentation, installation, runtime error, or other, then use candidate probabilities to prioritize review.
Sort research announcements
Assign supplied NASA announcements to mission updates, research findings, launch operations, or other for an editorial queue.
Grade documentation coverage
Score a supplied technical guide against defined levels for prerequisites, examples, error handling, and troubleshooting.
Label public product photos
Evaluate supplied catalog images for visible packaging, product views, and background characteristics using separate yes/no questions.
Check claims against supplied evidence
Pair a draft product claim with its technical documentation and estimate whether the supplied evidence supports the claim.
Triage public company disclosures
Classify supplied filing excerpts by operational, regulatory, cybersecurity, or supply chain risk and score relevance to a defined research brief.
More on Gemini content classification and Factory Droid
Gemini content classification in other agents
Questions about Gemini content classification in Factory Droid
Can Factory Droid use Gemini content classification?
Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Gemini content classification like any built-in tool.
How much does Gemini content classification cost in Factory Droid?
Input $0.13 per 1M tokens; no output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.
Do I need a Gemini account to use Gemini content classification in Factory Droid?
No. Spiral runs Gemini content classification on its own Gemini account. You sign in to Spiral once and never paste a key.
How long does it take to set up Gemini content classification in Factory Droid?
About two minutes: add the server, then sign in, then check it.
Does Factory Droid wait while Gemini content classification runs?
Gemini content classification runs in the background. Factory Droid starts the run, checks on it and gives you the json when it's ready.
Where does the content being evaluated come from?
You supply the content Gemini evaluates. Google documents support for text, images, audio, video, and PDFs in one shared input.
How much content can Gemini evaluate in one request?
Google documents a context limit of 256K tokens and up to 1,000 independent questions against the shared input.
Does a yes/no result include uncertainty?
Gemini returns an estimated probability of yes between 0.01 and 0.99, plus confidence. The API leaves the decision cutoff to your application.
Is a rubric score always a whole number?
The returned score is a probability-weighted average, so it can fall between rubric levels. The response also includes the legend, probabilities, and confidence.
Can a request return no classifications?
Yes. Google's reference states that blocked input returns no answers.
Start using Gemini content classification in Factory Droid
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Factory Droid:
set up https://spiral.ai/SKILL.md


