The specification for an action card: a caller-authored body and zero or more buttons. The body and the buttons are independent — a card author supplies only the body (via template or content); buildActionCard appends the buttons.

interface ActionCardSpec {
    buttons?: ActionCardButton | ActionCardButton[];
    content?: string;
    data?: Record<string, unknown>;
    template?: string;
}

Properties

The card's buttons — a single button, an array, or omitted/empty for an informational card (a result with no next action to offer).

content?: string

Card body: inline Handlebars content, rendered with data (alternative to template).

data?: Record<string, unknown>

Render data for template / content.

template?: string

Card body: a Handlebars template path, rendered with data.