Yasir Jalal
Get in touch
All work
AI agents and assistants · MarketingPersonal project · public on GitHub

Adgen Agentic

Four agents turn a one-line brief into on-brand ads and emails, made from the business's real logo and product photos.

Role Designed and builtStack Python, LangGraph, FastAPI, PostgreSQL, pgvector, Next.jsView the code
Real architectureSelect an agent to open it.
OrchestratorLangGraph state graph · deterministic routing, no LLM calls · retry policy on every agent
  1. you review
  2. you approve
  3. you sign off
  4. Delivered
↺ Rejected strategy goes back to the Strategist with your notes↺ Auditor sends assets back to the Producer, at most twice
Shared platformTyped campaign statePostgres checkpointsLISTEN/NOTIFY → SSEpgvector
Planner + parallel sub-agents

Strategist

Plans the asset mix and narrative, writes copy with specialist sub-agents in parallel, and validates the plan against the brief.

Plannerasset mix and narrative
in parallel
Static-ad copywriter
write_static_ad
Video-script writer
write_video_script
Email copywriter
write_email
Assemblervalidate_plan
Validates
asset countsplatformsformatsfunnel stagehero products
Revision mode
rewrites only the assets named in feedback