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.
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) |