Google’s Decisions API Can Route a Return. Which Rule Wins?
Google’s Decisions API can assess a return photo and a customer note in one pass. When the answers point to competing queues, the application has to pick a winner.
Google introduced the Gemini Decisions API on November 11, letting a developer send a photo and a customer note together and ask several questions about them in one call. Picture a return request for a blue kettle with a split handle and a note that says the customer ordered red: a warehouse team can ask about damage and a possible fulfillment error at the same time, but its software still has to decide where to send the box. Google’s launch announcement
One photo, two valid answers
Start with a hypothetical retailer that inspects damaged appliances in one area and reconciles wrong-item shipments in another. The customer uploads a photo of the kettle and its packaging. The application adds the expected color from the order record alongside the customer’s description. A yes/no question asks whether the handle is visibly damaged. A separate question asks whether the pictured item appears to differ from the item on the order. Both can come back affirmative. The package still needs a first stop.
That is an ordinary outcome for Gemini Decision 1, the model behind the endpoint. It scores independent questions against a shared input in one pass. The request can mix yes/no questions, fixed-choice questions and ordered rubrics, and Google’s launch post says the model returns probabilities and confidence scores. Independence has a specific meaning here: the wrong-item question sees the same evidence as the damage question, but it cannot read the damage answer. Even if the two questions sit next to each other in the request, one cannot act as an instruction for the other. Google’s launch announcement · Google’s developer codelab
Put the queue order in code
Say the warehouse needs damaged appliances inspected before anyone decides whether they can go back into stock. In that operation, visible damage sends the item to inspection first. A possible fulfillment error travels with it as a flag for the team that reconciles shipments. On an intact item, the same fulfillment flag can send the package directly to reconciliation. The two model answers can be identical across warehouses while the correct first stop varies with how each operation handles its inventory.
Google’s codelab demonstrates the same division of labor with support tickets. It asks multiple questions in one call, then applies priority rules to the returned answers in application code. Cloudflare’s model documentation shows the response shape, with the answers keyed by question name. For the warehouse, keeping the individual findings lets the software assign a primary queue without dropping relevant evidence. The person who opens the inspection task can see that the handle is broken and that the color needs reconciling. Google’s developer codelab · Cloudflare’s Gemini Decision 1 documentation
A single question asking for the best destination would be a reasonable baseline. Give it the same queue descriptions and the same evidence, then inspect the cases where its chosen route differs from the application’s. The simplest useful comparison is a policy change. If the warehouse starts sending damaged wrong-item returns to a dedicated intake desk, named findings can feed the new rule as they are. A destination-only classifier would need the new desk and its criteria added to the question, followed by another run on the cases that might move.
Give each question the facts it needs
The photo can support a finding about the handle. The expected color should come from the order record, where the retailer can distinguish an actual SKU or variant from a color mentioned in a note. Those inputs have different jobs. One practical setup puts the order record and the customer’s statement in separate text blocks with clear labels, alongside the photo. Where the record already establishes a fact, such as which variant was ordered, the application can carry that fact straight into its rules.
The questions also need language that handles missing evidence. A yes/no question about whether a split is visible cannot tell the warehouse that the handle is intact when the photo shows only the front of the box. A separate question about whether the handle is in view gives the app a way to request another image in that case. For a color mismatch, test the photo with and without the packaging label visible. If the product and its carton disagree, staff should be able to see which evidence the intake process had when it chose a queue.
Test the transfer, from upload to queue
A useful trial starts with resolved returns that include the original photo and customer note, the order facts available at intake and the queue the package actually needed. Include cases with both defects and fulfillment errors, as well as cases where the photo is unusable or the order record is incomplete. Have an operations lead label both the proper first stop and any findings that the next team needs. A package that eventually reached the right desk after a detour is still a misroute at intake.
Run the same cases through the destination-only question and the independent questions with explicit rules. Track the first queue selected, the secondary flags preserved and the transfers each workflow would have required. Keep the routine cases in the report too. A policy that handles the split-handle kettle beautifully can still send an unacceptable number of ordinary color exchanges to inspection if its damage question treats glare as a crack. Labeling the component findings helps identify whether the problem lies in the photo judgment or in what the router does with it.
Measure elapsed time from submission through creation of a usable queue item. Google reports a median of 150–250 ms end to end for its benchmark conditions, with context up to 16K tokens and latency nearly flat across requests with one to 100 questions. The warehouse measurement should include photo preparation, order lookup and the queue write. Time a run with the photo and order facts already available, then one that fetches both during intake. The gap shows how much time an endpoint swap can plausibly save on the entire transaction. Google’s launch announcement
Keep a record of which rule fired
A queue assignment should carry the question-set version, the routing-rule version, the relevant findings and the rule that selected the destination. If a package arrives at inspection and someone asks why it skipped reconciliation, the intake record can say that damage took priority and that the fulfillment discrepancy was retained. If the team later changes queue order, that record also preserves the policy in effect when the parcel moved.
The same record helps with retries. An intake request can succeed at classification and still fail to receive an acknowledgment from the queue service. Give each return a stable identifier and use it when submitting the queue item so a retry can find or safely repeat the existing operation. A fast decision is useful only once the right desk has the item, the findings it needs and a single task to act on.
Frequently asked questions
Can one question use another answer in the same request? No. Each question evaluates the shared input independently. Application code can combine the returned answers.
Can I send the order details and the return photo together? Yes. The API accepts a shared input that combines text and images.
Does the endpoint dispatch the parcel to a queue? It returns structured answers. Your application chooses the queue and records the assignment.
Sources
> Want more like this?
Get the best AI insights delivered weekly.
By subscribing, you agree to our Privacy Policy. You can unsubscribe at any time.
> Related Articles
Google’s Decisions API Can Read the Photo. What If the Ticket Disagrees?
Google’s Gemini Decisions API can read a support ticket and its photo in one call. A swapped attachment exposes the product decision your app still has to make.
Gemini Decisions API can score a photo. When should your app act?
Google’s new Gemini endpoint scores predefined choices across text, images, audio, video, and PDFs. Its confidence estimates give developers a way to decide which results to automa
Decision 1 Can Read Video—Will It See the Frame That Matters?
Google’s Decisions API can score a video clip in one pass. For builders, the sharper test is whether the clip actually delivers the frame that settles the question.
Most Read
- 1 Kimi K3.1 Pro: China's Open-Weight Model Just Caught the Frontier
- 2 OpenAI Is Buying the Bottleneck: Can Orchestra Bio Cut a 15-Year Drug Timeline?
- 3 1,068 Tokens Per Second: Can Mercury 3 Change How LLMs Generate Text?
- 4 Same Price, Better Coding: How Good Is DeepSeek V4.1 Flash 1017?
- 5 Used OpenCode? Should You Rotate Your API Key After the Console Breach?
Latest News
- 2,428 GGUF Downloads. The Risk Changed Under the Same Model Name
- iFood’s $0.04 Runs Leave One Bill Uncounted
- ChatGPT Is Merging Chat and Work. Will Your Last Run Fit?
- Google’s Decisions API Can Read the Photo. What If the Ticket Disagrees?
- Google’s DeepCrossAttention Has a 3× Claim. What Did the Clock Measure?
- Gemini Decisions API can score a photo. When should your app act?
Tags
> Stay in the loop
Weekly AI tools & insights.