Add AI-Generated Field
Add a new attribute field to a feature layer by prompting AI. Prompts can reference existing attributes and you can optionally filter features with SQL.
Usage
- Add the
.pyttoolbox to ArcGIS Pro. - Open Add AI-Generated Field.
- Complete the parameters below.
- Run the tool to append a populated field to your layer.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Source | String (Choice) | Yes | AI provider. Default: OpenRouter. Options include OpenAI, Azure OpenAI, Claude, DeepSeek, Local LLM, Wolfram Alpha. |
| Model | String | No | Specific model for the provider. |
| Endpoint | String | No | Custom endpoint for Azure or local hosting. |
| Deployment Name | String | No | Azure OpenAI deployment. |
| Input Layer | Feature Layer | Yes | Layer to update. |
| Output Layer | Feature Layer | Yes | Resulting layer with the new field. |
| Field Name | String | Yes | Name of the field to add. |
| Prompt | String | Yes | Instructions for the AI. Reference attributes with {FIELDNAME}. |
| SQL Query | String | No | Filter which features receive values. |
Tips
- Reference multiple fields for richer responses, e.g.
Summarize ordinance {ORD_ID} for {NAME}. - Use SQL to target unfinished records.
- Experiment with models to get different tones or languages.