π 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. π―
- πΌοΈ 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
- π 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
- π Add an Instagram account and OpenAI API key:
python initialize_bot.py <instagram_username> <instagram_password> <openai_api_key>
- π 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
ποΈ 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.
- Support for twitter. Want other platforms? DM me on twitter @spacemonkeyai
- AI Image generation
- 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.