Avelon-Klaviyo workflow examples

how-to guides: integrating Klaviyo with Avelon

In this guide, we’ll walk you through all the different workflows available through the Avelon-Klaviyo integration and show you how to set up every workflow. But first, it’s worth understanding the difference between event metrics and custom properties.

What workflows are in this article?

Types of syntax for event metrics and custom properties

There are major differences between event metrics and custom properties on a Profile, as they sit separately from each other and have different syntax look up code in Klaviyo.

Custom properties are associated with the affiliates profile, i.e commission rate, category, sub category, Instagram links etc. Event metrics are specific to the event, i.e their affiliate link, a new promo code, a URL to accept their invite to your program etc.

We’ll show you a few of the custom properties below, but please note that this list is not exhaustive. We are adding custom properties all the time.

DefinitionSyntax
Affiliate commission %{{ person|lookup:"commissionPercent"|default:'' }}
Affiliates website link{{ person|lookup:"website"|default:'' }}
Affiliate category{{ person|lookup:"category"|default:'' }}
Affiliate sub category{{ person|lookup:"subCategories"|default:'' }}
Affiliate country{{ person|lookup:"country"|default:'' }}
Invited date & time{{ person|lookup:"invited"|default:'' }}

1. Sending an invite to an affiliate

The event trigger for sending an invite to an affiliate is Invite created.

1. Click Flows > Create flow > Build your own > name your flow and then Your metrics and select Avelon Network from the dropdown

2. Click Invite created from the menu and then save your selection

3. Drag Email from the menu to underneath your trigger

4. Create your email as you usually would but use Personalisation to add all the metrics you need into the email. You must have the commission percentage, accept url and reject url at a minimum within your email

5. Once you’re happy with your email, just save it and press Review and turn on from the workflow overview

The syntax for each metric within this event are available below. 

Please be aware that as of 24.07.2024, the accept/deny syntax was replaced by the decideUrl. This is to stop email providers pre-loading URLs and ensures much great security protocols.

DefinitionSyntax
Accept / deny decision page{{ event.decideUrl|default:'' }}
Affiliate commission percentage{{ person|lookup:"commissionPercent"|default:'' }}
Promo code{{ event.promoCode|default:'' }}
Promo code discount percent{{ event.promoCodeDiscountPercent|default:'' }}
Promo code discount flat rate{{ event.promoCodeDiscountFlatRate|default:'' }}
Promo code other{{ event.promoCodeOther|default:'' }}
Creating a reminder email if the affiliate hasn't responded

We also recommend setting up a reminder email for affiliates who receive this email. You can do this by setting up a conditional split in your workflow:

1. Once you’ve got your email set up as you like, select Conditional split from the menu on the left hand side and drag it below your email.

2. Select What someone has done (or not done) as the condition from the dropdown 

3. Select Opened Email

4. Select zero times

5. Drag another email into your Yes branch and create a reminder email

You can create as many conditional split loops as you like, but we recommend cancelling the affiliates invite if they don’t respond within 30-days.

2. Welcoming an affiliate to your program

There are two event triggers for welcoming an affiliate to your program: Invite accepted and affiliate application accepted. These events are triggered when an affiliate is added to your program.

Invite accepted is when you invite an affiliate to your program and THEY accept, whilst affiliate application accepted is for when an affiliate applies to your program and YOU accept them.

We recommend setting up flows for both event triggers.

The syntax for each metric within these events are available below:

DefinitionSyntax
Affiliate commission percent{{ event.commissionPercent|default:'' }}
Commission fixed amount{{ event.commissionFixed|default:'' }}
Affiliate link URL{{ event.linkUrl|default:'' }}
Affiliate link name{{ event.linkName|default:'' }}
Promo code{{ event.promoCode|default:'' }}
Promo code discount percent{{ event.promoCodeDiscountPercent|default:'' }}
Promo code discount flat rate{{ event.promoCodeDiscountFlatRate|default:'' }}
Promo code other{{ event.promoCodeOther|default:'' }}
CPC rate{{ event.cpc|default:'' }}

3. Affiliate link created

The event trigger for notifying an affiliate that you have created an affiliate link for them is Affiliate link created

The syntax for each metric within this event are available below:

DefinitionSyntax
Affiliate link URL{{ event.url|default:'' }}
Affiliate link commission %{{ event.commissionPercent|default:'' }}
Promo code{{ event.promoCode|default:'' }}

4. Affiliate link cancelled

The event trigger for notifying the affiliate that an affiliate link has been cancelled is Affiliate link cancelled.

The event metrics and syntax for this event trigger are available below:

DefinitionSyntax
Affiliate link URL{{ event.url|default:'' }}
Reason{{ event.reason|default:'' }}
Link name{{ event.name|default:'' }}

5. Commission updated

The event trigger for notifying an affiliate that their commission has been updated is Commission updated. Please be aware that this is only for affiliate specific commissions, not for default (program) level commissions.

The event metrics and syntax for this event trigger are available below:

DefinitionSyntax
New value{{ event.newValue|default:'' }}
Old value{{ event.oldValue|default:'' }}
Change type{{ event.changeType|default:'' }}

6. Promo code created

The event trigger for notifying the affiliate that a new promo code has been created for them is Promo code created.

The event metrics and syntax for this event trigger are available below:

DefinitionSyntax
Promo code{{ event.code|default:'' }}
Discount %{{ event.discountPercent|default:'' }}
Commission %{{ event.commissionPercent|default:'' }}
Notes{{ event.notes|default:'' }}
Discount flat rate{{ event.discountFlatRate|default:'' }}
Discount other{{ event.discountOther|default:'' }}

7. Promo code cancelled

The event trigger for notifying the affiliate that their promo code has been cancelled is Promo code deleted.

The event metrics and syntax for this event trigger are available below:

DefinitionSyntax
Promo code{{ event.code|default:'' }}

8. CPC updated

The event trigger for notifying the affiliate that their CPC has been updated is CPC updated.

The event metrics and syntax for this event trigger are available below:

DefinitionSyntax
CPC new value{{ event.newValue|default:'' }}
CPC old value{{ event.oldValue|default:'' }}
CPC change type{{ event.changeType|default:'' }}

Discover more from Avelon

Subscribe now to keep reading and get access to the full archive.

Continue reading