Data available under context object depending on various configurations made at dialogs on bot builder

This topic details about the data available under context object depending on various configurations made at dialogs on bot builder.

Information available in context object incase of service node type URL to image or Html to image

"Urltoimageservice": {
    "response": {
      "body": {
        "imageURLS": {
          "Mobile": "https://bots.kore.ai/api/getMediaStream/media/f-802ae0e4-5575-58e1-b89e-39d2f79834e8.png?n=1338984611&s=InMxZ1E3N3Y2b3hwbFN1NG9veTJRSk85VjlweFM1V3NYNkFySU5iOVp0U0U9Ig$$",
          "Desktop": "https://bots.kore.ai/api/getMediaStream/media/f-8b6d3871-bb52-55ed-968c-213098903c65.png?n=3227159960&s=InFHYjhGWFhvdE1renZlckFJdUxyTEZFcEJ3SWowS29JWnhXUXBRUnBuUGM9Ig$$"
        }
      }
    }
  }

Information available in context object in case of custom authentication

 "customAuth": {
    "customAuthenticationURL": "https://bots.kore.ai/r/ryl5TgiRmBeae7c5",
    "OTP": "1234"
  }

Information available in context object in case of mapped intents

 "mappedIntents": [
    {
      "title": "MappedIntents",
      "nodeId": "intent2",
      "link": "https://bots.kore.ai/r/H1UBaGsA7rc64c4d",
      "postbackpayload": "MappedDialog_dc-87be61c9-f510-5122-b6a6-030146066678_dg-869b5305-e8c6-563c-b1c8-ceb574819ad2_dcx-f1d89781-2371-5df4-8fd5-e61b2e68a22e_intent2"
    },
    {
      "title": "custom_authentication",
      "nodeId": "intent3",
      "link": "https://bots.kore.ai/r/HJDHpGiRQB6d52a7",
      "postbackpayload": "MappedDialog_dc-6d2fb46f-b4eb-5337-8f9d-09664312acc6_dg-869b5305-e8c6-563c-b1c8-ceb574819ad2_dcx-f1d89781-2371-5df4-8fd5-e61b2e68a22e_intent3"
    },
    {
      "title": "See all",
      "link": "https://bots.kore.ai/r/H1OSafoAXS0f61f2"
    }
  ]

Information available in context object with regards to tone analysis

At the first utterance “I am very happy”

    "message_tone": [
        {
          "tone_name": "joy",
          "level": 3,
          "count": 1
        },
        {
          "tone_name": "positive",
          "level": 3,
          "count": 1
        },
        {
          "tone_name": "sad",
          "level": -3,
          "count": 1
        },
        {
          "tone_name": "angry",
          "level": -3,
          "count": 1
        }
      ],
      "dialog_tone": [
        {
          "tone_name": "angry",
          "level": -3,
          "count": 1
        },
        {
          "tone_name": "sad",
          "level": -3,
          "count": 1
        },
        {
          "tone_name": "positive",
          "level": 3,
          "count": 1
        },
        {
          "tone_name": "joy",
          "level": 3,
          "count": 1
        }
      ]

At the next utterance “I am very annoyed”
“message_tone”: [
{
“tone_name”: “angry”,
“level”: 2,
“count”: 1
}
],
“dialog_tone”: [
{
“tone_name”: “angry”,
“level”: -0.5,
“count”: 2
},
{
“tone_name”: “sad”,
“level”: -1.5,
“count”: 1
},
{
“tone_name”: “positive”,
“level”: 1.5,
“count”: 1
},
{
“tone_name”: “joy”,
“level”: 1.5,
“count”: 1
}
]

Information available in context object in case a report template is configured at a message node

"reportContext": {
    "Message0005": [
      {
        "title": "test",
        "url": "https://bots.kore.ai/r/BkmwIBjAXS21059e"
      }
    ]
  }

Information available in context object in case follow up intents are identified

 "FollowupIntents": [
    "Book a hotel"
  ]

Information available in context object in case of FAQ invokes a dialog

"faqInfo": {
    "parentFAQPathTraversed": [
      "Context Object",
      "Credit Card",
      "Apply"
    ],
    "primaryQuestion": "How to apply for a credit card?"
  }

Information available in context object in context output is set at a node of dialog or at a term of knowledge collection

"currentTags": {
    "tags": [
      "Context Object",
      "Credit Card",
      "Apply",
      "Premium"
    ]
  }

Information available in context object when an attachment is uploaded.

"attachments": [
            {
              "fileName": "English.json",
              "fileType": "attachment",
              "fileId": "5d512c279f2daf319e27a20d",
              "url": {
                "fileUrl": "https://bots.kore.ai/api/getMediaStream/market/f-5dcb3adf-c27a-5c83-8dcd-e003f8b8682f.json?e=1565601108&n=3234057710&s=InljcHlraE1nejdjUTAvemptL3VtK2NwaW1SYmJreDhhaStsanM2S3JhNmc9Ig$$"
              }
            }
          ]
2 Likes