Set interaction status

post

/engagement/api/agent/{fqSiteName}/v1/setInteractionStatus

This operation sets the agent's interaction status.

Request

Supported Media Types
Path Parameters
Header Parameters
  • A header element containing the agent account identifier.
  • A header element containing the unique session identifier returned in the create automated agent session call.
Body ()
The request completed successfully.
Root Schema : com.rightnow.chat.rest.agent_api.model.requests.v1.ActivitySignalChangeRequest
Type: object
Show Source
  • The client identifier.
  • The unique identifier of the chat engagement.
  • Allowed Values: [ "LISTENING", "RESPONDING" ]
    The current activity of the user. When the value is 'LISTENING', it indicates that the end user is listening (not typing). When the value is 'RESPONDING', it indicates that the end user is typing a response.
  • The client application defined transaction sequence number.
  • The text that is displayed in the sneak preview.
  • Indicates whether the end user chat is in the agent's focus. If true, then the end user chat is in focus. If false, then the end user chat is not in focus. The default value is: false.
  • The number of milliseconds that the end user is required to wait between sending sneak preview messages.
  • Allowed Values: [ "NONE: Sneak preview state is not set (or undefined)", "ENABLED: Sneak preview is enabled on the end user interface", "DISABLED: Sneak preview is disabled on the end user interface", "SITE_UNAVAILABLE: Sneak preview is enabled on the end user interface but is disabled for the site", "SERVICE_UNAVAILABLE: Sneak preview is enabled on the end user interface but is disabled globally" ]
    The current state of the sneak preview functionality from the end user's perspective.
  • The time the request was created in milliseconds.
  • Allowed Values: [ "NONE", "ALL", "NOT_ENDUSER" ]
    The visibility of the request.
Back to Top

Response

Supported Media Types

200 Response

The request completed successfully.
Body ()
Root Schema : com.rightnow.chat.rest.agent_api.model.responses.v1.ActivitySignalChangeResponse
Type: object
Show Source
Nested Schema : com.rightnow.chat.rest.agent_api.model.responses.v1.results.ChatActivitySignalChangeResult
Type: object
Show Source
Nested Schema : com.rightnow.chat.rest.agent_api.model.types.v1.ChatSystemError
Type: object
Show Source

400 Response

The validation of the request object failed.
Body ()
Root Schema : schema
Type: object

403 Response

The agent session identifier is unknown.
Body ()
Root Schema : schema
Type: object

404 Response

The resource was not found.
Body ()
Root Schema : schema
Type: object

500 Response

An error occurred in the chat server while processing the request.
Body ()
Root Schema : schema
Type: object
Back to Top

Examples

The following example shows how to set the agent's interaction status during an engagement.

cURL Command Example

curl -X POST https://chat_rest_server_domain.com/engagement/api/agent/day001_221100_sql_001h/v1/setInteractionStatus?pool=297:1 -H 'Content-Type: application/json; charset=UTF-8' -H 'X-JSESSIONID: node01h8m13tljpm7ns8nayp0pid91' -d ' -H 'X-AID: 12' {"timeCreated" :1618317020415, "sequenceNumber" : 14, "engagementId": 642, "clientId": 47, "mode": "RESPONDING", "sneakPreviewState": "ENABLED", "sneakPreviewInterval": 1, "sneakPreview": "Some sneak preview text.", "sneakPreviewFocus": true}'

Request Body Example

The following shows an example of the request body in JSON format.

{
  "engagementId": 642,
  "clientId": 47,
  "mode": "RESPONDING",
  "sneakPreviewState": "ENABLED",
  "sneakPreviewInterval": 1,
  "sneakPreview": "Some sneak preview text.",
  "sneakPreviewFocus": true,
  "timeCreated" :1618317020415,
  "sequenceNumber" : 13
}

Response Header Example

The following shows an example of the response header.

Status: 200 OK
Content-Type: application/json;charset=utf-8

Response Body Example

The following shows an example of the response body in JSON format.

{
  "chatActivitySignalChangeResult": {
    "engagementId": 642,
    "engagementIdString": "642",
    "clientId": 47,
    "clientIdString": "47",
    "mode": "RESPONDING",
    "sneakPreviewState": "ENABLED",
    "sneakPreviewInterval": 1,
    "sneakPreview": "Some sneak preview text."
  },
  "chatSystemError": null,
  "clientSendTime": 1621872165581,
  "serviceStartTime": 1648136115031,
  "serviceFinishTime": 1648136115059,
  "sessionId": "node01j9pve9wgs1s2d5yd93qqs6nw0",
  "clientId": 47,
  "clientIdString": "47",
  "sequenceNumber": 13,
  "sequenceNumberString": "13"
}
Back to Top