Skip to content

simple alexa skill to request openai api to use chatGPT also with your alexa

License

Notifications You must be signed in to change notification settings

kruegge/alexa_skill_openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexa skill

This is only a simple example for a alexa skill. The skill is written in go and can be run on AWS Lambda.

run code on AWS Lambda

  • You must create a aws lambda function in a compatible region like Irland for german skills.
  • To run your code on AWS Lambda, you need to create a zip file with all your code and dependencies.

Alexa Skill Kit

how to use skill

  • start skill with invocation name

    alexa open your-invocation-name

  • ask question with intent keyword

    sag wie ist das wetter

    erzähle mir wie ist das wetter

    nenne mir wie ist das wetter

    sage mir wie ist das wetter

    erkläre mir wie ist das wetter

    frage wie weit ist es bis zum mond

  • when you not ask a question, alexa will ask you for a question after 8 seconds

  • stop intent by saying stop keyword to alexa

    stop

intent JSON

{
  "interactionModel": {
    "languageModel": {
      "invocationName": "your skill invocation name",
      "intents": [
        {
          "name": "AMAZON.CancelIntent",
          "samples": []
        },
        {
          "name": "AMAZON.HelpIntent",
          "samples": []
        },
        {
          "name": "AMAZON.StopIntent",
          "samples": []
        },
        {
          "name": "AMAZON.NavigateHomeIntent",
          "samples": []
        },
        {
          "name": "QuestionIntent",
          "slots": [
            {
              "name": "question",
              "type": "AMAZON.SearchQuery"
            }
          ],
          "samples": [
            "sag {question}",
            "erzähle {question}",
            "nenne {question}",
            "sage {question}",
            "erkläre {question}",
            "frage {question}"
          ]
        }
      ],
      "types": []
    }
  }
}

About

simple alexa skill to request openai api to use chatGPT also with your alexa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages