Skip to content

P-GAP for Salesforce

P-GAP (perception gap) trains your employees to read their customers. When an employee in a P-GAP training period closes a case, Salesforce asks: how satisfied do you think the customer is? The employee answers on the same 0 to 10 scale as the customer. nps.today compares the two ratings, and the gap shows how well the employee read the customer.

The agent rating pop-up on a case

The method and the setup in nps.today are described in Train your employees with P-GAP.

Before you start

  • The nps.today package is installed and connected, see Install the package.
  • In nps.today: a P-GAP training session for the employees and the campaign, with a period that includes today. See Setting up a P-GAP period. An employee shows up in nps.today after their first survey has been sent.
  • In Salesforce: the cases get the ID of that campaign in their Campaign Id field, e.g. from a record-triggered flow, as in step 6 of Embedded email surveys. When Use Salesforce Email Template is off on the panel, nps.today sends the survey email.

Step 1: Add the panel to the case page

The NPS P-Gap Closed Case Panel sends the survey when a case with a Campaign Id is closed. When the employee who closes it is in a P-GAP period, the panel first shows the pop-up, and sends the survey with the employee's rating.

Don't send twice

If a flow also sends a survey when these cases are closed, the customer gets two surveys. See Surveys after a closed case.

  1. Open any case, click the gear icon at the top right, and click Edit Page.
  2. Under Custom - Managed, drag NPS P-Gap Closed Case Panel onto the page.
  3. Click Save, then Activate.

Only admins and users with nps.today admin see the panel itself. Other users only see the pop-up, and only while they are in a P-GAP period.

Step 2: Customize the pop-up

  1. Open any case, and click Customize P-Gap modal on the panel.

    Customize P-Gap modal

  2. Change what you need:

    • the colors of the rating boxes
    • whether the header is shown, and its title
    • the question to the agent
    • the labels at the left and right end of the scale

    Customizing the pop-up

  3. Click Apply changes, then exit. The changes are saved in the custom setting NPS.Today Settings.

Step 3: Check it

  1. In nps.today, add yourself to a P-GAP training session for the campaign.
  2. In Salesforce, close a test case whose contact has your own email address.
  3. The pop-up asks for your rating. Give one.

    The pop-up for an agent in a P-GAP period

  4. Answer the survey you receive. In nps.today, the response shows both your rating and the customer's.

Send the agent rating from a flow

To collect the agent rating in your own screen flow instead, e.g. outside of cases, pass it to the Agent rating setting of Send Surveys (nps.today). It is shown when Records is set to One record.

Report on P-GAP in Salesforce

NPS Response records have the P-GAP rating, the agent's email and the agent's name, so you can compare agent and customer ratings in Salesforce reports, see NPS score in reports and dashboards.

P-GAP rating, agent email and agent name in a report