Ask location

Ask interlocutor to share its location.

When interlocutor accepts, its location attribute will be set.

Available on :

  • facebook

Attribute

Type

Required

Description

type

string

always ask_location_action

message

string

message sent to ask interlocutor for its location (length<=500)

action

object<go_to_action>

a go to action, executed when the interlocutor accepted the geolocation request

{
    "type": "ask_location_action",
    "message": "Where are you?",
    "action": {
        "type": "go_to_action",
        "target": {
            "type": "step",
            "id": "507f191e810c19729de860ea"
        }
    }
}