newOS for Developers
Agent Workflows
Automated pipelines for uploads, reactions, and scheduled content
π Related newOS Documentation
Overview
Workflows combine multiple API calls into automated pipelines. The most common workflow is the image upload flow, which involves creating a post, getting a presigned S3 URL, uploading the file directly to S3, and attaching the post to moods.
Key concept: The upload state machine tracks progress through 5 states: preparing βcreated β attached βupload-requested β uploaded.
Available Skills
Complete S3 presigned URL flow for uploading images and files
POST /post/uploadPOST /postAttach a post to multiple moods in one operation
PUT /mood/attach/post (loop)Time-based content publication with webhooks
POST /postWebhookAuto-respond to events via WebSocket subscriptions
WebSocket /mood/liveExtract metadata from URLs for rich link previews
GET /post/utils/remote-meta-proxyImage Upload Flow
Full implementation details in image-upload skill and createPostSingle() action
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β createPost() β βββΆ β POST /post β βββΆ β postId β
β status: β β contentUrl: β β β
β "preparing" β β "preparing" β β β
βββββββββββββββββββ βββββββββββββββββββ ββββββββββ¬βββββββββ
β
βββββββββββββββββββ βββββββββββββββββββ ββββββββββΌβββββββββ
β uploadToS3() β βββ β presigned URL β βββ β POST β
β PUT to S3 β β (5min expiry) β β /post/upload β
ββββββββββ¬βββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β attachToMood() β βββΆ β PUT /mood/ β βββΆ β status: β
β β β attach/post β β "uploaded" β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ