Setting Amazon Lex session attributes
AgentX provides support for an item to set Amazon Lex session attributes. There are two ways to achieve this.
Use the handlebars helper
setSessionAttr
in an answer. For example, the following code will set an attribute calledattributeName
to the valueattributeValue
.{{setSessionAttr 'attributeName' 'attributeValue'}}
Use the dedicated session attribute field to set a name/value pair.
The attribute name can be a simple name like
myAttribute
or a complex name likemyAttribute.subAttribute
. You can also use the dot notation to set an attribute several levels deep.
NOTE: Avoid using
appContext
orqnabotcontext
as attribute names. Setting these may have adverse effects on the system.
Canonical Session Attributes
Attributes
Attribute Name |
Set By |
Meaning |
---|---|---|
|
User |
Next action to take. See table below for possible values |
|
User |
If |
|
User |
If the next-action is |
|
User |
If the next-action is |
|
User |
If the next-action is |
|
AgentX |
The source number of the phone call |
|
AgentX |
The destination number of the phone call |
|
User |
Sets the message to be texted. If not set the last chatbot response in the chat history is sent. |
Attribute Values for x-paragon-agentx:voice:next-action
Value |
Behavior |
---|---|
|
Hangup or end a chat contact |
|
Transfer to a phone number |
|
Transfer to a SIP endpoint |
|
Transfer to an Amazon Connect queue |