What you can do:
Available capabilities
You connect Salesforce once per AI agent. The same connection is used whether you connect from Channels or Integrations, so you don’t need to connect twice.Before you start
- A Chatbase account with an AI agent, on the Basic plan or higher. If you haven’t built an AI agent yet, create a Chatbase account and follow Your first AI agent.
- A Salesforce account you can authorize the integration with. Chatbase signs in through
login.salesforce.com. - For case replies and draft responses, permission to install the Chatbase package in your Salesforce org.
AI case responses in Salesforce
How to connect Salesforce
Open your Chatbase AI agent
Find the Salesforce integration
Authorize the integration
Install the Chatbase package
Configure the integration
- Under Assign a Salesforce user, select the Salesforce user that the AI agent will reply as.
- Choose to either sync the AI agent’s Salesforce instructions with the global instructions, or write a different instructions prompt. This is useful if you want the AI agent to handle Salesforce cases differently, for example to answer in a more formal tone or to point refund requests to your refund policy.
Verify the reply email address
Which cases get an AI reply
The AI agent replies only to cases owned by the user you picked under Assign a Salesforce user. Route cases to that user with your own Salesforce assignment rules, or assign them by hand. Cases owned by anyone else, including a queue, are left alone.- Only incoming customer emails get a reply. When a customer email arrives on a case owned by that user, the AI agent writes a reply and sends it by email, logged on the case.
- Replies take 30 seconds to 2 minutes. The delay is on purpose, so don’t expect an instant answer when you test.
- To stop AI replies on a case, assign the case to a different owner. There’s no tag or setting that opts a single case out.
- Case replies don’t change the case. The AI agent doesn’t tag the case, change its status, or add a link to the Chatbase conversation. You can read each exchange in Chatbase Activity > Conversations, where it appears as a Salesforce conversation.
When the AI agent can’t reply
In case-reply mode the AI agent always replies if it can. It has no step to escalate or hand the case back. When it can’t send a reply, for example because the reply came back empty, the case has no customer email, the case is owned by a queue instead of a user, or sending failed, Chatbase posts a public comment on the case telling the customer their issue is important and that the team will be in touch shortly. Nothing else changes: the owner and status stay as they were. Have your team watch for these comments, because a person needs to pick the case up.Generate Draft Response
Don’t want the AI agent to respond directly? Add the Generate Draft Response button so your support agents can review and edit an AI-generated reply before they send it. There’s no toggle for this in Chatbase. Draft responses turn on when you open Channels > Salesforce > Configs with the Chatbase package installed, and they don’t need a Salesforce user assigned. You only need to add the button to your case page layout:Open the page editor

Add the action to the layout

Human escalation via case creation
Connect Salesforce
Create the Escalations Action
What the escalation case contains
The case fields are fixed. You can’t add or map other fields.Example
A customer named Maya writes in the Chat Bubble: “My order arrived damaged and I want a refund. Can someone help?” The AI agent asks for her name and email, then creates the case:- Subject: Refund request for a damaged order
- Description: The customer received a damaged order and is asking for a refund. She would like someone from the team to follow up.
- Case Origin: Web
- Web Email: maya@example.com
- Web Name: Maya Chen
- Private comment: conversation link in Chatbase, followed by the link
Disconnecting Salesforce
To disconnect, click Disconnect on the Salesforce card. Chatbase lists the Escalations Actions that use Salesforce and asks you to confirm, because disconnecting deletes them. Disconnecting also:- revokes Chatbase’s access to your org
- deletes the Chatbase configuration record in Salesforce
- deletes the Org-Wide Email Address Chatbase created for the AI agent
Troubleshooting
The AI agent doesn't reply to a case
The AI agent doesn't reply to a case
The case got a comment saying the team will be in touch
The case got a comment saying the team will be in touch
Generate Draft Response says the agent has already replied
Generate Draft Response says the agent has already replied
Escalation cases stopped appearing
Escalation cases stopped appearing
The Salesforce card shows Upgrade to enable
The Salesforce card shows Upgrade to enable
Frequently asked questions
Do I need separate Salesforce connections for case replies and escalation?
Do I need separate Salesforce connections for case replies and escalation?
Can the AI agent escalate a case it's replying to?
Can the AI agent escalate a case it's replying to?
What does an escalation case contain?
What does an escalation case contain?
Web, the customer’s email and name in Web Email and Web Name, and a private comment with a link to the conversation in Chatbase. See What the escalation case contains.Do my team's Salesforce replies show up in the chat?
Do my team's Salesforce replies show up in the chat?
Does creating a case use message credits?
Does creating a case use message credits?