Generate and Auto-Evaluate Facebook Ad Headlines using GPT-4o-mini 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. --- β‘ Section 1: Capture the Brief & Build the Prompt π FormTrigger\CopywritingBrief β A simple form asks: βWhat is your product about?β βοΈ Set\PromptForHeadline β Prepares the input by appending the instruction:

Generate and Auto-Evaluate Facebook Ad Headlines using GPT-4o-mini 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. --- β‘ Section 1: Capture the Brief & Build the Prompt π FormTrigger\CopywritingBrief β A simple form asks: βWhat is your product about?β βοΈ Set\PromptForHeadline β Prepares the input by appending the instruction: βWrite a Facebook ad headline for this product:β Benefit: Ensures consistent, structured prompts so the AI receives clear context every time. --- βοΈ Section 2: Draft the Headline π¬ LLM\HeadlineWriterModel β GPT-4o-mini model provides the intelligence. βοΈ Agent\HeadlineWriter β Generates a first-pass Facebook ad headline. Benefit: Produces creative copy instantly without waiting on a human writer. --- π Section 3: Define Scoring Criteria π¬ LLM\EvalCriteriaModel β Calls GPT-4o-mini again. π Agent\EvalCriteriaBuilder β Suggests 5 scoring parameters (scale 1-10). Example: Clarity, Relevance, Hook Strength, Brand Voice, Scroll-Stoppage. Benefit: Builds an objective, repeatable evaluation rubric automatically. --- π Section 4: Evaluate the Headline π¬ LLM\HeadlineEvaluatorModel β Supplies reasoning power. π Agent\HeadlineEvaluator β Applies the 5 criteria to the generated headline and outputs: JSON with scores per parameter An average score A plain-language bottom-line Benefit: Turns subjective copy quality into measurable numbers. --- π Section 5: Decide & Iterate (if needed) π¬ LLM\BottomLineModel β Interprets the evaluation results. π€ Agent\IterationDecision β Decides: Return NO β headline is acceptable. Return YES + feedback β headline should be rewritten. π If\NeedMoreIterations β Branches: If NO β continue workflow. If YES β (loop wiring possible) headline can be regenerated with feedback. Benefit: Keeps iterating until the AI headline meets your standards. --- π© Section 6: Deliver the Result π§ Send a message (Gmail node) β Sends the accepted headline via email. Benefit: Automates delivery of the polished, AI-approved headline to your inbox or team. --- π Workflow Overview | 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 | --- β Final Benefits π One-click workflow: from product description to tested headline. π Automatic rubric: objective scoring each time. π Self-improving: poor headlines can auto-iterate with feedback. π§ Direct integration: approved headlines land in Gmail instantly. π§© Fully modular: easy to extend with Google Sheets, Slack, or CRM nodes. ---
Download the workflow JSON file after purchase.
Open n8n β click the menu β Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.