|
Genesys 8.1 SCXML Technical Reference |
||
< Parameter Elements Events > |
The following are the chat-specific interaction actions.
This action sends a chat message during the interaction on behalf of the orchestration logic and the associated resource to all other parties in the chat session. This message will also be added to the transcript of the interaction. (_genesys.FMName.interactions[].chat.transcript[])
Name |
Required |
Type |
Default Value |
Valid Values |
Description |
---|---|---|---|---|---|
requestid |
false |
location expression |
none |
Any valid location expression |
This is the location for the request ID that is returned as part of this request. Any data model expression evaluating to a data model location. See SCXML Location Expressions for details. The location's value will be set to an internally generated unique string identifier to be associated with the action being sent. If this attribute is not specified, the event identifier is dropped. This identifier can be tested by the completion event handler to distinguish among several outstanding requests. If this attribute is not specified, the identifier can be acquired from the fetch completion event. Every request must receive a unique identifier. |
interactionid |
false |
value expression |
"0" |
Any value expression that returns a valid string |
A value expression which returns the _genesys.FMname.interactions[x].g_uid of the interaction that is associated with this request. There is a special value that can be returned:
See SCXML Legal Data Values and Value Expressions for details. |
from |
true |
value expression |
none |
A valid agent id string |
A value expression which returns the device address of the party that this message will be from. See SCXML Legal Data Values and Value Expressions |
message |
true |
value expression |
none |
A valid string |
A value expression which returns the string with the text message that is to be sent on the chat session. See SCXML Legal Data Values and Value Expressions for details. |
The following is an example:
<state id="do_sendchatmessage"> <datamodel> <data id="reqid"/> <data id="currentixn"/> </datamodel> <onentry> <ixn:sendchatmessage requestid="_data.reqid" from="_data.currentixn.parties[4].device" message="'hi, what can I do for you'"/> </onentry> <transition event="chat.sendchatmessage.done" target="statex"/> <transition event="error.chat.sendchatmessage" target="statey"/> </state>
None
The following events can be generated as part of this action:
This action gets the latest version of the chat transcript and returns it in the chat.gettranscript.done event.
Name |
Required |
Type |
Default Value |
Valid Values |
Description |
---|---|---|---|---|---|
requestid |
false |
location expression |
none |
Any valid location expression |
This is the location for the request ID that is returned as part of this request. Any data model expression evaluating to a data model location. See SCXML Location Expressions for details. The location's value will be set to an internally generated unique string identifier to be associated with the action being sent. If this attribute is not specified, the event identifier is dropped. This identifier can be tested by the completion event handler to distinguish among several outstanding requests. If this attribute is not specified, the identifier can be acquired from the fetch completion event. Every request must receive a unique identifier. |
interactionid |
false |
value expression |
"0" |
Any value expression that returns a valid string |
A value expression which returns the _genesys.FMname.interactions[x].g_uid of the interaction that is associated with this request. There is a special value that can be returned:
See SCXML Legal Data Values and Value Expressions for details. |
The following is an example:
<state id="do_getTranscript"> <datamodel> <data id="reqid"/> <data id="currentixn"/> </datamodel> <onentry> <ixn:gettranscript requestid="_data.reqid" interactionid="'_genesys.ixn.interactions[1].g_uid"/> </onentry> <transition event="chat.gettranscript.done" target="statex"/> <transition event="error.chat.gettranscript" target="statey"/> </state>
None
The following events can be generated as part of this action:
|
Genesys 8.1 SCXML Technical Reference |
||
< Parameter Elements Events > |