How to work with the challenges
The challenges here are harder than the practice tasks, and are meant for those who finished and want to go deeper. Try on your own for at least 20 minutes before opening the hints, and the solution only after that. There is no single right solution: if your scenario meets the requirements, it is right.
Broken scenario โ find the bug
This is what real work looks like: something broke, and all you have is the History. Read the error, and pick the right fix.
Advanced: An endpoint for fetching a lead
๐ฌ The scenario
Add a second API: GET with a leadId returns the lead's details.
๐ฏ The requirements
- Save leads (data store) in the first API.
- A GET webhook with ?id=โฆ
- 404 when not found.
๐ฏ The desired result โ how the scenario should look and work
Click Run once and then each module: you will see its settings, and on the last module โ the output you should get.
๐ค Example of the final output
{
"status": 200,
"body": {
"id": "L-042",
"email": "dana@acme.co.il"
}
}๐ฌ Stuck? To the guided solution with a click simulation โ
๐ก Hints (try without them first)
- Data store โ Get a record by key = leadId.
- Filter: Exists on a field of the record.
- In the existing API: Data store โ Add/replace a record (key: leadId).
- A new webhook: GET โ Data store Get a record (key:
{{1.id}}). - Router: Exists โ Response 200 with Create JSON; fallback โ 404.
๐ฌ The guided solution โ a click simulation
๐ธ The illustrated guide โ step by step, click by click
For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.
- 1Save leads in the existing APIIn the session's API: Data store โ Add/replace a record with key = leadId.

๐ธ Step 1 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Data storeand click the Data store app. - In the list of actions choose Add/replace a record.
- In the Data store field type:
leads - In the Key field map (drag from the panel or type):
{{leadId}} - In the email field map (drag from the panel or type):
{{1.email}} - In the name field map (drag from the panel or type):
{{1.name}} - Click OK (or Save) to close the module window.
- 2A new GET webhookA new scenario with a webhook that receives ?id=โฆ

๐ธ Step 2.1 โ the red ring marks where to click 
๐ธ Step 2.2 โ the red ring marks where to click - In the left menu click Scenarios โ + Create a new scenario.
- Click the scenario name at the top left (New scenario) and type:
C04 - Get lead. - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Custom webhook.
- In the Webhook field type:
get-lead - In the Get request headers field choose:
No - Click OK (or Save) to close the module window.
- 3Read from the data storeGet a record with key = {{1.id}}.

๐ธ Step 3 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Data storeand click the Data store app. - In the list of actions choose Get a record.
- In the Data store field type:
leads - In the Key field map (drag from the panel or type):
{{1.id}} - Click OK (or Save) to close the module window.
- 4Router: found โ 200, else โ 404Two webhook responses by whether the record exists.

๐ธ Step 4.1 โ the red ring marks where to click 
๐ธ Step 4.2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Flow Controland click the Flow Control app. - In the list of actions choose Router.
- Keep the defaults.
- Click OK (or Save) to close the module window.
- Click the small + coming out of the Router (to its right) to open a new route.
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Webhook response.
- In the Status field type:
200 - In the Body field map (drag from the panel or type):
{"id":"{{1.id}}","email":"{{2.email}}","name":"{{2.name}}"} - Click OK (or Save) to close the module window.
- Click the ๐ง icon on the line between the last two modules โ Set up a filter.
- In the Label field type:
Found. - In Condition set:
2.email Exists(pick the field from the panel, the operator from the list, and type a value). - Click OK โ a funnel icon appears on the line.
- Click the small + coming out of the Router (to its right) to open a new route.
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Webhook response.
- In the Status field type:
404 - In the Body field type:
{"error":"not found"} - Click OK (or Save) to close the module window.
- Click the ๐ง on the line of the last route โ Set up a filter.
- Type
Fallbackas the Label, and tick Fallback route: Yes. - Click OK โ this route runs only when no other route matched.
- 5Test in the browserOpen the webhook URL with an existing and a non-existing ?id=.

๐ธ Step 5 โ the red ring marks where to click - Click โถ Run once at the bottom left.
- When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
- The output should look roughly like this:
{ "status": 200, "body": { "id": "L-042", "email": "dana@acme.co.il" } }
Experts: Receiving a batch
๐ฌ The scenario
A system sends an array of 50 leads in one request.
๐ฏ The requirements
- Receive an array in the body.
- Process each lead.
- One response with how many succeeded and how many failed.
๐ฏ The desired result โ how the scenario should look and work
Click Run once and then each module: you will see its settings, and on the last module โ the output you should get.
๐ค Example of the final output
{
"ok": 47,
"failed": 3
}๐ฌ Stuck? To the guided solution with a click simulation โ
๐ก Hints (try without them first)
- An Iterator over the array, then a Numeric aggregator / Array aggregator.
- Webhook response after the aggregator.
Webhook โ Iterator (Array: leads) โ validation as Set variable valid โ Array aggregator (Source: Iterator) โ Set variables: ok = length(filterโฆ) or two Numeric aggregators with a filter โ Response 200 with the summary. (Iterator and aggregator โ in session 6.)
๐ฌ The guided solution โ a click simulation
๐ธ The illustrated guide โ step by step, click by click
For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.
- 1A webhook that receives an arraySend a sample with leads: [...] so Make learns the structure.

๐ธ Step 1.1 โ the red ring marks where to click 
๐ธ Step 1.2 โ the red ring marks where to click - In the left menu click Scenarios โ + Create a new scenario.
- Click the scenario name at the top left (New scenario) and type:
C04 - Batch. - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Custom webhook.
- In the Webhook field type:
leads-batch - Click OK (or Save) to close the module window.
- 2An Iterator over the leadsArray: {{1.leads}}.

๐ธ Step 2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Flow Controland click the Flow Control app. - In the list of actions choose Iterator.
- In the Array field map (drag from the panel or type):
{{1.leads}} - Click OK (or Save) to close the module window.
- 3Validate each leadvalid = true if the email has @ and a dot.

๐ธ Step 3 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Toolsand click the Tools app. - In the list of actions choose Set variable.
- In the Variable name field type:
valid - In the Variable value field map (drag from the panel or type):
{{contains(2.email; "@") and contains(2.email; ".")}} - Click OK (or Save) to close the module window.
- 4Aggregate and countArray aggregator (Source: Iterator) and then count succeeded/failed.

๐ธ Step 4.1 โ the red ring marks where to click 
๐ธ Step 4.2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Flow Controland click the Flow Control app. - In the list of actions choose Array aggregator.
- In the Source Module field type:
Flow Control - Iterator [2] - Click OK (or Save) to close the module window.
- Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Toolsand click the Tools app. - In the list of actions choose Set multiple variables.
- In the ok field map (drag from the panel or type):
{{length(map(4.array; "valid"; "valid"; true))}} - In the failed field map (drag from the panel or type):
{{length(4.array) - ok}} - Click OK (or Save) to close the module window.
- 5One response with the summaryWebhook response 200 with ok and failed.

๐ธ Step 5.1 โ the red ring marks where to click 
๐ธ Step 5.2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Webhook response.
- In the Status field type:
200 - In the Body field map (drag from the panel or type):
{"ok":{{5.ok}},"failed":{{5.failed}}} - Click OK (or Save) to close the module window.
- Click โถ Run once at the bottom left.
- When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
- The output should look roughly like this:
{ "ok": 47, "failed": 3 }
Boss challenge: A Stripe webhook with signature verification
๐ฌ The scenario
Receive a payment event from Stripe and verify it really came from Stripe.
๐ฏ The requirements
- JSON pass-through to receive the raw body.
- Compute HMAC SHA256 per Stripe's docs.
- 401 if it doesn't match.
๐ฏ The desired result โ how the scenario should look and work
Click Run once and then each module: you will see its settings, and on the last module โ the output you should get.
๐ค Example of the final output
{
"type": "payment_intent.succeeded",
"verified": true
}๐ฌ Stuck? To the guided solution with a click simulation โ
๐ก Hints (try without them first)
- The signature is in the stripe-signature header: t=โฆ,v1=โฆ.
- The string to sign: t + "." + raw body.
A webhook with JSON pass-through + headers โ Set variables: t and v1 from the header (split) โ sha256(t + "." + 1.value; "hex"; secret) โ Filter: equals v1 โ Parse JSON โ continue. Otherwise โ 401. In practice, Make's Stripe app has a ready trigger that handles this โ but it's important to understand what happens underneath.
๐ฌ The guided solution โ a click simulation
๐ธ The illustrated guide โ step by step, click by click
For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.
- 1A webhook with the raw bodyJSON pass-through + Get request headers โ to receive the body as is.

๐ธ Step 1.1 โ the red ring marks where to click 
๐ธ Step 1.2 โ the red ring marks where to click - In the left menu click Scenarios โ + Create a new scenario.
- Click the scenario name at the top left (New scenario) and type:
C04 - Stripe. - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Custom webhook.
- In the Webhook field type:
stripe - In the JSON pass-through field choose:
Yes - In the Get request headers field choose:
Yes - Click OK (or Save) to close the module window.
- 2Split the headert and v1 from Stripe-Signature.

๐ธ Step 2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Toolsand click the Tools app. - In the list of actions choose Set multiple variables.
- In the t field map (drag from the panel or type):
{{replace(first(split(get(map(1.__headers; "value"; "name"; "stripe-signature"); 1); ",")); "t="; "")}} - In the v1 field map (drag from the panel or type):
{{replace(last(split(get(map(1.__headers; "value"; "name"; "stripe-signature"); 1); ",")); "v1="; "")}} - Click OK (or Save) to close the module window.
- 3Compute the signaturesha256(t + "." + body; "hex"; secret) โ the secret from Keychain.

๐ธ Step 3 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Toolsand click the Tools app. - In the list of actions choose Set variable.
- In the Variable name field type:
sig - In the Variable value field map (drag from the panel or type):
{{sha256(2.t + "." + 1.value; "hex"; "whsec_โฆ")}} - Click OK (or Save) to close the module window.
- 4Router: match โ continue, else โ 401Filter sig = v1; Fallback returns 401.

๐ธ Step 4.1 โ the red ring marks where to click 
๐ธ Step 4.2 โ the red ring marks where to click - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Flow Controland click the Flow Control app. - In the list of actions choose Router.
- Keep the defaults.
- Click OK (or Save) to close the module window.
- Click the small + coming out of the Router (to its right) to open a new route.
- In the search box type
JSONand click the JSON app. - In the list of actions choose Parse JSON.
- In the JSON string field map (drag from the panel or type):
{{1.value}} - Click OK (or Save) to close the module window.
- Click the ๐ง icon on the line between the last two modules โ Set up a filter.
- In the Label field type:
Valid signature. - In Condition set:
3.sig = 2.v1(pick the field from the panel, the operator from the list, and type a value). - Click OK โ a funnel icon appears on the line.
- Click the small + coming out of the Router (to its right) to open a new route.
- In the search box type
Webhooksand click the Webhooks app. - In the list of actions choose Webhook response.
- In the Status field type:
401 - In the Body field type:
{"error":"bad signature"} - Click OK (or Save) to close the module window.
- Click the ๐ง on the line of the last route โ Set up a filter.
- Type
Fallbackas the Label, and tick Fallback route: Yes. - Click OK โ this route runs only when no other route matched.
- 5Test with a sample eventStripe CLI: stripe trigger payment_intent.succeeded.

๐ธ Step 5 โ the red ring marks where to click - Click โถ Run once at the bottom left.
- When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
- The output should look roughly like this:
{ "type": "payment_intent.succeeded", "verified": true }