X Post Quality Extension Backend
Give a browser extension a Decision Model backend that classifies X posts as AI slop, golden post, or neutral and returns structured JSON.
The full canvas, before you import it
Click any node to see its config.
Click a node to select it — same as the Heym editor; the panel shows its settings.
3 nodes · Free & source-available
X Post Quality Extension Backend
A browser extension can send the text of an X post to this workflow and receive a compact quality label. The extension decides how to display the result, for example by dimming low-value posts or highlighting useful ones. This template supplies the workflow backend, not the extension package.
Three labels
| Label | Meaning |
|---|---|
| ai_slop | Generic hype, repetitive filler, empty engagement bait, or sweeping claims without useful specifics in the supplied post. |
| golden_post | Concrete, useful information with substantive detail, an explained method, a worked example, or evidence the reader can inspect. |
| neutral | Ordinary updates, jokes, personal opinions, mixed signals, or insufficient context to justify either stronger label. |
"AI slop" is a content-quality label here. It does not establish whether an AI wrote the post. A human can write filler and an AI-assisted post can be useful. The workflow judges only supplied text; it does not open links, verify claims, inspect images, or infer an author's intent.
What this workflow does
- PostInput accepts a
textfield and optionalpost_idfrom the extension. - PostDecision asks a Choice question for the label and a Score question for information value, from 0 to 3.
- ExtensionResponse returns a JSON object with
label,raw_label,confidence,probabilities,information_value,review_recommended, andpost_id. - If category confidence is below 0.65, the displayed label becomes
neutralwhile the raw model choice remains available for inspection.
Setup
Select a Decision Model credential on PostDecision. Keep ExtensionResponse as the only terminal node so the execute endpoint can return its mapped JSON directly. The example model is jev-latest; choose a supported model for your endpoint.
Use the editor's Run with cURL dialog to get your workflow's execute URL and configure authentication. The endpoint is POST /api/workflows/{workflow_id}/execute. Send JSON such as:
{
"text": "We reduced p95 query latency from 840 ms to 120 ms by replacing N+1 lookups with one indexed join. Here is the query plan and the benchmark method.",
"post_id": "demo-post-001"
}The example request is a post to classify, not a verified performance claim. A strong label still depends on what evidence the supplied text actually contains.
Connect the extension
Send the captured post text from the extension's background worker to your authenticated backend endpoint. Configure host permissions for that endpoint. Keep shared backend credentials on a server-side proxy instead of embedding them in a distributed extension; the extension should authenticate its user to that proxy. Provider credentials stay inside Heym.
The execute response uses the simple-response mode by default. Keep that mode enabled when consuming the mapper object directly; X-Simple-Response: false returns the execution envelope for debugging. Treat HTTP failures as an unavailable classification, not as an AI-slop label.
Try these posts
- AI slop: "This changes EVERYTHING. Ten secrets nobody tells you. Comment YES and follow for the ultimate productivity revolution."
- Golden post candidate: "To reproduce our bug: create an empty list, call pop(), and observe IndexError. Check the list before removing an item; here is the two-line fix."
- Neutral: "Enjoyed a quiet walk this morning. Hope everyone has a good weekend."
Tune the criteria and confidence threshold against posts your users have labeled. Use review_recommended to leave uncertain posts unchanged and the full probability distribution to explain the result in a tooltip.
How to import this template
- 1Click Import → Copy JSON on this page.
- 2Open your Heym and navigate to a workflow canvas.
- 3PressCmd+V/Ctrl+V— nodes appear instantly.
- 4Add your API keys in the node config panels and click Run.
Discover more automations
- Marketing & SEOReddit Subreddit GET Tool CallLet an Agent call a no-key HTTP GET tool that fetches hot posts from a subreddit JSON feed.
- Marketing & SEOGemini Image CreatorGenerate images from a text prompt using Gemini's native image output.
- Marketing & SEODaily Telegram Google Analytics MCP ReportSend a daily Telegram summary by letting an Agent query Google Analytics through an MCP server.
- Marketing & SEOAI Content RepurposerPaste a blog URL — fetch the article and get a ready-to-post LinkedIn update and Twitter/X thread in one run.
- Marketing & SEOSocial Media Post GeneratorRun on a weekly schedule — generate ready-to-publish LinkedIn and Twitter posts for each topic in your content calendar and send drafts to Slack for review.
- Marketing & SEOSEO Keyword Opportunity FinderFetch low-hanging keyword data from Google Search Console weekly, score each query for content opportunity with AI, and save high-value targets to a DataTable for your editorial team.
- Marketing & SEOYouTube Channel RSS to CSV — SKILL.md & Python Tutorial TrackerFetch any YouTube channel's public RSS feed and export video titles, URLs, and publish dates as a clean CSV — great for tracking SKILL.md and Python tutorial creators like Nate Herk.
- Marketing & SEOAI Viral Video Generator & TikTok PublisherRead topics from Google Sheets, generate short videos with the VEO 3 API, and upload each one to TikTok automatically.
- Marketing & SEOGoogle Analytics AI AgentAsk plain-language questions about your GA4 property — the Agent queries Google Analytics through analytics-mcp and returns metrics, reports, and insights.
- Marketing & SEOGoogle Search Console AI AgentQuery Search Console data in plain language — the Agent uses mcp-search-console to answer questions about rankings, impressions, clicks, and indexing status.
- Marketing & SEOCompetitor Launch Radar to SlackFetch competitor update feeds on a schedule, summarize launch signals with AI, and post the market brief to Slack.
- Marketing & SEOText Readability Scorer (Agent Skill)An agent runs a bundled Python skill that scores text for readability with Flesch Reading Ease and grade level.