POST api/Ai/chatbotAgent
Request Information
URI Parameters
None.
Body Parameters
ChatbotAiAgentRequestDto| Name | Description | Type | Additional information |
|---|---|---|---|
| messages | Collection of ChatbotMessageDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"messages": [
{
"role": "sample string 1",
"content": "sample string 2"
},
{
"role": "sample string 1",
"content": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<ChatbotAiAgentRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.ExternalSevices.IsNet">
<Messages>
<ChatbotMessageDto>
<Content>sample string 2</Content>
<Role>sample string 1</Role>
</ChatbotMessageDto>
<ChatbotMessageDto>
<Content>sample string 2</Content>
<Role>sample string 1</Role>
</ChatbotMessageDto>
</Messages>
</ChatbotAiAgentRequestDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AiChatbotAgentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
|
| StatusCode | integer |
None. |
|
| Result | ResultType |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"Message": "sample string 2",
"Success": true,
"StatusCode": 4,
"Result": 0,
"ErrorMessage": "sample string 5"
}
application/xml, text/xml
Sample:
<AiChatbotAgentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Business.Core.DataContracts.Ai"> <_x003C_ErrorMessage_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">sample string 5</_x003C_ErrorMessage_x003E_k__BackingField> <_x003C_Result_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">Success</_x003C_Result_x003E_k__BackingField> <Data /> <Message>sample string 2</Message> <StatusCode>4</StatusCode> <Success>true</Success> </AiChatbotAgentResponse>