The Arcade assistant (beta) uses artificial intelligence (AI) to generate ArcGIS Arcade expressions from instructions you type in natural language. For best results, use clear and plain language and iterate on the responses you receive.
ArcGIS Experience Builder supports using Arcade to add data and to apply advanced formatting to widgets and list items. In all cases, you enter scripts in an Arcade editor that includes the Arcade assistant (beta).
Use the assistant
To use the Arcade assistant (beta) in Experience Builder, complete the following steps:
-
Verify that you are signed in to an organization.
You must sign in as a member of an organization with a role that includes privileges to use AI assistants.
-
In Experience Builder, open the Arcade editor.
You can open the Arcade editor from the following places:
-
Click Arcade assistant
.The Arcade assistant pane appears.
-
Use the assistant by doing either of the following:
-
Click a suggestion, and modify it to build a prompt that fits your data.
-
In your preferred language, enter a prompt to build an Arcade expression.
-
-
Click Generate to perform your query.
The Arcade assistant (beta) suggests an expression in the Arcade assistant pane.
-
To interact with the suggestion, do any of the following:
-
Click Add to editor to add the expression to the expression builder pane.
-
Click Replace all code in editor
to replace any existing content in the expression builder pane with the suggested expression. -
Click Copy code to clipboard
to copy the suggested expression to the clipboard. -
To make adjustments to the prompt, edit the previous prompt in the text area or copy and paste a previous prompt, and click Refine to submit the modified query.
-
To provide feedback on the assistant, click the Helpful
or Unhelpful
button and complete the survey. The feedback is used to guide future development.
-
-
To clear the query history and start over, click Start over at any time.
Understand best practices
The following are guidelines that will help you generate Arcade expressions using the Arcade assistant (beta):
-
Be clear and concise in your requests.
-
Avoid ambiguity and vague language.
-
While using exact field names is not required, providing sufficient detail is recommended.
Understand context limitations
Keep the following limitations in mind when using the Arcade assistant (beta):
-
The assistant is not a chatbot. It does not remember information you provided in previous prompts. When refining a previous prompt, ensure that you include all relevant details as if you were asking the assistant for the first time.
-
The assistant is not aware of any previously generated Arcade expressions or of existing expressions in the Arcade editor.
-
The assistant does not query your data. For this reason, it is not aware of specific data values present in the layer for which you are generating the expression. If you want the assistant to write conditional logic based on data values, you must provide those in your prompt or allow the large language model to assume the values.
-
You cannot use the assistant to search, reference, or query other layers. The only context the assistant has is field names and aliases for the layers associated with the expression. Additionally, the assistant is unaware of attachments and related tables that may be associated with the layers. For this reason, there is limited support for generating expressions using
Featurefunctions. If you want to add data or access data from other layers, provide the layer title or item ID for the assistant to know which information to include in the expression. If you do not provide this information, the assistant will generate a title or ID that you will need to manually replace when the generated expression is added to the expression builder pane.Set