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
  • Objective
  • Pre-requisites
  • Steps
  • Create Lambda Function

Was this helpful?

  1. Connections
  2. Amazon Web Services
  3. Amazon Lambda

Amazon Lambda: Create Lambda Function

PreviousAmazon LambdaNextAmazon Lambda: iX Hello Integration

Last updated 7 days ago

Was this helpful?

Objective

This guide will help you to quickly connect to Amazon Lambda and create a sample Lambda functions as a prerequisite to integrate Amazon Lambda to iX Hello.

Pre-requisites

  • An active AWS Account

You should have an active AWS Account. If you do not have it, you can create an AWS account at

AWS Accounts Include 12 Months of Free Tier Access

Steps

To proceed with these steps, you should have all the pre-requisites satisfied. If you are missing something, please go back and make sure you satisfy all of them.

Once done, you can now proceed with the following process.

Create Lambda Function

  1. Login to your AWS console in using your AWS credentials.

  2. Search for Lambda in the search bar and click on Lambda Service.

  1. You will be directed to the AWS Lambda dashboard.

  1. Click on Create Function. Fill in the following details:

Select Author from Scratch

Function Name: ContactFinder

Runtime: Python 3.9

Architecture: x86_64

Click on Create Function

  1. You will be now directed to the following screen to change the code and configuration of the Lambda function.

  1. Now replace the text in the text editor with following value:

  2. The resulting screen will be something like this.

import json
 
def lambda_handler(event, context):
    # TODO implement
    if(event["name"] == "kiran"):
        return { 
            'name': 'Kiran', 
            'phone': '9429020115', 
            'country': 'India' 
        }
    if(event["name"] == "rose"):
        return { 
            'name': 'Rose', 
            'phone': '(512) 757-6001', 
            'country': 'USA' 
        }
    if(event["name"] == "sean"):
        return { 
            'name': 'Sean', 
            'phone': '(512) 757-6002', 
            'country': 'UK' 
        }
    if(event["name"] == "Jack"):
        return { 
            'name': 'Jack', 
            'phone': '(512) 757-7001', 
            'country': 'Ca' 
        }
 
    return "Not found"
  1. To ensure that the function is working. Click on Test. Provide a test name and provide following sample value in the test. Click on Create.

{ "name": "rose" }

  1. Now Click on Deploy and then Test. The sample response is also shown in below:

  1. Now that you have successfully created AWS-Lambda function, you can use this with iX Hello integration to build custom Apps. Follow the next document to integrate Amazon Lambda with iX Hello.

https://portal.aws.amazon.com/billing/signup#/start
https://console.aws.amazon.com
Graphical user interface, application Description automatically generated
Graphical user interface, application Description automatically generated