Skip to content

A LangChain-based AI agent that generates and posts professional LinkedIn content from user input using OpenAI and the LinkedIn API.

Notifications You must be signed in to change notification settings

bearconnect-io/linkedin-agent

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Linkedin Post Agent

This project is a powerful and modular AI agent system that generates and posts professional LinkedIn content using OpenAI and LangChain, built with a clean MCP architecture. It takes an input idea from the user, transforms it into a high-quality LinkedIn post using a custom prompt template, and posts it directly to the user's LinkedIn profile using LinkedIn’s API.

πŸš€ Features

  • ✨ Human-style LinkedIn post generation with strict tone and structure guidelines
  • 🧠 LangChain agent powered by OpenAI LLM (gpt-4o)
  • 🧩 Modular MCP design: scalable and extendable with additional tools (e.g., X, Instagram)
  • πŸ”§ Built-in LinkedIn posting tool via LinkedIn REST API
  • πŸ–₯️ Streamlit frontend for clean user interaction
  • πŸ”„ FastAPI backend for MCP logic orchestration

πŸ“¦ Tech Stack

  • Python β€” Core backend language
  • Streamlit β€” Web application framework for UI
  • FastAPI β€” Backend API layer for handling requests and MCP orchestration
  • OpenAI GPT-4o β€” LLM used for generating high-quality, human-style LinkedIn posts
  • LangChain β€” Agent framework for chaining prompt execution and tool usage
  • LinkedIn REST API β€” Used to post directly to LinkedIn profiles

πŸ“ Project Structure

/project-root/
β”œβ”€β”€ streamlit_app/
β”‚   └── app.py
β”œβ”€β”€ mcp_server/ 
β”‚   β”œβ”€β”€ main.py 
β”‚   β”œβ”€β”€ agent_runner.py 
β”‚   β”œβ”€β”€ llm/
β”‚   β”‚   └── llm_config.py 
β”‚   β”œβ”€β”€ agents/
β”‚   β”‚   └── post_writer_agent.py 
β”‚   └── tools/
β”‚       └── linkedin_poster.py 
β”œβ”€β”€ .env 
β”œβ”€β”€ requirements.txt 
└── README.md

πŸ“Έ Screenshots

Index Index

Author

πŸ‘€ Vetrivel Maheswaran

Connect With Me 🌐

LinkedIn

PortFolio

Β© Created by Vetrivel Maheswaran

About

A LangChain-based AI agent that generates and posts professional LinkedIn content from user input using OpenAI and the LinkedIn API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%