The purpose of this manual is to add tags automatically via the API.
Simply put, you only need 2 steps to do this tagging, which include:
- Create automation in the app, and
- Send a request to the server.
Creating Automation in The App
First, you need to create an automation workflow in the application according to your needs. To do so, simply follow the steps below:
- On the New Automation menu, select Custom Workflow to create an automation workflow from scratch.
- For the first trigger, please select External Trigger.
- After that, fill in all the available fields, including:
- Name : Your automation name/title
- Target List : List that’ll be used to store data.
- Subscriber Field : Fields that’ll be used to send data. The Email field must be included.
- Action (optional) : Fill in with the action you want to perform.
Notes: You can use the External triggers for several functions. One of them is to check whether an order has been paid for or not.
For the implementation, you can fill in the Action field according to the function that’ll be run on your platform.
- action cart, to run the automation when the user checkout a product or something.
- action completed, to run the automation when the buyer has completed the payment.
These actions are defined by your platform. So you can leave this field blank if it’s not needed.
- Next, copy the code provided in the How to Use section that’ll be used to send requests to the server.
- Click on the Save button.
- After that, please select Add tag for the action.
- Decide what tags will be added to the subscribers that join the list.
- Next, create a node/workflow according to your needs.
- Click on the Save and Run button in the upper right corner of the page.
- Then, continue to send a request to the server.
Sending A Request to The Server
Lastly, please send a request to the server by giving the code you’ve copied to the Developer Team in order to implement the automation into your platform.
An example of the code is like this:
|curl –location –request POST ‘https://aplikasi.kirim.email/automation’ \|
–user ‘automation:4yvlYTwZ3cFQsU9AGIkTufAxqmE4vOAp’ \
–form ‘action:Cart’ \
–form ’email=”EXAMPLE_DATA”‘ \
–form ‘full_name=”EXAMPLE_DATA”‘ \
–form ‘your_message=”EXAMPLE_DATA”‘ \
Note : The code you get may be different from the example above. It depends on the automation store the system provides, the fields you use, and also the action.