A Telegram bot that allows users to create, retrieve, and analyze journal entries. The bot uses OpenAI's GPT-4 model to generate insights and actionable steps based on the user's entries.
- Create new journal entries
- Retrieve entries by date range
- Generate insights and actionable steps based on the user's entries
- Clone the repository:
git clone https://github.com/moonmidas/journal-bot.git
- Install dependencies:
cd journal-bot
npm install
-
Go to telegram and message @BotFather to get your bot token.
-
Go to MongoDB Atlas and create a new cluster.
-
Go to OpenAI Platform and create a new account.
-
Create a
.env
file in the project root directory and add your OpenAI API, MongoDB, and Telegram Bot key:
OPENAI_API_KEY=your_openai_api_key
MONGODB_URI=your_mongodb_uri
BOT_TOKEN=your_telegram_bot_token
- Run the bot:
node index.js
- Start the bot by sending
/start
to the bot.