Skip to content

Aronno1920/PostGenerator-AIAgent-LangChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✍️ AI Agent for LinkedIn Post Generator (LangChain)

Screenshot 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.

🚀 Features

  • 📝 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

📂 Project Structure

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 

⚙️ Setup & Installation

1️⃣ Clone Repository

git clone https://github.com/Aronno1920/PostGenerator-AIAgent-LangChain
cd PostGenerator-AIAgent-LangChain

2️⃣ Create Virtual Environment

python -m venv venv
source venv/bin/activate   # macOS/Linux
venv\Scripts\activate      # Windows

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Configure Environment

Create 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 model

▶️ Run the App

streamlit run app.py

Open browser → http://localhost:8501

[ Topic: AI in Healthcare ]
[ Language: English ]

Generated LinkedIn Post:
------------------------------------------------
🚀 The future of healthcare is being transformed by AI...
------------------------------------------------

🔮 Roadmap

  • ✅ 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)

🤝 Contributing

Pull requests are welcome!
For major changes, please open an issue first to discuss what you’d like to change.

📜 License

This project is licensed under the MIT License.

👉 With this app, you’ll never struggle to write LinkedIn posts again!

About

Generate professional, engaging LinkedIn posts in multiple languages with the power of LangChain + GitHub Models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages