place_card
A place the user can go to: open now, how far, and the way there.
Somewhere to go. place_card shows a place the user can get to — the store with the shoe in stock, the nearest branch or ATM, the pharmacy on duty, a venue — with its address, how far it is, whether it is open now and until when, and the way there.
Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.
Rendered natively by the Flutter SDK since 0.43.0 and the web SDK since 0.20.0. A build that does not declare it is never offered it.
Directions are built by the SDK from the coordinates (or the address), as an Apple Maps or Google Maps link handed to the maps app; the model never writes the link. Call opens the dialler. On an answer page the card opens into its detail, with the week's hours.
What the server checks
The address, the phone and the coordinates have to be exactly what one of your actions returned in the conversation: a place the user walks to cannot come from your knowledge or the model's memory. A card that fails is shown as its fallback_text.
Props
Every block also carries type and a required fallback_text of 1 to 300 characters.
| Prop | Type | Required | Constraints |
|---|---|---|---|
name | string | Yes | 1 to 80 characters. |
address | string | Yes | 1 to 160 characters. |
lat | number | No | -90 to 90. |
lng | number | No | -180 to 180. |
distance_label | string | No | Up to 20 characters. |
open_now | boolean | No | None |
hours_today | string | No | Up to 40 characters. |
hours_week | array | No | Up to 7 entries. |
hours_week[].day | string | Yes | 1 to 12 characters. |
hours_week[].hours | string | Yes | 1 to 40 characters. |
phone | string | No | 3 to 32 characters. |
rating | number | No | 0 to 5. |
rating_count | integer | No | At least 0. |
image_url | string | No | https only. |
directions | boolean | No | None |
website | string | No | https only. |
On the wire
{
"id": "blk_86",
"type": "place_card",
"fallback_text": "Neon Kicks Amsterdam, Kalverstraat 92, open until 20:00, 1.2 km away.",
"props": {
"name": "Neon Kicks Amsterdam",
"address": "Kalverstraat 92, 1012 PH Amsterdam",
"lat": 52.3702,
"lng": 4.8913,
"distance_label": "1.2 km",
"open_now": true,
"hours_today": "10:00–20:00",
"phone": "+31 20 123 4567",
"directions": true
}
}Interaction
phone draws a call button. directions: true draws a button that opens the maps app at the coordinates (or the address). website draws a link. Address, phone and coordinates must come from your actions' results.