Implementation of Bing GPT as a Alexa Skil.
Youtube Demo
https://youtube.com/shorts/LKjYoFaYkv8?feature=share
- Say "ask" followed by your question.
- Recieve a password.
- Say "password" followed by your password.
- Return your bing chat response.
You need python 3.10.9
- Download the project files in a folder
- Open bing chat on Edge and copy your cookies to cookies.json, you can use the extension cookie-editor
- Inside the folder run the command
pip install -r requirements.txt
on cmd - run the server with:
python server.py
- Go to
https://developer.amazon.com/alexa/console/ask
- Click on
Create Skill
- Choose a name and locale and Next
- Select
other
use the custom model, in the bottom, selectAlexa-hosted (Python)
and Next - Select
Start from scratch
and Next - Click on
Create Skill
- in
Invocations
selectSkill Invocation Name
and choose a name
- in
Interaction Model
selectIntents
to create your first intent for recieve the questions + Add Intent
writeQuestionIntent
andCreate custom intent
- in
Sample Utterances
addask {question}
accept the dialog boxAdd
, and click in the+
to add. - on the bottom you will see a field
question
in the slot type chooseAMAZON.SearchQuery
- Create your intent to input the password
14.
+ Add Intent
writeCodeIntent
andCreate custom intent
- in
Sample Utterances
addpassword {code}
accept the dialog boxAdd
, and click in the+
to add. - on the bottom you will see a field
code
in the slot type chooseAMAZON.SearchQuery
- On the top click in
Save Model
andBuild Model
- on the tab
code
replace the code onlambda_function.py
for the code on the github with the same name - on the code, search for the two fields
SERVER_ADDRESS
and replace by your IP + port if needed. if you have trouble with port fowarding, see the next topic bellow. - click on
SAVE
andDEPLOY
- On the
Test
tab selectDevelopment
on top - on the text box write Open and your choosen Skill Invocation Name
- you should recieve the message
Hello, say ask and your question!
- you can ask anything using ask before the question
ask what is your name?
- you should recieve
say, password: ##
- wait 1 or 2 minutes, so bing can answer your question, then ask for it, with
password ##
- that's it. it should be enabled by default on your devices of the same amazon account
- I recommend downloading jprq https://github.com/azimjohn/jprq/releases/tag/2.0
- Auth, then exec with
jprq-windows-amd64.exe http 8080
and you will recieve an SERVER_ADDRESS.