---
schema_version: "1"
id: 4c5be3adbf1157edffacc850aeb19e4298e56a044a1a5b047c37d150a9563ab5
title: Public Sector | Find Similar Complaints
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_ref_pss_find_similar_complaints.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_ref_pss_find_similar_complaints.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ac177fbe50f3f2f0d0d7dbf50bbc7692be41310992e7b60a945f261a4deb766d
description: Finds public complaints that are similar to a public complaint by matching the keywords in the complaint summary.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Public Sector | Find Similar Complaints

Finds public complaints that are similar to a public complaint by matching the keywords in the complaint summary.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with the Agentforce for Public Sector add-on or included in Public Sector for Agentforce 1 Service Edition. Requires each user to have the Agentforce for Public Sector add-on to access the action.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d217338e70">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d217338e70 ">To use the Find Similar Complaints action:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d217338e70 ">
            <p>Public Sector Access permission set</p>
            <p>AND</p>
            <p style="margin-bottom:0;">Agentforce for Public Sector permission set</p>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d217338e70 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent Actions</a>.</td>

        </tr>
      </tbody>
    </table>

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">API Name</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">FindSimilarComplaints</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Prompt Template</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Find Similar Complaints (pss_agent__FindSimilarComplaints)</p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Yes</td>

          </tr>
        </tbody>
      </table>

## Find Similar Complaints Prompt Template

This action uses the Find Similar Complaints prompt template to get the Salesforce record IDs of previously closed public complaints that are similar to a public complaint record. The prompt template passes the keywords in the Complaint Summary field of the input public complaint record to a search retriever. The retriever finds and returns a list of public complaint records that have similar keywords and a status of Closed. The prompt template chooses the records that have a score of 0.7 or more, and returns their Salesforce record IDs.

#### See Also

- [Complaint Resolution with Agentforce](https://help.salesforce.com/s/articleView?id=ind.psc_complaint_resolution_with_agentforce.htm&language=en_US)