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
- Open ArcGIS Pro and add the
.pyttoolbox if you haven't already. - Open the Add AI-Generated Field tool.
- Fill in the parameters as described below.
- Click Run. The output layer will have a new field with AI-generated values.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Source | String (Choice) | Yes | AI provider to use (OpenAI, Azure OpenAI, Claude, DeepSeek, Local LLM, Wolfram Alpha). |
| Model | String | No | The AI model to use. Choices depend on the selected source. |
| Endpoint | String | No | Custom endpoint for Azure or local models (if applicable). |
| Deployment Name | String | No | Deployment name for Azure OpenAI (if applicable). |
| Input Layer | Feature Layer | Yes | The input feature layer to add the field to. |
| Output Layer | Feature Layer | Yes | The output feature layer with the new field. |
| Field Name | String | Yes | Name of the new field to add. |
| Prompt | String | Yes | Prompt for the AI to generate field values. You can reference attributes using curly braces, e.g. {NAME}. |
| SQL Query | String | No | Optional SQL query to filter which features are updated. |
Tips
- Reference existing fields in your prompt, e.g.
"Summarize the land use for {NAME}." - Use the SQL Query to limit which features get new values.
- Try different models for different styles or languages.