Using a webhook with Zapier or, in advanced cases, other programs using API management solutions is possible with LeadMagicX. With webhooks, you can export/import data to and from LeadMagicX with another platform or system. This is useful if you are utilizing multiple systems and want to exchange information with LeadMagicX. (Check out our Webhook setup article if you need an overview of how to create and use Webhooks.)
Please Note: This is a premium app option in Zapier. There are available options for integrated apps to accomplish this without webhooks with limited triggers and actions depending on the application. Browse options for that here: https://zapier.com/apps[
Within the Workflow builder, you may want to use form information or a booked appointment to fire off a webhook action. You can start with that action as a trigger within the Workflow builder, and that will fire off a webhook action.
.png)
.png)
.png)
Webhooks are used to connect different applications by sending data from one app to another when a specific event occurs. They rely on a triggering event that signals one application to send a request to another. For example, if a purchase occurs in a payment platform like Stripe, a webhook can send the purchase details to another application. Stripe packages the information into a “payload” (the data being sent) and sends it to the receiving application, where the information can then be used to perform various tasks.
To use webhooks, the receiving application must provide a Webhook URL. A Webhook URL is a unique address created by the app receiving the request, similar to a phone number you use to contact a business. This URL is the address where the data will be sent, allowing the receiving app to process the incoming information.
Imagine you own a Shopify eCommerce store that uses Stripe for payment processing, and you want to send targeted emails to customers who purchase a specific course. The challenge is that the purchase data isn’t directly available in your email marketing or LeadMagicX platform. To solve this, you can create a webhook event that triggers every time the specific course is purchased in Stripe. The webhook sends this purchase data to your LeadMagicX account, which can then use the information to perform specific tasks, like sending emails to the contacts who purchased the product.
This approach allows seamless integration between different applications, ensuring that relevant data flows automatically from one platform to another, enabling you to perform targeted actions based on real-time events.
Here’s a sample workflow/webhook example:
NOTE: If the external system requires authentication or specific headers, such as an API key or content type, you can add these headers in the webhook configuration. Example:
.png)
Key: Addr
Value: Address from the value picker
**
**You can add up to five custom data fields using key-value pairs, allowing you to tailor the information sent to external systems to match specific requirements.
Save Your Changes to the Webhook.**
**Before finalizing, it’s recommended to test the webhook using tools like Webhook.site or Postman to ensure that the data is being sent correctly and that the integration with the external system functions as expected.
Test: After setting up, test the webhook to verify that it sends the correct data to the external system.
Publish and Save the Workflow: Ensure that the workflow is activated so that the webhook triggers as intended based on the defined conditions.
.png)
NOTE: The specific type of information that comes through will depend on what you set up in the webhook; meaning a form will pull through form data, an appointment will pull through appointment and contact data, raw webhooks will pull in raw data, etc.
Example
Scenario: You want to sync contact data with an external CRM whenever a new contact is created.
.png)
.png)
Question: Can I customize the data sent through a webhook?**
**Answer: Yes, you can customize the data sent through a webhook by providing custom data key-value pairs in the webhook setup. This allows you to tailor the information being sent to meet specific requirements.
Question: What should I do after setting up the webhook in the workflow?**
**Answer: After setting up the webhook, save your changes and test the webhook to ensure it is functioning correctly. Once confirmed, publish and save the workflow to activate it.
Question: What information do I need to provide when setting up a webhook?**
**Answer: When setting up a webhook, you need to provide the webhook URL from Zapier or another source, configure the payload using JSON, and add any necessary headers for authentication. You may also need to specify the type of action that triggers the webhook within the workflow.
Question: What kind of actions can trigger a webhook in LeadMagicX?**
**Answer: Webhooks in LeadMagicX can be triggered by actions such as form submissions, survey submissions, appointment bookings, and other similar events within the workflow builder.
Question: Can I use webhooks with platforms other than Zapier?**
**Answer: Yes, webhooks can be used with other platforms that support webhook integration. You can use any compatible webhook source to send or receive data between LeadMagicX and other systems.
Question: What happens if the webhook URL is incorrect or fails?**
**Answer: If the webhook URL is incorrect or fails, the data will not be sent or received as intended. It’s important to verify the URL and test the webhook using tools like Webhook. site or Postman to ensure it works correctly before fully deploying it in your workflow.
Question: Do webhooks send data immediately?**
**Answer: Yes. Webhooks send data in real time as soon as the triggering event occurs. However, delays can occur if the receiving system is slow or unreachable.
Question: What is the difference between a POST and a GET request in the Webhook action?
Answer: A POST request is typically used when you want to send data from our system to an external platform. A GET request is used when you need to retrieve or pull data from an external system to use within your workflow.
Question: How many custom data fields can I include in a single webhook action?
Answer: You can include up to five custom data fields using key-value pairs. This allows you to tailor and map specific information, such as an address or custom contact details, to match the requirements of the external system you are sending data to.
Question: Can I add authentication or specific API keys to my webhook request?
Answer: Yes. If the external system you are connecting to requires authentication or specific headers (such as an API key or content-type), you can add these directly within the webhook configuration.
Question: How do I secure my webhook so only my external system can read it?
Answer: You can use Headers to add a layer of security. By including an “Authorization” or “X-API-Key” header with a unique secret key, the receiving system can verify that the data is truly coming from your LeadMagicX account before processing it.