You can use the Prebuilt Action Templates from your Here integration to auto-create dialog tasks and test them using the Talk to Bot option.
Steps to create a dialog task using Here action templates:
-
- Go to Build > Conversation Skills > Dialog Tasks.
- Click Create a Dialog Task.
- On the Dialog Task pop-up, under the Integration, select the Here option to view the action templates.
Note: If you have not configured any integration for your virtual assistant, you will see the Explore Integrations option. Once you click this option, you will be redirected to the Actions page to configure an integration for your VA. For more information, see Actions Overview.
Here ActionsÂ
The following Here action is supported:
Supported Actions | Description | Method |
Get location | Finds location using the text. | POST |
Get LocationsÂ
Steps to get location by free text in the Here integration:
-
- Refer to the Installing the Here templates section to install this template.
- The Get Location dialog task is added with the following components:
- getLocation: A user intent to find a location.
- location – An entity node to enter a location.
- getLocationService– A bot action service to find a location in an external integration. Click the Plus icon to expand to view the generalQueryService bot action component properties.The following components are installed:
- In the Component Properties window, to add one or more responses, scroll down and click the +Add Response button.
Sample Response{ "items": [ { "title": "DS Road, Nagarathpete, Bengaluru 560002, India", "id": "herestreet:Ivcd5Wbnv3Xdt4.XXX", "resultType": "street", "address": { "label": "DS Road, Nagarathpete, Bengaluru 560002, India", "countryCode": "IND", "countryName": "India", "stateCode": "KA", "state": "Karnataka", "county": "Bengaluru", "city": "Bengaluru", "district": "Nagarathpete", "street": "DS Road", "postalCode": "560002" }, "position": { "lat": 12.96564, "lng": 77.58555 }, "mapView": { "west": 77.58419, "south": 12.96531, "east": 77.58689, "north": 12.96604 }, "scoring": { "queryScore": 0.99, "fieldScore": { "streets": [ 0.9 ] } } } ] }
- getLocationMessage – A message node with the script to display the query in the Here system.
- Click the Train tab to complete the Dialog task training.
- Click the Talk to Bot icon to test and debug the dialog task.
- Follow the prompts in the VA console to get location details.
- Enter a free text location when prompted by the VA, as shown below.
- You will notice a location is identified based on your text.