Make can send leads from any app it connects to into GuardenerAI through the public API. GuardenerAI has no app in Make, so this is a connection you build yourself with Make’s HTTP app: the scenario looks the person up by email, then a Router creates a new lead or updates the one it found.
Not a native integration. A Make scenario sends lead details to your workspace’s API. Leads land in GuardenerAI. Nothing flows back to Make on its own.
https://YOUR-ORG.guardenerai.com.Use the trigger module of the app where your leads arrive, or the Webhooks app’s Custom webhook if another system can post to Make. Run it once so the scenario has sample data to map.
Add the HTTP app’s Make a request module, method GET. In Headers, add one named X-Api-Key with your key as the value. Make also offers an API key authentication type that keeps the key in a keychain; if you use it, check the request sends the key in that header. Set Parse response to Yes so the results can be mapped. Lower-case the email in the URL, because the match is case-sensitive.
https://YOUR-ORG.guardenerai.com/api/leads?filter=email:equals:{{lower(1.email)}} Add a Router with two routes. The first route’s filter passes when totalElements equals 0 (a new lead). The second passes when it is greater than 0, and takes the id of the first item in content as the lead’s id.
On the first route add Make a request, method POST, to /api/leads, with the same API key credential. Choose application/JSON as the body content type and map the fields. firstName, lastName and email are required.
{
"firstName": "{{1.first_name}}",
"lastName": "{{1.last_name}}",
"email": "{{lower(1.email)}}",
"company": "{{1.company}}",
"message": "{{1.message}}",
"sourceMedium": "make",
"sourceCampaign": "trade show"
} On the second route send a PUT to /api/leads/{id}. A PUT replaces the whole record, so map every field you want to keep. Set Return error if HTTP request fails to Yes on each request, so a rejected call stops the run instead of passing silently.
Retry-After: 1, so wait a second and retry.PUT replaces the whole record. Send every field you want to keep, not only the one that changed.duplicate_blocked with the matching records. Update the match instead of forcing a second copy.Checked against Make’s own documentation: HTTP app, Webhooks, Router, Tools and Sleep, Error handlers, Credits. Their plans and features change, so confirm the current details there.
We use analytics cookies to see which pages help and which don't. No advertising cookies. How we use them