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:
- Navigate to the AWS Lambda service from AWS Console, and then click on the Create function button.
- Select Author from scratch