POST api/agents/session/toggle

Get Agents Toggle Session. For Get Start message no need pass params like Session ID and Topic ID. For Get End message need to pass all params.

Request Information

URI Parameters

None.

Body Parameters

NameDescriptionTypeAdditional information
ContentSet

0 - default, 1 - content set

integer

None.

SessionId

Session Id

string

None.

TopicId

Topic Id (can be null)

integer

None.

AgentId

Agent Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "contentSet": 1,
  "sessionId": "sample string 2",
  "topicId": 1,
  "agentId": 3
}

Response Information

NameDescriptionTypeAdditional information
SessionId

Session ID

string

None.

MessageId

Message ID

string

None.

TopicId

Topic ID

integer

None.

AgentId

Agent ID

integer

None.

Message

Message

string

None.

IsFinal

Is Final

boolean

None.

IsSuccess

Is Success

boolean

None.

Recommendations

Recommendations List

Collection of Recommendation

None.

Response Formats

application/json, text/json

Sample:
{
  "sessionId": "sample string 1",
  "messageId": "sample string 2",
  "topicId": 3,
  "agentId": 4,
  "message": "sample string 5",
  "isFinal": true,
  "isSuccess": true,
  "recommendations": [
    {
      "dealId": 1,
      "supplierId": 2,
      "discountId": 3
    },
    {
      "dealId": 1,
      "supplierId": 2,
      "discountId": 3
    }
  ]
}