Este projeto é uma ferramenta de automação social media que integra CrewAI e Gemini para gerenciar postagens no Instagram. Oferece geração inteligente de legendas, processamento de imagens e suporte a múltiplos formatos de mídia.
Origem do Projeto: Este projeto foi inspirado pelo livro CrewAI 2 - Intermediário do Professor Sandeco, que apresenta conceitos avançados de automação e IA colaborativa para desenvolvimento de agentes inteligentes.
- Geração de legendas usando CrewAI
- Descrição de imagens com API Gemini
- Processamento de imagens e vídeos
- Suporte a carrosséis do Instagram
- Interface web via Streamlit
- API REST para integrações
- Python 3.10+
- FFmpeg para processamento de vídeos
- Conta Instagram Business/Creator
- Chave API Gemini
- UV (gerenciador de pacotes Python)
- Instale as dependências:
uv sync
- Execute a interface Streamlit:
streamlit run streamlit_app.py
- Acesse em
http://localhost:8501
- Instale o UV e crie ambiente virtual:
pip install uv uv venv source venv/bin/activate # Windows: venv\Scripts\activate uv sync
- Configure o
.envcom suas credenciais - Inicie o servidor Flask
app.py: Endpoints Flaskinstagram/: Módulos de integração Instagramcrew_post_instagram.py: Configuração CrewAImessage.py: Processamento de mensagensstreamlit_app.py: Interface gráfica
MIT License - Veja LICENSE para detalhes.
This project is a comprehensive tool for automating and managing social media posts, with a special focus on Instagram. It integrates the CrewAI library to generate creative captions, along with robust image processing features – including filters, border addition, image upload via Imgur, and Instagram posting. It also features intelligent image description using Google's Gemini API, message processing (text, audio, image, and document) and integration with the Evolution API.
Project Origin: This project was inspired by Professor Sandeco's book CrewAI 2 - Intermediate, which presents advanced concepts of automation and collaborative AI for developing intelligent agents.
- Caption generation with CrewAI
- Image processing: filters, corrections, and border additions
- Image upload using Imgur
- Instagram post publishing
- Intelligent image description with Gemini API
- Message processing and sending via Evolution API
- Flask endpoints for webhooks and service integration
- Install dependencies:
uv sync
- Run the Streamlit interface:
streamlit run streamlit_app.py
- Access the web interface at
http://localhost:8501 - Use the sidebar to configure:
- Writing style
- Narrative person
- Sentiment
- Emoji and informal language usage
- Upload an image and add an optional caption
- Click "Post to Instagram" to publish
- Install UV:
pip install uv
- Create the virtual environment:
uv venv
- Activate the virtual environment (use
venv\Scripts\activateon Windows):source venv/bin/activate - Synchronize dependencies and launch the application:
uv sync
app.py: Flask endpoints for message processing.instagram/folder: Modules for creating posts, image uploading, filters, border additions and image description.crew_post_instagram.py: CrewAI configuration and caption generation tasks.message.pyandsend_message.py: Message processing and sending.paths.py: File path configurations.streamlit_app.py: Graphical interface for post management- Other auxiliary files and scripts.
Contributions are welcome! Feel free to open issues and pull requests for improvements and fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.
Happy coding! 😄