openreply icon indicating copy to clipboard operation
openreply copied to clipboard

Campaign option: public comment reply only (no DM)

Open FranciscoQuero opened this issue 1 month ago • 0 comments

Use case

Some creators want the automation to answer the comment publicly and nothing else. Example: "Comment AI PLATFORM and I'll give you my discount code". The code changes every post, and the reply goes under the comment, not in DMs.

Today OpenReply always sends the DM. dmMessage is required in the builder and the API, and the worker always runs the DM leg. The public reply already does most of the work: it is sent first, it is independent of the DM, and it rotates between variations. The only missing piece is turning the DM off.

#109 tried this, but it was bundled with unrelated changes, so I'm opening this to agree on the shape first.

Proposal

  • New Automation.dmEnabled Boolean @default(true). Existing campaigns behave exactly as today.
  • Builder: a "Send a DM" toggle. When it is off, the DM, opening DM, follow gate and follow-up sections are hidden, and at least one public reply is required.
  • API (create, update and import): dmMessage becomes optional only when dmEnabled is false and a public reply is set.
  • Worker: when dmEnabled is false, post the public reply and skip the DM leg. Rate limiting, idempotency and the reconciler keep working as they do now, because the reconciler already treats publicReplySentAt as "done" for public-reply campaigns.
  • Logs: mark the comment as handled without a DM. This could be a new SKIPPED_DM_DISABLED status, or the existing SENT status with publicReplySentAt set. Which do you prefer?
  • DM triggers (dmTriggerEnabled) don't apply to a public-only campaign. The builder disables that toggle.

Tests: worker unit tests for public-only (reply posted, no DM call, no DM quota reserved) and API validation tests.

Happy to send a focused PR if this direction works for you. Separately, I've opened #110, which adds a Spanish (es) interface language following the same pattern as #89.

FranciscoQuero avatar Nov 05 '26 12:11 FranciscoQuero