From Bright Pattern Documentation
< 5.19:Chat-directives
Revision as of 20:36, 26 September 2023 by Matt.lashley (talk | contribs) (Created page with "=Chat Directive: Location= The location directive calls a messenger's API to send location information to messenger users. The location directive can be entered via: * Ag...")
• 5.19
Chat Directive: Location
The location directive calls a messenger's API to send location information to messenger users. The location directive can be entered via:
- Agent Desktop chat UI Text Input Field
- Scenario Builder Send Message+ block
- Workflow Builder Send Message+ block
Format
The location directive consists of a forward slash followed by the word location, a longitude, a latitude, an optional title, and an optional address.
Location directive format |
---|
/location <longitude>, <latitude>[, "title", "address"] |
Formatting Rules
- Directives are case sensitive.
- Separate a directive from its parameters with a colon or whitespace.
- Separate multiple parameters with commas.
- Enclose string parameters in double quotes.
- Add required parameters before optional parameters.
- An optional parameter value may be an empty string.
Examples
Send a longitude and latitude: |
---|
/location 1.23, 5.67 |
Send a longitude, latitude, and a title: |
---|
/location : 1.23, 5.67, "Bright Pattern" |
Send a longitude, latitude, title, and address: |
---|
/location : 1.23, 5.67, "Bright Pattern", "611 Gateway Blvd., South San Francisco, CA 94080" |
Send a longitude, latitude, an empty title, and address: |
---|
/location : 1.23, 5.67, "", "611 Gateway Blvd., South San Francisco, CA 94080" |
See also: