POST api/aichat/ask
Request Information
URI Parameters
None.
Body Parameters
AiChatAskRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Question | string |
None. |
|
| Language | string |
None. |
|
| History | Collection of AiChatTurn |
None. |
|
| BranchID | integer |
None. |
|
| UserID | integer |
None. |
|
| SessionID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Question": "sample string 1",
"Language": "sample string 2",
"History": [
{
"Role": "sample string 1",
"Content": "sample string 2"
},
{
"Role": "sample string 1",
"Content": "sample string 2"
}
],
"BranchID": 3,
"UserID": 4,
"SessionID": 1
}
application/xml, text/xml
Sample:
<AiChatAskRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
<BranchID>3</BranchID>
<History>
<AiChatTurn>
<Content>sample string 2</Content>
<Role>sample string 1</Role>
</AiChatTurn>
<AiChatTurn>
<Content>sample string 2</Content>
<Role>sample string 1</Role>
</AiChatTurn>
</History>
<Language>sample string 2</Language>
<Question>sample string 1</Question>
<SessionID>1</SessionID>
<UserID>4</UserID>
</AiChatAskRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.