I am using SAP Conversational AI Bot.
I am using curl request as provided on my Bot management dashboard
curl \ -H "Authorization: Token #####" \ --data "text=your-text" --data "language=en" \ "https://api.cai.tools.sap/v2/request"
which giving me results object as:
{
"results": {
"uuid": "dccc80de-44ae-40a0-a21b-f4ccfc83e0c45427137",
"intents": [
{
"slug": "goodbye",
"confidence": 0.99,
"description": ""
}
],
"entities": {},
"language": "en",
"processing_language": "en",
"version": "2001.0.0",
"timestamp": "2020-05-29T13:00:39.653149+00:00",
"status": 200,
"logs": [],
"source": "GoodBye",
"act": "assert",
"type": null,
"sentiment": "positive"
},
"message": "Requests rendered with success"
}
Is there any possible way I can have the following information as well which is "content" key under "messages" key as below, which is a reply from a Bot, thank you.
{
"messages": [
{
"type": "text",
"content": "Hello world!"
}
],
"conversation": {
"id": "CONVERSATION_ID",
"language": "en",
"memory": {},
"skill": "default",
"skill_occurences": 1
},
"nlp": {
"uuid": "b96bc782-6aba-4fac-aeaa-2326936b08bf",
"source": "Hello SAP Conversational AI",
"intents": [
{
"slug": "greetings",
"confidence": 0.99
}
],
"act": "assert",
"type": null,
"sentiment": "neutral",
"entities": {},
"language": "en",
"processing_language": "en",
"version": "2.10.1",
"timestamp": "2017-10-19T13:24:12.984856+00:00",
"status": 200
}
}