Configuring cognitive service for a custom application by using BMC Native (Google) classification
BMC Helix Innovation Studio enables the administrators to make a choice between the classification service provider that they can use for auto-categorization and auto-assignment. Along with IBM Watson Assistant, BMC Helix Innovation Studio enables the administrator to use BMC Native (Google) classification service for their cognitive service.
The BMC Native (Google) classification uses the Google Cloud Platform. BMC does not provide a Google Cloud Platform account, but provides the classification algorithm. To use BMC Native (Google) classification you must create your own Google Cloud Platform account and download a file that contains the service account credentials.
If you want to use Google Cloud Translation Service as a provider for real-time translation for a chatbot or custom application, you can use the same Google Cloud Platform account.
The following image illustrates the end-to-end process to configure BMC Native (Google) classification service in BMC Helix Innovation Studio. It describes the steps required and the UI tools used to configure BMC Native (Google) classification service.
Task | Action | Reference |
---|---|---|
1 | Set the Google Cloud Platform account to create your project, enable billing, and create service account credentials. | Setting up the Google Cloud Platform account |
2 | Define the value for the Classification-Service-Provider setting. | Updating centralized tenant configuration settings |
3 | Configure BMC Native (Google) classification and set the Service Account Credentials. | To use BMC Native (Google) classification for cognitive service |
4 | Define the value for the Gcp-Project-Id setting based on the project id provided while setting up the Google Cloud Platform account. | Updating centralized tenant configuration settings |
5 | Define the value for the Gcp-Region setting based on the value of the region provided while setting up the Google Cloud Platform account. | Updating centralized tenant configuration settings |
Setting up the Google Cloud Platform account
You can set up the Google Cloud Platform accounts in one of the following ways:
To set up the Google Cloud Platform account manually
If you are using Google Cloud Translation Service for real-time translation, use this method to set up the Google Cloud Platform account.
- Log in to Google Cloud Platform Console.
To set up the Google Cloud Platform account by using an onboarding script
- Log in to Google Cloud Platform Console.
- Install Google Cloud Platform SDK.
For more details about Google Cloud Platform SDK and installing it, see https://cloud.google.com/sdk/.
Run the following commands to ensure that
gcloud
andgsutil
are installed in the bash shell.gcloud --help gsutil --help
Download a local copy of the following machine learning job code's compressed files:
Change the execution mode for gcp_onboarding.sh by using the following command:
chmod +x gcp_onboarding.sh
(Windows only) Create bash functions so that gcp_onboarding.sh can use these functions. Use the following commands and add the functions with correct paths into the user's .bashrc file.
gsutil() { /c/Program\ Files\ \(x86\)/Google/Cloud\ SDK/google-cloud-sdk/bin/gsutil.cmd $@ } gcloud() { /c/Program\ Files\ \(x86\)/Google/Cloud\ SDK/google-cloud-sdk/bin/gcloud.cmd $@ }
Run the following script to create a new project:
./gcp_onboarding.sh -p <PROJECT-ID> -v -r <REGION-CODE>
where
<PROJECT-ID>
A unique identifier for your Google Cloud Platform project. Note: Ensure that you provide the same projectID value in the Gcp-Project-Id setting in the Centralized Tenant Configuration UI.
<REGION-CODE>
A geographical location where you want to execute your Google Cloud Platform machine learning jobs. Note: Ensure that you provide the same region code value to the Gcp-Region setting in the Centralized Tenant Configuration UI.
New <projectID>-key.json file is generated and saved in the execution folder along with the <privateID>-key.json file.
To use BMC Native (Google) classification for cognitive service
- Log in to BMC Helix Innovation Studio and navigate to the Administration tab.
- Select Cognitive and chatbot > Cognitive service.
- From the Configure list, select Cognitive service connections.
- In the BMC Native for natural language classification section, in the Service Account Credentials field, add the content from the <projectID>-key.json file downloaded from Google Cloud Platform.
- To test the connection, click Test.
If the connection fails, verify your service account credentials. - After verifying the connection is successful, click Save.
Where to go from here
Training and testing the cognitive service for a custom application
Comments
Log in or register to comment.