| Keep the token in server-side secret storage | Authentication |
| Verify the raw webhook request before accepting it | Signature verification |
| Commit and deduplicate events before acknowledging | Webhook delivery or WebSocket ACKs |
| Run model and tool work after acknowledgment | Webhook delivery |
| Retry a message with its original key and body | Idempotency |
| Complete recovery before resuming WebSocket ACKs | FULL sync |
| Keep event acknowledgment apart from Delivered and Read | Delivery receipts |
| Store attachment IDs rather than expiring download URLs | Download attachments |
| Cache only history this contact can access | Message history |