Built with n8n + OpenAI
This workflow captures a product description, generates ad headlines, evaluates them with custom criteria, decides whether another draft is needed, and finally sends the best version via Gmail.
Benefit: Ensures consistent, structured prompts so the AI receives clear context every time.
Benefit: Produces creative copy instantly without waiting on a human writer.
Benefit: Builds an objective, repeatable evaluation rubric automatically.
π¬ LLM_HeadlineEvaluatorModel β Supplies reasoning power.
π Agent_HeadlineEvaluator β Applies the 5 criteria to the generated headline and outputs:
Benefit: Turns subjective copy quality into measurable numbers.
π¬ LLM_BottomLineModel β Interprets the evaluation results.
π€ Agent_IterationDecision β Decides:
π If_NeedMoreIterations β Branches:
Benefit: Keeps iterating until the AI headline meets your standards.
Benefit: Automates delivery of the polished, AI-approved headline to your inbox or team.
| Section | Purpose | Key Nodes | Benefit |
|---|---|---|---|
| β‘ Capture Brief | Collect product info & prep prompt | FormTrigger, Set | Structured AI input |
| βοΈ Draft Headline | Generate first headline | LLM_HeadlineWriterModel, Agent_HeadlineWriter | Instant creative draft |
| π Define Criteria | Build scoring rubric | LLM_EvalCriteriaModel, Agent_EvalCriteriaBuilder | Objective evaluation |
| π Evaluate Headline | Score headline & summarize | LLM_HeadlineEvaluatorModel, Agent_HeadlineEvaluator | Transparent quality check |
| π Decide & Iterate | Accept or refine headline | LLM_BottomLineModel, Agent_IterationDecision, If | Only good results move forward |
| π© Deliver Result | Share the final copy | Gmail | Automates delivery |


