> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Preview email template

> Render a Brevo transactional email template with resolved variables.

`brevo.previewEmailTemplate` render a Brevo transactional email template with resolved variables.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { brevo } from "automate.ax/brevo"

export default automation("Preview email template", () => {
  onDashboardRun({ title: "Preview email template" })
  brevo.previewEmailTemplate({ templateId: 42, params: { name: "Ada" } })
})
```

## Inputs

`templateId` accepts a positive numeric or non-empty custom ID. Provide a contact `email`, explicit `params`, or both. The second argument can select `{ account }`.

## Output

Returns the rendered HTML and optional subject, sender identity, preview text, and feed names. It does not send email.
