n8n Flow
Publish Post to Publer
Publishes an approved social post to Publer end to end — uploading media, scheduling, polling the job to completion, and writing the result back, with retries throughout.
A work in progress
We've published these resources in the hope they're useful — you're welcome to copy or use anything you find on this site. We're still working through each record to optimise it for completeness and accuracy, so some entries are fuller than others for now.
The full workflow as it runs in n8n. Drag to pan, zoom with the controls, and hover any step for what it does.
Drag to pan · zoom with the controls · hover a step for detail.
- Webhook (trigger): An agent asks to publish a post. → Lift Webhook Body.
- Execute Workflow Trigger (trigger): Or another workflow calls it. → Get Post.
- Lift Webhook Body (action): Reads the request. → Ack 202. → Get Post.
- Ack 202 (output): Immediately acknowledges the request.
- Get Post (action): Loads the post from the database. → Build Payload.
- Build Payload (action): Builds the Publer request. → Has Images?.
- Has Images? (logic): Branches on whether the post has media. → Upload Media. → Schedule Post.
- Upload Media (action): Uploads images to Publer. → Wait Media 10s.
- Wait Media 10s (action): Waits for media processing. → Poll Media Job.
- Poll Media Job (action): Checks whether the upload finished. → Media Job Done?.
- Media Job Done? (logic): Loops until the media is ready. → Inject Media IDs. → Wait Poll Retry.
- Wait Poll Retry (action): Waits before checking again. → Media Poll Counter.
- Media Poll Counter (action): Caps retries so it can't loop forever. → Poll Media Job.
- Inject Media IDs (action): Attaches the uploaded media to the post. → Schedule Post.
- Schedule Post (action): Schedules the post on Publer. → Wait 8s.
- Wait 8s (action): Waits for the schedule job. → Poll Job.
- Poll Job (action): Checks whether scheduling finished. → Job Done?.
- Job Done? (logic): Branches on the job result. → Fetch Publer Post ID. → Is Pending?.
- Is Pending? (logic): Retries while the job is still pending. → Wait Job Retry. → Update Error Status.
- Wait Job Retry (action): Waits before re-checking. → Job Poll Counter.
- Job Poll Counter (action): Caps the number of retries. → Poll Job.
- Fetch Publer Post ID (action): Gets the published post's ID. → Parse Post ID.
- Parse Post ID (action): Reads the post ID. → Update Scheduled.
- Update Scheduled (action): Marks the post as scheduled. → Return Result.
- Update Error Status (action): Records an error if it failed. → Throw Job Error.
- Throw Job Error (action): Surfaces the failure.
- Return Result (action): Returns the outcome.
Ready to build technology that works for your mission?
Tell us where your organisation is and what's slowing your team down. We respond personally.