{"id":13800417,"url":"https://github.com/victorshinya/serverless-chatbot","last_synced_at":"2025-04-27T16:32:01.374Z","repository":{"id":126646605,"uuid":"164014779","full_name":"victorshinya/serverless-chatbot","owner":"victorshinya","description":"Create and deploy your chatbot using Serverless","archived":false,"fork":false,"pushed_at":"2020-04-05T03:51:33.000Z","size":160,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T01:22:33.167Z","etag":null,"topics":["apache-openwhisk","chatbot","chatbot-application","ibm-bluemix","ibm-cloud","ibm-cloud-functions","openwhisk","serverless","serverless-chatbot","serverless-functions","serverless-solution","watson","watson-assistant","watson-conversation"],"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/victorshinya.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-01-03T19:32:39.000Z","updated_at":"2021-10-27T22:53:45.000Z","dependencies_parsed_at":"2023-05-06T05:32:21.176Z","dependency_job_id":null,"html_url":"https://github.com/victorshinya/serverless-chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorshinya","download_url":"https://codeload.github.com/victorshinya/serverless-chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251171435,"owners_count":21547110,"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":["apache-openwhisk","chatbot","chatbot-application","ibm-bluemix","ibm-cloud","ibm-cloud-functions","openwhisk","serverless","serverless-chatbot","serverless-functions","serverless-solution","watson","watson-assistant","watson-conversation"],"created_at":"2024-08-04T00:01:12.408Z","updated_at":"2025-04-27T16:32:00.974Z","avatar_url":"https://github.com/victorshinya.png","language":"JavaScript","funding_links":[],"categories":["Serverless"],"sub_categories":[],"readme":"# Create a Serverless Chatbot for your business\n\n[![IBM Cloud Powered](https://img.shields.io/badge/IBM%20Cloud-powered-blue.svg)](https://cloud.ibm.com)\n[![Platform](https://img.shields.io/badge/platform-nodejs-lightgrey.svg?style=flat)](https://developer.ibm.com/technologies/node-js/)\n[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/victorshinya/serverless-chatbot/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/victorshinya/serverless-chatbot/pulls)\n\nUse [IBM Cloud Functions](https://www.ibm.com/cloud/functions) and [Watson Assistant](https://www.ibm.com/cloud/watson-assistant-2/) service to create a **serverless** chatbot. There is no need to setup a Virtual Server (or Virtual Machine) or a Cloud Foundry to deploy and use your own chatbot. If you don't know how to build a chatbot, [read my blog](https://medium.com/ibmdeveloperbr/watson-assistant-como-criar-o-seu-chatbot-usando-skills-e-assistants-755b4677984b/).\n\n![Architecture Design](doc/source/images/architecture.jpg)\n\n## Components and technologies\n\n* [IBM Cloud Functions](https://cloud.ibm.com/openwhisk): FaaS (Function-as-a-Service) platform that executes functions in response to events. It is based on Apache Openwhisk project.\n* [Watson Assistant](https://cloud.ibm.com/catalog/services/watson-assistant): Watson Assistant lets you build conversational interfaces into any application, device, or channel.\n* [MongoDB](https://cloud.ibm.com/catalog/services/databases-for-mongodb): MongoDB is a JSON document store with a rich query and aggregation framework.\n\n## Deployment\n\nTo deploy, you need to install [IBM Cloud CLI](https://cloud.ibm.com/docs/cli/reference/ibmcloud/download_cli.html#install_use) and [IBM Cloud Functions CLI](https://cloud.ibm.com/openwhisk/learn/cli) in your local machine. After this step, you need to login in your IBM Cloud account on IBM Cloud CLI (if you haven't already done, run `ibmcloud login`), follow all steps below.\n\n### 1. Clone this repository\n\n```sh\ngit clone https://github.com/victorshinya/serverless-chatbot.git\ncd serverless-chatbot\n```\n\n### 2. Open the project in a text editor\n\nReplace on [`assistant.js`](src/assistant.js):\n\n* [ Line 14 ] `{iam_apikey}` by your Watson Assistant's IAM_APIKEY\n* [ Line 22, 29 ] `{assistant_id}` by your Watson Assistant's ASSISTANT_ID\n\nReplace on [`mongodb.js`](src/mongodb.js):\n\n* [ Line 17 ] `{mongodb_uri}` by your MongoDB URI\n* [ Line 23 ] `{mongodb_db}` by your MongoDB Database name\n* [ Line 24 ] `{mongodb_collection}` by your MongoDB Collection name\n\n### 3. Deploy all functions\n\nRun the following command to deploy both `assistant.js` and `mongodb.js` functions and create a sequence with all actions on IBM Cloud Functions. Required an account on [IBM Cloud](https://cloud.ibm.com).\n\n\u003e As you are using IBM Cloud Functions, you don't need to install any package or setup a `package.json`. The platform already has the package installed.\n\n```sh\nibmcloud fn deploy --manifest manifest.yml\n```\n\n## LICENSE\n\nCopyright 2020 Victor Shinya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorshinya%2Fserverless-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorshinya%2Fserverless-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorshinya%2Fserverless-chatbot/lists"}