---
schema_version: "1"
id: 15526daea6280916fa8ef220fef3f79eb6b58f47ce8484d50fabe710414a6507
title: AIResearchPromptResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_airesearchpromptresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_airesearchpromptresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5037ced2a9221a19bd065a31746a2eea13bfc99dfdf62c18b885aa70c79591f6
description: Represents the research result generated by Agentforce or by a generative AI feature from a standard or custom prompt template. This object is available in API version 64.0 and later.
---
# AIResearchPromptResult

Represents the research result generated by Agentforce or by a generative AI feature from a standard or custom prompt template. This object is available in API version 64.0 and later.

When an Agentforce or a generative AI feature researches a record and saves the results, an AIResearchPromptResult record is created and populated with information about the researched record.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Special Access Rules

Research results are only available in orgs that have Agentforce or generative AI features enabled.

## Fields

| Field | Details |
| --- | --- |
| AiGenActionItemId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The business action suggested by generative AI.

This field is a polymorphic relationship field.

Relationship Name

AiGenActionItem

Refers To

AiGenActionItem



 |
| IsToxicityDetected | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Specifies whether the generated response contains toxic language (true) or not (false). The default value is false.



 |
| LatestErrorMessage | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The error message that displays if the result can't be generated.



 |
| LatestGenResponseIdRef | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the most recently generated result in the GenAIGeneration object. The object is derived from the Data Cloud data model object (DMO).



 |
| LatestGenerationDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time that the result was most recently generated.



 |
| LatestResult | 

Type

textarea

Properties

Create, Nillable, Update

Description

The AI-generated result.



 |
| LatestSafetyScore | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

Overall safety score for the generated research. A higher value means the generated response is more likely to be safe. Minimum value of 0.0. Maximum value of 1.0.



 |
| LatestStatus | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The status of the generated result.

Possible values are:

- Generating
- Success
- Failed





 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The owner of the generated research result.

This field is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| ReferenceRecordId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The record ID that the research result was generated for.

This field is a polymorphic relationship field.

Relationship Name

ReferenceRecord

Refers To

Account, Contact, Lead, Opportunity



 |
| StandardPromptTemplate | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The standard prompt template used to generate the result.



 |
| Version | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The prompt template version number.



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[AIResearchPromptResultFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[AIResearchPromptResultHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[AIResearchPromptResultOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[AIResearchPromptResultShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.