Skip to content

moonmidas/ai-journaling-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Journal Bot

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.

Features

  • Create new journal entries
  • Retrieve entries by date range
  • Generate insights and actionable steps based on the user's entries

Installation

  1. Clone the repository:
git clone https://github.com/moonmidas/journal-bot.git
  1. Install dependencies:
cd journal-bot
npm install
  1. Go to telegram and message @BotFather to get your bot token.

  2. Go to MongoDB Atlas and create a new cluster.

  3. Go to OpenAI Platform and create a new account.

  4. 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
  1. Run the bot:
node index.js

Usage

  1. Start the bot by sending /start to the bot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published