{"id":16274622,"url":"https://github.com/ojacques/hubot-apiai","last_synced_at":"2025-03-20T01:30:26.020Z","repository":{"id":57268656,"uuid":"95893025","full_name":"ojacques/hubot-apiai","owner":"ojacques","description":"Add smartness and conversational UX to Hubot with API.AI as back-end","archived":false,"fork":false,"pushed_at":"2018-03-01T16:49:26.000Z","size":249,"stargazers_count":14,"open_issues_count":6,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-02T04:38:01.877Z","etag":null,"topics":["api-ai","chatbot","chatbotai","hubot","hubot-scripts","natural-language-understanding","nlu"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/hubot-apiai","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ojacques.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T13:54:04.000Z","updated_at":"2023-06-10T23:52:56.000Z","dependencies_parsed_at":"2022-09-02T05:41:14.558Z","dependency_job_id":null,"html_url":"https://github.com/ojacques/hubot-apiai","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojacques%2Fhubot-apiai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojacques%2Fhubot-apiai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojacques%2Fhubot-apiai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojacques%2Fhubot-apiai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojacques","download_url":"https://codeload.github.com/ojacques/hubot-apiai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865992,"owners_count":16555917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-ai","chatbot","chatbotai","hubot","hubot-scripts","natural-language-understanding","nlu"],"created_at":"2024-10-10T18:29:29.471Z","updated_at":"2024-10-10T18:29:30.043Z","avatar_url":"https://github.com/ojacques.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Add smartness to hubot with API.AI\n\nA hubot script that adds  conversational user experience with [api.ai](https://api.ai)\nas back-end.\n\nWhen you talk to Hubot, this script sends the text to api.ai, which \nin turns handles the dialog and detects intents and parameters.\nFinally, the script [emits an event (robot.emit)](https://github.com/hubotio/hubot/blob/master/docs/scripting.md#events)\nso that it can be consumed by other scripts.\n\n![example](https://raw.githubusercontent.com/ojacques/hubot-apiai/HEAD/img/hubot-api-ai.gif)\n\nSee [`src/apiai.coffee`](https://github.com/ojacques/hubot-apiai/blob/master/src/apiai.coffee) \nfor full documentation.\n\n## Installation\n\nIn hubot project repo, run:\n\n`npm install hubot-apiai --save`\n\nThen add **hubot-apiai** to your `external-scripts.json`:\n\n```json\n[\n  \"hubot-apiai\"\n]\n```\n\n## Configuration variable\n\n`API_AI_CLIENT_ACCESS_TOKEN`: API AI client access token which you get from https://console.api.ai/api-client/ \n\n## Create listener scripts\n\nhubot-apiai will [emit events](https://github.com/hubotio/hubot/blob/master/docs/scripting.md#events)\nwhich correspond to intents that you describe in API.AI.\n\nLet's say that you have an intent called `help-me` in API.AI. You can create\nan hubot script which will act on `help-me` intents:\n\n```\nmodule.exports = (robot) -\u003e\n  robot.on \"help-me\", (msg, params) -\u003e\n    # Your code here\n```\n\nThe parameters from the intent are passed as part of Hubot's event.\n\n## NPM Module\n\nhttps://www.npmjs.com/package/hubot-apiai\n\n## TODO\n\n- Add tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojacques%2Fhubot-apiai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojacques%2Fhubot-apiai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojacques%2Fhubot-apiai/lists"}