Generate Posts
generate_postsGenerate new social media posts using AI with Agency Workforce v3. Named products in the description (e.g. iPhone 18, Volvo EX90) are detected automatically: photos come from the user's own catalogue when they have it, otherwise reference photos are found on the web, so the image shows the real product. For an explicitly requested publication date, pass scheduledDate and optional scheduledTime: the server reserves the date and creates an idea review card with Approve / Change date. Approval is required before publishing. When the user names networks ('only TikTok', 'LinkedIn and Instagram', 'everywhere') pass platforms, and instagramPlacement 'story' for an Instagram story; the choice is kept through approval. Returns a task ID and group ID immediately; say creation has started, never that it is already scheduled. The user is notified when ready. Check get_generation_status if they ask for progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of posts to generate (default: 1) | |
| platforms | No | Which networks this post goes to. Omit to use the account's own publishing settings. ['all'] = every network the account has connected. Or any subset the user names, e.g. ['tiktok'], ['linkedin'], ['linkedin','instagram']. Only connected networks publish; the result lists any that can't, and why (not connected, switched off, needs a video). | |
| characters | No | Saved characters (people with photos) to show in the picture, by name. Only when the user asks for them or the post is about that person; use_character_reference lists who exists. | |
| productIds | No | Catalogue products to show IN the post, as list_products ids ('shopify-42', 'feed-17'). Pass every product the user named in ONE call: 'a post about A and B' is one post with both. Every listed product goes into every post of the call. | |
| description | No | Topic or description for the posts. If omitted, auto-generates based on user profile. | |
| exactCaption | No | Quoted/dictated wording, preserved verbatim. Omit when the user gave a topic to write about. | |
| scheduledDate | No | When explicitly requested: YYYY-MM-DD in the account timezone. Reserves the date and requires approval before publishing; omit for an undated draft. | |
| scheduledTime | No | Local HH:mm. If only a date was requested, omit to use 09:00; tell the user the returned time. | |
| facebookPlacement | No | Facebook only: 'feed', 'story' (Page story only, no feed post, no caption) or 'feed_and_story'. Omit to keep the account default. | |
| instagramPlacement | No | Instagram only: 'feed' = feed post, no story copy; 'story' = Instagram STORY ONLY — no feed post, no caption, first image or video only; 'feed_and_story' = feed post plus the same media as a story. Omit to keep the account default. | |
| perPostDescriptions | No | One complete brief per post for distinct subjects; length must equal count. |