# AI Templates

AI-powered message templates with dynamic rendering

## List AI Templates

 - [GET /flows/api/ai-templates](https://api.getsales.io/bundled/ai-templates/listaitemplates.md): Retrieve a paginated list of AI templates for your team. Templates define outreach messages, validation rules, and fallback behaviors for different communication channels (email, LinkedIn, connection notes, etc.).

## Create AI Template

 - [POST /flows/api/ai-templates](https://api.getsales.io/bundled/ai-templates/createaitemplate.md): Create a new AI template for your team. Templates support variable interpolation, AI-powered content generation with validation, and fallback message handling for multiple communication channels.

## Get AI Template

 - [GET /flows/api/ai-templates/{uuid}](https://api.getsales.io/bundled/ai-templates/getaitemplate.md): Retrieve a specific AI template by UUID including all configuration details, LLM settings, validation rules, and fallback messages.

## Update AI Template

 - [PUT /flows/api/ai-templates/{uuid}](https://api.getsales.io/bundled/ai-templates/updateaitemplate.md): Update an existing AI template. You can modify the body, subject, LLM configuration, validation rules, and fallback messages. Partial updates are supported.

## Delete AI Template

 - [DELETE /flows/api/ai-templates/{uuid}](https://api.getsales.io/bundled/ai-templates/deleteaitemplate.md): Permanently delete an AI template. This action cannot be undone. Any workflows or campaigns using this template will need to be updated with an alternative template.

## Render AI Template

 - [POST /flows/api/ai-templates/render](https://api.getsales.io/bundled/ai-templates/renderaitemplate.md): Render an AI template by UUID or inline definition. Returns the rendered message with variable interpolation, AI-generated content (if enabled), validation results, and fallback handling. Useful for previewing templates before deployment.

