ixHello
ixHello Customer
ixHello Customer
  • About iX Hello
  • General
    • iX Hello: Create Account
    • iX Hello: Basic Mode
      • Webchat Assistant
        • Direct Chat Link
        • Embedded Chat Assistant
      • Digital Assistant
        • Digital Avatar
        • Kiosk Mode
      • Call/SMS Assistant
      • Administrative Purpose
    • iX Hello: Studio Mode
      • Prerequisites
      • Steps
        • App Creation
        • Data Source Configuration
        • AI Content Setup
        • Method Setup
        • Intent Setup
        • Slot Setup
        • Utterance Setup
        • Input Setup
        • Input Parameter Setup
        • Publish Setup
        • Test
        • Enable Call /SMS
    • Enterprise Connections
      • Generative AI
      • Internal Content
      • Microsoft Office 365
    • AI Contents
      • Add AI Content
    • Use cases
      • Contact Finder with Salesforce
        • Pre-requisites
          • An active Salesforce account
          • Lex Developer Account
          • Integrate Salesforce with iX Hello
        • Build Custom App
      • Contact Finder with REST API
        • Prerequisites
          • Integrate API Service with iX Hello
          • Lex Developer Account
        • Build Custom App
  • Apps
    • App Templates
    • NLP Custom App
    • Custom App Series - Step 1 - Building a Custom App
    • Custom App Series - Step 2 - Creating a Connection
    • Custom App Series - Step 3 - Publishing to a Channel
    • Lex Auto Publishing Setup
    • Office 365 SharePoint - Custom App
    • Office365 Exchange - Custom App
    • SalesForce Custom App
    • App Template Export & Import
    • IntentFeature BeforeAfterMethod
    • iX Hello Supported Periods Date Range
    • Shared App
    • ExecuteJS
  • Connections
    • Amazon Web Services
      • Amazon Kendra
      • Amazon Lambda
        • Amazon Lambda: Create Lambda Function
          • Amazon Lambda: iX Hello Integration
      • DynamoDB
    • Login with Amazon Setup
    • SalesForce
      • SalesForce: Create an account
      • SalesForce: Connect to iX Hello
    • Microsoft Office365 Integration Guide
    • Microsoft Office365 AAD
    • MS SQL Server
    • Twilio
  • Blueprints
    • Create App Using App Blueprints
    • Lex Bot using Appointment Blueprint
    • Domain App using Internal Data
    • Domain App S3 Data Source Setup
  • Channels
    • Amazon Alexa
      • Create Amazon Developer Account
      • Registering Alexa User Account
      • Alexa Account Linking to iX Hello
    • Amazon Lex
    • Amazon Lex Integration
    • Amazon Connect and Lex Bot Integration
  • JSON Methods
    • Internal Data JSON Methods
  • Solutions
  • AWS IAM users
  • Finding AWS Region
  • Glossary
Powered by GitBook
On this page
  • Create App
  • Data Source
  • Method
  • a. GetContactMethod
  • Intents
  • Slot
  • Utterances
  • Input
  • Publish to Amazon Lex

Was this helpful?

  1. General
  2. Use cases
  3. Contact Finder with REST API

Build Custom App

PreviousLex Developer AccountNextApp Templates

Last updated 8 days ago

Was this helpful?

Now let's build an app that interacts with the REST API integration.

Create App

On the left navigation, go to Apps-> Custom Apps -> New Custom App.

Data Source

This step is where you connect the integration with REST API to your custom app. You are creating a data source which your app will feed from.

Once the app is created and is available on your list of custom apps, click on it to discover the setup for the app.

Go to Data Sources tab and click on Create New Data Source.

Click on Save to save the data source.

Method

Now let's create some methods that interact with the APIs.

The request type of method depends on the data source.

On the Methods tab, click on Add New Method. Also note that, on the Data Source drop down, the data source created in the preceding step is selected.

A custom app can have multiple data sources, integrating with multiple third-party systems.

a. GetContactMethod

You are setting up on which endpoint you want to send request to and how you want the result output to be presented to the user.

Please fill in the details as suggested:

METHOD INPUT:

Name: GetContactMethod

Request Type: GET

Method Path: /users

Query Path: ?name={{Person}}

METHOD OUTPUT:

Result Type: ListOfRecords

Record JsonPath: $.[*]

Record Template: {{Records}}

Record Limit: 10

METHOD RESULT:

Valid Result Template: You can contact {{name}} at {{phone}} How else I can help you?

Empty Result Template: Sorry, I could not find {{Person}} How else I can help you?

Click Save

Save and Test will save the method and lead you to a screen where you can test if the method is providing the correct result.

Anything inside "{{}}" is read as an input. So, on the test screen, the user is allowed to provide value for the input.

Once you're convinced that the method is now functioning correctly, move to next step to create intents.

Intents

On the intent tab, click on Create New Intent. On the resulting pop up, fill in following details and save.

Slot

Next step is to create slots. You create slot corresponding to each input parameter. In our case, Person / name is the input parameter we are expecting from the user.

Go to Slots tab and click on Create New Slot.

Note: The slot name shall match with the input parameter name in method screen.

Utterances

Utterances are what we expect the user to say to the app to request for something.

On the Utterances tab, click on Create New Utterance.

Fill the details and click on Save. Now, let's create Input corresponding to the intent.

Input

Create a new input from the Input tab. Add-in following details and click on Save.

Once you've created the input, the next step is to manage parameters for the input.

Manage Parameters

Click on manage Parameters and in the resulting screen, click on Add Input Parameter. You need to create Parameters corresponding to every slot.

You shall be able to see the created parameter in the list of parameters.

Publish to Amazon Lex

Now that the app has been setup, let's prepare to publish it to Alexa. You can publish the same app across multiple channels by creating separate publish profiles.

Once the profile is ready, click on the action button and click Publish to Amazon Lex.

On the resulting screen, select the Amazon LWA account you want to publish the app to and click on Publish to Lex V2.

If you do not already have, you can click on Add New Lex Account and proceed from there.

On successful completion, you'll get a message regarding the status of app deployment. You'll also get a step-by-step progress on the app deployment.

You can now click on Test Lex Bot and proceed testing the app. Once clicked on "Test Lex Bot", you will be redirected to App Publishing screen, and the Test Bot will appear at the right corner showing the App name along with the welcome message:

Query the bot with the Utterance "Find contact for person" and then provide the contact-name of whom you would like to see the phone number, for ex: type Clementine Bauch. Bot will provide the response with the full name and the phone number.

Congratulations!

You have successfully completed building Lex Custom App.

On the resulting pop up, provide a unique data source name and on the Integration Configuration, make sure to select the integration you created in .

prerequisites