Generate Messages
Signals
Generate Messages
Generate DM and public-comment drafts for one or more signals.
POST
Generate Messages
CLI:
Overview
Generates outreach drafts for a batch of signals. For each item, the handler can produce a DM draft, a public comment draft, or both. Drafts persist on the signal row so laterGET /api/signals calls return them as dmText and commentText.
Use this after a user has reviewed a signal and wants Puffle to suggest a first-draft message. Per-item failure does not fail the request.
AI agent notes
Each item must set at least one of
dm: true or comment: true.Concurrency. Concurrent calls for the same (signalId, kind) short-circuit with error: "already_in_flight" on the affected side. Wait for the in-flight draft to finish, then retry.Saving edits. Persist user edits via Update Signals with dmText or commentText.Response shape. { results: [{ signalId, dm?, comment?, error? }] }. Successful items include dm.text + dm.profileUrl + dm.messagingUrl (or the comment equivalents).