https://github.com/paulotruta/alexa-skill-llm-intent
An Alexa Skill template to easily create a skill that proxies requests to an LLM and reads back the response.
https://github.com/paulotruta/alexa-skill-llm-intent
alexa-sdk alexa-skill chatgpt openai voice-assistant
Last synced: 4 months ago
JSON representation
An Alexa Skill template to easily create a skill that proxies requests to an LLM and reads back the response.
- Host: GitHub
- URL: https://github.com/paulotruta/alexa-skill-llm-intent
- Owner: paulotruta
- License: mit
- Created: 2022-12-05T00:38:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-11T00:15:29.000Z (4 months ago)
- Last Synced: 2025-01-11T00:23:13.223Z (4 months ago)
- Topics: alexa-sdk, alexa-skill, chatgpt, openai, voice-assistant
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 134
- Watchers: 6
- Forks: 22
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alexa-skill-llm-intent
An Alexa Skill template that gives you a ready to use skill to start a turn conversation with an AI. Ask a question and get answered with Alexa's soothing voice, powered by ChatGPT or other llm.
## Setup
1. Copy `config.example.json` to `config.json`
2. Set `llm_url` value in `config.json` to an Open AI API Compatible provider api url.
3. Set `llm_key` in `config.json` to your llm provider API key
3. Set `llm_model` to a provider compatible `model` argument (or 'webhook' to proxy request as POST to `llm_api_url`), in `config.json`.
4. Zip this repository (to later import it in the Alexa Developer Console).
5. Create a new Alexa Skill in the Alexa Developer Console.
6. Go in the Code tab of the Alexa Developer Console and click "Import Code".
7. Select the zip file with the contents of this repository.
8. Click "Save" and "Build Model".
9. Go in the Test tab of the Alexa Developer Console and test! You can also use your alexa devices if they are connected to the same account!## Usage
### Commands
- `Alexa, I want to ask a question`
- `Alexa, ask about our solar system`
- `Alexa, ask to explain the NP theorem`# Disclaimer
Use at your own risk. This is a template and should be used as a starting point for your own Alexa Skill. The code is provided as is and I am not responsible for any misuse or damages caused by this code.