Giter Club home page Giter Club logo

alexa-bing-gpt's Introduction

alexa-bing-gpt

Implementation of Bing GPT as a Alexa Skil.

Youtube Demo
https://youtube.com/shorts/LKjYoFaYkv8?feature=share

IMAGE ALT TEXT HERE

  1. Say "ask" followed by your question.
  2. Recieve a password.
  3. Say "password" followed by your password.
  4. Return your bing chat response.

Install

Server

You need python 3.10.9

  1. Download the project files in a folder
  2. Open bing chat on Edge and copy your cookies to cookies.json, you can use the extension cookie-editor
  3. Inside the folder run the command pip install -r requirements.txt on cmd
  4. run the server with: python server.py

Create - Alexa Skill

Create

  1. Go to https://developer.amazon.com/alexa/console/ask
  2. Click on Create Skill
  3. Choose a name and locale and Next
  4. Select otheruse the custom model, in the bottom, select Alexa-hosted (Python) and Next
  5. Select Start from scratch and Next
  6. Click on Create Skill

Choose a name

  1. in Invocations select Skill Invocation Name and choose a name

QuestionIntent

  1. in Interaction Model select Intents to create your first intent for recieve the questions
  2. + Add Intent write QuestionIntent and Create custom intent
  3. in Sample Utterances add ask {question} accept the dialog box Add, and click in the + to add.
  4. on the bottom you will see a field question in the slot type choose AMAZON.SearchQuery

CodeIntent

  1. Create your intent to input the password 14.+ Add Intent write CodeIntent and Create custom intent
  2. in Sample Utterances add password {code} accept the dialog box Add, and click in the + to add.
  3. on the bottom you will see a field code in the slot type choose AMAZON.SearchQuery

Save

  1. On the top click in Save Model and Build Model

Change the Code

  1. on the tab code replace the code on lambda_function.py for the code on the github with the same name
  2. 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.
  3. click on SAVE and DEPLOY

Testing

  1. On the Test tab select Development on top
  2. on the text box write Open and your choosen Skill Invocation Name
  3. you should recieve the message Hello, say ask and your question!
  4. you can ask anything using ask before the question ask what is your name?
  5. you should recieve say, password: ##
  6. wait 1 or 2 minutes, so bing can answer your question, then ask for it, with password ##
  7. that's it. it should be enabled by default on your devices of the same amazon account

Get a SERVER_ADDRESS without portfoward

  1. I recommend downloading jprq https://github.com/azimjohn/jprq/releases/tag/2.0
  2. Auth, then exec with jprq-windows-amd64.exe http 8080 and you will recieve an SERVER_ADDRESS.

alexa-bing-gpt's People

Contributors

rafared avatar

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.