Let’s say you create a contact through a webhook and want to send a verification (double opt-in) email.
You can easily do that with FunnelKit Automations using two methods:
- Link Triggers
- Subscribe Link merge tag
In this documentation, we will look at how you can send a double opt-in email when creating contacts through webhook.
Method 1: Double Opt-in Using Link Trigger
Step 1: Set up the Webhook Received Event
Here, we have configured this webhook to receive data from another website.
You can refer to this documentation on how to send and receive data with webhooks.
![](https://funnelkit.com/wp-content/uploads/2022/04/custom-webhook-url-select-1024x711.png)
Send some test data and click on Receive Webhook to receive it.
![](https://funnelkit.com/wp-content/uploads/2022/04/webhook-data-received.png)
The data here gets received! This means that the webhook is successfully configured.
Make sure to map the email field.
Step 2: Add the condition to check the subscribe status
Introduce a conditional rule to check if the contact’s status is Subscribed before creating a contact.
Logic:
- If the contact is subscribed:
- Exit the automation without performing any actions.
- If the contact is not subscribed:
- Proceed to create the contact and send an email with the required link trigger.
![subscribe status](https://funnelkit.com/wp-content/uploads/2022/11/subscribe-status-condition-1024x488.png)
Step 3: Add the action to create your contact
Select the Create Contact under FunnelKit Automations as the action.
![](https://funnelkit.com/wp-content/uploads/2022/11/create-contact-automations-action-fka-1024x738.jpg)
Click on Done.
Step 4: Configure the fields of the contact
Use the Webhook Data merge tag to enter the fields:
![](https://funnelkit.com/wp-content/uploads/2022/04/wp-webhook-data-merge-tag-1024x642.png)
Now copy and paste the merge tags of the email, first name, and last name of the contact.
Set the contact status to Unverified because we will be verifying it using the double-opt-in.
![](https://funnelkit.com/wp-content/uploads/2022/11/create-contact-action-webhook-double-opt-in-1024x713.png)
Step 5: Add additional data to custom field inside the contact profile
If you have additional data coming from the webhook, you can update custom fields inside the contact profile.
![](https://funnelkit.com/wp-content/uploads/2022/11/contact-gender-update.png)
This helps you store additional data coming from the webhook.
Step 6: Set up a link trigger for the verification link
Go to Tools ⇨ Link Triggers and add a link trigger of changing the contact status to “Subscribed”.
![](https://funnelkit.com/wp-content/uploads/2021/12/image-11-1024x968.png)
Click on Save.
Copy the Trigger URL of this Link Trigger.
![](https://funnelkit.com/wp-content/uploads/2021/12/image-10-1024x609.png)
Read this detailed document on how to set up link triggers in FunnelKit Automations.
Step 7: Send an email with the Trigger URL
Add a Send email action to the sequence and include the Trigger URL within the email body.
![](https://funnelkit.com/wp-content/uploads/2022/06/paste-link-trigger-url-1024x931.jpg)
That’s it! You have successfully created the needed workflow for this use case.
Activate the automation to make it live.
![double opt-in email automation](https://funnelkit.com/wp-content/uploads/2022/11/double-opt-in-automation-active.png)
There is another method that you can use to send double opt-in emails.
Method 2: Double Opt-in Using Subscribe Link Merge Tag
Instead of link triggers, you can send an email with the hyperlinked subscribed link merge tag in the CTA.
![](https://funnelkit.com/wp-content/uploads/2022/11/subscribe-link-merge-tag-1024x682.png)
Enter the URL which you want users to redirect to after successfully hitting the subscribe button.
![](https://funnelkit.com/wp-content/uploads/2022/11/copy-subscribe-url-merge-tag-1024x492.png)
Copy the merge tag and paste it inside the email content.
![paste the subscribe link merge tag](https://funnelkit.com/wp-content/uploads/2022/11/paste-subscribe-link-merge-tag-1024x608.png)
When users click on this CTA, their status will automatically update to Subscribed.
This is how you can send a double opt-in email using the Subscribe Link merge tag.
Testing the Automation
FunnelKit Automations will create the contact using the webhooks:
![unverified status](https://funnelkit.com/wp-content/uploads/2024/12/unverified-status-1024x703.png)
Then, they will receive this email in their mailbox:
![](https://funnelkit.com/wp-content/uploads/2021/12/image-7-1024x353.png)
Upon clicking this link, the contact status will get changed to Subscribed.
![subscribed status](https://funnelkit.com/wp-content/uploads/2024/12/subscribed-status.png)
This is how you can use a double opt-in email for new contacts with FunnelKit Automations.