LexV2 Lambda
Use the pre-configured AWS Lambda Archive to setup and send user input that are routed through the Lex FallbackIntent to NeuralSeek.
Set by step instruction
- Open the Functions page on the Lambda console.
- Select “Create function”.
- Create a function from scratch.
- In the Code Source pane, choose Upload from and then .zip file.
- Choose Upload to select your Lambda Archive .zip file.
- Choose Save.
- Click on index.mjs and enter your API key and instance URL.
- Click “Deploy”.
- Select “Configuration” tab.
- Select “General Configuration” pane.
- Click “Edit”.
- Update under Timeout, set min to be 1 and sec to be 0.
- Click “Save”.
- Open the Amazon Lex console at https://console.aws.amazon.com/lexv2/home#bots
- From the list of bots, choose the name of the bot that you want to use.
- Under “Deployment” on the left panel select “Aliases”.
- From the list of aliases, choose the name of the alias that you want to use.
- From the list of supported languages, choose the language that the Lambda function is used for.
- Choose the name of the Lambda function to use, then choose the version or alias of the function.
- Choose Save to save your changes.
- On the left panel under “All languages”, select “Intents” under the language that the fallback intent is used for.
- Select “FallbackIntent”.
- Under “Fulfillment” set to Active by clicking the select box next to “Active”.
- Under “Fulfillment” Click “Advanced options”.
- Check the checkbox next to “Use a Lambda function for fulfillment”.
- Click “Updated options”.
- Click “Save intent”.
- Click “Build” to build the bot.