# fillTemplate

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/ai/prompts/prompt-templates.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/ai/prompts/prompt-templates.ts#L125)

Replace template variables in a prompt

## Signature

```ts
function fillTemplate(template: string, variables: Record<string, string>): string
```

## Parameters

| Name | Type |
|---|---|
| `template` | `string` |
| `variables` | `Record<string, string>` |

**Returns:** `string`
