Generate social posts from an RSS / blog item
generate_posts_from_rss_itemRuns the same RSS → social posts flow as the Flomixy app for an article already in a connected feed: one AI-written caption per target network (with the article link and the feed image, same as the app's "AI variants"). Never publishes directly: without scheduledAt the posts stay DRAFTS; with scheduledAt they are scheduled but still wait for human approval. Pick times with get_best_times / get_next_free_slot. Must be at least 10 minutes from now, otherwise SCHEDULED_TOO_SOON (not retryable; the error names the earliest allowed time). Get feedId/itemId from list_rss_feeds and accountId from list_accounts. Each network uses one AI caption unit; networks that cannot be generated (duplicate caption, account not owned by the feed's brand, or the article is already posted/scheduled/drafted on that very account: reason ALREADY_POSTED with existingPostId and existingStatus) come back in skipped, not as an error; no AI unit is spent for them. Use force only if the user wants another post anyway. Requires scope POSTS_WRITE.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"feedId": "<feedId>",
"targets": "<targets>"
},
"name": "generate_posts_from_rss_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Set true ONLY when the user explicitly wants another post for an article that already has one on the account. Default false: such networks come back in `skipped` with reason ALREADY_POSTED. | |
| feedId | Yes | Feed id from list_rss_feeds. | |
| itemId | No | Item id from list_rss_feeds. Exactly one of itemId / itemUrl. | |
| itemUrl | No | Link of an article already in the feed (e.g. the blog URL). Exactly one of itemId / itemUrl. | |
| targets | Yes | One post is generated per entry. | |
| language | No | Caption language, default "en". | |
| approverId | No | Workspace member who should review the posts (list_approvers). |