Skip to main content

Tenant

A single chatbot instance within an Organization. Contains all bot content, settings, deployment config, and NLP mappings. Collection: tenants | DB: MongoDB Source: hbf-core/src/main/java/gr/helvia/hbf/core/domain/Tenant.kt TypeScript: hbf-core-api/src/datamodel/tenant.ts

Fields

FieldTypeRequiredIndexedNotes
idStringyesPKMongoDB document ID
displayNameStringnoFriendly name
descriptionStringno
settingsTenantSettingsyesUser-editable settings
systemSettingsTenantSystemSettingsyesModerator-level settings
imageStringnoImage URL
timezoneStringnoDefault: "UTC"
storycom.mongodb.DBRefnoDeprecated
contentBotContentno@DBRef lazy
contentCompiledBotContentCompiledno@DBRef lazy
organizationOrganizationno@DBRef lazy
tenantStatsTenantStatsno@DBRef lazy
nluSyncBooleannoDefault: false
nluCachingEnabledBooleannoDefault: false
nlpMapHashMap<String, String>noLanguage code to NLPPipeline ID
nlpTreesList<NLPPipelineTreeData>no@DBRef lazy
createdAtDateyesyes@CreatedDate
updatedAtDateyes@LastModifiedDate
lastModifiedByHashMap<String, String?>noAudit info (id, email, name, type)
dataRetentionPeriodIntnoIn days
tagsList<String>noDefault empty list
powerupsList<Powerup>yesEnabled feature flags
componentTreeBasicDBObjectnoUI component tree
disabledBooleannoBot is disabled
integrationsList<Integration>no@DBRef lazy, default empty
pluginSettingsMap<String, PluginSettings?>noPer-plugin config
sourceTemplateIdStringnoTemplate this tenant was created from
spaceSpaceyesBOT_LAB, CX, or EX
pluginsList<IntegrationPlugin>noComputed from integrations, private

Nested Objects

TenantSettings

User-editable settings.

FieldTypeNotes
autoTrainBooleanAuto-train NLP on content changes
sessionSessionSettingsSession expiration config
monitoringMonitoringSettings
externalAnalyticsExternalAnalytics
privacyPrivacySettingsInput censoring, anonymization
languagesLanguageSettingsPrimary + additional languages
feedbackFeedbackSettings
nluLocalLocalNluSettingsLocal NLU settings
nlpNLPSettingsFallback NLP flow

SessionSettings

FieldTypeNotes
expireInactiveSessionAfterIntIn minutes (hbf-core) or seconds (hbf-core-api). Min 0

LanguageSettings

FieldTypeNotes
primaryLanguageCodePrimary bot language
additionalList<LanguageCode>Additional supported languages

LocalNluSettings

FieldTypeNotes
intentsMap<String, List<String>>Intent name to example phrases
similarityAlgorithmTextSimilarityAlgorithmLEVENSHTEIN or JARO_WINKLER
similarityThresholdDouble

PrivacySettings

FieldTypeNotes
censorUserInputBoolean
maskExpressionsList<MaskExpression>
anonymizationSettingsAnonymizationSettings

MaskExpression

FieldTypeNotes
nameString@NotNull
regexString@NotNull, regex pattern
substituteString1-15 chars, no $ signs

AnonymizationSettings

FieldTypeNotes
namedEntitiesList<AnonymizationNamedEntity>
regexEntitiesList<AnonymizationRegexEntity>
defaultReplacementString
serviceConfigurationAnonymizationServiceConfiguration

AnonymizationNamedEntity

FieldTypeNotes
nameString
typeAnonymizationNamedEntityTypeSee enum below
replacementString

AnonymizationRegexEntity

FieldTypeNotes
nameString
patternStringRegex
replacementString

MonitoringSettings

FieldTypeNotes
enabledBooleanRead-only
monitorIdStringInternal
alertEmailString

NLPSettings

FieldTypeNotes
fallbackNlpFlowIdString

TenantSystemSettings

Moderator-level settings.

FieldTypeNotes
convManagerConversationManagerSettings
languageDetectionLanguageDetectionSettings
nlgNlgSettings
liveChatLiveChatSystemSettings
microsoftDataverseMap<String, Any>
microsoftSharepointMap<String, Any>
dialogFlowDirectDialogFlowDirectSettings
maxNumOfUserMessagesInt
maxNumOfSessionsInt
nlpServiceNLPServiceHBF_CORE or HBF_NLP (default: HBF_CORE)
useAutomatedAnswerTagsBooleanDefault: true
readOnlyBooleanTenant cannot compile/edit
isAgentBooleanDefault: false
nlpServiceUrlString
nlpPipelineIdString
nlpAccessTokenString

ConversationManagerSettings

FieldTypeNotes
urlString
defaultFallbackOutputContextsMap<String, ContextFull>

ContextFull

FieldTypeNotes
lifespanIntIn messages
durationIntIn seconds
commandsString

LanguageDetectionSettings

FieldTypeNotes
enabledBooleanDefault: false
defaultLanguageLanguageCode@NotNull
googleTranslateProjectIdString@NotNull
googleTranslateKeyString@NotNull
confidenceThresholdDouble@NotNull

NlgSettings

FieldTypeNotes
languageString

DialogFlowDirectSettings

FieldTypeNotes
projectIdString@NotNull
privateKeyString@NotNull
clientEmailString@NotNull
languageString@NotNull

LiveChatSystemSettings

FieldTypeNotes
typeLivechatTypeSOURCE or TARGET
sourceSettingsLivechatSourceSettings
targetSettingsLivechatTargetSettings

LivechatSourceSettings

FieldTypeNotes
managerLiveChatSourceManager

LiveChatSourceManager

FieldTypeNotes
targetTenantHandleString
specialCommandConvNodeIdsList<String>

LivechatTargetSettings

FieldTypeNotes
managerLiveChatTargetManager
requestBuilderLivechatRequestBuilderSettings

LiveChatTargetManager

FieldTypeNotes
specialCommandConvNodeIdsList<String>
itcPrefixTypeItcPrefixType
transcriptTexturesLivechatTranscriptTextures
transferTexturesLivechatTransferRequestTextures

Enums

Powerup

ValueDescription
HRWIZHR Wizard feature
FAQSFAQ management
BROADCASTSBroadcast messaging
FLOWSDecision tree flows
LIVECHATLive chat support
SURVEYSSurvey collection
INTERVIEWSInterview flows
CHAT_SESSIONSChat session tracking
SENTIMENT_ANALYSISSentiment analysis
ANALYTICSAnalytics dashboard
SETTINGSSettings management
BACKUPSBackup/restore
INTEGRATIONSExternal integrations
BILLINGBilling management
MONITORINGBot monitoring
NLU_CACHINGNLU response caching
CONNECTORSConnector plugins

Space

ValueDescription
BOT_LABDevelopment/lab workspace
CXCustomer Experience
EXEmployee Experience

NLPService

ValueDescription
HBF_COREBuilt-in NLP service
HBF_NLPExternal Helvia NLP service

TextSimilarityAlgorithm

ValueDescription
LEVENSHTEINLevenshtein distance
JARO_WINKLERJaro-Winkler similarity

AnonymizationNamedEntityType

Value
PERSON
GPE
NORP
FAC
ORG
LOC
PRODUCT
EVENT
WORK_OF_ART
LAW
LANGUAGE
DATE
TIME
PERCENT
MONEY
QUANTITY
ORDINAL
CARDINAL

Relationships

  • Belongs to: Organization (via @DBRef)
  • Owns: BotContent, BotContentCompiled, TenantStats (via @DBRef)
  • Contains: Subscriber, ChatSession, Group, BotDeployment, Broadcast, Survey, TestSet
  • References: NLPPipeline (via nlpMap), Integration (via integrations list)

TypeScript Mapping

hbf-core (Kotlin)hbf-core-api (TypeScript)Notes
TenantTenantAligned. TS adds organizationId, customerId, subscriptionPlan, nluAgents, nlpTreeMap
TenantSettingsTenantSettingsAligned. TS has deprecated liveChat, nlu fields
TenantSystemSettingsTenantSystemSettingsAligned. TS omits liveChat, readOnly
PowerupPowerupAligned. TS omits SENTIMENT_ANALYSIS, NLU_CACHING
Space(not in TS)Gap: Space enum not exported in hbf-core-api
LiveChatSystemSettings(not in TS)Gap: LiveChat system settings not in TS types
PluginSettings(not directly)TS uses Plugin<S> generic with settings