Skip to main content

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

ParameterDescription
labelOptional block title displayed to dashboard viewers.
promptRequired. What you want the AI to generate.
themeOptional 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


Open Markdown
Let us know what you think about this document :)