Domain Model
Message Template
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| name | string | Yes | — | Name |
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | No | — | Provider |
| workspaceId | string | No | — | ID of the associated workspace |
| subjectTemplate | string | No | — | Subject template |
| bodyTemplate | string | Yes | — | Body template |
| variableSchema | object | No | — | Variable schema |
| category | string | Yes | — | Category |
| enabled | boolean | Yes | — | Enabled |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | — | Name |
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | No | — | Provider |
| workspaceId | string | No | — | ID of the associated workspace |
| subjectTemplate | string | No | — | Subject template |
| bodyTemplate | string | Yes | — | Body template |
| variableSchema | object | No | — | Variable schema |
| category | string | Yes | — | Category |
| enabled | boolean | Yes | true | Enabled |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | — | Name |
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | No | — | Provider |
| subjectTemplate | string | No | — | Subject template |
| bodyTemplate | string | No | — | Body template |
| variableSchema | object | No | — | Variable schema |
| category | string | No | — | Category |
| enabled | boolean | No | true | Enabled |