Add AI-Generated Field

This tool adds a new attribute field to a feature layer, using AI to generate text for each feature based on your prompt. Prompts can reference existing attributes and optionally filter features using SQL.

Usage

  1. Open ArcGIS Pro and add the .pyt toolbox if you haven't already.
  2. Open the Add AI-Generated Field tool.
  3. Fill in the parameters as described below.
  4. Click Run. The output layer will have a new field with AI-generated values.

Parameters

NameTypeRequiredDescription
SourceString (Choice)YesAI provider to use (OpenAI, Azure OpenAI, Claude, DeepSeek, Local LLM, Wolfram Alpha).
ModelStringNoThe AI model to use. Choices depend on the selected source.
EndpointStringNoCustom endpoint for Azure or local models (if applicable).
Deployment NameStringNoDeployment name for Azure OpenAI (if applicable).
Input LayerFeature LayerYesThe input feature layer to add the field to.
Output LayerFeature LayerYesThe output feature layer with the new field.
Field NameStringYesName of the new field to add.
PromptStringYesPrompt for the AI to generate field values. You can reference attributes using curly braces, e.g. {NAME}.
SQL QueryStringNoOptional SQL query to filter which features are updated.

Tips