{"id":19778862,"url":"https://github.com/dialogflow/dialogflow-botkit-client","last_synced_at":"2025-04-30T21:31:17.563Z","repository":{"id":57094078,"uuid":"55014792","full_name":"dialogflow/dialogflow-botkit-client","owner":"dialogflow","description":"Botkit library for Dialogflow","archived":false,"fork":false,"pushed_at":"2019-02-20T18:48:58.000Z","size":29,"stargazers_count":62,"open_issues_count":8,"forks_count":39,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-01T14:46:44.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dialogflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-29T22:28:28.000Z","updated_at":"2023-09-08T17:08:41.000Z","dependencies_parsed_at":"2022-08-22T21:40:54.863Z","dependency_job_id":null,"html_url":"https://github.com/dialogflow/dialogflow-botkit-client","commit_stats":null,"previous_names":["api-ai/api-ai-botkit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dialogflow%2Fdialogflow-botkit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dialogflow%2Fdialogflow-botkit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dialogflow%2Fdialogflow-botkit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dialogflow%2Fdialogflow-botkit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dialogflow","download_url":"https://codeload.github.com/dialogflow/dialogflow-botkit-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224224786,"owners_count":17276428,"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":[],"created_at":"2024-11-12T05:32:23.674Z","updated_at":"2024-11-12T05:32:51.309Z","avatar_url":"https://github.com/dialogflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED api-ai-botkit\n\n| Deprecated |\n|-------|\n| This Dialogflow client library and Dialogflow API V1 [have been deprecated and will be shut down on October 23th, 2019](https://blog.dialogflow.com/post/migrate-to-dialogflow-api-v2/). Please migrate to Dialogflow API V2 and the [v2 client library](https://cloud.google.com/dialogflow-enterprise/docs/reference/libraries/nodejs) |\n\n[![npm](https://img.shields.io/npm/v/api-ai-botkit.svg)](https://www.npmjs.com/package/api-ai-botkit)\n\nUtility lib for creating bots. So far only tested with Slack.\n\nFor usage sample code see `examples/sample_bot.js`\n\n## Steps for using lib\n\nInstall library from npm\n```sh\nnpm install --save api-ai-botkit\n```\n\nImport Library\n```js\nconst apiaibotkit = require('api-ai-botkit');\n```\n\nCreate `apiai` object using token from http://api.ai website\n```js\nconst apiai = apiaibotkit(apiaiToken);\n```\n\nUse `apiai` object in `controller.hears`\n```js\ncontroller.hears('.*', ['direct_message', 'direct_mention', 'mention'], function (bot, message) {\n    apiai.process(message, bot);\n});\n```\n\nImplement different reactions to appropriate actions\n```js\napiai\n    .action('smalltalk.greetings', function (message, resp, bot) {\n        var responseText = resp.result.fulfillment.speech;\n        bot.reply(message, responseText);\n    })\n    .action('input.unknown', function (message, resp, bot) {\n        bot.reply(message, \"Sorry, I don't understand\");\n    });\n```\n## License\nSee [LICENSE](LICENSE).\n\n## Terms\nYour use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the [Google APIs Terms of Service](https://developers.google.com/terms/).\n\nThis is not an official Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdialogflow%2Fdialogflow-botkit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdialogflow%2Fdialogflow-botkit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdialogflow%2Fdialogflow-botkit-client/lists"}