<!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
- 🖼️ 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
- 🐍 Make sure you have Python 3.x installed (tested on 3.8). You can download it from here.
- 💻
pip install openai instagrapi instaloader Pillow
- 📦 Clone this repository:
git clone https://github.com/WillReynolds5/AutoGPT-Social.git
cd AutoGPT-Social
📚 Usage
- 🔑 Add an Instagram account and OpenAI API key:
python initialize_bot.py <instagram_username> <instagram_password> <openai_api_key>
🗂️ 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.
- 📝 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.
- 🏷️ Input will ask that you enter at least one relevant hashtag (separate multiple by commas)
<your_hashtags>
ie. #realestate, #design
- ✏️ (Optional) Edit
accounts/<instagram_username>/prompt.txt
if you want to customize the mission statement or objectives for the bot.
- ➕ Add all of your images to the
accounts/<instagram_username>/queue
directory. The bot will select images from this directory to post on Instagram.
- 📷 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
- 🚀 Run the Instagram bot with the specified account directory and desired number of posts per day:
python start_bot.py <instagram_username> <post_count>
- 🔄 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.
- Input the wrong api_key, username or password? Fix them at
accounts/<instagram_username>/config.json
Sample |
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.