Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joao208/alexa-chatgpt
This is an Alexa bot developed with the help of OpenAI's ChatGPT language model. With it, you can converse naturally with Alexa, answering questions and performing tasks based on its language training.
https://github.com/joao208/alexa-chatgpt
alexa axios chat chat-gpt javascript
Last synced: 7 days ago
JSON representation
This is an Alexa bot developed with the help of OpenAI's ChatGPT language model. With it, you can converse naturally with Alexa, answering questions and performing tasks based on its language training.
- Host: GitHub
- URL: https://github.com/joao208/alexa-chatgpt
- Owner: Joao208
- Created: 2023-02-05T03:12:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T19:36:56.000Z (over 1 year ago)
- Last Synced: 2024-12-15T17:01:41.341Z (10 days ago)
- Topics: alexa, axios, chat, chat-gpt, javascript
- Language: JavaScript
- Homepage: http://bit.ly/3wUKdIz
- Size: 644 KB
- Stars: 190
- Watchers: 7
- Forks: 48
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alexa Skill with ChatGPT
This repository contains an example of how to use OpenAI's ChatGPT language model to create an Alexa Skill.
## How it works
This code connects to the OpenAI ChatGPT API and sends Alexa's questions to the model, which processes them and returns the answers. Then, these responses are transmitted back to Alexa and presented to the user.
## Configuration
You will need to obtain an API key from OpenAI to use the ChatGPT model. More information on how to do this can be found in the OpenAI API documentation.
Once you have your API key, simply insert it into the index.js file in the designated location.
## Running the example
This example was developed using Amazon's ASK CLI. To run it, you will need to install the ASK CLI and configure your Amazon Developer account.
Once configured, simply run the following commands in the terminal:
```
ask init
ask deploy
```This will deploy your Skill to your Amazon Developer account and make it available for use with Alexa.
## Final considerations
This is just a basic example of how to use ChatGPT with Alexa. You can expand this implementation to create more complex and personalized skills. Enjoy!