ReferenceComponents

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.

Neon Kicks KadıköyBağdat Cd. 312, Kadıköy · 1.2 kmOpen now · until 21:00 · ★ 4.6
DirectionsCall

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.

PropTypeRequiredConstraints
namestringYes1 to 80 characters.
addressstringYes1 to 160 characters.
latnumberNo-90 to 90.
lngnumberNo-180 to 180.
distance_labelstringNoUp to 20 characters.
open_nowbooleanNoNone
hours_todaystringNoUp to 40 characters.
hours_weekarrayNoUp to 7 entries.
hours_week[].daystringYes1 to 12 characters.
hours_week[].hoursstringYes1 to 40 characters.
phonestringNo3 to 32 characters.
ratingnumberNo0 to 5.
rating_countintegerNoAt least 0.
image_urlstringNohttps only.
directionsbooleanNoNone
websitestringNohttps 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.