answerLoopsanswerLoops Docs
Reference

Data model

A map of the workspace, ticket, knowledge, and configuration records.

This reference describes the main records used by answerLoops. The schema definitions are in lib/db/schema.ts; migrations define changes applied to an existing database.

Workspace and access

RecordsPurpose
orgsWorkspace identity and configuration.
users, membershipsUser accounts and their workspace roles.
invitationsPending team invitations.
api_keysAPI key metadata and permissions.

Support conversations

RecordsPurpose
ticketsQuestion, source, category, priority, status, and AI draft state.
ticket_repliesReplies associated with a ticket.
ticket_eventsRecorded changes in the ticket's history.
ticket_linksRelationships between tickets.
ai_assessmentsResults of AI assessment.
ticket_feedbackPositive and negative answer feedback.
csat_ratingsCustomer satisfaction ratings.

Knowledge

RecordsPurpose
kb_sourcesImported source metadata.
kb_articlesSearchable knowledge articles and their publication state.
kb_sync_jobsProgress of background imports.
ticket_embeddingsSearch representations associated with tickets.
faq_snapshotsGenerated FAQ content.

Configuration and billing

Integration records store channel configuration. ai_configs stores workspace model settings. sla_configs stores response and resolution targets. subscriptions records hosted-plan state, and api_generations records standalone answer generation for usage accounting.

Use application actions and documented APIs for routine changes. For self-hosted upgrades, apply the documented migrations and retain a tested backup. See Upgrading.

On this page