Typed decisions on pixels

We send a racing-game screen and a closed-options question. The answer comes back as one of the options, never free text.

The questions and what it chose

Is there another car ahead on the track?

  • Game frame 1yesno
  • Game frame 2yesno
  • Game frame 3yesno
  • Game frame 4yesno

Is the red car to the left or to the right of ours?

  • Game frame 1leftright
  • Game frame 2leftright
  • Game frame 3leftright
  • Game frame 4leftright

Which way should we steer?

  • Game frame 1leftstraightright
  • Game frame 2leftstraightright
  • Game frame 3leftstraightright
  • Game frame 4leftstraightright
  • Game frame 5leftstraightright
  • Game frame 6leftstraightright

One case, end to end

Sent

{
  "model": "fly-jev-y0",
  "state": "Atari-style driving game. Our yellow car is at the bottom center.",
  "images": [
    {
      "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg…"
    }
  ],
  "questions": {
    "q": {
      "type": "choice",
      "instructions": "Which way should we steer",
      "criteria": {
        "left": "steer left to avoid the obstacle",
        "straight": "the path is clear, keep going",
        "right": "steer right to avoid the obstacle"
      }
    }
  }
}

Received

{
  "answers": {
    "q": {
      "choice": "right",
      "probabilities": {
        "left": 0.0,
        "straight": 9e-09,
        "right": 0.999999991
      },
      "confidence": 1.0
    }
  },
  "latency_ms": 380,
  "usage": { "decisions_charged": 1, "credits_charged": 3 }
}

Text too

And it works for text decisions the same way.

Customer message

Ce pode ve pra mim se meu treco ja saiu de la? Ta demorando demais

  • pagamentosCharges, Pix, bank slip, card, refunds
  • entregaDelay, lost parcel, tracking, wrong address
  • devolucaoExchange, return and withdrawal
  • contaLogin, signup, lockout, personal data
  • tecnicoError on the site or app
  • outroNone of the above

A Portuguese customer message, routed with the same call. You make this kind of decision all the time; today it is a person or an if.

Built in Portuguese, and it accepts images.

Create an account, generate a key and try it on your own case with US$ 0.50 of free balance.