How do Auto-Response Rules enhance customer communication upon case submission?
Answer
Basics: Customers want confirmation that their request was received. The rule picks a template by criteria (for example language or product) and sends it from a chosen sender address, usually including the case number and thread ID.
How it works:
- Setup > Auto-Response Rules > Case Auto-Response Rules > New; make it active (only one active per object).
- Add entries in order with criteria, sender name and email, reply-to address, and an email template.
- The case is created by Web-to-Case, Email-to-Case or a community form.
- Salesforce evaluates entries and sends the first match's email to the contact's address.
- The reply carries a reference ID, so replies thread onto the case.
Advanced / deep dive: Auto-response does not fire for cases created manually in the UI, and from Apex only when you set DML email header options. Template requirements: they must be merge-field-enabled and typically use the Classic email template types, so confirm compatibility if using Lightning templates (verify in the current docs). For more control (suppress repeated emails, vary by channel, use Lightning templates), use a record-triggered Flow with Send Email or an Email Alert. Beware of auto-reply loops: customer out-of-office responses can create new cases; use email headers and filters. Web-to-Case has a daily limit (5,000 cases by default) that also bounds auto-response volume.
Code / config example:
Database.DMLOptions dmo = new Database.DMLOptions();
dmo.emailHeader.triggerAutoResponseEmail = true;
(Subject = , SuppliedEmail = , Origin = );
Database.insert(c, dmo);