A conversational bot for tiktok livestreams built on ChatGPT.
Love the project? Please consider donating to help it improve!
To run this code, you require an API key from ElevenLabs and OpenAI.
- Sign up here for a free account.
- Sign up here for a free account.
-
First, add your OpenAI and ElevenLabs API keys as well as the name of the TikTok account that's livestreaming in the
.env.example
file -
Next, rename the
.env.example
file to.env
-
Finally, to run the project, run:
mkdir audio
# then
mkdir logs
# then
npm install
# then
npm start
TiktokChatGPT
├── docs # Documentation
│ ├── images
│ └── CONTRIBUTING.md
├── audio # Response audio file store
│ └── example.mp3
├── logs # Log file store
│ └── access.log
├── app.js # Tiktok livestream responder
├── gpt.js # OpenAI prompt and response function
├── voice.js # ElevenLabs vocal response function
├── logger.js # Logging function
├── .env # Credentials and environment variables
├── package.json
├── README.md
Contributions are welcome. Checkout the CONTRIBUTING.md to learn more.