feat(api): Add parameter to skip conversation continuity emails on a per-message basis #15244
farhanulju
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
Yes. When sending a conversation reply via the REST API (POST /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages), Chatwoot automatically triggers an outbound "conversation continuity" email to the customer if they have an email address on file and are marked offline.
Currently, there is no way to suppress this email on an individual message level. The only workarounds are to globally disable the email continuity feature at the account level via the Rails console, or perform a complex "Delete-Post-Restore" sequence by temporarily stripping the customer's email address via the API before sending the message. This introduces race conditions in high-concurrency environments and complicates automated workflows (e.g., sending silent diagnostic data, automated receipts, or system-triggered notes that customers shouldn't be emailed about).
Describe the solution you'd like
We need an optional boolean flag such as
skip_continuity_emailavailable inside the POST messages API request payload.When this parameter is explicitly set to true, the API should prevent the background job worker (Sidekiq) from queueing or executing the outbound conversation continuity mailer for that specific message, while still rendering the message inside the dashboard and widget normally.
Proposed API Payload Example:
{
"content": "This is an automated system response that should not trigger an email notification.",
"private": false,
"skip_continuity_email": true
}
Describe alternatives you've considered
Additional context
This feature would greatly improve Chatwoot’s flexibility as a headless or hybrid CRM backend, allowing developers to fine-tune the notification experience for automated bots and programmatic system replies.
All reactions