> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lantern.is/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up email sharing

> How to set up your email with Lantern to enable advocates to share referrals via email

## Overview

Lantern works with your existing email providers to give you full control over the emails you send to your customers. You can use our [Klaviyo integration](#using-klaviyo) or use [Shopify Flow](#using-shopify-flow) to set up the triggers and connectors to enable advocates to share their referrals via email.

***

## Using Klaviyo

<Warning>
  Set up your Klaviyo integration with Lantern before following these steps.
</Warning>

<img src="https://mintcdn.com/lantern-911aaaf4/DPVXenXPEdtsAHHh/help/referrals/images/klaviyo.png?fit=max&auto=format&n=DPVXenXPEdtsAHHh&q=85&s=82ddcf22c068703d5c8b233991007434" alt="Image showing the Klaviyo trigger" width="1600" height="1393" data-path="help/referrals/images/klaviyo.png" />

<Steps>
  <Step>
    Create a new flow in Klaviyo using **Lantern Referral Invite** as the metric for the trigger
  </Step>

  <Step>
    Add an email action and configure and design it how you like.
  </Step>

  <Step>
    Use these event properties in your email template:

    * **`{{ event.referralLink }}`** for the Advocate's personal unique link to activate the referral
    * **`{{ event.message }}`** for the message the Advocate provided when sending the invite. If the advocate didn't set a message, this will be your default message.
  </Step>
</Steps>

***

## Using Shopify Flow

<img src="https://mintcdn.com/lantern-911aaaf4/fOoDSqExbEEBl8EE/help/referrals/images/shopify-flow.png?fit=max&auto=format&n=fOoDSqExbEEBl8EE&q=85&s=6876bc05dcc4fac14df25a909efb93f4" alt="Image showing the Shopify Flow trigger" width="1516" height="517" data-path="help/referrals/images/shopify-flow.png" />

<Steps>
  <Step>
    Create a new Flow in the Flow app in your Shopify Admin.
  </Step>

  <Step>
    Press the **Select a trigger** button
  </Step>

  <Step>
    Choose **Lantern Referral Invite** as the trigger
  </Step>

  <Step>
    Add an action for however you want to send the invite. If you have an email app that works with Shopify flow, you can use that. You can even send something like a webhook to use an external email provider.
  </Step>

  <Step>
    Use these event properties from the flow trigger:

    * **`{{ referralLink }}`** for the Advocate's personal unique link to activate the referral
    * **`{{ friendEmail }}`** the email address to send the invite to
    * **`{{ message }}`** for the message the Advocate provided when sending the invite. If the advocate didn't set a message, this will be your default message.
  </Step>
</Steps>
