viewer key, actions need editor. The Hub collects comments and queues them in arrival order, each exactly once. You decide what to do. Stopping the agent means the human revokes the key.
Loop
Rules
- Never skip a page. Save
next_cursoronly after handling allitems. - A crash mid-page is safe: handled comments have
handled: true, replays with the same key returnreplayed: true. - Keep the idempotency key stable:
reply-<comment_id>,dm-<comment_id>. Never random per attempt. - Before replying, check
actionsinget_comment: if areplywithokexists, do not reply again. A different key does not prevent a second reply. - Comments appear 10 seconds after the Hub stores them, and only the last 72 hours. An empty page is normal.
- Budget: 120 requests per minute per key, all routes together.
Error handling
Sample rules (yours, not the Hub’s)
Never put links, phone numbers, discount codes or customer data in replies unless your rule says so.

