- Backend: Node.js,Express.
- Database: MongoDB.
- Bot Platform: Telegram.
- AI Integration: OpenAI.
- Uptime Monitoring: UptimeRobot.
- Backend Deployment: Render
- Code Editor: VS Code.
- Version Control: Git and GitHub.
Click to expand
PostGen-Bot is your AI-powered social media assistant, designed to help you create engaging, platform-specific content with ease. Simply share your daily events and let PostGen-Bot craft perfect posts for LinkedIn, Instagram and Twitter(x). Improve your social media presence without exerting any effort!!
- It can be difficult, hectic and time-consuming to regularly manage and produce interesting social media material, especially for working professionals.
- Traditional methods need a lot of work to remain updated and active across several platforms.
- PostGen-Bot assists users in maintaining an active and engaging social media presence without the constant need to create material by automating the content generation procedure via telegram.
- It allows to user's input for unique posts and also saves time.
- AI-powered content generation.
- Platform-specific post creation(LinkedIn,Instagram & Twitter)
- User-friendly Telegram interface.
- Personalized content based on user input.
- Emoji integration for enhanced engagement.
- Character count feature to ensure posts fit platform limits.
- nodemon (for auto-restarting the server during development).
- Express (web application framework).
- Mongoose (MongoDB object modeling tool).
- OpenAI (For accessing the OpenAI API).
- Telegraf (Telegram bot framework).
- Start a chat with PostGen-Bot on Telegram.
- Share your daily events and thoughts.
- Use the /generate command to create tailored social media posts.
- Receive unique, platform-specific content for LinkedIn, Instagram and Twitter(x).
- Copy and paste the generated posts to your social media platforms.
- Node.js and npm installed.
- MongoDB instance running.
-
Clone the repository:
git clone https://github.com/yourusername/postgen-bot.git cd postgen-bot
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following variables:BOT_TOKEN=your_bot_token MONGO_CONNECT_STRING=your_mongo_connection_string OPENAI_KEY=your_openai_key WEBHOOK_URL=your_webhook_url
Replace
your_*
with your actual API keys and tokens. -
Start the bot:
npm start
-
Deploy on Render:
- Create a new web service on Render and connect your GitHub repository.
- Add environment variables as listed above in the Render dashboard.
- Deploy the service.
Here's how to use PostGen-Bot:
- Start the bot: Type /start to begin your journey.
- Share your day: Simply send messages about events, thoughts or experiences as they happen.
- Generate posts: When ready, type /generate to create social media content.
- Review and use: You'll receive tailored posts for LinkedIn, Instagram and Twitter(x). Copy and paste to your preferred platforms.
- Repeat: Keep sharing events throughout the day for fresh content.
- The project code includes various comments which clarify functionality and increase readability. These comments can be useful for understanding the code's structure and logic.
- For more information, access the full project demo video on Google Drive here.
💡 Pro Tip: The more details you share, the better your posts will be!
Need help? Just type /help anytime.
We welcome contributions to improve PostGen-Bot! Here's how you can contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/AmazingFeature
- Commit your changes and push to the branch:
git commit -m 'Add some AmazingFeature' git push origin feature/AmazingFeature
- Open a Pull Request with a detailed description of your changes.
- Voila!! You have made a PR to this awesome projects. Wait for your submission to be accepted and your PR to be merged.
This project is licensed under the MIT License - see the LICENSE file for details.