WillReynolds5 / AutoGPT-Social

Autonomous Instagram bot which creates and optimizes posts to maximize engagement
MIT License
330 stars 54 forks source link

<!DOCTYPE html>

🤖 AutoGPT-Social 📸

🚀 This Instagram bot app automatically generates and posts engaging content for your Instagram account using OpenAI GPT. The bot gets real-world feedback in the form of likes and comments and uses the data to optimize captions, hashtags, and posting times. The bot's goal is to get as many likes, comments, and followers as possible. 💯

🌟 Features

🛠️ Setup and Installation

  1. 🐍 Make sure you have Python 3.x installed (tested on 3.8). You can download it from here.
  2. 💻 pip install openai instagrapi instaloader Pillow
  3. 📦 Clone this repository:
    git clone https://github.com/WillReynolds5/AutoGPT-Social.git
    cd AutoGPT-Social

📚 Usage

  1. 🔑 Add an Instagram account and OpenAI API key:
    python initialize_bot.py <instagram_username> <instagram_password> <openai_api_key>
  2. 🗂️ This script will create a directory for the specified Instagram account, set up the required directory structure, and save the account configuration in a JSON file.

  3. 📝 Input will ask that you enter an account summary: <your_account_summary>
    ie. The posts should be centered around adding value to viewers' lives by creating informative copy about tips, trends, and fun ideas in the areas of gardening, interior design, architecture, and real estate in general.
  4. 🏷️ Input will ask that you enter at least one relevant hashtag (separate multiple by commas)<your_hashtags>
    ie. #realestate, #design
  5. ✏️ (Optional) Edit accounts/<instagram_username>/prompt.txt if you want to customize the mission statement or objectives for the bot.
  6. ➕ Add all of your images to the accounts/<instagram_username>/queue directory. The bot will select images from this directory to post on Instagram.
  7. 📷 Give your images simple yet descriptive titles so the bot knows what is in them (separate words with _) ie. photo_of_golden_gate_bridge.jpg
  8. 🚀 Run the Instagram bot with the specified account directory and desired number of posts per day:
    python start_bot.py <instagram_username> <post_count>
  9. 🔄 Replace <instagram_username> with the appropriate Instagram username directory created by the initialize_bot.py script and <post_count> with the desired number of posts per day.
  10. Input the wrong api_key, username or password? Fix them at accounts/<instagram_username>/config.json
Sample
Image
modern_design.jpg

Sample Post:

Looking for ways to bring a modern touch to your home? Here are a few tips:

  • Incorporate clean lines and geometric shapes in your furniture and decor
  • Use a neutral color palette with pops of bold colors for contrast
  • Add light fixtures with a modern design to enhance the space

Follow us for more informative posts about architecture, interior design, gardening, and real estate. Don't forget to use these related hashtags in your posts to join the conversation: #griffith_partners #moderndesign #homedecor #interiordesign #architecture.

Coming Soon!

Notes