Quick overview
This workflow monitors an RSS/Atom blog feed hourly, turns each newly published article into platform-specific social captions using PostWire, and schedules the resulting drafts to PostWire’s queue for LinkedIn, X, Bluesky, Mastodon, and optionally Instagram.
How it works
- Runs every hour and reads the configured RSS/Atom feed for new items.
- Filters the feed items to only those published within the last two days to avoid posting an initial backlog.
- Extracts the article title, link, a cleaned summary, and an image URL (if present) and sets a target platform list.
- Removes Instagram from the platform list when no image is available and composes a prompt from the article details.
- Calls PostWire’s
/api/generate endpoint to produce a separate caption draft for each selected network.
- Calls PostWire’s
/api/schedule endpoint to queue the per-platform drafts to publish 30 minutes in the future (including the image when available).
Setup
- Create a PostWire API key and add an n8n HTTP Header Auth credential with
Authorization: Bearer <your_postwire_key>.
- Connect your social networks inside PostWire so PostWire can publish on your behalf.
- Replace the RSS feed URL in the RSS trigger with your blog’s RSS/Atom URL.
- Update the platforms list (linkedin, x, bluesky, mastodon, instagram) to match the networks you have connected in PostWire.
- (Optional) Adjust the “last two days” filter window and the schedule delay (currently 30 minutes) to fit your posting cadence.