The playbook
One video in, one native version per network out: its own MP4 and caption for each, then one post per network.
If the plan has several workspaces, call workspaces_list first and ask which one, then pass workspace=<id> to every tool below.
1. Where it can go
list_accounts: the networks connected here. Only format for those (and any the user names). A network with several connected accounts needs account_ids later: ask which ones. get_account_health to catch anything that needs reconnecting.
To explain limits, format_specs lists each network's rules (sizes, min and max length, caption limit, hashtag cap, whether links are clickable, title limit).
2. Get the video in
- A file the user has:
create_upload_link, give themupload_page, thenget_upload(upload_id) for themed_id. - A public file URL, or a TikTok / Reels / YouTube / X link: pass it straight to
format_create.
3. Render
- Caption: read
smarty_getand either pass the user's caption or write one in the brand's voice. format_createwithvideo_url,platforms(the connected ones),caption,title(YouTube),notes(what it's about, the offer, the link, words to avoid) andfit(autodefault;blur,croporpad).- Poll
format_get(job_id) every 30 to 60 seconds until the status isdone(orfailed).
4. Review with the user
Per platform show: status (done, failed, skipped), kind and size, whether it was trimmed, the caption, title and any warnings, and the video_url to watch. A skipped output (too short for that network) or a trimmed one is worth calling out. Ask if any caption should change and whether to post now or at a time (get_best_time_to_post can suggest one).
5. Confirm, then post
Show the full list: network, account, caption first line, now or time. Get an explicit yes.
Each finished output carries post, a ready body for that one network (platforms, post_type, content, title, media, cover). For each, call create_post with those fields, plus:
account_idswhere the network has several accounts,schedule_at+timezoneto schedule,contentreplaced if the user edited a caption,- optional
first_commentfor a link (Instagram, Facebook, LinkedIn, YouTube, Threads; see/first-comment).
One create_post per network, since each has its own video.
6. Report
get_post for each post_id: one line per network with status and link. Say which networks were skipped and why. Offer /postanalytics in a few days, or Posty (agent_posts_create) next time if they want slots and captions picked for them.