Skip to content

    ChatGPT-Replit (Headful Puppeteer + NodeJS ChatGPT-API)

    Created by
    kevinqz
    kevinqz

    How to use it?

    1. Fork the Replit Template to your account
    2. Create two Replit Secrets (Tools > Secrets): one for your EMAIL and one for your PASSWORD. This is important to keep your account info private.
    3. Set the account type by changing "isLogin" variables inside the 'index.js' file ./js/index.js:
    • For OpenAI Account, both values have to be false:
    const isGoogleLogin = false;
    const isMicrosoftLogin = false;
    • For Google Account, set Google to true and Microsoft to false:
    const isGoogleLogin = true;
    const isMicrosoftLogin = false;
    • For Microsoft Account, set Google to false and Microsoft to true:
    const isGoogleLogin = false;
    const isMicrosoftLogin = true;
    1. You're all set! Press 'Run' to say "Hello World" to your ChatGPT instance

    2. Edit the index.js to use the ChatGPT-API according to your needs

    Preview