AI compose (server side)
postfjord_ai_composeAsks Postfjord's built-in composer to draft text per channel from a brief, in the brand voice, and returns the text only: nothing is saved (save it with postfjord_create_draft). To save a draft for every channel and an email from one idea in one call, use postfjord_repurpose_idea instead. Uses the workspace AI budget. Usually you can write the post yourself instead; use this when the user explicitly wants Postfjord's composer.
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": {
"brief": "<brief>",
"channels": "<channels>"
},
"name": "postfjord_ai_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | A tone for this post only, such as playful or calm. Left out: the brand voice. | |
| brief | Yes | What the post is about, in a sentence or a few. | |
| channels | Yes | ||
| mediaSummary | No | What the pictures or video show, so the text can talk about them. |