#596: Feature flags FEATURES: the ability to enable and disable functional blocks in Swarmica

Отредактирована: сегодня

Description

Feature flags allow enabling or disabling specific system features within the limits of the installed license.

The mechanism for enabling features is as follows:

  • The license determines which features can be enabled
  • The set of feature flags in /root/swarmica/.env under the FEATURES variable determines which features are enabled on this instance

As a result, the intersection of what the license allows and what is specified in FEATURES is applied:

  • If a feature is present both in the license and in FEATURES, the feature will be enabled
  • If a feature is present only in the license but not in FEATURES, it will be disabled. However, if you add it to FEATURES and restart the application, this reduces to the previous point, i.e., the feature will be enabled
  • If a feature is in FEATURES but not in the license, it will be disabled. To make it work, you must contact your account manager or Swarmica support and confirm the feature activation on the license. After that, you can update the key data under Settings > General Settings > Swarmica License and the feature will be enabled.

Feature flags with the __ prefix are not checked against the license.

All feature flags must be listed separated by commas, without spaces:

FEATURES=automations,automations_outgoing_emails,...

Feature Flags

Feature flagWhat it doesIntroduced in version
__ai_create_draftEnables the automatic KCS draft creation feature, requires ai4.7.2
__ai_assistantEnables the AI neural search assistant, requires ai4.7.0
__ai_agentEnables an AI agent that can respond to tickets. Requires ai, and a configured public AI assistant is mandatory5.2.0, not used since 6.0.0
__ai_mcp_agentsEnables the ability to create AI agents (see AI provider capabilities)6.0.0
__ai_ticket_classifierEnables the AI ticket classifier, requires ai4.7.0
__ai_ticket_summaryFor providers that support summarizing tickets, enables the ticket summarization feature, requires aistarting from 5.12.0
__ai_mdxeditorEnables the AI assistant in the article editor, requires the ai flag4.6.0
automations (before v5.8.0 __automations)Enables automation API and UI (outgoing webhooks, emails, runtime scripts, triggers, cron jobs)5.2.0
__customer_chatAllows customers to initiate a chat from the Swarmica UI4.6.0
__customers_search_cfsEnables quick search on custom fields for customers5.5.0
__delete_comment_attachmentsAllows deleting attachments from ticketsstarting from 5.12.0
__employee_segmentsAdds the ability to use experimental functionality - employee segments (setting Skills, Status, Group, and Role in segments)starting from 5.9.2
__empty_requesterRemoves the automatic substitution of the current user's account in the "Ticket from" field on the ticket creation form (for employees only)starting from 5.10.0
__helpcenterDisables help center routing in the frontend application; a separate helpcenter container is required to serve the help centernot used since 5.9.0
external_tickets (before v5.8.0 __external_tickets)Enables the UI for working with External Ticket5.3.0
__llmstxtEnables indexing of public articles for LLM (generates /llms.txt file)5.9.0
__mandatory_timelogForces time log entry to send a public reply in a ticket, requires the time_tracking flag
__password_blacklistEnables the ability to manage a list of compromised passwords and prohibit their use. Read more6.0.0
__private_attachmentsDisables the ability to send attachments in email notifications and additionally protects access to such filesstarting from 5.12.0
__smtp_email_channelAllows creating new SMTP channels. If this flag is absent, new channels can only be created as IMAP channels, while existing SMTP channels remain configurable. For those enabling this feature, a postfix container must also be added to docker-compose.yml
__show_jwt_tokenAdds the ability for users to copy their JWT token in their profile (only for Agent, Manager, Administrator roles) and use it in automations via APIstarting from 5.9.2
__helpcenter_home_productsMakes the help center start page a product selection page4.6.0
__widget_closed_chatsShows completed chats in the widget
__show_ticket_duplicatesShows the "Possible duplicates" block in the ticket5.1.3
2faEnables the ability to configure two-factor authentication (2FA)5.9.0
aiEnables (allows) all AI features; automatically enables the rephraser in the comment editor; all other features are enabled by individual __ai* feature flags
__article_comments (before v5.8.0 article_comments)Allows public comments on articles from customers
assetsEnables Asset Management4.8.0
billmanagerEnables integration with Billmanager6
beeline_pbxEnables integration with Beeline Cloud PBX5.3.0
chatsEnables the Chats feature.
child_ticketsEnables the ability to create related child tickets, similar to external_tickets, but internal child tickets are counted in statistics and are intended for company employees rather than external recipients6.0.0
widgetsEnables the Widgets feature; also requires chats
__csat_anytime (before v5.8.0 csat_anytime)Enables the "stars" survey on comments
disable_helpcenterDisables the public help center.Not used since 5.9.0
external_searchAllows creating and using external search sources5.6.0
mango_officeConnects the Mango Office integration
qaEnables the QA feature
reportingEnables the Advanced Reporting feature (API&UI)5.3.0
__sensitive_data (before v5.8.0 sensitive_data)Enables the Confidential Data feature
telegramEnables Telegram support. Also requires special sections in docker-compose.yml and a restart
whatsapp_greenEnables WhatsApp support via Green API. Also requires special sections in docker-compose.yml and a restart
vkEnables VK support. Also requires special sections in docker-compose.yml and a restart
time_trackingEnables support for time tracking
wfmEnables WFM features (agent activity histogram)
maxEnables integration with the MAX messenger5.8.0
automations_outgoing_emailsAllows creating outgoing emails in automations (requires the automations flag)5.8.0
automations_outgoing_webhooksAllows creating outgoing webhooks in automations (requires the automations flag)5.8.0
automations_macrosAllows creating macros in automations (requires the automations flag)5.8.0
automations_scriptsAllows creating scripts in automations (requires the automations flag)5.8.0
api_keysAllows using API keys for API integrations5.8.0
issue_trackerAllows connecting issue trackers5.8.0
webhooksNot used since 5.8.0
ui_widgetsEnables the ability to embed custom widgets into the Swarmica interface6.0.0
rcaEnables Root Cause Analysis (RCA) document management6.0.0

IMPORTANT! After editing the .env file, you must restart the services to apply the desired flags:

docker compose down && docker compose up -d