Quick Overview
This workflow collects a draft social post via an n8n form, pulls your brand guide from Google Docs, and uses Anthropic Claude to score and rewrite the post for LinkedIn, Facebook, Bluesky, and Instagram before publishing via PostWire, while notifying Slack and logging outcomes to Google Sheets.
How it works
- Receives a submission from an n8n Form with the post text, allowed facts, target networks, and an optional image URL.
- Fetches the brand guide content from Google Docs and prepares the checking context, including extracting banned words and allowed numbers from the guide and provided facts.
- Sends the post, facts, networks, and brand guide to Anthropic Claude to return a JSON score, reasons, and platform-specific draft rewrites.
- Validates Claude’s output by re-checking the original post and each draft for banned words and unsupported numbers, then decides whether the post passes the minimum score threshold.
- If the post passes, publishes the network-specific drafts (and media URL when provided) to the selected platforms using PostWire and aggregates the publish results.
- Sends a Slack message when Claude fails, when a post is sent back for edits, or when some networks fail to publish despite passing the brand check.
- Appends a row to Google Sheets with the score, status, reasons, published links, and any fixes or notes for every run.
Setup
- Install the PostWire community node, add your PostWire API credentials, and ensure your PostWire account is connected to the target platforms (LinkedIn, Facebook, Bluesky, Instagram).
- Add credentials for Anthropic, Google Docs, Slack, and Google Sheets.
- Replace the Google Docs URL in the brand guide step with your document link and ensure it includes a clear banned-words line such as “Never use: …” if you want hard rules.
- Select the Slack channel in all Slack steps used for failure and feedback notifications.
- Choose a Google Sheets document and sheet for logging and ensure it has columns that match the mapped fields (time, networks, score, status, reasons, links, fix, post).