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

# Klayvio

> Email marketing automation and customer claim filing made easy with Klayvio and Order Protection post-purchase support.

This guide covers how to add the Order Protection `File a claim` block to the order confirmation email templates.

<Steps>
  <Step title="Order Confirmation template">
    Find your order confirmation email template and add a HTML block.

    <img src="https://mintcdn.com/orderprotectioncom/ol3wlLZjjCPTvntp/public/assets/img/klayvio/klayvio-order-confirmation-template.png?fit=max&auto=format&n=ol3wlLZjjCPTvntp&q=85&s=9b7de3fa6a907e6698ac207b01abe209" alt="" width="1440" height="931" data-path="public/assets/img/klayvio/klayvio-order-confirmation-template.png" />

    The HTML block should go above the order confirmation content and above the footer.

    <img src="https://mintcdn.com/orderprotectioncom/v-qqoFmF11TmZoVh/public/assets/img/klayvio/klayvio-html-block.png?fit=max&auto=format&n=v-qqoFmF11TmZoVh&q=85&s=76d4b8b7334f8eeb89bcd67677fa534b" alt="" width="1440" height="1096" data-path="public/assets/img/klayvio/klayvio-html-block.png" />
  </Step>

  <Step title="Adding the code snippet">
    Paste the below code snippet into the content field.

    ```html expandable theme={null}
    <!-- Order Protection Section -->
    <table
      class="row order_protection"
      width="100%"
      cellpadding="0"
      cellspacing="0"
      border="0"
      style="border-collapse: collapse; margin: 0 auto;"
    >
      <tbody>
        <tr>
          <td align="center" style="padding: 20px;">
            <h2
              align="center"
              style="margin: 0 0 16px 0; font-size: 20px; font-weight:
    bold; font-family: Arial, sans-serif; color: #000; text-align: center;"
            >
              Issues with your order?
            </h2>
            <p
              style="margin: 0 0 16px 0; font-size: 14px; line-height: 20px; font-family:
    Arial, sans-serif; color: #333; text-align: center;"
            >
              Luckily, you purchased Order Protection! Submit a claim to quickly
              resolve lost, damaged, stolen, or wrong item issues with your order.
              Once approved, you will receive a refund or reshipment at no
              additional cost.
            </p>
            <!-- Button -->
            <table
              align="center"
              cellpadding="0"
              cellspacing="0"
              border="0"
              style="margin: 0 auto;"
            >
              <tbody>
                <tr>
                  <td align="center" bgcolor="#000" style="border-radius: 4px;">
                    <a
                      href="https://claim.orderprotection.com/"
                      target="_blank"
                      style="display: inline-block; padding: 12px 24px; font-size: 14px; font-weight:
    bold; font-family: Arial, sans-serif; color: #ffffff; text-decoration: none;
    background-color: #000; border-radius: 4px;"
                    >
                      FILE A CLAIM
                    </a>
                  </td>
                </tr>
              </tbody>
            </table>
            <!-- Cancel Link -->
            <p
              style="margin: 16px 0 0 0; font-size: 12px; line-height: 18px; font-family:
    Arial, sans-serif; color: #666; text-align: center;"
            >
              Didn't mean to purchase protection?
              <a
                href="#"
                target="_blank"
                style="color: #0066cc; text-decoration:
    underline;"
                >Cancel it here</a
              >.
            </p>
          </td>
        </tr>
      </tbody>
    </table>
    ```
  </Step>

  <Step title="Setting up the logic builder">
    Under the `Display` tab, select `Use Logic Builder`.

    <img src="https://mintcdn.com/orderprotectioncom/v-qqoFmF11TmZoVh/public/assets/img/klayvio/klayvio-logic-builder.png?fit=max&auto=format&n=v-qqoFmF11TmZoVh&q=85&s=66252d1b2e19be32a2ac8bd2caa2b595" alt="" width="1440" height="1100" data-path="public/assets/img/klayvio/klayvio-logic-builder.png" />

    Use logic builder to correctly identify orders that have Order Protection. We recommend utilizing Shopify tags to identify OP orders. Depending on your store's price settings you will be looking for the tag “OP:CustomerFunded” or “OP:BrandFunded”. You can verify the price settings tag in the [Order Protection app](app.orderprotection.com) under `Settings > General`.

    <img src="https://mintcdn.com/orderprotectioncom/ol3wlLZjjCPTvntp/public/assets/img/klayvio/klayvio-logic-tags.png?fit=max&auto=format&n=ol3wlLZjjCPTvntp&q=85&s=19842654b4824ef82e3b993917da1c63" alt="" width="1440" height="1679" data-path="public/assets/img/klayvio/klayvio-logic-tags.png" />
  </Step>

  <Step title="That's it!" icon="flag-checkered">
    Your Order Protection claim filing block is configured within your Klayvio order confirmation email template. Make sure to preview and test before pushing live. 🚀
  </Step>
</Steps>

## Questions or suggestions?

If you are having difficulty enabling your integration or have suggestions on how the integration could be better, reach out to [onboarding@orderprotection.com](mailto:produonboardingct@orderprotection.com).
