Launch a Flow (after the person approved the plan)
postfjord_launch_goalLaunch an approved goal plan in one go: create its tag, signup form, landing page, welcome emails, comment-to-DM automation, and posts with selected scheduled/draft, automation, and email options.
Instructions
This is a Flow in Postfjord (the person may say "start a flow", "a flow" or "my flows"): makes every part of a proposed goal in one go: the tag, the signup form, the landing page, the welcome email automation, the comment to DM automation and the posts. Call it only after you showed the person the plan from postfjord_get_goal and they said yes to it and to the three choices: postsAs scheduled (the posts go out on their dates, the page is published) or drafts (the default: posts wait in the app on their dates, and the page goes online only when the DM or the emails start, since they link to it), turnOnAutomation (the DM automation starts answering comments right away) and startEmails (the welcome emails go to everyone who confirms). Ask about each choice; never turn one on that the person did not ask for. planHash must be the one from the plan they approved: if the plan changed since, the launch is refused, so read it again and show them. A post that needs a picture stays a draft until one is added, and the answer's notes say what waits and why: tell the person. Calling it again finishes a launch that stopped halfway and makes nothing twice. A built Flow (its drafts made and checked in the app) goes live with the same three choices from its parts as they are now, edits included; its planHash is not checked. A Flow built step by step that was closed to new signups (closedAt) opens again with the same three choices: postsAs scheduled brings back the posts Close stopped and turnOnAutomation the DM, so ask the person; its signup form and page come back, and its emails ran all along. Needs the Publish scope. On a retry after a timeout or error, send the same idempotency_key: the first answer comes back and nothing is made or sent twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goalId | Yes | The goal id from postfjord_plan_goal or postfjord_list_goals. | |
| postsAs | No | scheduled: the posts go out on their dates. drafts (default): they wait in the app. | |
| planHash | Yes | planHash of the plan the person approved, from postfjord_get_goal or postfjord_update_goal. | |
| startEmails | No | Start the welcome emails, and the yearly birthday email when the plan has one, now. Default false. Ask the person about both. | |
| idempotency_key | No | Your own id for this one action, for example post-20261006-launch. Make a new one for each new thing; send the same one again only when you retry. Left out, the exact same call within 10 minutes counts as a retry. | |
| turnOnAutomation | No | Switch the comment to DM automation on now. Default false. |