Salesforce
Connect Salesforce so the agent finds contacts by email, creates support cases and checks a case's status by number, with one-click or Connected App setup.
With Salesforce connected the agent finds a contact by email, files support cases and tells a customer how their case is doing.
What the agent can do
| Action | What it does | Inputs collected |
|---|---|---|
| Find Salesforce contact | Finds the contact whose email is exactly the address the visitor gave. | |
| Create Salesforce case | Files a case (origin "Web") with a subject and the details. The description ends with a "Customer email:" line, the case is linked to the contact with that email when there is exactly one, and the visitor is given the case number. | Email (the agent writes the subject and the details) |
| Check Salesforce case status | Reports the status and subject of a case. It answers only when the case number and the email belong to the same case. | Case number and the email the case was opened with |
The contact's email and the case description are read for the check only and are never passed to the agent.
Connect in one click
If Connect Salesforce is shown under Integrations → Salesforce, click it and sign in to your org. The first person to connect an org must be a System Administrator. The actions are created and enabled, and PepoChat keeps the connection alive weekly so it does not expire from inactivity.
Connect manually with a Connected App
Create a Connected App
Setup → App Manager → New Connected App. Enable OAuth, tick Enable Client Credentials Flow, and add the scope Manage user data via APIs (api). Any callback URL works.
Set the run-as user
Manage → Edit Policies and set the Run As integration user. It needs API access plus access to Contacts and Cases.
Fill in the form
Enter your My Domain host (
yourcompany.my.salesforce.com, nohttps://), the consumer key and the consumer secret. Add the actions, test the contact lookup, enable.
Newer Salesforce orgs disable creating Connected Apps by default; an administrator may need to allow it first.
Example
Visitor: What's the status of case 00001026?
Agent: I can check that. Which email address was the case opened with?
Visitor: dana@example.org
Agent: Case 00001026, "Login loops on mobile", is In Progress. Want me to let the team know you're waiting on it?
Good to know
- A visitor can give the case number with or without the zeros in front: 1026 is case 00001026.
- The email is checked against the email of the contact the case is linked to, and against the "Customer email:" line the agent writes at the end of a case it files. A case with neither (one your team opened by hand without a contact) cannot be looked up in chat, because there is nothing to check the visitor's email against.
- Keep that "Customer email:" line if you edit the action's request body or tidy a case's description: for a visitor who is not a contact yet, it is what the check goes by.
- If the number and the email do not belong together, the agent says that no case was found and does not say which of the two was wrong.
- If you connected Salesforce before the email check existed, the status action still answers by case number alone. To get the check, click Reconnect under Integrations → Salesforce (one-click connection), or delete the action and add it again (manual connection).
Something missing or wrong on this page? Tell us and we will fix it.
