# AML AiBlock > Reference for the AiBlock dashboard block type in AML. AiBlock generates written content from your dashboard's data based on a prompt you write. See [AI Block](/docs/ai/ai-block) for how it works in the product, including use cases and permissions. ## Syntax ```aml block : 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`](/reference/aml/theme#blocktheme) override for visual styling. ## Example ```aml 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](/reference/aml/dashboard): full dashboard syntax - [AI Block](/docs/ai/ai-block): product-level guide, use cases, and permissions