Work · 01LangGraph · FastAPI MCP · Python
Autonomous campaign agent team
A marketing team implemented as four LangGraph agents with one job each: Research pulls live market data through web search and returns structured JSON, Strategy turns it into positioning, Content drafts for blog, LinkedIn and Twitter, and the Reviewer grades each draft PASS or FAIL.
The edge I care about is the FAIL route: the graph sends the draft back to Content with the reviewer's notes attached and iterates until it passes. The routing decision is made in code from the verdict field, not left to the model. Tools live outside the agents in a FastAPI MCP server, so a tool can be swapped or mocked without touching agent logic.
- StateGraph
- conditional edges
- shared state
- web_search · Tavily
- write_file