Decision Tree

Interactive collapsible decision tree with nested branches

Surfaces
apps-script-web
Fields
FieldType
nodesarray of {text, children: [{text, children}]} — nested tree nodesrequired
titlestringoptional
Example payload
{
  "type": "decision_tree",
  "nodes": [
    {
      "label": "src/",
      "children": [
        {
          "label": "index.ts"
        }
      ]
    },
    {
      "label": "package.json"
    }
  ]
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:decision_tree",
  "displayName": "Decision Tree",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/decision_tree",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Interactive collapsible decision tree with nested branches",
  "representativeQueries": [
    "show a interactive collapsible decision tree",
    "interactive collapsible decision tree with nested branches",
    "render a decision tree"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →