La documentación para desarrolladores está en inglés.
Tipo de tarjeta
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.
| Field | Type | Required | Notes |
|---|---|---|---|
kind | enum | yes | math · conversion · random · countdown · clock · distance · fact · weather_advice |
label | string | yes | Short context shown above the headline. |
headline | string | yes | The answer itself, ready to display. |
subline | string | null | ||
detail | string | null | One 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.
{
"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
}
}