Integrations
Escalate AI agent conversations to Salesforce
Connect Salesforce so your AI agent can open cases and hand customers to live agents in Salesforce
The Salesforce integration connects your QwryAI agent to your Salesforce org so it can pass on what it can't resolve, in two ways:
- Create a case for your team to follow up, from any channel where the Escalations Action runs.
- Hand the customer to a live agent in Salesforce, inside the Chat bubble or Help page, with the Salesforce live chat Action.
Available capabilities
| Capability | What it does | Where it runs |
|---|---|---|
| Case creation | Opens a Salesforce case with an AI-written summary and a link to the conversation | Any channel where the Escalations Action runs |
| Live chat handoff | Hands the customer to a live agent in Salesforce Enhanced Chat | Chat bubble and Help page |
Before you start
- A QwryAI account with an agent.
- A Salesforce org with API access, and a Salesforce user who can authorize connected apps. Cases are created as that user.
- For live chat, Messaging for Enhanced Chat and Omni-Channel set up in the org. See Configure your Salesforce org.
How to connect Salesforce
- Open your agent
Sign in to your QwryAI dashboard and select the agent you want to connect.
- Find the Salesforce card
Open Integrations and find the Salesforce card.
Integrations › Salesforce. - Enter a custom domain if you need one
Most orgs can skip this. For a sandbox, or an org that blocks sign-in at login.salesforce.com, type your My Domain address in Custom domain (optional), such as
acme.my.salesforce.com.Custom domain (optional) for sandboxes and locked-down orgs. - Connect
Select Connect. A Salesforce window opens. Sign in, review the access QwryAI asks for (managing your data through the API, and keeping access when you're offline) and select Allow. The window closes and the card shows Connected.
Create the Salesforce Actions
Create a case: create an Escalations Action with Salesforce as the Ticket Platform. See the Escalations guide.
Live chat: go to Build › Actions, open Create Action and select Salesforce live chat. Enter the Salesforce Live Chat API URL, Developer Name and Org ID from your Embedded Service Deployment. Until Salesforce is connected, the card offers Connect first.
Salesforce Actions covers both Actions in full, including the org setup for live chat.
What the case contains
The agent makes sure it has the customer's name and email first, asking for them if needed.
| Case field | What QwryAI sends |
|---|---|
| Subject | A short subject the agent writes from the customer's issue |
| Description | An AI-written summary of the issue, from the customer's point of view |
| Case Origin | Web |
| Web Email | The customer's email |
| Web Name | The customer's name |
QwryAI then adds a private case comment, conversation link in QwryAI:, with a link to the conversation in your QwryAI Inbox, and tells the customer the case number.
Example
A customer reports that invoices in their account show the wrong VAT number. The agent asks for their name and email, then creates:
- Subject: Wrong VAT number on invoices
- Description: All my invoices since March show our old VAT number. I need them reissued with the new one.
- Case Origin: Web
- Private comment: conversation link in QwryAI, followed by the link
What the customer sees
- After a case: the agent shares the case number and keeps replying in the chat. Your team's replies reach the customer the way Salesforce sends them, usually by email.
- During live chat: the chat shows Waiting for support agent to join until a Salesforce agent replies, then they chat in the widget. When the Salesforce agent ends the session, the chat shows Salesforce live chat ended. and your QwryAI agent answers again.
Disconnecting Salesforce
On Integrations, open the Manage Salesforce connection menu on the Salesforce card and select Disconnect. The dialog lists the Actions that use Salesforce; confirming deletes them. To also remove QwryAI's access on the Salesforce side, revoke it in Salesforce Setup under Connected Apps OAuth Usage.
Troubleshooting
Connecting shows "Enter a Salesforce domain ending in .my.salesforce.com"
Custom domain (optional) must be your My Domain address, such as acme.my.salesforce.com or acme--uat.sandbox.my.salesforce.com. Leave it empty to sign in at login.salesforce.com.
Connecting fails with "Failed to connect Salesforce"
Salesforce didn't finish the authorization. Check that your user can authorize connected apps and has API access, then select Connect again.
Salesforce authorization expired
Salesforce authorization expired. Please reconnect. The Salesforce window stayed open too long, or an admin revoked the app's access. Connect again.
The customer was told the case could not be created
Open the conversation in Inbox. Check that the connected user can still create cases and that the customer gave an email. If the card shows Salesforce access was revoked, select Reconnect.
Live chat never starts
Salesforce refused the handoff, so the agent keeps the conversation. Check the three Action values and the user verification keyset. See Salesforce live chat.
Frequently asked questions
Does it work with sandboxes?
Yes. Enter the sandbox's My Domain address in Custom domain (optional) before you connect.
Do I need both Actions?
No. Use Create ticket for follow-ups, Salesforce live chat for real-time help, or both.
Which channels support Salesforce live chat?
The Chat bubble and Help page. Cases can be created from most channels.
What happens to my Actions if I disconnect Salesforce?
Disconnecting deletes the Actions that use Salesforce. The confirmation dialog lists them first.
Does creating a case use credits?
No. Only the agent's reply uses credits, as usual.