Skip to content

Using Here Action Templates

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:

  1. Go to Automation AI > Virtual Assistant > Use Cases > Dialogs.
  2. Click Create a Dialog Task.

  3. On the Dialog Task pop-up, under the Integration, select the Here option to view the action templates.
    Integration-Here

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.

Explore Integrations

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:

  1. Refer to the Installing the Here templates section to install this template.
  2. The Get Location dialog task is added with the following components: Dialog task added

    1. getLocation: A user intent to find a location.
    2. location: An entity node to enter a location.
    3. 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.
    4. In the Component Properties window, to add one or more responses, scroll down and click the +Add Response button.
      Add response

      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
      ]
      }
      }
      }
      ]
      }
      
    5. getLocationMessage – A message node with the script to display the query in the Here system.

  3. Click the Train tab to complete the Dialog task training.

  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to get location details.
  6. Enter a free text location when prompted by the VA, as shown below.
    Enter location when prompted

  7. You will notice a location is identified based on your text.
    Location identified