Skip to content

WandLZhang/alexa-skill-gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alexa Skill - Chat with Gemini

Alexa Skill Template to Integrate Google Gemini on Alexa Devices

Credit to Scintilla Hub

Requirements

  • With a Google account, generate an authentication key at Google AI Developer. Copy and save the key, it will only be visible at the time of creation.
  • Create an account at Amazon and log into Alexa Developer Console.

Creating the Alexa Skill

Create an Alexa-hosted Skill (Python) on Alexa: (Create Skill)

  1. Name your Skill: Choose a name of your choice, e.g., Chat with Gemini
  2. Choose a primary locale, e.g., Portuguese (BR)
  3. Click Next. In Experience Type, select: Other > Custom > Alexa-hosted (Python)
  4. Hosting region: You can leave the default US East (N. Virginia)
  5. In Templates: Click Import Skill
  6. Enter the repository address: https://github.com/WandLZhang/alexa-skill-gemini.git and confirm.

Configuring the Skill

When you finish importing Invocations > Skill Invocation Name:

  1. Edit Skill Invocation Name. This will be the invoking command for your skill. Pay attention to word requirements and restrictions.
  2. Click Save
  3. Build the Skill by clicking Build Skill. When finished, go to the tab Code
  4. Create a file inside the Lambda folder called .env and add the line, adding the generated API key:
    GOOGLE_API_KEY=SuaApiKeyGoogleAI
  5. Click Save and then click Deploy

Test the Skill

When deploy finishes, go to the tab Test:

  1. In Skill testing is enabled in, turn it from Off to Development
  2. To use voice commands, accept the website's request to use the microphone, and to speak, click and hold the mic icon, and release to send
  3. Use the configured activation command to start the Skill, and you're ready to interact with Gemini via Alexa!

The Skill will now be available on all Alexa devices linked to your account.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages