[UNMAINTAINED] Bridge to connect Amazon Alexa to Api.ai using an AWS Lambda Function
Bridge to connect Amazon Alexa to Api.ai using an AWS Lambda Function.
{
"intents": [
{
"intent": "ApiIntent",
"slots": [
{
"name": "Text",
"type": "AMAZON.LITERAL"
}
]
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.CancelIntent"
},
{
"intent": "AMAZON.StopIntent"
}
]
}
Create a Custom Slot Type:
list_test
test
Use the next Sample Utterances:
piIntent {test|Text}
piIntent {hello test|Text}
Copy the Alexa App Id (upper-left corner) to use it later in the Final Configuration section.
Select Default Welcome Intent:
WELCOME
as a trigger Event.Select Default Fallback Intent:
FALLBACK
as a trigger Event.Create a new Intent called Default Bye Event:
BYE
as a trigger Event.Create a new Intent called Default Help Event:
HELP
as a trigger Event.Enter a Name and choose Node.js 6.x as the Runtime.
AlexaApiAiBridge.zip
file from the latest release of this repo.lambda_basic_execution
role created that you can use.)Copy the Lambda ARN (upper-right corner) and use in the Alexa Skill Configuration section.
Go to your Lambda Code tab.
Replace ALEXA_APP_ID
with your Alexa App Id and APIAI_DEVELOPER_ACCESS_TOKEN
with your Api.ai Developer Access Token:
onst ALEXA_APP_ID = 'amzn1.ask.skill.app.your-skill-id';
onst APIAI_DEVELOPER_ACCESS_TOKEN = 'your-apiai-developer-access-token';
Go to Alexa Manager and change the language of your device to English (United States) inside the Settings menu.