ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Loader SmartEmailing Trigger

The SmartEmailing Trigger loader reads emails, events, and other datapayload from triggers.csvndjson and triggers events, including other datapayload in SmartEmailing automations.automation.

Data In/Data Out 

Data In

OnlyLoader requires input file named: triggers.csv is used. It must be stored in /data/in/tables/files/triggers.ndjson 


Each line:

  •  Must contain a json object with email and event
  •  Can contain payload.

Example (in triggers.ndjson file): 

{"email":"we.are@meiro.io","event":"campaign1","payload":{"cart":"empty"}}

{"email":"you.are@meiro.io","event":"campaign2"}

{"email":"they.are@meiro.io","event":"campaign1","payload":{"some":{"nested":{"data":"values"}}}}

Data Out

N/A

Learn more: about the folder structure here.

Requirements

Triggers.csv must have a specific structure:

  1. The first row (header):
    1.  Must contain email and event. Other column names are possible.
    2. email and event values are mandatory.
  2. Every email in subsequent rows must be a valid email address, else, the loader will return an error.
  3. Values for other columns are optional and missing values are not included in the trigger payload.

Parameters

smartemailing trigger.png

API Credentials User Name (required)

Account User Name.

API Credentials Password/API Key (required)

Account API Key. 


You can create an API key in your SmartEmailing account by going to My Account (Muj Ucet) -> API Keys (API Klice) -> Create an API Key (Vytvorit API Klic)