The following resources will help to train and deploy your chatbot to Slack.
Please refer to this lab to train Watson Assistant.
-
In the Watson Assistant tool, click on the Deploy icon in the left sidebar menu of the Watson Conversation tooling.
-
Click on Deploy under the tile labeled Slack.
-
Follow the instructions to create a Slack application.
A sample Node.js application that uses a webbased chat interface is available in the Watson Developer Cloud on Github.
-
Clone the repo:
git clone https://github.com/watson-developer-cloud/assistant-simple
-
Follow the instructions to either run the application locally or in IBM Cloud. Add the Watson Assistant service credentials (username, password, and workspace ID) either in the .env file (locally), or bind the Watson Service to the IBM Cloud application.
# .env file # Environment variables WORKSPACE_ID=<workspace-id> ASSISTANT_USERNAME=<conversation-username> ASSISTANT_PASSWORD=<conversation-password>
-
Run the application:
npm start
-
Open a browser to the application and begin interacting with the chatbot.