> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.qikify.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Setup email notifications with Klaviyo

To automate email after customers submit the form, we use [Shopify Flow](https://apps.shopify.com/flow). There is a method to set up email notifications: using Shopify Email and Klaviyo.

# 1. Create Shopify Flow

**Step 1:** Open Shopify Flow > Choose **Create workflow**
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_1pv4v7g.png =999xauto)

**Step 2:** Select a Trigger from Qikify Contact Form > Select trigger "**Qikify Contact form - Submission with Customer Data**"
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_1d4pu5u.png =1011xauto)
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_1aqvdm7.png =1000xauto)


**Step 3:** Select **Klaviyo** as the action from **Shopify Email >** choose **Track an Event**
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_15we2as.png =993xauto)
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_ammtt6.png =1005xauto)
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_1qln5mj.png =1003xauto)
**Step 4:** Fill information and activate the Flow. 

Some required fields:
* Klaviyo Public API Key: Navigate to "Account > Settings > API Keys" inside Klaviyo app to get your public API key
* Customer Email Address: the type of customers email that you want to sent the notification to. Add variable > choose **submission** > choose **submittedEmail** to add the **{{submission.submittedEmail}}** variable to the customer email address field
* Event Name: Choose a name you want. (Example: Qikify email response)
* Event Properties: Add variable > choose **submission** > choose **data** to add **{{submission.data}}** variable to event properties

Then Turn on the Flow.

# 2. Create email on Klaviyo
Step 1: Go to your**&#160;Klaviyo portal** > **Content** > **Templates** > **Create**

Step 2: Design the Notification email that you want to send to the customers. Klaviyo provides many type of blocks for you to design an eye-catching and professional email.

Step 3: Show the exact amount of credit on the email.

This step requires adding a dynamic variable to the text area, below are some available variables:

**{{ event.code|default:'' }}** : the discount code customers receive. For example: QKFCONTACT

**{{ event|lookup:'Full name'|default:'' }}** The customers' full name. For example: LIZ PHAM

**{{ event|lookup:'Your email'|default:'' }}** The customers' email. For example: abc@gmail.com

# 3.Create a Klaviyo Flow to automatically send the email

If you're already familiar with Klaviyo Flow, feel free to skip this step

Step 1: Go to your Klaviyo portal > Flows > Create Flow > Build your own
Step 2: Set up Flow.
* Trigger: open Your Metrics > Shopify > Choose the exact event name that was sent from Shopify.
![](https://storage.crisp.chat/users/helpdesk/website/-/3/3/f/6/33f605886cba4e00/image_1v46yfo.png)

* Add action > choose Email > set up the Title, sender information…
* On Templates section > choose Select Template and choose the one you set up on the previous step.
* Optional: if you want to add some delay time before sending or set up condition for the flow, explore the Klaviyo Flow and add it into the flow.
* Review and Turn on the Flow.
