Giter Club home page Giter Club logo

alexa-chatgpt's Introduction

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!

alexa-chatgpt's People

Contributors

charlesribeiro avatar joao208 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

alexa-chatgpt's Issues

Video explicativo

Olá boa noite, tentei criar uma skill da Alexa com a api do chatGPT passando o .env no arquivo, porém não entendi como vc fez para realizar a implementação, será que um video rápido não seria viável?

Tem algum tutorial para leigos?

Vi o projeto e gostaria de parabenizar pelo trabalho. A única coisa que senti falta foi de uma explicação de como colocar em funcionamento. Teriam um passo-a-passo para indicar para um leigo?

Hi I wanted to have Chat chpt in my alexa Skill. I copyed the files with the codes. I dónt know where to put my key from Open AI. Is it in the index. Here ? headers: {

          Hi I wanted to have Chat chpt in my alexa Skill. I copyed the files with the codes. I dónt know where to put my key from Open AI. Is it in the index. Here ?  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer ${process.env.OPENAI_API_KEY}}`, . Where exactly? Thank you!

Originally posted by @Chukyl1979 in #3 (comment)

To correctly index the API key, you must ensure that you correctly replace the value of 'process.env.OPENAI_API_KEY' with your own OpenAI API key

Timeout de 8 segundos

Muitas vezes a API do ChatGPT está sobrecarregada e ele demora mais que os 8 segundos de limite de uma Intent para responder, resultando em um erro de execução da skill.

Conhece alguma forma de contornar isso? Melhorar a velocidade de resposta da API não está sob nosso poder. Resta implementar alguma lógica.

Pesquisei na Alexa Developer Documentation, mas nenhuma solução foi satisfatória.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.