~/projects/blog-writing-agent.md
Blog Writing Agent
A LangGraph agent that writes a blog post from a topic: it decides whether the topic needs fresh web facts, plans the post, and writes every section in parallel.
- sections written in parallel
- 4–6
- LLM calls per post
- 5–8
- to write a post
- ~2 min
Repository (opens in a new tab)All projects
How it works
- closed book: START → router → orchestrator → worker 1 → images → reducer → END
- with research: START → router → research → orchestrator → worker 2 → images → reducer → END
What it does
- Fans out with LangGraph Send: one worker per planned section (4 to 6), merged back by an operator.add reducer.
- No invented links: any Markdown link whose URL is not in the supplied evidence is turned back into plain text.
- Honest about thin research: with fewer than 3 distinct sources, the post opens with a note saying so.
- Quota-aware: every call goes through one cached, rate-limited path with backoff and an outage breaker.
Stack
- LangGraph
- LangChain
- Gemini
- Tavily
- Pydantic
- Streamlit