---
schema_version: "1"
id: bf1c0dd35072c9aacfd7c8ba26871859cce53312424a1ca1332980df482b23e8
title: Transform NLP Action Results Action
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-feedback-management-dev-guide/guides/api-action/objects/actions-obj-transform-nlp-action-result.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-feedback-management-dev-guide/guide/actions-obj-transform-nlp-action-result.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 05ac99c877bcc8e69f61495efaeffea806caae91b886f05394112217f56adbe7
products:
  - Salesforce Feedback Management Developer Guide
  - Service Cloud Developer Content
---

# Transform NLP Action Results Action

Transform an AI Natural Language Processing (NLP) result created by using Einstein Generative AI into an Apex Object record.

This action is available in API version 61.0 and later.

To access the Transform NLP Action Results action, you must have the Salesforce Feedback Management Starter or Growth License and the Salesforce org enabled with Surveys along with Generative AI Surveys feature.

## Supported REST HTTP Methods

**URI:** `/services/data/vXX.X/actions/standard/transformNlpActionResult`

Where `XX.X` is the latest API version.

Get the list of invocable actions for each available survey.

**Formats:** JSON, XML

**HTTP Methods:** POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

|Input|Type|Description|
|-----|----|-----------|
|`nlpRecordId`|String|Required. ID of the AI natural language process result (type `AiNaturalLangProcessRslt`) record to perform natural language processing on.|
|`feature`|String|Required. Purpose that the NLP response is used for: `SurveyLongSummarization` or `SurveyShortSummarization`.|

## Outputs

|Output|Type|Description|
|------|----|-----------|
|`nlpResponse`|string|Apex industries NLP response record that contains the action output.|
|`status`|string|Status of the NLP operation: `completed`, `failure`, `notStarted`, or `pending`.|

## Example

**POST**

This example shows a sample request for the Transform NLP Action Result action.

```nolang
{
  "inputs": [
    {
      "nlpRecordId": "7NPSM0000000K5B4xx",
      "feature": "SurveyLongSummarization"
    }
  ]
}
```

This example shows a sample response for the Transform NLP Action Result action.

```nolang

  {
    "nlpResponse": {
      "summarizationResult": {
        "summary": "The majority of respondents found the process cumbersome and experienced issues with the payment web page. There were no specific suggestions provided for improving the product."
      },
      "status": "completed"
    }
  }

```

