On this page
The data assistant, per-organization AI configuration and the prompt registry.
aiConfigs#
Source: apps/web/src/server/routers/ai-configs.ts
| Procedure | Type | Access | Description |
|---|---|---|---|
aiConfigs. |
query | orgProcedure, manage_ |
Ordered list of the org's AI connections (primary first). |
aiConfigs. |
mutation | rateLimited, manage_ |
Save a usable organisation chain and enable byok in the same transaction. |
aiConfigs. |
query | authed, manage_ |
Effective source plus safe platform metadata; encrypted material is never projected. |
aiConfigs. |
mutation | rateLimited, manage_ |
Return to platform defaults without deleting the organisation's encrypted byok rows. |
aiConfigs. |
mutation | authed, manage_ |
— |
aiConfigs. |
mutation | authed, manage_ |
— |
aiConfigs. |
query | orgProcedure |
— |
platformAiConfigs#
Source: apps/web/src/server/routers/ai-configs.ts
Global platform default chain.
| Procedure | Type | Access | Description |
|---|---|---|---|
platform |
query | superAdminProcedure |
— |
platform |
mutation | superAdminProcedure |
— |
platform |
mutation | superAdminProcedure |
— |
platform |
mutation | superAdminProcedure |
— |
aiPrompts#
Source: apps/web/src/server/routers/ai-prompts.ts
| Procedure | Type | Access | Description |
|---|---|---|---|
aiPrompts. |
query | orgProcedure |
List all override rows for the active org. |
aiPrompts. |
mutation | rateLimited, manage_ |
Upsert a single (slot, industry) override. |
aiPrompts. |
mutation | rateLimited, manage_ |
Delete a (slot, industry) override row, restoring the built-in default for that slot. |
aiPrompts. |
query | authed |
Render the full effective prompt (system + role) using the current overrides — no caching, no mutation. |
aiPrompts. |
mutation | authed, manage_ |
Send the rendered prompt to the org's configured model and return the model's response, latency, and token usage. |
aiPrompts. |
query | authed |
Read-only: defaults bundle for the admin UI. |
chat#
Source: apps/web/src/server/routers/chat.ts
| Procedure | Type | Access | Description |
|---|---|---|---|
chat. |
query | chatProcedure, plugin chat-, owner or admin |
Welcome screen of the dashboard AI assistant tab: this reader's /chat chips, intro and placeholder, led by the page's declared starters. |
chat. |
query | chatProcedure, plugin chat-, owner or admin |
List active conversations for the current brand + user, newest first. |
chat. |
query | chatProcedure, plugin chat-, owner or admin |
Fetch one conversation with its full message history. |
chat. |
mutation | rateLimited |
Rate one assistant answer in the caller's own conversation. |
chat. |
mutation | rateLimited |
Create a new (empty) conversation; messages are appended by /api/chat. |
chat. |
mutation | rateLimited |
Rename a conversation. |
chat. |
mutation | rateLimited |
Archive (soft-delete) a conversation. |
chatAssistant#
Source: apps/web/src/server/routers/chat-assistant.ts
| Procedure | Type | Access | Description |
|---|---|---|---|
chatAssistant. |
query | orgProcedure, owner or admin |
— |
chatAssistant. |
query | brandProcedure, owner or admin |
— |
chatAssistant. |
mutation | rateLimited, owner or admin |
Save the org-wide settings (owner / admin / super). |
chatAssistant. |
mutation | rateLimited, owner or admin |
— |