See llms.txt for all machine-readable content.

Back to Templates

Announce new Gumroad products with OpenAI on Facebook and Instagram

Quick Overview

This workflow runs hourly to poll your Gumroad products, generates a short announcement caption with OpenAI, and publishes new product posts to a Facebook Page and an Instagram Business account via the Facebook Graph API.

How it works

  1. Runs every hour on a schedule.
  2. Retrieves the latest product list from the Gumroad API.
  3. Filters to published, non-deleted products and splits the response into one item per product with key fields (name, price, link, tags, and preview image URL).
  4. Compares product IDs against stored workflow static data to skip already announced items and avoids posting anything on the very first run.
  5. Uses OpenAI (GPT-4o-mini) to write a 2–3 sentence social caption with up to three hashtags and the product link.
  6. Posts the generated caption to your Facebook Page via the Facebook Graph API.
  7. Creates and then publishes an Instagram media container using the product image (or a fallback image URL) and the same caption via the Facebook Graph API.

Setup

  1. Create a Gumroad API credential (Personal Access Token from Gumroad Settings → Advanced → Applications).
  2. Create a Facebook Graph API credential with a Page access token that includes permissions for posting to Pages and publishing to Instagram (for example, pages_manage_posts and instagram_content_publish).
  3. Add an OpenAI API credential for the caption-generation step.
  4. Fill in your Facebook Page ID, Instagram Business account ID, and a publicly reachable fallback image URL in the workflow’s Settings step.