GenAiHub

Last checked 8 October 2026 — responded normally.

Post scheduled content to Threads from a PostgreSQL content queue

Quick overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick overview This workflow runs every four hours to pull the next scheduled post from a PostgreSQL content queue and publish it to Threads via the Threads Graph API, then updates the database record to mark the content as published. How it works Runs every four hours on a schedule. Queries PostgreSQL for the oldest queued record with status set to scheduled, returning the post text and optional image URL. Checks whether a queued content record was found and stops if none exists. Creates a Threads post container via the Threads Graph API, using IMAGE when an image_url is present and TEXT otherwise. Publishes the created container via the Threads Graph API. Updates the PostgreSQL record to set status to published and stores the publish timestamp. Setup Create a PostgreSQL credential in n8n and ensure you have a content_queue table with the expected columns (id, post_text, image_url, status, scheduled_at, published_at). Replace YOUR_THREADS_ACCESS_TOKEN in both HTTP requests with a valid Threads access token that has permission to publish. Update the PostgreSQL queries if your table name, column names, or status values differ from the template. An n8n automation workflow template by Miftah Akbar.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Miftah Akbar

Platform

web

Pricing model

free

Categories

  • Automation

Tags

  • n8n
  • workflow
  • http-request
  • postgres

Capabilities

  • 2 nodes

Information

TypeWorkflow
Sourcen8n
AddedSeptember 29, 2026

Comments

?

Others in the same category, ranked by how often they are opened.