Report bugs or feature requests to our github issue tracker. Before that, please search for similar issues as it's possible that somebody has already run into it. If you want to contribute to the WVA Chat Widget, please be sure to open an issue beforehand!
-
Clone this repository
git clone https://github.com/watson-virtual-agents/chat-widget
-
Open
/index.htmlin your favorite text editor and set the values for thebotID,XIBMClientIDandXIBMClientSecretparameters:<script> window.IBMChat.init({ el: 'ibm_el', baseURL: 'https://api.ibm.com/virtualagent/run/api/v1/', botID: '', // replace with Bot ID XIBMClientID: '', // replace with Client ID XIBMClientSecret: '' // replace with Client Secret }); </script>
-
Save your changes.
Important: Keep the values of the IBMClientID and IBMClientSecret as private as possible. And certainly don't make your private keys part of your PR!.
-
Run the following commands using Node 4.2.1 or higher:
npm install npm run watch
-
Navigate to
http://localhost:3100.
For questions please refer to StackOverflow under tag watson-virtual-agent or DeveloperWorks Answers.
If you want to contribute to the repository, here's a quick guide:
- Fork the repo.
- Install locally:
npm install. - Develop your code changes.
- Test your changes:
npm run test. - Follow the instructions at ./DCO.txt.
- Commit your changes.
- Push to your fork and submit a pull request.