> ## 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.

# Create template

> Create a draft Resend email template.

`resend.createTemplate` create a draft Resend email template.

```ts automations/resend-createTemplate.automation.ts theme={null}
import { automation } from "automate.ax"
import { resend } from "automate.ax/resend"

export default automation("Create template", () => {
  resend.createTemplate({
    name: "Welcome",
    markdown: "# Welcome, {{{NAME}}}",
    variables: [{ key: "NAME", type: "string", fallbackValue: "friend" }],
  })
})
```

Provide at least one of `html`, `markdown`, or `text`. Templates accept up to 50 typed `string` or `number` variables; fallback values must match their declared types. Returns the new template ID and object type. Optional second argument `{ account }` selects the Resend account binding.
