From Bright Pattern Documentation
< 5.19:Chat-directives
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
• 5.19
Chat Directives
In Agent Desktop, agents send audio, video, image, and other types of content to integrated messengers by clicking controls in the chat interface. Chat directives provide an alternate way to send content to messengers by using text-based instructions, called directives, through the:
- Agent Desktop chat UI Text Input Field
- Scenario Builder Send Message+ block
- Workflow Builder Send Message+ block
Supported Directives
Format
A directive command consists of a forward slash followed by the directive, a set of mandatory parameters and a set of optional parameters.
Preferred format for directives attachment, location, and sticker |
---|
/directive : <mandatory parameter1>, <mandatory parameter2> ...[, optional parameter1, optional parameter 2] ... |
Format for the buttons directive and backward compatibility with attachment, location, and sticker |
---|
/directive <mandatory parameter1> <mandatory parameter2> ...[optional parameter1 optional parameter 2] ... |
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
Example location directive |
---|
/location : 1.23, 5.67, "Bright Pattern", "611 Gateway Blvd., South San Francisco, CA 94080" |
Example attachment directive |
---|
/attachment : https://example.com/movie.mp4, video |
Example sticker directive |
---|
/sticker : sticker35, , viber |
Example of a location directive sent between leading and ending text. |
---|
This is the company's location: /location 37.524271, -122.304199 Thank you for using our location service. |
See also: