Skip to content

Templates

Templates are pre-built content snippets shipped with Sosyabot and grouped by category. Use them as starting points; clone into a personal prompt to customize.

Endpoint

GET /api/v1/ai-templates           list (filters: category, search)

Templates are read-only from the user surface — admins manage the catalog directly.

Model shape

typescript
{
  category: ObjectId,   // → AiCategories
  content: string,      // template body
}

Templates vs prompts

TemplatesPrompts
Owned byAdmin (workspace-shared)User
Editable from UINoYes
Grouped byCategoryFree-form
LifecycleLong-lived catalogPersonal scratchpad