---
schema_version: "1"
id: cd9b228b5433f48b228f03bbb9c0ce4222a3b8182e74f038154250ddb9525236
title: GenAiPluginInstructionDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_genaiplugininstructiondef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_genaiplugininstructiondef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b43f97723540c1cd800c8853f3985c2266e52a23805298711535265321d877c0
description: Represents a topic instruction.
---
# GenAiPluginInstructionDef

Represents a topic instruction.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

GenAiPluginInstructionDef components are part of a GenAiPlugin component and aren't used separately.

## Version

GenAiPluginInstructionDef components are available in API version 62.0 and later.

## Special Access Rules

GenAiPluginInstructionDef is available only if Agents is enabled in your org.

## Fields

| Field Name | Description |
| --- | --- |
| description | 
Field Type

string

Description

Required.

Description of the topic instruction.



 |
| developerName | 

Field Type

string

Description

Required.

Represents the API name of the topic instruction. Can contain only underscores and alphanumeric characters and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.



 |
| language | 

Field Type

string

Description

Required.

The language of the topic instruction.



 |
| masterLabel | 

Field Type

string

Description

Required.

The master label for the topic instruction.



 |
| sortOrder | 

Field Type

integer

Description

A numerical value used to determine the order the instructions will be executed in.



 |

## Declarative Metadata Sample Definition

See [GenAiPlugin](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_genaiplugin.htm "Represents an agent topic, which is a category of actions related to a particular job to be done by AI agents.").