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
- Runs every hour on a schedule.
- Retrieves the latest product list from the Gumroad API.
- 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).
- Compares product IDs against stored workflow static data to skip already announced items and avoids posting anything on the very first run.
- Uses OpenAI (GPT-4o-mini) to write a 2–3 sentence social caption with up to three hashtags and the product link.
- Posts the generated caption to your Facebook Page via the Facebook Graph API.
- 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
- Create a Gumroad API credential (Personal Access Token from Gumroad Settings → Advanced → Applications).
- 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).
- Add an OpenAI API credential for the caption-generation step.
- Fill in your Facebook Page ID, Instagram Business account ID, and a publicly reachable fallback image URL in the workflow’s Settings step.