Documentation

Card type

quick_answer

One value with context: math, conversions, dice, countdowns, clocks, distances, short facts, weather advice. data.kind names which.

Version 1 · schema quick_answer.v1.schema.json

Layouts

Every card type has full. Pick a layout with the element's layout attribute, render.layout, or a theme.

Fields

The fields of card.data. Values a source doesn't provide are null; new optional fields can appear within version 1.

FieldTypeRequiredNotes
kindenumyesmath · conversion · random · countdown · clock · distance · fact · weather_advice
labelstringyesShort context shown above the headline.
headlinestringyesThe answer itself, ready to display.
sublinestring | null
detailstring | nullOne sentence of explanation or working.
chips[]string[]Related values.

Example

A recorded answer to “What is 17% of 240?”. Open it in the Answer Lab to see every layout and style.

Response
{
  "v": 2,
  "id": "ans_910be1268f99",
  "matched": true,
  "locale": "en",
  "skill": "math",
  "confidence": 0.99,
  "text": "17% of 240 is 40.8.",
  "speech": "17 percent of 240 is 40.8.",
  "card": {
    "type": "quick_answer",
    "version": 1,
    "data": {
      "kind": "math",
      "label": "17% of 240",
      "headline": "40.8",
      "subline": null,
      "detail": "240 × 0.17 = 40.8",
      "chips": [
        "10% = 24",
        "20% = 48"
      ]
    }
  },
  "sources": [],
  "follow_ups": [
    "And 23%?"
  ],
  "actions": [],
  "usage": {
    "billable": true
  }
}