Skip to content

copywriter and storyteller for social media. Input events, get engaging posts for LinkedIn, Instagram and X. Shine effortlessly!!

License

Notifications You must be signed in to change notification settings

siddheshshende/PostGen-Bot

Repository files navigation

PostGen-Bot Logo

PostGen-Bot
Your AI-Powered Social Media Content Generator

Platform: Telegram AI: OpenAI Framework: Node.js Database: MongoDB Language: JavaScript License: MIT

Tech Stack and Tools:

  • 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.

✨ Welcome to PostGen-Bot ✨

line

Table of Contents

Click to expand

Overview🤖

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!!

Problem and Solution

The Problem 🆘

  • 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.

Our Solution 💡

  • 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.
bot dashboard bot dashboard1

Key Features:

  • 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.

Dependencies used🖥️

  • 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).

(back to top)

How It Works

  1. Start a chat with PostGen-Bot on Telegram.
  2. Share your daily events and thoughts.
  3. Use the /generate command to create tailored social media posts.
  4. Receive unique, platform-specific content for LinkedIn, Instagram and Twitter(x).
  5. Copy and paste the generated posts to your social media platforms.

Installation

Prerequisites

  • Node.js and npm installed.
  • MongoDB instance running.

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/postgen-bot.git
    cd postgen-bot
  2. Install dependencies:

    npm install
  3. 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.

  4. Start the bot:

    npm start
  5. 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.

(back to top)

Usage Notes

Here's how to use PostGen-Bot:

  1. Start the bot: Type /start to begin your journey.
  2. Share your day: Simply send messages about events, thoughts or experiences as they happen.
  3. Generate posts: When ready, type /generate to create social media content.
  4. Review and use: You'll receive tailored posts for LinkedIn, Instagram and Twitter(x). Copy and paste to your preferred platforms.
  5. Repeat: Keep sharing events throughout the day for fresh content.
  6. 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.
  7. 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.

(back to top)

Contributing🤝

We welcome contributions to improve PostGen-Bot! Here's how you can contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix:
    git checkout -b feature/AmazingFeature
  3. Commit your changes and push to the branch:
    git commit -m 'Add some AmazingFeature'
    git push origin feature/AmazingFeature
  4. Open a Pull Request with a detailed description of your changes.
  5. Voila!! You have made a PR to this awesome projects. Wait for your submission to be accepted and your PR to be merged.

(back to top)

License

This project is licensed under the MIT License - see the LICENSE file for details.

line
Made with ❤️ for social media enthusiasts

About

copywriter and storyteller for social media. Input events, get engaging posts for LinkedIn, Instagram and X. Shine effortlessly!!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published