create_post_variants
Add alternate LinkedIn or X post versions as tabs so users can compare, edit, comment, and choose one as the main scheduled post.
Instructions
Add other versions of the session's LinkedIn or X post (e.g. 'Story first', 'Shorter', 'Single tweet'). The app shows them as tabs above the post preview; the user compares, edits, comments and picks one with 'Use as main'. Only the main post is scheduled. Write the main post with set_post first. Edit a variant later with set_post variant=. For different openings of the same post use set_post_hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. | |
| platform | No | Which post of the session: linkedin (default, posts/linkedin.md), x (posts/x.md), youtube (the long wide video: title + description, posts/youtube.md) or vertical (one vertical video and caption for TikTok, Instagram Reels and YouTube Shorts, posts/vertical.md). | |
| variants | Yes | The versions: [{name, text, tweets, note}]. |