Wiki source code of Events in Smart Communications
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 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 | |||
| 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"]]. | ||
| 18 | |||
| 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. | ||
| 20 | |||
| 21 | === Events in the Segment Builder === | ||
| 22 | |||
| 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. | ||
| 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 | |||
| 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]]: | ||
| 40 | |||
| 41 | * Event X occurred; | ||
| 42 | * System event X occurred. | ||
| 43 | |||
| 44 | Example of using the **System Event** trigger: | ||
| 45 | |||
| 46 | |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Event_example.png" width="700"/}} | ||
| 47 | |||
| 48 | === Event Context === | ||
| 49 | |||
| 50 | Event context can be used in campaigns in the following [[actions>>doc:Main.Smart_Communications.SMC_Use.Campaigns.Actions.WebHome]]: | ||
| 51 | |||
| 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"]]) | ||
| 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 | |||
| 62 | |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Filter.png" width="700"/}} | ||
| 63 | |||
| 64 | To use a value from the **event context** when sending a message, use the variable ##~{~{client.eventContext.field_name}}##. | ||
| 65 | |||
| 66 | |(% style="border-color:#ffffff; text-align:center" %){{lightbox image="Send_email.png" width="700"/}} |