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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.