The Kore.ai XO Platform lets you easily connect with your Here instance to find locations by text. Learn more about Here.
This document explains how to authorize and enable the Here action and install the pre-built templates.
Authorizations Supported
The Kore.ai XO Platform supports API key authentication to allow Here integration to exchange data. For more information, read the Bot Authorization Overview article.
The Kore.ai XO Platform supports the following authorization types for the Here integration:
- Pre-Authorize the Integration – To make the integration process smoother for developers and customers, you can pre-authorize it by providing the necessary authorization credentials to obtain the access token.
- Allow Users to Authorize the Integration – This method requires the end user to provide credentials during the conversation for authorization. This authorization process involves requesting permission for Kore.ai’s Here app to access an access token at runtime. To learn more about Here, see Here Documentation.
Enable the Here Action
Prerequisites
Before enabling the Here action, complete the following prerequisites:
- If you don’t have Here account credentials, create an account in the Here Developer console and note down the login credentials. See Here Documentation for more information.
- Create a custom app on the Here admin page.
- Copy your Here account’s personal access token and keep it for future use.
Pre-authorize the Integration
Basic Auth
You can authorize the integration using your credentials. The developer authorization lets you authorize the integration with the preconfigured Kore.ai app with the Basic Auth option.
Steps to authorize an Here action using developer credentials:
- Go to Build > Integrations > Actions.
- Select the Here from the list of Available actions.
- In the Configurations dialog, select the Authorization tab.
- Enter the following details:
- Click Save. When you configure the action for the first time, the Integration Successful pop-up is displayed.
The Here action is moved from Available to Configured region on the Actions page. - You can also click the Skip for Now button to install the Dialog Task templates later. To learn how to use action templates, read the Using the Here action templates article.
Allow End Users to Authorize
You can authorize the integration at a user level with their login credentials. The user authorization process involves requesting permission for Kore.ai’s Here app to access an access token at runtime. You can also use the basic auth profile to let a user configure the integration at runtime.
Steps to authorize an Here action at a user level:
- Go to Build > Integrations > Actions and select the Here action.
- In the Configurations dialog, select the Authorization tab.
- Enter the following details:
- Authorization Type – Select the Allow Users to Authorize the Integration option, and then select the Basic Auth option.
- Create your authorization profile to obtain an access token and use it to complete integration without using Kore.ai’s Here app for authorization. To create a profile, click the Select Authorization drop-down and select the Create New option.
- Select the type of authorization mechanism. For example, select the API Key option. To create Basic Auth profiles, see Bot Authorization Overview.
- Enter the following authentication credentials for the Basic Auth mechanism:
- Name – Enter the name for the Basic Auth profile.
- Select Yes; some tasks will have tenancy URLs, and the user must provide the URLs to authenticate successfully.
- Base URL – Enter the base tenant URL for the Here instance.
- Authorization Check URL – Enter the authorization check URL for your Here instance.
- Description – Enter the description of the basic authentication profile.
- Click Save Auth to save the authorization profile.
- Select the new Authorization Profile, which you created to complete integration.
- Authorization Type – Select the Allow Users to Authorize the Integration option, and then select the Basic Auth option.
- Click Save. When you configure the action for the first time, the Integration Successful pop-up is displayed.
Step 2: Install the Here Action Templates
Once you have configured the Here integration, you can explore and install action templates.
Steps to install action templates:
- On the Integration Successful dialog, click the Explore Templates button to view the templates.
- In the Integration Templates dialog, click the Install button for a template to begin the installation.
- Once the template is installed, click the Go to Dialog button to view the dialog task.
- A dialog task is automatically created for each installed template.
- Alternatively, you can create a new dialog task and select the Here integration to select the dialog task from the templates and click Proceed. For example, select the Get Location task.
- Once you click Proceed, the dialog task is auto-created, and the canvas opens with all required entity nodes, service nodes, and message scripts.