Integrate Loops with Clerk
You will learn the following:
- Sync Clerk users to your Loops audience and send automated emails.
Before you start
Loops is an email platform that helps you send marketing and transactional emails to help increase revenue and engagement or improve your user's experience of your app.
This tutorial demonstrates how to sync your Clerk users to Loops so you can email users with Loop's email marketing tools. You will also learn how to send email sequences to new Clerk users.
Create a Clerk webhook endpoint in Loops
Loops' Incoming webhooks feature lets Loops accept webhooks directly from external platforms like Clerk.
To create a new webhook endpoint in Loops:
- Navigate to the Clerk settings page in the Loops dashboard.
- Save the Endpoint URL somewhere secure; you're going to need it for Clerk's webhook configuration.
Create a webhook in the Clerk Dashboard
You must create a new Clerk webhook endpoint so that it can send data to Loops. Here is where you will provide the Endpoint URL from the last step, and then choose the events you want to listen to.
- In the Clerk Dashboard, navigate to the Webhooks page.
- Select the Add Endpoint button.
- In the Endpoint URL field, paste the Endpoint URL that you saved from Loops.
- In the Message Filtering section, select the
user.created
and/oruser.updated
events, depending on your desired setup. - Select the Create button.
- You will be redirected to your endpoint's settings page. Leave this page open.
Add your signing secret in Loops
To keep communication secure between the two platforms:
- On the Clerk endpoint's settings page, copy the Signing Secret. It should be on the right side of the page with an eye icon next to it.
- Back in the Loops dashboard, add the Signing Secret.
Configure Loops events
The final step is to configure which events Loops should accept from Clerk and what Loops should do with the data.
In the Loops dashboard, under Complete Setup, enable the events you selected in Clerk in step 2. Doing this will sync your Clerk users to Loops when they are created or updated in Clerk.
For each event, you can optionally choose to trigger a "loop" when new webhooks are sent to Loops, by selecting an event in the Trigger an event field. This is useful, for example, if you want to send an email welcome sequence to new Clerk users.
You can also choose to assign a user group value for each Clerk user, which will help you organize and segment contacts in Loops.
Feedback
Last updated on