I built the LinkedIn Post Generator as a project at Poornima University, Jaipur after noticing a familiar loop: someone had something worth saying, opened LinkedIn, stared at the empty editor, and closed the tab.
The problem was never a shortage of ideas. It was the distance between a rough idea and a post that sounded like the person writing it.
Generic AI tools made that gap worse. They produced fluent, confident paragraphs that looked like LinkedIn and sounded like no one in particular.
I wanted to build a tool that treated voice as part of the product, not an afterthought.
Give it a topic, tone, keywords, and audience. Get a structured draft that sounds like you, then refine it in the same place.
The Real Problems I Set Out to Solve
- The blank-page tax: Writing a post is not hard because people lack opinions. It is hard because drafting, structuring, and editing take longer than most people are willing to spend.
- The generic-AI voice: Most generators optimize for "good LinkedIn copy," which means every user gets the same polished, slightly corporate tone. The output is usable, but it is not theirs.
- The one-shot generation trap: A single prompt rarely produces a finished post. Without a way to iterate, users either accept a mediocre draft or rewrite the whole thing themselves.
- The missing last mile: Grammar, length, formatting, and hashtags are small tasks individually. Together they are the reason many drafts never get published.
How It Works
1. Start With Four Simple Inputs
The interface asks for the minimum context needed to write something useful:
- Topic: what the post is about
- Tone: practical, reflective, opinionated, conversational
- Keywords: the ideas or phrases that must appear
- Target audience: who the post is written for
Reducing the brief to four fields keeps the tool fast enough to use on a whim, which matters for a habit-forming product.
2. Build the Draft Through a Prompt Chain
The generation layer runs on Llama 3.2, orchestrated through LangChain, with GroqCloud providing low-latency inference. Instead of sending one large prompt and hoping for the best, the system breaks the job into stages: interpret the brief, draft the post, then refine the result.
The model is only one part of the pipeline. The structure around it is what makes the output predictable.
3. Preserve the Writer's Voice
The part I cared about most was personalization. The system analyzes a user's past writing to identify patterns in tone, sentence length, and phrasing, then uses that profile to constrain the draft.
Writes a competent post in a default voice. The user spends more time removing the AI tone than adding their own.
Uses the user's previous posts as a style reference, so the first draft starts closer to something they would actually publish.
Style consistency is not a prompt trick. It is a product requirement.
4. Add a Post-Processing Layer
A draft is not finished when the model stops writing. The app runs a final pass that:
- Corrects grammar and awkward phrasing
- Adjusts the post to a readable length
- Suggests relevant hashtags
These steps are deliberately separate from generation. It makes the output easier to inspect, and it prevents one prompt from trying to do five unrelated jobs.
5. Keep the Interface Out of the Way
The whole tool is built in Python and Streamlit. The user fills in four fields, generates a draft, and iterates from there. There is no dashboard to learn and no setup ritual before writing.
What This Project Taught Me
Prompt engineering gets you a draft. Product design gets you a writing partner.
AI writing tools are easy to demo and much harder to trust. The model was rarely the limiting factor. The value came from the inputs, the memory of the user's style, and the guardrails around the output.
A post that sounds like the writer is more useful than a technically better post that sounds like a chatbot.
Built with Python, Streamlit, LangChain, Llama 3.2, and GroqCloud. Delivered iteratively using Agile methodology, with requirements gathering, system architecture, and integration testing.