generate_and_publish_post
Generates platform-tailored social media posts from a topic and publishes or schedules them across connected accounts, supporting remote and local media.
Instructions
End-to-end AI agent action: Generates platform-tailored copies (Facebook, Instagram, X) from a topic and immediately publishes (or schedules) across target connections. Supports remote media URLs or local file paths directly.
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": {
"topic": "<topic>",
"accountIds": "<accountIds>"
},
"name": "generate_and_publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | Tone of voice | |
| topic | Yes | Topic, product announcement, or instructions for the AI copywriter | |
| linkUrl | No | Optional link to attach | |
| mediaUrls | No | Optional array of image or video URLs to attach (or local file paths, which will be automatically uploaded) | |
| accountIds | Yes | Target connection IDs to publish to | |
| mediaFiles | No | Optional array of local file paths on disk (e.g. ["/path/to/video.mp4"]) to upload directly to SocialDispatch storage and attach to post | |
| scheduledAt | No | Optional ISO-8601 datetime if scheduling for future | |
| publishImmediately | No | Whether to publish immediately (default: true) |