{"product_id":"n8n-workflow-toxicity-scoring-from-form-submissions-gpt-4o-mini","title":"n8n Workflow: Toxicity Scoring from Form Submissions (GPT-4o Mini)","description":"\u003ch3\u003eAutomatically score message toxicity from n8n Form submissions—with a GPT-4o Mini HTML report on the completion page\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n workflow\u003c\/strong\u003e analyzes every client message submitted through an \u003cstrong\u003en8n Form\u003c\/strong\u003e, generates a \u003cstrong\u003e0–100 toxicity score\u003c\/strong\u003e using \u003cstrong\u003eOpenAI (GPT-4o Mini)\u003c\/strong\u003e, and displays a \u003cstrong\u003estyled HTML report\u003c\/strong\u003e (with verdict, flags, and protection tips) directly on the form completion page.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives\u003c\/strong\u003e a client message or project brief via an \u003cstrong\u003en8n Form Trigger\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the text to OpenAI (GPT-4o Mini)\u003c\/strong\u003e to return \u003cstrong\u003estrict JSON\u003c\/strong\u003e containing:\n    \u003cul\u003e\n      \u003cli\u003ea \u003cstrong\u003e0–100 toxicity score\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003ea \u003cstrong\u003everdict\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003e\u003cstrong\u003ered\/yellow\/green flags\u003c\/strong\u003e\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eprotection tips\u003c\/strong\u003e aligned to the verdict\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses the AI’s JSON\u003c\/strong\u003e and renders a \u003cstrong\u003ecolor-coded HTML report\u003c\/strong\u003e (score, overall verdict, flags, and tips).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDisplays the report\u003c\/strong\u003e immediately on the \u003cstrong\u003en8n Form completion page\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eScreening inbound contact form messages for \u003cstrong\u003etoxic language\u003c\/strong\u003e before it reaches your team.\u003c\/li\u003e\n  \u003cli\u003eAdding a safety layer to lead intake for \u003cstrong\u003eSaaS operators\u003c\/strong\u003e and automation engineers.\u003c\/li\u003e\n  \u003cli\u003eReviewing red\/yellow\/green warning signs for higher-quality support and onboarding conversations.\u003c\/li\u003e\n  \u003cli\u003eGenerating a consistent, shareable HTML summary for moderation or internal follow-up.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eForm Trigger\u003c\/strong\u003e to capture client input from an \u003cstrong\u003en8n Form\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI (GPT-4o Mini)\u003c\/strong\u003e via an LLM node (\u003cstrong\u003en8nn8n-nodes-langchainchain \/ n8nn8n-nodes-langchainlm chat open ai\u003c\/strong\u003e) to return strict JSON\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e step to parse JSON and generate the \u003cstrong\u003estyled HTML\u003c\/strong\u003e report\u003c\/li\u003e\n  \u003cli\u003eOptional customization of the \u003cstrong\u003eanalysis prompt\u003c\/strong\u003e, \u003cstrong\u003everdict thresholds\u003c\/strong\u003e, and \u003cstrong\u003eHTML styling\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eGet started by adding your \u003cstrong\u003eOpenAI API credential\u003c\/strong\u003e, activating the workflow, and opening the \u003cstrong\u003eForm Trigger\u003c\/strong\u003e’s Production URL to see the report on completion.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45800640643251,"sku":"N8N-17936","price":54.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/fSOk48ys61vrT60ox1C5L_89lCXJFw.png?v=1786266367","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-toxicity-scoring-from-form-submissions-gpt-4o-mini","provider":"N8N Commerce","version":"1.0","type":"link"}