-
Clone the repo
-
Install NPM packages
yarn
- Create an .env file containing your OpenAI secret API key:
OPENAI_SECRET_KEY="<Secret key>"
- Optionally set a default prompt in your .env file to give your bot a different personality:
DEFAULT_PROMPT="<Your custom prompt here>"
- Run the bot:
yarn run start
- Open WhatsApp on your phone, select 'WhatsApp Web' from the settings menu, then scan the provided QR code.
- Choose from the list of recent chats which you would like to activate the bot for. Use space key to select.
- Sit back and watch the bot respond automatically to incoming messages from your selected contacts.