Make your smart speaker actually smart. This serverless function plumbs ChatGPT API into Alexa using AWS Lambda. It's not conversational (yet).
alexa_gpt.mp4
- Install Serverless if you don't already have it:
npm i -g serverless
npm i
- Create a new Alexa Skill, using the Custom type. Make a note of the Skill ID.
- Create an OpenAI API Key
- Deploy with:
ALEXA_SKILL_ID=<YOUR SKILL ID> OPENAI_API_KEY=<YOUR API KEY> sls deploy
- Copy the Lambda ARN into the Alexa Endpoint config
- Configure the query slot type and query intent:
- Add
AMAZON.SearchQuery
as a slot type - Build your model and test!