Skip to content

Post-chat survey in Legacy Chat (retired)

Salesforce has retired Legacy Chat

Salesforce retired Legacy Chat (Live Agent) in February 2026 and replaced it with Messaging for In-App and Web. To survey customers at the end of a chat, use Salesforce Messaging.

This page is kept for reference only.

The old setup in Legacy Chat
  1. Set up the Service Console, so agents can chat with customers. When you set it up for the first time, choose Chat with customers.
  2. Set NPSPostChatSurveyPage as the post-chat page, e.g. under Chat Buttons & Invitations → Edit → Post-Chat Page.
  3. In your Embedded Service Code Snippets, check that the code includes embedded_svc.settings.autoOpenPostChat = true. If not, add it.
  4. Find the public ID of the campaign in nps.today, and enter it in the custom setting NPS Public Id in Salesforce.

Security: In Session Settings, add the domains the chat uses, likely *.salesforce-sites.com, with the iframe type Visualforce Pages. Decide whether you need XSS and clickjack protection.