Loymax, 2026

Wiki source code of Events in Smart Communications


Hide last authors
Vera Retyeva 1.1 1 (% class="box" %)
2 (((
3 **Contents:**
4
5 {{toc depth="3" start="3"/}}
6 )))
7
8 === General Information ===
9
10 There are two types of events:
11
12 * **Customer event** — an event relevant to a specific customer only. For example, "Customer called the Call Center", meaning a specific customer contacted the Call Center.
13 * **System event** — an event relevant to **all** customers and not tied to any particular one. For example, "Product X is available in stock" — this event can be used to notify all customers who have previously shown interest in this product.
14
15 An event has a **name** and may include **context** (or not). **Context** is a set of variables and their corresponding values. Event context does not change over time (unlike receipts, where receipt content or status might change).
16
Andrej Rylov 5.1 17 All events are displayed in the event history within the [[Customer Profile>>doc:Main.Smart_Communications.SMC_Use.Customers.All_customers.WebHome||anchor="HCustomerprofile"]].
Vera Retyeva 1.1 18
Anastasia Zanina 12.1 19 [[Loymax Smart Communications>>doc:Main.Smart_Communications.SMC_Use.WebHome]] receives information about external events from the master system it is [[integrated >>doc:Main.Smart_Communications.SMC_integration.Data_exchange.Data_structure.WebHome]]with.
Vera Retyeva 1.1 20
21 === Events in the Segment Builder ===
22
Andrej Rylov 6.1 23 Events can be used as filters when building customer segments in the [[Segment Builder>>doc:Main.Smart_Communications.SMC_Use.Customers.User_segments.Segment_builder.WebHome]]. For example, you can generate a list of customers for whom event N occurred X times during period Y.
Vera Retyeva 1.1 24
25 You can filter customers based on criteria related to events:
26
27 * Event name;
28 * Event date;
29 * Date of the last event;
30 * Days since the last event;
31 * Event context.
32
33 The **event context** filter allows to select customers who have events with specified values for a given variable. For example: **name = Bag**. This filter will select all customers who have an event with a context containing the variable **name** equal to **Bag**.
34
35 |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Event_context.png" width="1200"/}}
36
37 === Events in Campaigns ===
38
Andrej Rylov 9.1 39 There are two [[triggers>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Triggers.WebHome]] activated by events in [[campaigns>>doc:Main.Smart_Communications.SMC_Use.Campaigns.WebHome]]:
Vera Retyeva 1.1 40
41 * Event X occurred;
42 * System event X occurred.
43
44 Example of using the **System Event** trigger:
45
Vera Retyeva 3.1 46 |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Event_example.png" width="700"/}}
Vera Retyeva 1.1 47
48 === Event Context ===
49
Andrej Rylov 7.1 50 Event context can be used in campaigns in the following [[actions>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome]]:
Vera Retyeva 1.1 51
Andrej Rylov 7.1 52 * [[Filter customers>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome||anchor="HFiltercustomersA0"]];
53 * Send a message ([[email>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome||anchor="HSende-mailA0"]]/[[SMS>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome||anchor="HSendSMSA0"]]/[[push>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome||anchor="HSendPUSHA0"]])
Vera Retyeva 1.1 54
55 (% class="box warningmessage" %)
56 (((
57 **Note:** Field codes should not contain hyphens "-".
58 )))
59
60 To filter customers using a value from the **event context**, specify the field code from the context in the format: **$field_code**, as shown in the screenshot below.
61
Vera Retyeva 3.1 62 |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Filter.png" width="700"/}}
Vera Retyeva 1.1 63
64 To use a value from the **event context** when sending a message, use the variable ##~{~{client.eventContext.field_name}}##.
65
Vera Retyeva 3.1 66 |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Send_email.png" width="700"/}}