01

Multi-agent content automation

ATLAS

Three AI agents. One connected workflow. LinkedIn drafts routed to people with the context to review them.

RoleProduct lead & builder
StatusCompleted course prototype
FocusGeneration, evaluation & routing
ToolsAutoGen · FastAPI · n8n · Slack

The problem

A draft is only one step in the work.

Creating LinkedIn content involves more than writing copy: someone needs to choose a relevant idea, maintain the brand voice, evaluate claims, and decide what needs revision. Automating generation alone leaves those operational decisions unresolved.

I built Atlas for an Applied Agentic AI course, using FinEdge Mumbai, a fictional fintech company, as the scenario. The goal was a working path from brand brief to draft and editorial feedback, with visible routing decisions and publishing kept outside the prototype.

Architecture

n8n sends a brand brief to POST /linkedin. Three sequential AutoGen 0.7.5 agents return a draft and structured review; n8n routes the result to Slack.

  1. 01 / IDEATION

    Find the angle

    Generate three ideas from the topic, industry, audience, and brand voice.

  2. 02 / WRITER

    Build the draft

    Select an idea and write an approximately 150-word post with an opening, practical insights, a question, and hashtags.

  3. 03 / REVIEWER

    Expose the risks

    Return a score plus strengths, weaknesses, risks, and recommendations in a typed review object.

  4. 04 / ORCHESTRATION

    Route for attention

    At or above 0.8, send a dry-run review notification. Below 0.8, send the original draft and revision feedback.

Product decisions

01

Separate responsibilities

Ideation, writing, and review each have an explicit job. Sequential handoffs make the pipeline understandable and give the reviewer a distinct evaluation task, while adding latency and model calls.

02

Make feedback usable

A Pydantic review model constrains the score to 0–1 and gives n8n predictable feedback fields. The score is a subjective editorial assessment, not a calibrated probability or verified fact check.

03

Keep routing configurable

n8n owns the 0.8 threshold and notification branches; Python owns generation and evaluation. The node named “Approval Gate” is a score check. Slack delivery does not record human approval.

04

Stop before publication

The request defaults to dry_run: true, and the demonstrated workflow preserves it. No LinkedIn publishing integration is implemented—even setting dry_run to false does not create a publishing capability.

Working evidence

From agent output to an actionable notification.

The n8n workflow connects brand configuration, the FastAPI service, score-based branching, and Slack notifications. It remains unpublished; the screenshots document local development executions.

n8n workflow connecting schedule trigger, brand configuration, content API, confidence gate, dry-run check, and Slack notification branches
Local n8n workflow · select any screenshot to view full size
Slack review notification showing dry run, not published, and a 0.8 confidence score
Qualifying draft delivered for review · not published
Slack revision notification including weaknesses, risks, recommendations, and the original draft
Revision feedback · captured score and threshold both display 0.8; this image does not verify boundary routing

Implementation

A small service with an explicit contract.

Python and FastAPI expose GET /health and POST /linkedin. A typed request accepts company name, industry, audience, voice, topic, and dry-run mode. AutoGen 0.7.5 uses GPT-4o-mini for all three agents, passing ideas to the writer and the draft to the reviewer.

The response includes ideas, draft, confidence_score, review, and dry_run. The review is structured; ideas and draft remain text. The model client is closed in a finally block. n8n composes the final routing inputs and formats Slack messages through an incoming webhook.

FastAPI documentation for POST /linkedin with brand configuration fields and dry_run true
Request contract and dry-run default
FastAPI documentation listing HTTP 200 and 422 responses
API documentation · generated success example still shows a generic string

Tests & results

5 valid responses. 12.23 seconds on average.

A five-run API benchmark on November 14, 2026 returned HTTP 200 with the required response fields, a score within 0–1, and dry_run preserved in all five runs. Response times ranged from 10.99 to 14.83 seconds, with a median of 11.60 seconds.

Five API benchmark runs: 14.83, 11.60, 12.59, 10.99, and 11.15 seconds; five successful validations; average 12.23 seconds
Five sequential requests · API latency including model calls

The benchmark times each HTTP request with time.perf_counter(). It excludes n8n and Slack delivery. Validity checks cover the response envelope, score bounds, and dry-run flag; they do not establish editorial quality or factual correctness.

Development checks documented in the project README also cover service health, the agent pipeline, n8n integration, qualifying and below-threshold routing, and both Slack notification paths. The exported gate uses a numeric ≥ comparison. These are development results, not evidence of production reliability or a comprehensive regression suite.

Limits & next steps

Make the boundaries as visible as the results.

Atlas is a completed local course prototype, not a production deployment. It has no LinkedIn publisher, recorded human approval, automatic revision loop, or independent source verification. Five sequential API calls cannot establish throughput, long-term reliability, or business impact.

The revision screenshot labels a draft below threshold while displaying both score and threshold as 0.8. That capture needs to be reconciled with a fresh execution before it can substantiate boundary behavior. The API documentation also needs an explicit response model to replace its generic string example.

Next steps would be repeatable tests around 0.8, evidence-grounded editorial evaluation, recorded reviewer decisions, and failure handling with retries and observability before any production use.

Lessons learned

Useful automation makes the next decision clearer.

The strongest part of this prototype is the connection between generation, structured critique, and a visible next step. A score alone says little; weaknesses, risks, and recommendations give a person something concrete to act on.

The project also clarified three separate questions: did the API return a valid response, did the workflow route it correctly, and is the content suitable to publish? Each needs its own evidence. A successful request and a delivered notification answer only part of the problem.

Next case study

STRATEGOS→