That’s nothing @sono_matteo , thank you for your hard work. I had given up on my Google Nest and Echo devices as doing anything with them, besides turning on/off lights, is more time-consuming than helpful.
To continue on my update:
- I can’t make a routine that detects the words “Open A.I” or “Chat G P T”, as it will make Alexa look into its Skills repository instead of matching with my routine rule
- A routine to detect the phrase “Open Oracle” works from time to time. It gets it wrong “Open Rocket”
- A routine to detect “Alexa, Be smart” works from time to time, it also looks for “Bismark”.
Eventually I’ll have to find out what keyword has the highest precision with Alexa. Once the Oracle is on, I find it way easier: Chat GPT is quite robust to a few wrong words, just like a prompt full of typos and swapped letters on chat.openai.com is actually likely to still generate a good output.
And I had a quick idea to avoid your bill going too high without limiting the reach of the skill:
- Provided your skill receives a unique Alexa identifier
- Then, could it be possible to:
- Count the number of requests to your Skill per AlexaID
- Create a webpage/form/etc where anyone can send you a pair of {alexaID, openaiAPIkey}
- Set a threshold of skill request per AlexaID, absolute or per given time period, above which your skill would reply "Maximum number of requests reached. Submit your Open AI API key on or activate Oracle Premium at 1.99E/m
- If the AlexaID is associated with a user-submitted OpenAIkey, then you make your request to OpenAI with the user OpenAI key instead of your personal one.




