Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    User documentationGetting StartedFAQAltcraft glossary
      Profiles and databasesarrow
    • Subscription resourcesManaging databasesSubscriber profileProfiles import and data updateScheduled customer data importAutomatic data collectionBulk customers profiles updateDouble opt-in subscriptionSuppression listsProfile relationsProfile history exportProfile exportCreating a static segment based on import resultsHow to open a CSV fileMatchingTypes of fields in the databaseGlobal control groupsSubscription Manager
      Communication channelsarrow
      • Email channelarrow
      • Email: ISP interactions best practicesEmail: sending domain configurationEmail: setting up and using postmastersБыстрый старт
        Push channelarrow
        • Mobile Pusharrow
        • Settings & implementation
            Integrate your app with Altcraftarrow
          • Providers: push message structureProcessing and adding a subscriptionEvent registration
          Web pusharrow
        • Preliminary Settings
            Web browser push configurationarrow
          • Firebase Cloud messagingApple SafariMozilla Services
          Connecting Web Push to a WebsiteTransferring Data to the PlatformWeb Push SDK Methods
            Import of subscriptions from third-party push servicesarrow
          • Migrating push subscriptions from third-party servicesHow to transfer push subscriptions configured for Safari?Migration from OneSignal
      SMS channel
        Creating mailing from scratcharrow
      • EmailSMSWeb PushMobile PushWhatsAppViber*™Руководство: SMS-рассылка через VK NotifyMAX BotMAX GroupNotifyTelegram BotTelegram Group
      Communication Channels WorkflowРуководство: SMS-рассылка через УТШРуководство: push-рассылка через сервис от "Согласие"
      Segmentationarrow
    • Static SegmentsDynamic SegmentsUpdatable Segments
        Segmentation Conditionsarrow
      • Segmentation by Profile dataSegmentation by Interactions with EntitiesSegmentation by Activity of the channelSegmentation by external dataSegmentation by external SQL tablesSegmentation by Profile structure
      Best Send Time (BST)Logical operators "AND" and "OR"Recommendations for working with segments
      Message templatesarrow
      • Working with message templatesarrow
      • Working in the editorEmail-templateSMS templatePush templateMAX templateTelegram templateWhatsApp templateViber™ templateNotify template
        Visual editor for email-templatearrow
      • Visual editor interfaceAdding blocksElements and their settingsCustom blocksStyle managerLayer manager
      Template fragmentsImage galleryContent personalizationCreating tables based on array elementsBlock editor for email template
        Altcraft Variables and Functionsarrow
      • Logical expressions in messagesLoops in messagesMarket variables in templatesUsing the JSONPath functionality
        Dynamic content in messagesarrow
      • Dynamic HTML contentDynamic JSON contentContent from SQL database in templatesDynamic API content
      Importing and exporting a message templateImporting a template from a third-party serviceExporting a template from Pixcraft
      Mailingsarrow
    • Mailings calendarBroadcast mailingsRegular mailingTrigger mailingMultivariate testingMailing testingMailing schedulePlacement mailing
      Campaignsarrow
    • Working with CampaignsLocal control groups (LCG)Stratification Violation ErrorAudience expansionAudience building
      Automation scenariosarrow
    • Managing scenariosNodes of the scenarioClassic marketing scenariosStep-by-step welcome scenario guideScenario for automatic notification of the managerAbandoned cart scenario
      Marketarrow
    • Market settings
        Productsarrow
      • How to create a product manuallyHow to import a product from a fileScheduled product importProduct and SKU SegmentsPreparing the YML file
      OrdersMarket variables in message templateGuide: how to send an order confirmation email
      Loyalty programsarrow
    • Loyalty programsLoyalty integration with external systemsБыстрый стартBasic loyalty program use casesOrder SegmentsPromotion codes
      Reports and analyticsarrow
    • Channel reportTraffic report
        Summary reportarrow
      • Summary report metrics
      Cohorts reportLifetime reportFunnels reportGoals reportAudience growth reportClick map reportLoyalty programs reportBounces reportUndeliveries reportReport on global control groups
      Integrationsarrow
      • Action hooksarrow
      • Altcraft Action HooksAction hooks event typesAction Hook Message StructureJSON batch request (HTTP POST action hook)Message to RabbitMQ brokerMessage to RabbitMQ exchangerMessage to Kafka brokerTest event
        Integration of third-party services using Albatoarrow
      • Connecting Altcraft to Albato Launching the welcome scenario using AlbatoTransmitting event dataSetting app a trigger mailingEvent registrationGoogle Sheets and Altcraft integration AmoCRM and Altcraft integration
      Facebook Ads Manager™Google Ads AudiencesMAXYandex.Audience™VK Ads™Static segment synchronizationYandex AppMetrica™Tilda™Lpgenerator™WhatsAppViber*™ integrationIntegration scopeData Transmitted During SynchronizationNotify
      Weblayersarrow
      • Formsarrow
      • Create a formForm constructorAppearanceActions after form activationData analyticsBinding data channel and formsConditional logic in forms and surveysNPS testing
        Pixelsarrow
      • Goal customer actions and scoring
        Pop-upsarrow
      • Creating and publishing a pop-upSetting up a popup in the code editorManaging pop-ups manually via scriptPopup analyticsGuide: pop-up for push subscriptionsCase: Creating a pop-up with the "Wheel of Fortune" widgetBasic cases of placing a popup via the Tag Manager
        Tag Managerarrow
      • Configuring and installing Tag ManagerTrigger typesVariables typesLinking a pixel and the Tag manager
      Settingsarrow
    • Account settingsCustom linksVirtual sendersSending policiesAudit journalTags FAQ
        Users, groups and accessarrow
      • Two-Factor Authentication (2FA)
        Connectionsarrow
      • Connection to Facebook Ads ManagerConnection to Google AdsConnecting to Yandex.Audience™Connection to 360dialogConnection to EdnaConnection to Devino TelecomConnection to SMSTrafficConnection to VK Ads™Connection to MTS OmniChannelCustom Authentication ConnectionOAuth2 connectionBasic Authentication connectionToken Authentication connectionConnection to RapportoMAX connectionConnection to Notify
      Attribute settings
      API requests: where to startarrow
    • Import or update a profileTrigger mailing launchEngage profile in scenario
      Changelogarrow
    • v2026.1.76v2025.4.75v2025.4.74v2025.3.73v2025.2.72v2025.1.71v2024.4.70v2024.3.69v2024.2.68.2v2024.1.68
    Documentation archivelibrary
  • Communication channels
  • Communication Channels Workflow

Communication Channels Workflow

General Structure​

When a mailing is launched, the mailing binary is executed. It:

  • processes the template and business logic (blocklists, limits, subscriptions, filters, etc.);
  • builds the message structure for delivery;
  • sends the prepared messages to RabbitMQ queues;
  • records errors in the mailing log.

Each message then goes to the corresponding processing service depending on the channel.


Email​

Several types of senders are supported for the email channel: AKMTA (the Altcraft sender) and external senders. The workflow may vary depending on the sender used.

Sending Process​

AKMTA​

The mailing sends messages to the following queues:

  • akmta_<sender_id> — standard queue;
  • akmta_prior_<sender_id> — priority queue.

Messages from the queues are processed by the akmtad service. Its behavior depends on the queue type:

  • For a non-priority queue, it writes messages to disk, periodically reads them, and sends them according to the sending strategy configured for the specific sender_id;
  • For a priority queue, it makes an attempt to send immediately; if it fails, it writes the message to disk.

The sending flow looks like this:

mailing → RMQ Queue (akmta / akmta_prior) → akmtad → SMTP

Other Senders​

External senders receive messages via an HTTP request from the mailing binary. If the platform cannot send a message, a mailing error is logged. Note that such an error is not considered a "Non-Delivery" and is not included in the non-delivery report.

Status Registration​

AKMTA​

Delivery statuses are registered immediately using:

  • the SMTP server response code;
  • bounce patterns (analysis of bounce templates).

Other Senders​

Tracking service of the platform handles event status.

Retry Logic​

AKMTA​

  • Retry rules are defined separately in the Admin Panel. Details are available in the administrator documentation;
  • Based on the SMTP code, hard bounce or soft bounce statuses are registered;
  • Retry logic differs for soft and hard bounce cases.

Other Senders​

External senders do not support retry attempts. If an HTTP request fails, the platform does nothing further.


SMS​

Sending Process​

The mailing sends messages to a single queue — sms_sender. The procintegras service then sends messages from the queue. Some gateways support batch sending.

Status Registration​

Status registration works in one of the following ways:

  • The gateway sends a message status via a webhook. The status is processed by procsmslisten;
  • The platform polls the gateway. The status is processed by procsmsev.

The lifetime of an SMS message is defined by the configuration parameter SMS_DEFAULT_TTL (default — 1 day). The platform registers a non-delivery if no status is received within this time.

Retry Logic​

SMS retries happen after 60, 120, 180, 300, and 600 seconds from the last failed attempt. The maximum number of attempts is 5.


Push​

Sending Process​

The mailing sends messages to a queue. The specific queue depends on the provider:

  • APNs — apns_push_sender
  • Firebase — firebase_push_sender
  • Huawei — huawei_push_sender
  • RuStore — rustore_push_sender
  • Browser push (Firefox, Safari) — web_push_sender
  • Other providers — custom_push_sender

The procintegras service then sends messages from the queue. Some gateways support batch sending.

Status Registration​

For browser push, the cookie_saver service handles status updates and sends events to push_events. Further processing occurs in procpush.

For mobile push, the logic is similar, but asynchronous sends are processed via push_events, while synchronous ones are immediately handled by procrpc.

The lifetime of a push message is defined by MTA_DEFAULT_TTL (default — 3 days). A non-delivery is registered if no status is received within this time.

Synchronous and Asynchronous Requests

Synchronous requests — the platform registers the result based on the response, meaning it waits for a reply.
Asynchronous requests — the platform registers the result when putting the message into the queue, meaning it does not wait for a reply.

Retry Logic​

The sender checks the gateway’s response and headers to apply retry rules. If the gateway explicitly specifies retry instructions (for example, "try again in 5 minutes"), retries follow them. If not, the platform uses its configured parameters:

  • PUSH_SENDER_RETRY_MAX_AMOUNT — maximum retry count (default — 3);
  • PUSH_SENDER_RETRY_INTERVAL — interval between retries (seconds) (default — 1800);
  • PUSH_SENDER_RETRY_SCAN_INTERVAL — scan interval for retry records (seconds) (default — 60).

Detailed information is available in the administrator documentation.


Messenger Channels​

Sending Process​

The mailing sends messages to a queue. RabbitMQ queues are processed depending on the channel:

  • Telegram Group, Telegram Bot, MAX Group, MAX Bot — queue piper_messages, processed by procpiper;
  • Viber, WhatsApp, Notify — processed by procintegras.

Status Registration​

  • Telegram — status is determined based on the HTTP response from Telegram. Delivery is registered if no error occurs during the send request. A non-delivery is registered if an error is returned.
  • Viber, WhatsApp, Notify — statuses arrive via webhooks. If an error occurs during sending, a non-delivery event is registered. Statuses are handled by trklisten.

Retry Logic​

Retries for messages in messengers other than MAX are not supported.
For MAX, retries occur after 15, 30, 60, 120, and 300 seconds; after that, an undelivered event is registered.

Sending limits

Telegram imposes a limit of 28 requests per second per token.
For Notify, the default limit is 20 requests per second, configurable via VKNOTIFY_SEND_LIMIT_PER_SECOND, with a maximum of 50 requests per second.
For Viber, the default limit is 50 requests per second, configurable via VIBER_DEVINO_SEND_LIMIT_PER_SECOND.
For WhatsApp, the default limit is 20 requests per second (WHATSAPP_SEND_LIMIT_PER_SECOND); individual providers may apply their own request limits.

Last updated on Mar 25, 2026
Previous
Telegram Group
Next
Руководство: SMS-рассылка через УТШ
  • General Structure
  • Email
    • Sending Process
      • AKMTA
      • Other Senders
    • Status Registration
      • AKMTA
      • Other Senders
    • Retry Logic
      • AKMTA
      • Other Senders
  • SMS
    • Sending Process
    • Status Registration
    • Retry Logic
  • Push
    • Sending Process
    • Status Registration
    • Retry Logic
  • Messenger Channels
    • Sending Process
    • Status Registration
    • Retry Logic
© 2015 - 2026 Altcraft, LLC. All rights reserved.