Generate posts for calendar item
trigger-generationGenerates posts for one calendar item, one per destination: research, copy, headline and image in the persona's voice. Running it again deletes the item's existing posts and writes new ones. Returns post IDs immediately; generation takes 1 to 3 minutes. Finished posts are SCHEDULED (publish publicly at their time) on connections without approval, otherwise READY_TO_APPROVE. Costs 30 credits per post (15 with an uploaded image), deducted when each post finishes. Can read the page at a given URL.
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": {
"contentEventId": "<contentEventId>"
},
"name": "trigger-generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Override the source URL for generation | |
| text | No | Override the text input for generation | |
| scenes | No | Scene IDs for scene-based generation | |
| imageUrl | No | Uploaded image URL (skips AI image generation, costs 15 credits instead of 30) | |
| inputType | No | Override the input type (defaults to the content event's inputType) | |
| contentEventId | Yes | The content event ID to generate posts for | |
| selectedConnections | No | Override which connection IDs to generate for (defaults to content event's selection) |