{"id":13701427,"url":"https://github.com/intelligo-mn/intelligo-node","last_synced_at":"2025-04-05T20:08:42.499Z","repository":{"id":104194617,"uuid":"109654754","full_name":"intelligo-mn/intelligo-node","owner":"intelligo-mn","description":"Messenger chatbot builder for Node.js. https://intelligo.js.org","archived":false,"fork":false,"pushed_at":"2025-03-01T08:01:02.000Z","size":5756,"stargazers_count":118,"open_issues_count":19,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T19:07:35.378Z","etag":null,"topics":["bot","bots","chatbot","intelligo","messenger-bot","tfjs"],"latest_commit_sha":null,"homepage":"https://intelligo.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intelligo-mn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"turtuvshin","open_collective":"intelligo","ko_fi":"turtuvshin"}},"created_at":"2017-11-06T06:10:35.000Z","updated_at":"2025-03-25T01:04:06.000Z","dependencies_parsed_at":"2024-01-13T04:58:36.192Z","dependency_job_id":"62819bd9-a090-4421-903f-114e83df7ea7","html_url":"https://github.com/intelligo-mn/intelligo-node","commit_stats":null,"previous_names":["intelligo-mn/intelligo-node","intelligo-mn/chatbots"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligo-mn%2Fintelligo-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligo-mn%2Fintelligo-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligo-mn%2Fintelligo-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intelligo-mn%2Fintelligo-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intelligo-mn","download_url":"https://codeload.github.com/intelligo-mn/intelligo-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"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":["bot","bots","chatbot","intelligo","messenger-bot","tfjs"],"created_at":"2024-08-02T20:01:36.931Z","updated_at":"2025-04-05T20:08:42.463Z","avatar_url":"https://github.com/intelligo-mn.png","language":"TypeScript","funding_links":["https://patreon.com/turtuvshin","https://opencollective.com/intelligo","https://ko-fi.com/turtuvshin","https://www.ko-fi.com/turtuvshin'","https://www.patreon.com/turtuvshin'","https://c5.patreon.com/external/logo/become_a_patron_button@2x.png'","https://opencollective.com/intelligo/donate"],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/intelligo-systems/intelligo/master/.github/intelligo-logo.png\" height=\"150\"/\u003e\n\u003cbr\u003e\n\t\u003cb\u003eIntelligo AI chatbot framework\u003c/b\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://www.npmjs.com/package/intelligo\"\u003e\n      \u003cimg alt=\"npm downloads\" src=\"https://img.shields.io/npm/dt/intelligo.svg?style=for-the-badge\u0026logo=npm\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/intelligo\"\u003e\n        \u003cimg alt=\"undefined\" src=\"https://img.shields.io/npm/v/intelligo.svg?style=for-the-badge\u0026logo=npm\"\u003e\n        \u003c/a\u003e\n    \u003ca href=\"https://github.com/tortuvshin/\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/followers/tortuvshin.svg?style=for-the-badge\u0026label=Follow\u0026logo=github\"\n            alt=\"Followers\"\u003e\u003c/a\u003e\n      \u003ca href=\"https://twitter.com/intent/tweet?text=Wow:\u0026url=https://github.com/intelligo-systems/intelligo\"\u003e\n     \u003cimg alt=\"Tweet\" src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=for-the-badge\u0026logo=twitter\"\u003e\n     \u003c/a\u003e\n\u003c/p\u003e\n\nIntelligo is a AI Chatbot Framework for Node.js.\n\n## Installation\n\n[![NPM](https://nodei.co/npm/intelligo.png?compact=true)](https://nodei.co/npm/intelligo/)\n\n## Documentation\n\nYou can find the Intelligo documentation [on the website](https://intelligo.js.org).  \n\nCheck out the [Getting Started](https://intelligo.js.org/start) page for a quick overview.\n\nYou can improve it by sending pull requests to this repository.\n\n## Related projects\n\n| Project | Build Status | NPM version |\n|-----------|--------------|---------------------------|\n| [neuro](https://github.com/intelligo-systems/neuro.js) | [![Build status](https://ci.appveyor.com/api/projects/status/eue1p0li7vf7hqt9?svg=true)](https://ci.appveyor.com/project/tortuvshin/intelligo-cli) | [![npm version](https://badgen.net/npm/v/neuro.js)](https://www.npmjs.com/package/neuro) |\n| [intelligo-generator](https://github.com/intelligo-systems/intelligo-generator) | [![Build status](https://ci.appveyor.com/api/projects/status/eue1p0li7vf7hqt9?svg=true)](https://ci.appveyor.com/project/tortuvshin/intelligo-cli) | [![npm version](https://badgen.net/npm/v/intelligo-cli)](https://www.npmjs.com/package/intelligo-cli) |\n\n\n## Example\n\n```js\nimport express from 'express';\nimport { MessengerBot } from 'intelligo';\n\nconst app = express();\n\nconst bot = new MessengerBot({\n  PAGE_ACCESS_TOKEN: 'PAGE_ACCESS_TOKEN',\n  VALIDATION_TOKEN: 'VALIDATION_TOKEN',\n  APP_SECRET: 'APP_SECRET',\n  app: app,\n});\n\nbot.initWebhook();\n\n//Train the neural network with an array of training data.\nbot.learn([\n  { input: 'I feel great about the world!', output: 'happy' },\n  { input: 'The world is a terrible place!', output: 'sad' },\n]);\n\n//Subscribe to messages sent by the user with the bot.on() method.\nbot.on('message', (event) =\u003e {\n\n  const senderID = event.sender.id,\n        message = event.message;\n\n  if (message.text) {\n      const result = bot.answer(message.text);\n      bot.sendTextMessage(senderID, result);\n  }\n});\napp.set('port', process.env.PORT || 5000);\napp.listen(app.get('port'), function() {\n  console.log('Server is running on port', app.get('port'));\n});\n```\n\n### Training\n\nUse `bot.learn()` to train the neural network with an array of training data. The network has to be trained with all the data in bulk in one call to `bot.learn()`. More training patterns will probably take longer to train, but will usually result in a network better at classifying new patterns.\n\nExample using strings with inputs and outputs:\n\n```js\nbot.learn([\n    { input: 'I feel great about the world!', output: 'happy' },\n    { input: 'The world is a terrible place!', output: 'sad' },\n  ]);\n\nconst result = bot.answer('I feel great about the world!');  // 'happy'\n```\n\n#### `bot.on('message', (event));`\n\nTriggered when a message is sent to the bot.\n\n```js\nbot.on('message', (event) =\u003e {\n\n  if (message.text) {\n      const result = bot.answer(message.text);\n      bot.sendTextMessage(event.sender.id, event.message);\n  }\n});\n```\n\n## Quick Start\n\nThe quickest way to get started with intelligo is to utilize the [`intelligo-generator`](https://github.com/intelligo-systems/intelligo-generator) to generate an bot as shown below:\n\nInstall the command line tool\n\n```bash\n$ npm install intelligo-cli -g\n```\n\n### Intelligo Generator basic usage\n\nGenerate the your messenger bot project:\n\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"100%\" src=\"https://raw.githubusercontent.com/intelligo-systems/intelligo-cli/master/.github/intelligo-cli-messenger.gif\"\u003e\n\u003c/p\u003e\n\nSet the values in `config/default.json` before running the bot. Using your Facebook Page's / App's `ACCESS_TOKEN`, `VERIFY_TOKEN` and `APP_SECRET`\n\n- `ACCESS_TOKEN:` A page access token for your app, found under App -\u003e Products -\u003e Messenger -\u003e Settings -\u003e Token Generation\n- `VERIFY_TOKEN:` A token that verifies your webhook is being called. Can be any value, but needs to match the value in App -\u003e Products -\u003e Webhooks -\u003e Edit Subscription\n- `APP_SECRET:` A app secret for your app, found under App -\u003e Settings -\u003e Basic -\u003e App Secret -\u003e Show\n\n**Note:** If you don't know how to get these tokens, take a look at Facebook's [Quick Start Guide](https://developers.facebook.com/docs/messenger-platform/guides/quick-start) .\n\n## Install dependencies:\n\n```bash\n$ npm install\n```\n\n## Run your bot\n\nStart your bot app:\n\n```bash\n$ npm start\n```\n\n## Examples\n\nCollection of examples for using Intelligo Framework.\n\n- **Hello, world** The [hello world bot](https://github.com/intelligo-systems/intelligo/blob/master/samples/hello-bot) is a minimal Messenger bot.\n- **Jisho bot** The [jisho bot](https://github.com/intelligo-systems/jisho-bot) Japanese-English dictionary Messenger bot using [www.jisho.org](https://jisho.org/) public API.\n\n## Stay In Touch\n\n- Blogging at [Medium](https://medium.com/intelligo-systems)\n- Chatting on [Slack](https://slack.intelligo.systems/)\n\n## Contributors\n\n- 📥 Pull requests and 🌟 Stars are always welcome. \n- You may contribute in several ways like creating new features, fixing bugs, improving documentation and examples\nor translating any document here to your language. [Find more information in CONTRIBUTING.md](CONTRIBUTING.md).\n\u003ca href=\"https://github.com/intelligo-systems/intelligo/graphs/contributors\"\u003eContributors\u003c/a\u003e\n\nThis project exists thanks to all the people who contribute.\n\u003ca href=\"https://github.com/intelligo-systems/intelligo/contributors\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n## Supporting\n\nIf you'd like to join them, please consider:\n\n \u003ca href='https://www.ko-fi.com/turtuvshin' target=\"_blank\"\u003e\n    \u003cimg src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' height='35' alt='Buy Me a Coffee at ko-fi.com' /\u003e\n \u003c/a\u003e \n \u003ca href='https://www.patreon.com/turtuvshin' target=\"_blank\"\u003e\n    \u003cimg src='https://c5.patreon.com/external/logo/become_a_patron_button@2x.png' height='35' alt='Become a Patron!' /\u003e\n  \u003c/a\u003e\n \u003ca href=\"https://opencollective.com/intelligo/donate\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://opencollective.com/intelligo/donate/button@2x.png?color=blue\" height='35'/\u003e\n\u003c/a\u003e\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/intelligo#backer)]\n\n\u003ca href=\"https://opencollective.com/intelligo#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/intelligo#sponsor)]\n\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/intelligo/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/intelligo/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\n\n## License\n\n\u003e Copyright (C) 2018-present Turtuvshin Byambaa.  \n\u003e Intelligo framework is open-sourced software licensed under the [MIT](https://opensource.org/licenses/MIT) license.  \n\u003e (See the [LICENSE](https://github.com/intelligo-systems/intelligo/blob/master/LICENSE) file for the whole license text.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintelligo-mn%2Fintelligo-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintelligo-mn%2Fintelligo-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintelligo-mn%2Fintelligo-node/lists"}