POST api/agents/interaction

Get Agents Interaction

Request Information

URI Parameters

None.

Body Parameters

NameDescriptionTypeAdditional information
userMessage

User Message

string

None.

ContentSet

0 - default, 1 - content set

integer

None.

SessionId

Session Id

string

None.

TopicId

Topic Id

integer

None.

AgentId

Agent Id

integer

None.

Request Formats

application/json, text/json

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

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
    }
  ]
}