{"id":19403161,"url":"https://github.com/watson-developer-cloud/assistant-demo","last_synced_at":"2025-04-24T07:32:45.462Z","repository":{"id":48849117,"uuid":"170550180","full_name":"watson-developer-cloud/assistant-demo","owner":"watson-developer-cloud","description":"Assistant demo","archived":false,"fork":false,"pushed_at":"2023-04-30T10:59:39.000Z","size":7900,"stargazers_count":23,"open_issues_count":8,"forks_count":46,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-05-09T16:21:54.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watson-developer-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-13T17:32:32.000Z","updated_at":"2022-11-22T16:33:52.000Z","dependencies_parsed_at":"2022-08-31T16:31:23.458Z","dependency_job_id":null,"html_url":"https://github.com/watson-developer-cloud/assistant-demo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fassistant-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fassistant-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fassistant-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fassistant-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watson-developer-cloud","download_url":"https://codeload.github.com/watson-developer-cloud/assistant-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223945905,"owners_count":17229733,"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-10T11:27:28.035Z","updated_at":"2024-11-10T11:27:28.576Z","avatar_url":"https://github.com/watson-developer-cloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e🚀 Watson Assistant Duo Demo\u003c/h1\u003e\n\n[![Build Status](https://travis-ci.org/watson-developer-cloud/assistant-demo.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/assistant-demo)\n\n### In this sample application, you're engaging with a banking virtual assistant. The assistant simulates a few scenarios, such as making a credit card payment, booking an appointment with a banker and choosing a credit card. Watson can understand your entries and respond accordingly.\n\nThis app demonstrates the Watson Assistant service via a complete, complex interface which engages in simulated banking tasks. It utilises features such as:\n\n- Cloud Functions\n- Actions and UI Actions\n- Slots\n- Multi-Conditional Responses\n- Multi-Modal Responses\n\n[![Demo](./readme_images/demo.gif)](https://watson-assistant-demo.ng.bluemix.net)\n\n## Prerequisites\n\n1. Sign up for an [IBM Cloud account](https://cloud.ibm.com/registration).\n1. Download the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli/index.html#overview).\n1. Create an instance of the Watson Assistant service and get your credentials:\n   - Go to the [Watson Assistant][service_url] page in the IBM Cloud Catalog.\n   - Log in to your IBM Cloud account.\n   - Click **Create**.\n   - Click **Show** to view the service credentials.\n   - Copy the `apikey` value.\n   - Copy the `url` value.\n\n## Configuring the application\n\n1. In your IBM Cloud console, open the Watson Assistant service instance\n\n1. Click the **Import workspace** icon in the Watson Assistant service tool. Specify the location of the workspace JSON file in your local copy of the app project:\n\n   `\u003cproject_root\u003e/training/banking_workspace.json`\n\n1. Select **Everything (Intents, Entities, and Dialog)** and then click **Import**. The car dashboard workspace is created.\n\n1. Click the menu icon in the upper-right corner of the workspace tile, and then select **View details**.\n\n1. Click the ![Copy](readme_images/copy_icon.png) icon to copy the workspace ID to the clipboard.\n\n   ![Steps to get credentials](readme_images/assistant-demo.gif)\n\n1. In the application folder, copy the _.env.example_ file and create a file called _.env_\n\n   ```\n   cp .env.example .env\n   ```\n\n1. Open the _.env_ file and add the service credentials that you obtained in the previous step.\n\n   Example _.env_ file that configures the `apikey` and `url` for a Watson Assistant service instance hosted in the US East region:\n\n   ```\n   ASSISTANT_IAM_APIKEY=X4rbi8vwZmKpXfowaS3GAsA7vdy17Qh7km5D6EzKLHL2\n   ASSISTANT_URL=https://api.us-east.assistant.watson.cloud.ibm.com\n   ```\n\n1. Add the `ASSISTANT_ID` to the previous properties\n\n   ```\n   ASSISTANT_ID=522be-7b41-ab44-dec3-g1eab2ha73c6\n   ```\n\n## Running locally\n\n1. Install the dependencies\n\n   ```\n   npm install\n   ```\n\n1. Run the application\n\n   ```\n   npm start\n   ```\n\n1. View the application in a browser at `localhost:3000`\n\n## Deploying to IBM Cloud as a Cloud Foundry Application\n\n1. Login to IBM Cloud with the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-ibmcloud-cli#overview)\n\n   ```\n   ibmcloud login\n   ```\n\n1. Target a Cloud Foundry organization and space.\n\n   ```\n   ibmcloud target --cf\n   ```\n\n1. Edit the _manifest.yml_ file. Change the **name** field to something unique.  \n   For example, `- name: my-app-name`.\n1. Deploy the application\n\n   ```\n   ibmcloud app push\n   ```\n\n1. View the application online at the app URL.  \n   For example: https://my-app-name.mybluemix.net\n\n## License\n\nThis sample code is licensed under Apache 2.0.  \nFull license text is available in [LICENSE](LICENSE).\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## Open Source @ IBM\n\nFind more open source projects on the\n[IBM Github Page](http://ibm.github.io/).\n\n[service_url]: https://www.ibm.com/cloud/watson-assistant/\n[docs]: https://cloud.ibm.com/docs/services/assistant/index.html#about\n[demo_url]: http://assistant-demo.ng.bluemix.net/\n[doc_intents]: (https://cloud.ibm.com/docs/services/assistant?topic=assistant-intents#intents)\n[docs_landing]: (https://cloud.ibm.com/docs/services/assistant?topic=assistant-getting-started#getting-started)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fassistant-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson-developer-cloud%2Fassistant-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fassistant-demo/lists"}