Templates / Gate and rewrite social posts with TypeSafe Jev and OpenAI GPT-4o mini

Gate and rewrite social posts with TypeSafe Jev and OpenAI GPT-4o mini

Ready for 3.0

by Finrod Chen · 0 views · created 2026-10-27 · Social Media, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Telegram. It also calls api.typesafe.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Configure product facts and thresholds (Edit Fields (Set)): sets 9 fields: facts, audience, platform…
  2. Draft already provided? (If): checks a condition and branches into true / false
  3. Prepare draft for scoring (Code): runs custom JavaScript code
  4. Write first draft with OpenAI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI model (draft)
  5. Score draft with Jev (HTTP Request): calls api.typesafe.ai (POST)
  6. Evaluate score and build feedback (Code): runs custom JavaScript code
  7. Route by decision (Switch): routes items into 3 branches
  8. Rewrite with feedback using OpenAI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI model (rewrite)
  9. Send to Telegram for human review (Telegram): uses Telegram
  10. Collect final result (Code): runs custom JavaScript code

Services it uses

OpenAI Chat ModelTelegram

HTTP calls to: api.typesafe.ai

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Quick overview This workflow drafts or validates a social post, scores it with TypeSafe Jev against quality and overclaim thresholds, rewrites failing copy with OpenAI up to a set limit, and sends unresolved posts to Telegram for human review before you…

Excerpt from Finrod Chen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.