---
schema_version: "1"
id: d871eb018f44906fbc40389f901e6a789dfd6517b135f96774f546752f92061c
title: Process Data Using Generative AI 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-process-data-using-gen-ai.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-feedback-management-dev-guide/guide/actions-obj-process-data-using-gen-ai.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: de443b43593d9bde2c8332b7532ee85e6d0b95754c451294e2c9c76d87363112
products:
  - Salesforce Feedback Management Developer Guide
  - Service Cloud Developer Content
---

# Process Data Using Generative AI Action

Using Einstein Generative AI, perform Natural Language Processing (NLP) to summarize text, extract key phrases, analyze sentiment, and unlock valuable insights.

This action is available in API version 61.0 and later.

To access the Process Data Using Generative AI 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/processDataUsingGenAi`

Where `XX.X` is the latest API version.

**Formats:** JSON, XML

**HTTP Methods:** POST

**Authentication:** `Authorization: Bearer TOKEN`

Where `TOKEN` is a variable.

## Inputs

|Input|Type|Description|
|-----|----|-----------|
|`additionalParameterIds`|String|Collection of additional record IDs on which NLP is performed.|
|`feature`|String (Picklist)|Required. Purpose of applying NLP to the target record: `SurveyLongSummarization` or `SurveyShortSummarization`.|
|`targetRecordId`|String|Required. ID of the record on which NLP is performed.|

## Outputs

|Output|Type|Description|
|------|----|-----------|
|`nlpRecordId`|string|ID of the created NLP record.|

## Example

**POST**

This example shows a sample request for the Process Data Using Generative AI action.

```nolang
{
   "inputs":[{
      "targetRecordId": "0MySM00000007eD0xx",
      "additionalParameterIds": [
 "0KuSM0000000JM10xx","0KuSM0000000JM20xx","0KuSM0000000JM30xx","0KuSM0000000JM40xx"
      ],
      "feature": "SurveyLongSummarization"   }]
}
```

This example shows a sample response for the Process Data Using Generative AI action.

```nolang
[
   {
      "nlpRecordId" : "7NPSM0000000K5B4xx"
   }
]
```

