Information
Phased rollout This version of the software is currently available only to early adopter SaaS customers as the first step in our phased rollout. Click here to view an earlier version.

Use case - Weather request service


This service is used give the user the current weather for any city around the world. If a city is not specified, then the requester's Innovation Studio Foundation data for city is used. This is how the service output looks like in the Chatbot UI.
worddavda865bed71a9633b197d545058a81bb4.png
In order to build the Weather Service, the following IBM Watson Assistant and BMC Helix Platform capabilities are used:

  1. IBM Watson Assistant Annotated entities – For this service, we have only trained IBM Watson with a few cities. However, using Annotated entities, it can figure out the others based on the pattern where the city name appears. For information about Annotated entities please refer to the following link: https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-annotation-based
  2. Using IBM Watson AssistantAssistant SPELSpring Expression (SpEL) language is used in IBM Watson to write expressions and to access objects and their properties. For the Weather service it was used for the following:
    • Conditionally initialize Watson variables
    • Using Join Arrays so that city names with two or more words can be treated as a single variable

For information regarding expression language methods please refer to the following link: https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-methods

  1. Invoking a Custom Process from a Watson Dialog with some input and set process output in Watson context variable
  2. Invoking Web-API from a Process – for information regarding integrating with REST services please refer to the following link: https://docs.bmc.com/docs/helixplatform/integrating-with-rest-services-in-a-codeless-way-851870748.html
    • The Weather Service uses https://openweathermap.org/api to get weather information, however any other REST API can be used as long as it can be invoked using the Web-API capability in Innovation Studio

BMC Helix Innovation Studio implementation details

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Virtual Agent 21.02