Skip to content

AI Social Post Repurposer is a Streamlit app powered by Mistral AI that transforms long-form content (blogs, newsletters, articles) into platform-ready social media posts (Twitter, LinkedIn, Instagram, etc.) with customizable tone, style, and creativity.

License

Notifications You must be signed in to change notification settings

msravanthi674/social-media-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📪 AI Social Post Repurposer

Transform your blogs, newsletters, or articles into platform-ready social media posts in seconds using Mistral AI 🚀

Streamlit Python Mistral AI License: MIT Deploy


✨ Features

  • 📝 Paste any long-form content (blogs, reports, newsletters, etc.)
  • 🌐 Generate posts tailored for Twitter, LinkedIn, Instagram, and more
  • 🎭 Customize tone (formal, witty, casual, professional)
  • 📏 Adjust length (short, medium, long)
  • 🎨 Control creativity with temperature slider
  • 📥 Export results as CSV or JSON
  • ⚡ Powered by Mistral AI

📂 Project Structure

social-posts/
│
├── app.py # Streamlit UI
├── requirements.txt # Dependencies
├── .env # API Key 
│
├── src/ # Core logic
│ ├── init.py
│ ├── generator.py # Mistral API calls
│ └── styles.py # Platform-specific style templates
│
├── utils/ # Helpers
│ ├── init.py
│ └── file_utils.py # Save/export functions
│
├── data/ # Sample input
│ └── sample_blog.txt
│
└── outputs/ # Generated posts
├── posts.json
└── posts.csv

⚙️ Setup & Installation

1. Clone this repo

git clone https://github.com/msravanthi674/social-media-posts.git
cd social-posts
  1. Create & activate environment (using conda)
conda create -n social-posts python=3.9 -y
conda activate social-posts
  1. Install dependencies
pip install -r requirements.txt
  1. Add your Mistral API key

Create a .env file in the project root:

MISTRAL_API_KEY=your_api_key_here
  1. Run the app locally
streamlit run app.py

🔮 Future Improvements

  • 📌 Add multi-post variations per platform
  • 🎤 Support voice input for content drafting
  • 📊 Show character/word counts (esp. for Twitter)
  • ⏰ Schedule posts directly to platforms

About

AI Social Post Repurposer is a Streamlit app powered by Mistral AI that transforms long-form content (blogs, newsletters, articles) into platform-ready social media posts (Twitter, LinkedIn, Instagram, etc.) with customizable tone, style, and creativity.

Resources

License

Stars

Watchers

Forks

Languages