Email automations guide (cmercury)
The Automation (اتوماسیون) section of the Najva email panel lets you build automated email workflows: sends that start from an event (for example, joining a list) or from a programmatic call (API), with no need to send manually each time.
This guide covers three types of automation:
- Welcome series: automatically emails subscribers who have just been added to a list
- Automated transactional email: sends email through an API call based on events on your website or app (for example, password recovery or order confirmation)
- Dynamic content email: works like the one above, except that personalized content is also inserted into the email template through the API
Welcome series
Section titled “Welcome series”The “Welcome series” automation helps you manage the first experience of new subscribers automatically: introduce your brand, showcase key products or services, and encourage early engagement, without sending anything manually for each new member.
Workflow steps
Section titled “Workflow steps”This automation has three steps:
- List subscription (عضویت در لیست): the workflow starts when a contact is added to a specific list.
- Wait (مکث): waits for a set amount of time before continuing.
- Send email (ارسال ایمیل): the welcome email is sent to the contact.
An example of a simple workflow: List subscription → Wait (2 days) → Send email
Settings for each step
Section titled “Settings for each step”| Step | Settings |
|---|---|
| List subscription (عضویت در لیست) | Target list (required) and segment (optional) to limit entry to a specific subset of that list |
| Wait (مکث) | Duration and its unit (minutes, hours, or days) |
| Send email (ارسال ایمیل) | Subject, preview text (Preheader), sender name and email address, and the email design/content |
Statistics and reporting
Section titled “Statistics and reporting”Each step shows its own statistics. The most important ones are:
- List subscription: the number of entries, the number that advanced to the next step, the number waiting in the queue, and failures (due to list conditions, duplicate subscriptions, or suppression rules)
- Wait: the number currently waiting, completed, and expired (left the automation before the wait period ended)
- Send email: the number sent, delivered, unique opens, unique clicks, unsubscribes, spam complaints, and bounces. These are similar to the statistics of regular campaigns.
To monitor overall performance, use the automation workflow dashboard and check metrics such as the subscriber progression rate, delivery rate, open rate, and click rate regularly.
Automated transactional email
Section titled “Automated transactional email”This automation lets you send email through an API call based on events on your website or app. It suits cases such as password recovery emails, order or invoice confirmations, and notifications about changes to a user account’s status.
Creating the automation
Section titled “Creating the automation”- Open Campaigns (کمپینها) and click Create campaign (ساخت کمپین).
- Select Automations (اتوماسیونها).
- Select the Transactional Mailer (ایمیل تراکنشی خودکار) type and click Next (بعدی).
- Choose a contact list (if the recipient’s address is not already in the list, it is added automatically).
- Enter a name for the automation and review the sender details; these can also be overridden through the API.
- Set the email subject, preview text (Preheader), and UTM parameters. Because the real content is substituted through the API, it is enough to enter a placeholder value for the subject and preview text.
- Choose a template. Because the content is sent through the API, using a blank template is fine.
- Review the settings and save the automation.
Connecting to the API
Section titled “Connecting to the API”After you save, a unique Trigger ID (شناسهی تریگر) for this automation appears in the campaign dashboard. You need to use it in the API call:
- To send a regular email, use the Fire Trigger API.
- To send an email with an attachment, use the Attachment Trigger API.
- To track delivery status through events (Webhook), use the Event Subscription feature.
Full technical documentation for these APIs is available in the cmercury API reference. The link is also shown while you create the automation.
Dynamic content email
Section titled “Dynamic content email”This automation is similar to “Automated transactional email”, except that besides being triggered by the API, personalized content (such as the contact’s name or order details) is also inserted into the email template through the same API call. It suits personalized invoices, form confirmations, or notifying the sales team with contact details.
Creating the automation
Section titled “Creating the automation”- Open Campaigns (کمپینها) and click Create campaign (ساخت کمپین).
- Select Automations (اتوماسیونها).
- Select the Dynamic Content Mailer (ایمیل محتوای پویا) type and click Next (بعدی).
- Choose a contact list.
- Enter a name for the automation and review the sender details.
- Set the email subject, preview text (Preheader), and UTM parameters.
- Unlike “Automated transactional email”, template design is mandatory for this type. Wherever the template should show dynamic content, insert placeholder codes such as
{first_name}or{order_details}. - Review the settings and save the automation.
Connecting to the API
Section titled “Connecting to the API”The unique Trigger ID for this automation is also shown in the campaign dashboard. To send, use the Dynamic Template Trigger API and pass the custom values for each email in the HtmlMergeFields array. For example:
"HtmlMergeFields": [ {"code": "first_name", "value": "Ali"}, {"code": "last_name", "value": "Mohammadi"}, {"code": "order_details", "value": "Order No. 1234 placed on May 20"}]Full technical documentation for this API is available in the cmercury API reference.