AML AiBlock
AiBlock generates written content from your dashboard's data based on a prompt you write. See AI Block for how it works in the product, including use cases and permissions.
Syntax
block <name>: AiBlock {
label: 'Block Label' // optional
prompt: String | Heredoc['md']
theme: BlockTheme { ... } // optional
}
Parameters
| Parameter | Description |
|---|---|
label | Optional block title displayed to dashboard viewers. |
prompt | Required. What you want the AI to generate. |
theme | Optional BlockTheme override for visual styling. |
Example
Dashboard ecommerce_demo {
title: 'Ecommerce Demo'
description: ''
block v_xgoq: AiBlock {
label: 'Summary of Ecommerce Dashboard'
prompt: @md Summarize the whole dashboard;;
}
}
See also
- AML Dashboard: full dashboard syntax
- AI Block: product-level guide, use cases, and permissions