Fulfillment for LookupPhoneNumberByName using AWS Lambda

To perform any fulfillment action with the intelligent assistant, developers need to invoke AWS Lambda functions. The Fulfillment section provides a hook to an existing lambda function. Let's implement a lambda function called LookupPhoneNumberByName to search for the phone number of a contact by his or her first and last names.

In contrast to previous projects, where we used AWS Chalice to develop and deploy the lambda code and AWS permissions, we will be using the AWS Lambda console page to create the LookupPhoneNumberByName function. Here are the steps:

  1. Navigate to the AWS Lambda service from AWS Console, and then click on the Create function button.
  2. Select Author from scratch

Get Hands-On Artificial Intelligence on Amazon Web Services now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.