Webhooks
InstaWP allows you to connect any platform that supports webhook calls with shared templates, enabling seamless automation and data collection. This this example, we are connecting Shared templates using Make (an automation platform) with Google Sheet, so that every time a new demo site is spawned, a new row with details is added to Google Sheet.
In this documentation, we will explore the steps to connect the webhook to the shared template and collect sandbox spinups in a Google Sheet with the help of Make (automation platform).
Let’s get started 🚀
Step 1: Configure Make (Add webhook)
Log in to your Make account, create a new scenario, and include a webhook.
Create a new webhook, provide a name, and copy the generated URL.
Step 2: Configure InstaWP
Go to the shared template Sharing Options > Integrations, and paste the webhook URL into the webhook field.
This will test the webhook URL by creating and verifying a new site on the Make's interface, once done click "Ok".
Step 3: Create & Configure Google Sheet
Create an empty Google Sheet with the following headers:
Email
Template
Checkbox
WP URL
Go to the Make dashboard and connect the webhook module with a new Google Sheet module, choose the Action as Add Row.
Note: Ensure the user is logged in with the same Google Mail ID for integrating webhooks, or they will need to create a new Google Sheets connection by signing in with a different Google ID.
Once you have selected the Path type > My drive > Spreadsheet & Sheet ID, then you need to map the Google sheet headers with the available headers from InstaWP as follows.
Note: If users don't find text strings for Google Sheet headers for mapping under the "Table contains headers" section, they can type {{1.email}} on the Email field, {{1.template_slug}} on the Template field, and so on.
Step 4: Testing
Go to the shared template and try to create a new site from your template shared link.
This will update the Google sheet with the email address, template name, and site URL.
We send the following parameters in the webhook:
In webhook, we send the following information:
- Email
- Name (if Name collection is enabled)
- Site URL (demo site's URL)
- Site ID
- Admin Username
- Admin Password
- Auto Login Hash (which can append to https://app.instawp.io/wordpress-auto-login?site=)
- Extend Lifetime Hash (which you can append to https://app.instawp.io/wordpress-extend-site-life?site=)
💡 Did you know - You can call WaaS webhooks to generate one-time use checkout links to create a new website for the user. Learn about Webhooks for new WaaS.
In this documentation, we will explore the steps to connect the webhook to the shared template and collect sandbox spinups in a Google Sheet with the help of Make (automation platform).
Let’s get started 🚀
Step 1: Configure Make (Add webhook)
Log in to your Make account, create a new scenario, and include a webhook.
Create a new webhook, provide a name, and copy the generated URL.
Step 2: Configure InstaWP
Go to the shared template Sharing Options > Integrations, and paste the webhook URL into the webhook field.
This will test the webhook URL by creating and verifying a new site on the Make's interface, once done click "Ok".
Step 3: Create & Configure Google Sheet
Create an empty Google Sheet with the following headers:
Template
Checkbox
WP URL
Go to the Make dashboard and connect the webhook module with a new Google Sheet module, choose the Action as Add Row.
Note: Ensure the user is logged in with the same Google Mail ID for integrating webhooks, or they will need to create a new Google Sheets connection by signing in with a different Google ID.
Once you have selected the Path type > My drive > Spreadsheet & Sheet ID, then you need to map the Google sheet headers with the available headers from InstaWP as follows.
Google Sheet Headers | Available Headers |
---|---|
Template | template_slug |
Checkbox | marketing_option |
WP URL | site_url |
Note: If users don't find text strings for Google Sheet headers for mapping under the "Table contains headers" section, they can type {{1.email}} on the Email field, {{1.template_slug}} on the Template field, and so on.
Step 4: Testing
Go to the shared template and try to create a new site from your template shared link.
This will update the Google sheet with the email address, template name, and site URL.
We send the following parameters in the webhook:
Webhook URL
In webhook, we send the following information:
- Name (if Name collection is enabled)
- Site URL (demo site's URL)
- Site ID
- Admin Username
- Admin Password
- Auto Login Hash (which can append to https://app.instawp.io/wordpress-auto-login?site=)
- Extend Lifetime Hash (which you can append to https://app.instawp.io/wordpress-extend-site-life?site=)
💡 Did you know - You can call WaaS webhooks to generate one-time use checkout links to create a new website for the user. Learn about Webhooks for new WaaS.
Updated on: 11/12/2024
Thank you!