Skip to main content

Integrating Lantern with LoyaltyLion via Shopify Flow

Wendy avatar
Written by Wendy
Updated this week

You can now connect Lantern quizzes with LoyaltyLion using Shopify Flow. This integration lets you reward customers through LoyaltyLion automatically whenever they complete a quiz. For example, you can award loyalty points or move a customer into a different loyalty tier. By leveraging the Quiz Completed — with customers trigger, you ensure that quiz takers are recognized as Shopify customers so these rewards can be applied correctly.

Prerequisites

  • Shopify Flow app installed and active on your store.

  • LoyaltyLion app installed and configured.

  • A Lantern quiz with an opt-in page that collects an email address.

  • In the quiz’s Results Page → Orders & Tags, enable Create customer in Shopify.

    Image showing the Lantern Results Page settings under Orders & Tags on the right-hand side menu, showing the option “Create customer in Shopify” enabled.

Setting Up the Workflow

  1. Open Shopify Flow

    • Click Create workflow, then choose Select trigger.

    Image showing the Shopify Flow interface showing the Create workflow screen with the Select trigger option highlighted.
    • This will redirect you to the workflow editor where you can select Lantern as the app and then choose the trigger Quiz Completed — with customers (required for LoyaltyLion).

    Image showing the Shopify Flow workflow editor with Lantern selected as the app and the Quiz Completed — with customers trigger highlighted.

  2. Filter by Quiz ID

    • Add a Condition to check the quiz ID.

    • This ensures rewards are applied only for specific quizzes. In our example, we focus on awarding loyalty points, but you could also choose the alternative action of moving a customer into a different loyalty tier depending on your program setup.

    • You can find the quiz ID under the quiz’s More Integrations tab.

    Image showing the Shopify Flow condition block set to quiz ID equals 'pets-best-bite', with the Lantern More Integrations tab also displayed to highlight where the quiz ID can be found, including an arrow pointing to the quiz ID checkbox in the Flow interface.

  3. Add a Delay

    • Insert a Wait action of around 60 seconds.

    • This accounts for a short delay between when a Shopify customer is created and when LoyaltyLion can recognize them.

    Image showing the Shopify Flow Wait action configured for 60 seconds.

  4. Apply Loyalty Points

    • Add an Action → LoyaltyLion → Add Points.

    • Set the number of points to award (e.g., 50 points).

    • Provide a reason (e.g., “Completed our quiz”).

    • Use the field labeled 'Email address of the customer to add points to'. Click Add variable and select the email variable, which will insert {{email}} so points are applied to the correct customer.

    Image showing the LoyaltyLion Add Points action in Shopify Flow with the points field set to 50, the reason field filled with 'Completed our quiz', and the email variable field highlighted, showing {{email}} in the input box.

  5. Turn On the Workflow

    • Once all steps are in place, make sure to enable the workflow so it runs automatically when the trigger conditions are met.

    Image showing the complete Shopify Flow workflow overview with Lantern trigger, condition, delay, and LoyaltyLion action, with an arrow pointing to the 'Turn on workflow' button.

Notes

  • Always use the with customers trigger to ensure LoyaltyLion can identify the customer.

  • Filtering by quiz ID is recommended if you have multiple quizzes.

  • The short delay helps prevent errors when LoyaltyLion processes new customers.

  • You can expand the workflow with other LoyaltyLion actions or connect it with additional Flow-compatible apps.

With Shopify Flow, Lantern and LoyaltyLion work together seamlessly to reward customers who complete quizzes. This not only boosts engagement but also strengthens customer loyalty by tying quiz interactions directly to your rewards program. To learn more about the broader capabilities of Flow with Lantern, check out our Shopify Flow Integration article.

Did this answer your question?