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
  • Message templates
  • Importing and exporting a message template

Importing and exporting a message template

Description​

This functionality allows you to upload a message template to the platform or download it to your device. This can be a template for one channel, or for several channels at once. A zip file is used for export and import.

The corresponding buttons are available in the template editing window in the upper right corner:

— template import

— template export

Template import​

To import a template into the platform, click on the icon . Next, click on the download area and select the zip file on your device.

Set up the import:

  1. Select the channels for which you want to import the template (Email, SMS, Push).
  2. Resolve import conflicts. Conflicts arise if the data being imported and the data already stored in the platform are different. The table shows the old and new value. If you want to update the data, check the "Replace" column.

Click Accept to start the import process.

Zip file structure​

A zip file is used for import. The archive must have a certain structure:

<catalog_name>/
<channel_name>/
<fieldname>.<type>
<attach>/
<fileid>/
<filename>
images/
<image_name>
template.json

Structure description:

ElementExampleDescription
<catalog_name>template_newsletterRoot directory. You can use an arbitrary name.
<channel_name>email
sms
push
The directory contains template data for a specific send channel. The directory name must match the channel.

Import of Email, SMS and Push templates is available.

Information about which files can be imported for each channel can be found here.
imagesimage_1.pngDirectory for storing images
template.json—The file contains general data about the template (link to dynamic JSON content, additional settings, fragments and parts).

You will find more detailed information below.

Zip file example​

tip

Starting from version 68, images can be stored either at the same level as the HTML file or in a folder with one of the following names: images, image, img, imgs, pictures, pics. An archive containing such an email template should not include files like text.txt, subject.txt, or template.json, as their presence may cause import errors.

Basic structure for an email channel​

template_123/
email/
html.html
text.txt
subject.txt
images/
image_1.jpeg
template.json

Full structure for all channels​

template_123/
email/
html.html
text.txt
subject.txt
amp.txt
is_amp.txt
is_not_inline.txt
from_email.txt
from_name.txt
replyto_email.txt
replyto_name.txt
attach/
023f-ad8c-4412-9bba-16ac/
attach_file.zip
sms/
sms.txt
add_sms_url_scheme.txt
push/
title.txt
body.txt
click_url.txt
icon.txt
is_rich_push.txt
images/
image_1.jpeg
image_2.jpeg
template.json

Image paths in HTML​

To ensure correct image rendering in an imported template, use relative paths that match the archive structure.

Recommended structure:

template_name
├── email
│ └── html.html
└── images
└── banner.png

Example of a correct path in HTML:

<img src="../images/banner.png" alt="Banner">

Description of fields for each channel​

  • Email
  • SMS
  • Push
FileExampleDescription
html.html
<html>Hello, world!</html>
HTML version of the message
text.txtHello, world!Text version of the message
subject.txtBest books 2022Subject line
amp.txt
<html>Hello, world!</html>
AMP HTML version of the message
is_amp.txtfalseIs there an amp version in the template or not
is_not_inline.txttrueDo not convert CSS to inline
from_email.txtawesome@example.comSender's email
from_name.txtAwesome BooksSender's name
replyto_email.txtreply_awesome@example.comReply-to email
replyto_name.txtAwesome Books
attach (directory)023f-ad8c-4412-9bba-16ac/
   attach_file.pdf
Directory for storing attached files.

It contains additional directories, each containing a separate file.
Arbitrary names can be used to name additional directories.
FileExampleDescription
sms.txtHello, world!Message text
add_sms_url_scheme.txttrueAdd "http://" to links
FileExampleDescription
title.txtBest books 2022Notification title
body.txtHello, world!Notification text
click_url.txthttps://example.com/Click-to-click link
icon.txthttps://example.com/images/test.jpgThe URL where the notification icon is located
is_rich_push.txtfalseUse rich version for push message or not
<platform>.json
<html>Hello, world!</html>
Templated data for a specific browser or OS (when using rich push)

template.json file​

This file contains data that is displayed in the "Options" and "Content" blocks.

template.json example​

template.json
{
"json_url": "https://altkraft.com/example/content.json",
"suppress_id": 1,
"is_unsub_to_supp": true,
"field_overrides": {
"lead": {
"_fname": "client"
}
},
"parts": []
}

Description of fields in template.json​

FieldExampleRequiredDescription
json_url"https://altkraft.com/example/content.json"NoDynamic JSON content URL
suppress_id1NoSuppression list ID
is_unsub_to_supptrueNoAdd unsubscribers to the attached suppression list
field_overrides
{
   "lead": {
      _fname": "Client"
   }
}
NoCustomer data placeholders
parts
[
   {
      "name": "part_1",
      "shortname": "part_1",
      "type": "text",
      "content": ""
   },
   {
      "name": "part_2",
      "shortname": "part_2",
      "type": "text",
      "content": ""
   }
]
NoTemplate parts
tip

You can export any template from your account to get an example of a zip file to import.

Last updated on Aug 13, 2025
Previous
Dynamic API content
Next
Importing a template from a third-party service
  • Description
  • Template import
  • Zip file structure
  • Zip file example
    • Basic structure for an email channel
    • Full structure for all channels
    • Image paths in HTML
  • Description of fields for each channel
  • template.json file
    • template.json example
    • Description of fields in template.json
© 2015 - 2026 Altcraft, LLC. All rights reserved.