Pre-requisites
- Email forwarding configured — see Connect Email.
- Salesforce Email Cases credentials, webhook, and Apex configured — see Email Cases setup.
How conversations land in Salesforce
Setting up
Confirm email forwarding works
Open Channels → AI Email in the OpenCX dashboard. Your forwarding address should be listed and verified. Send a test email and confirm it reaches the Inbox.
Confirm Salesforce Email Cases is connected
In Settings → Integrations, open Salesforce → Email. The status should show Connected and the webhook URL should be displayed.
Confirm the Apex trigger is active
In Salesforce, go to Setup → Apex Triggers and verify the
CaseTrigger fires on Case (after insert). See Email Cases setup for the exact code.Trigger a test handoff
Send a test email to your connected address and respond with something that causes the AI to escalate. Alternatively, go to the Inbox and manually hand off the session.
Verify the Case in Salesforce
A Case should appear in Salesforce. Check:
- The conversation summary is the Case description.
- The full transcript is attached as Case comments.
Case_From__cis set toopencx.- The OpenCX session shows a
salesforce_case_idlinking to this Case.
Reply and verify sync
Reply on the Case from Salesforce. Confirm it arrives in the customer’s email and shows as an agent message in the OpenCX Inbox.
What the rep sees
- A Salesforce Case with
Case_From__cset toopencx. - Conversation summary as the description, full transcript as Case comments.
- The OpenCX session linked via
salesforce_case_id— visible in the Inbox session detail for tracing. - Replies on the Case sync back to the contact’s inbox.
Channel-specific details
Case-append on returning contacts
Case-append on returning contacts
If the same contact re-engages before the Case is closed, OpenCX appends to the existing Case instead of opening a new one. Your reps keep context; your reports don’t inflate.
Rep reply syncs back to the customer's inbox
Rep reply syncs back to the customer's inbox
When your rep replies on the Case, the webhook fires and OpenCX delivers the reply to the customer’s original email thread. The AI stops auto-responding once a human agent is active on the session.
Attachments
Attachments
Attachments the customer sends by email are included in the OpenCX session. Attachments your rep adds to a Case reply sync back through the customer’s email thread (subject to your email provider’s attachment limits).
Related Documentation
AI Email Support
The channel itself — forwarding setup, flow, troubleshooting.
Email Cases setup
OAuth, Connected App, webhook, and Apex configuration.
Salesforce overview
What Salesforce lights up across every channel.
Troubleshooting
Cases not created, replies not syncing.