Skip to Content
0
Jan 23, 2020 at 01:18 PM

Error while calling API in SAP Chatbot

132 Views

Hello Team,

I'm working on a chatbot. I've created entities, skills, intent. During my test, it is giving me an error "Error while calling API". See below response I received.

I've used ngrok and maintained it in call back URL. In web hook I entered "/Sub". When I test on the browser http://ABC.ngrok.io/Sub , it returned the results. When I test it through "Chat with your bot", I'm receiving the below response.

I tried both Get and Post. Returning the same result.

Any clues you can provide. Appreciate your help!

{
  "nlp": {
    "uuid": "bfbd9b8b-6105-4f54-b9bb-134717de84931117910",
    "source": "specify invoice status 12345",
    "intents": [
      {
        "slug": "invoice",
        "confidence": 0.76,
        "description": "Invoice Status"
      }
    ],
    "entities": {
      "number": [
        {
          "confidence": 0.82,
          "raw": "12345",
          "scalar": 12345
        }
      ]
    },
    "act": "assert",
    "sentiment": "neutral",
    "language": "en",
    "processing_language": "en",
    "version": "1912.0.2",
    "timestamp": "2020-01-23T13:01:28.265068+00:00",
    "status": 200,
    "type": null
  },
  "qna": null,
  "messages": [],
  "conversation": {
    "id": "test-1579784483731",
    "language": "en",
    "memory": {},
    "skill": "invdisplay",
    "skill_occurences": 1,
    "skill_id": "125fe9c2-d436-45ef-a711-0ff04706153a"
  },
  "logs": {
    "input": "specify invoice status 12345",
    "logs": [
      {
        "level": "info",
        "code": "I_SKILL_TRIGGERED",
        "data": {
          "message": "skill InvDisplay has been triggered",
          "reason": "TRIGGERS_OK",
          "skill_id": "125fe9c2-d436-45ef-a711-0ff04706153a"
        },
        "timestamp": "2020-01-23T13:01:28.513Z"
      },
      {
        "level": "info",
        "code": "I_REQUIREMENTS_OK",
        "data": {
          "skill_id": "125fe9c2-d436-45ef-a711-0ff04706153a",
          "message": "Requirements of skill invdisplay validated, executing actions"
        },
        "timestamp": "2020-01-23T13:01:28.625Z"
      },
      {
        "level": "info",
        "code": "I_EXECUTE_ACTION",
        "data": {
          "uuid": "67ccdfd4-81e4-4eea-b4da-632a26f83b28",
          "error_code": "Common - 0001",
          "skill_id": "125fe9c2-d436-45ef-a711-0ff04706153a",
          "action_id": "ae1d55ea-2d13-4b27-b939-b0351b4c6447",
          "error": "Error while calling API"
        },
        "timestamp": "2020-01-23T13:01:28.970Z"
      }
    ]
  },
  "fallback": null,
  "hasDelay": true,
  "hasNextMessage": false
}