API.AI does not connect to my back-end

rekire

I'm writing an agent using API.AI I'm observing that my back-end is not called everytime. I can see that in my access logs. Any idea what can cause the issue?

Here is the response of the console:

{
  "id": "c1902c75-1550-43f6-9cc8-b0461f1dfac7",
  "timestamp": "2016-12-22T19:58:13.49Z",
  "result": {
    "source": "agent",
    "resolvedQuery": "echo test",
    "action": "",
    "actionIncomplete": false,
    "parameters": {
      "myInput": "test"
    },
    "contexts": [],
    "metadata": {
      "intentId": "062b4383-06a0-40fe-bbeb-9189db49aeb8",
      "webhookUsed": false,
      "webhookForSlotFillingUsed": "false",
      "intentName": "Response"
    },
    "fulfillment": {
      "speech": "",
      "messages": [
        {
          "type": 0,
          "speech": ""
        }
      ]
    },
    "score": 0.75
  },
  "status": {
    "code": 200,
    "errorType": "success"
  },
  "sessionId": "70be8f65-81f0-40be-a271-84a2d4960224"
}

I see there no error which explains why my backend is not called.

Here is a screenshot of my intent:

my intent with webhook

Ajay Rawat

You have not given any value in the action key of the intent.Give some action name and keep this same name of your function which will accept the parameters from the api.ai

basically the flow is

1)user enters an input.

2)api.ai tries to match the user's input with the intents defined by you, if not found it will got to the fallback intent.

3)once the proper intent is matched then api.ai tries to extract the parameters from the user's sentence.

4)once all the required parameters are found it will call the action which you have defined in the intent.

NOTE: if none of the parameters are required in the intent it directly calls the action .

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Why does the data in my cookie come back as undefined?

分類Dev

Outlook does not connect to my pst file “Error 0×80070718”?

分類Dev

Why does my API call work in chrome but not in my code?

分類Dev

Why does my Side menu snaps back when i lift my finger, when swiping in my CN1 app?

分類Dev

Django back end with a React front end

分類Dev

How to Sync Front end and back end validation

分類Dev

Is it just my computer, or does the string `+[char]'ߡ'` with a -1 on the end mess things up?

分類Dev

When exactly does SSH-agent use my private_key to connect to a remote server?

分類Dev

How to End my Program

分類Dev

How to connect to nested paths in React-admin? (e.g. http://my.api.to/users/active)

分類Dev

How can I connect my Flutter app to local sql server database using API?

分類Dev

Firebase , android and PHP back-end

分類Dev

IOS Chat app with back end .NET server

分類Dev

calling back end only for particular component in Angular

分類Dev

Worker container failed to connect back to Spark driver

分類Dev

How to SSH to and connect back to original network?

分類Dev

How to communicate from the back end to the front end in a MEAN stack application?

分類Dev

difference between CRUD in the front-end Angular and CRUD in the back end

分類Dev

Debugging vscode front-end and back-end in studio

分類Dev

Rest API end Point

分類Dev

Android Back Button does not work ?

分類Dev

ELCImagePickerController does not back to viewController in swift

分類Dev

Why does my Node.js MS SQL script never end unless I CTRL+C out of it?

分類Dev

Why does my X11 forwarding attempt fail with "connect /tmp/.X11-unix/X0: No such file or directory"?

分類Dev

Minimax Connect 4AIのトラブル

分類Dev

My loop won't end

分類Dev

Unable to connect to SSH on my laptop

分類Dev

luis.aiとapi.aiとwit.aiの比較?

分類Dev

DialogFlow(API.AI)REST with php

Related 関連記事

  1. 1

    Why does the data in my cookie come back as undefined?

  2. 2

    Outlook does not connect to my pst file “Error 0×80070718”?

  3. 3

    Why does my API call work in chrome but not in my code?

  4. 4

    Why does my Side menu snaps back when i lift my finger, when swiping in my CN1 app?

  5. 5

    Django back end with a React front end

  6. 6

    How to Sync Front end and back end validation

  7. 7

    Is it just my computer, or does the string `+[char]'ߡ'` with a -1 on the end mess things up?

  8. 8

    When exactly does SSH-agent use my private_key to connect to a remote server?

  9. 9

    How to End my Program

  10. 10

    How to connect to nested paths in React-admin? (e.g. http://my.api.to/users/active)

  11. 11

    How can I connect my Flutter app to local sql server database using API?

  12. 12

    Firebase , android and PHP back-end

  13. 13

    IOS Chat app with back end .NET server

  14. 14

    calling back end only for particular component in Angular

  15. 15

    Worker container failed to connect back to Spark driver

  16. 16

    How to SSH to and connect back to original network?

  17. 17

    How to communicate from the back end to the front end in a MEAN stack application?

  18. 18

    difference between CRUD in the front-end Angular and CRUD in the back end

  19. 19

    Debugging vscode front-end and back-end in studio

  20. 20

    Rest API end Point

  21. 21

    Android Back Button does not work ?

  22. 22

    ELCImagePickerController does not back to viewController in swift

  23. 23

    Why does my Node.js MS SQL script never end unless I CTRL+C out of it?

  24. 24

    Why does my X11 forwarding attempt fail with "connect /tmp/.X11-unix/X0: No such file or directory"?

  25. 25

    Minimax Connect 4AIのトラブル

  26. 26

    My loop won't end

  27. 27

    Unable to connect to SSH on my laptop

  28. 28

    luis.aiとapi.aiとwit.aiの比較?

  29. 29

    DialogFlow(API.AI)REST with php

ホットタグ

アーカイブ