this issue is resolved i am not able find connection between type=incomming and type=outgoing for below jsonobjects this is the output of history api of kore.ai
api = https://{{host}}/api/public/bot/{{BotID}}/getMessages?userId={{userID}}&limit=20
need to find out the intent matched with user query.
also please mention the difference between clusterId and tn in below objects.
{
“_id”: “ms-0884ac25-c871-5a48-affd-0f0ecfc356af”,
“channels”: [
{
“type”: “rtm”,
“channelUId”: “caditi009@gmail.com”
}
],
“type”: “incoming”,
“status”: “received”,
“createdBy”: “u-49e8841b-088b-5156-8fd0-c15c34d0d0c9”,
“lmodifiedBy”: “u-49e8841b-088b-5156-8fd0-c15c34d0d0c9”,
“createdOn”: “2022-07-31T14:20:42.700Z”,
“lmodifiedOn”: “2022-07-31T14:20:42.700Z”,
“botId”: “st-12bb850c-3a90-553f-a571-010902c0f008”,
“orgId”: “o-17bb173d-5f2a-5ddc-8ed0-4238ff3951f6”,
“accountId”: “62dfb9fb54944e16e70a65c2”,
“isBB”: 1,
“ms”: 1,
“chnl”: “rtm”,
“isD”: 1,
“components”: [
{
“_id”: “cp-390e45c8-3f2c-548a-8ecd-0df7ccbf05a9”,
“cT”: “text”,
“data”: {
“text”: “Get my account details”
},
“thumbnails”: []
}
],
“timestampValue”: 1659277242742,
“__v”: 0,
“lang”: “en”,
“sT”: 1,
“sessionId”: “62e68fad8f36fe3f682bd3de”,
“cluster_id”: “get account info”,
“resourceid”: “messagestore”,
“tags”: {
“messageTags”: [],
“userTags”: [],
“sessionTags”: []
}
},
{
“_id”: “ms-d5ef0878-11da-5291-b861-434a3e0421b3”,
“channels”: [
{
“type”: “rtm”,
“channelUId”: “caditi009@gmail.com”
}
],
“type”: “outgoing”,
“status”: “pending”,
“createdOn”: “2022-07-31T14:20:43.365Z”,
“lmodifiedOn”: “2022-07-31T14:20:43.365Z”,
“createdBy”: “u-49e8841b-088b-5156-8fd0-c15c34d0d0c9”,
“components”: [
{
“_id”: “cp-9f0309c1-f50c-5c3a-acc2-c9a9f1f75626”,
“cT”: “text”,
“data”: {
“text”: “I am unable to find an answer. Please try something else.”
},
“thumbnails”: []
}
],
“botId”: “st-12bb850c-3a90-553f-a571-010902c0f008”,
“orgId”: “o-17bb173d-5f2a-5ddc-8ed0-4238ff3951f6”,
“accountId”: “62dfb9fb54944e16e70a65c2”,
“tN”: “Fallback Task”,
“isBB”: 1,
“ms”: 1,
“chnl”: “rtm”,
“isD”: 1,
“lang”: “en”,
“timestampValue”: 1659277243367,
“__v”: 0,
“sT”: 1,
“sessionId”: “62e68fad8f36fe3f682bd3de”,
“resourceid”: “messagestore”,
“tags”: {
“messageTags”: [],
“userTags”: [],
“sessionTags”: []
}
},