Generate professional, engaging LinkedIn posts in multiple languages with the power of LangChain + GitHub Models. This project provides a simple Streamlit UI where you enter a topic and language, and get a ready-to-use LinkedIn-style post with options to copy or download instantly.
- 📝 Generate LinkedIn posts from any topic
- 🌍 Multi-language support (English, Bengali, Spanish)
- ⚡ Powered by LangChain & GitHub-hosted LLMs
- 📋 Copy to Clipboard button for easy sharing
- 💾 Download as TXT option
- 🎨 Clean, beginner-friendly Streamlit UI
PostGenerator-AIAgent-LangChain/
│── .env # Environment variables
│── app.py # Streamlit UI
│── core.py # Core logic: calls LLM, generates post
│── main_cmd_prompt.py # Run agent in command line
│── README.md # Project documentation
│── requirements.txt # Dependencies
└── Video_01.mp4 # A sample video of Agent
git clone https://github.com/Aronno1920/PostGenerator-AIAgent-LangChain
cd PostGenerator-AIAgent-LangChainpython -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windowspip install -r requirements.txtCreate a .env file in the project root:
GITHUB_TOKEN="your_api_key_here"
GITHUB_BASE_URL="https://models.github.ai/inference" # Example GitHub Models endpoint
MODEL_NAME="openai/gpt-4.1" # Or another available modelstreamlit run app.pyOpen browser → http://localhost:8501
[ Topic: AI in Healthcare ]
[ Language: English ]
Generated LinkedIn Post:
------------------------------------------------
🚀 The future of healthcare is being transformed by AI...
------------------------------------------------
- ✅ Add Bengali/Spanish support
- ✅ Copy-to-Clipboard button
- ⏳ Support for more languages (French, German, Hindi)
- ⏳ Deploy to Streamlit Cloud / Hugging Face Spaces
- ⏳ Add prompt templates for different tones (Formal, Friendly, Thought Leader)
Pull requests are welcome!
For major changes, please open an issue first to discuss what you’d like to change.
This project is licensed under the MIT License.
👉 With this app, you’ll never struggle to write LinkedIn posts again!