āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/clerk/clerk-docs/guides/development/webhooks/loops ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<TutorialHero beforeYouStart={[ { title: "Set up a Clerk application", link: "/docs/getting-started/quickstart/setup-clerk", icon: "clerk", }, { title: "Set up a Loops account", link: "https://app.loops.so", icon: "cog-6-teeth", } ]} />
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.
<Steps> ## Create a Clerk webhook endpoint in LoopsLoops' Incoming webhooks feature lets Loops accept webhooks directly from external platforms like Clerk.
To create a new webhook endpoint in Loops:
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.
user.created and/or user.updated events, depending on your desired setup.To keep communication secure between the two platforms:
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. </Steps>
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā