Block 1 - Send a message
- Type / Role
- n8n-nodes-base.gmail - gmail
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
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,...
n8n-nodes-base.gmail, n8n-nodes-base.formtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.if, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yaron Been.
Original n8n.io sourceBuilt 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 |
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Generate and auto-evaluate Facebook ad headlines using GPT-4o-mini |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | Content Creation, Multimodal AI |
| Author | Yaron Been |
| Published | 17 Jul 2025 |
Use the JSON export at /data/workflows/6081/6081.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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,...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.