Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/WillReynolds5/AutoGPT-Social

Autonomous Instagram bot which creates and optimizes posts to maximize engagement
https://github.com/WillReynolds5/AutoGPT-Social

Last synced: 3 months ago
JSON representation

Autonomous Instagram bot which creates and optimizes posts to maximize engagement

Awesome Lists containing this project

README

        

🤖 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



  • 🖼️ Automatically selects images and generates captions w/ hashtags for Instagram posts

  • 📈 Gets real-time feedback (number of likes, comments) to optimize posting schedule, captions, and hashtags for maximum views, likes, comments, and follows

  • ⏲️ Set the number of posts per day

  • 🔍 Automatically finds 100s of relevant hashtags and figures out which are best


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



  • Support for twitter. Want other platforms? DM me on twitter @spacemonkeyai

  • AI Image generation

Notes



  • The Instagram bot app uses GPT-3.5-turbo and OpenAI's API to generate captions. Make sure you have a valid OpenAI API key.

  • The app is not responsible for any consequences of using the bot, such as Instagram account restrictions or bans. Use it at your own risk.