Skip to content

iboldurev/api-ai-php-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api.ai php demo

This is an interactive demo using the iboldurev/api-ai-php sdk.

  • You should create a api.ai account before run the demo.
  • Make sure to install dependencies with composer before running the demo.

All these demos are built with the symfony/console component and should be used with a CLI.

Query demo

$ php demo.php api:query <access_token>
>>> Hello
+ Response body :
{
    "id": "9cd3a070-65ee-42f5-b6fe-4113e49ea3e3",
    "timestamp": "2016-06-21T11:45:59.257Z",
    "result": {
        "source": "agent",
        "resolvedQuery": "Hello",
        "contexts": [],
        "metadata": [],
        "fulfillment": {
            "speech": ""
        },
        "score": 0
    },
    "status": {
        "code": 200,
        "errorType": "success"
    },
    "sessionId": "00000000-0000-0000-0000-000000000000"
}
>>> 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages