Two sign ins are required for this sample:

First, sign in to an Enterprise account to access the data in the link chart. username: viewer01 password: I68VGU^nMurF.

Second, sign in to an ArcGIS Online organization with access to AI assistants. This allows the assistant to orchestrate requests to specific agents.

This sample demonstrates how to use knowledge agent in the Assistant component to build an agentic web mapping application. This component gives users the ability to explore knowledge graph data and interact with the link chart using natural language.

In this sample the Knowledge Agent is used to provide graph exploration and link chart capabilities to the user. The knowledge agent is designed to answer questions about data in the knowledge graph provided by the knowledge graph layer on map, a link chart or a knowledge graph service url.

<arcgis-link-chart id="item-graph"
service-url="https://sampleserver7.arcgisonline.com/server/rest/services/Hosted/BumbleBees/KnowledgeGraphServer"
base-cypher-query="MATCH (n) RETURN n limit 10"
>
<arcgis-zoom slot="top-left"></arcgis-zoom>
<arcgis-expand slot="top-left">
<arcgis-legend></arcgis-legend>
</arcgis-expand>
</arcgis-link-chart>
<arcgis-assistant log-enabled copy-enabled heading="Portal item dependency graph"
description="Explore how portal items in your organization are connected."
entry-message="Hello! I'm here to help you explore the connectivity of your portal items.">
<arcgis-assistant-knowledge-agent reference-element="#item-graph"></arcgis-assistant-knowledge-agent>
</arcgis-assistant>