Quick overview
This workflow collects a cold email subject and body via an n8n Form, validates the input, and uses OpenAI to generate a structured A–F quality grade with copy and deliverability feedback, returning the results as a formatted HTML report.
How it works
- Receives a submission from an n8n Form with the email subject line, email body, and optional offer and target audience details.
- Cleans and maps the form fields into a consistent subject/body/offer/audience payload.
- Validates that the subject is present and the email body is at least 50 characters, returning an HTML error message if it is too short.
- Truncates very long email bodies (over 6000 characters) to keep the AI request within limits.
- Sends the subject and body to an OpenAI chat model with instructions to score spam risk, subject strength, personalization, value proposition, CTA, tone, and length, and to return fixes and rewritten subject lines in a structured JSON schema.
- Builds an HTML scorecard from the structured results and displays it back to the form submitter.
Setup
- Add an OpenAI credential in the OpenAI chat model node (or replace it with another compatible chat model provider).
- Activate the workflow and open the n8n Form Trigger production URL to share it with users.
- Optionally adjust the minimum-length validation and truncation limits, and edit the grading prompt to match your outreach standards.