Blueprint files + how to compare with the solution
- โฌ๏ธ S08 - Mini-CRM on Supabase โ Webhook โ Router: Supabase Create a Row โ 201 / Search Rows โ Aggregator โ 200
All the files and import instructions: the Blueprint files page.
For every task you will find four layers here: an animated click simulation, an illustrated step-by-step guide (a marked screenshot for every step + "what to click and what to type" instructions), the final result and a table of common problems.
- Open a new scenario: Scenarios โ Create a new scenario.
- Click โฏ (More) in the bottom bar โ Import Blueprint.
- Choose a JSON file you saved (Export Blueprint) and click Save.
- Modules that need a connection will be marked โ open each one and choose your connection.
- A Blueprint does not include passwords or keys โ you always create the connections again.
Solution to Part A โ multiple-choice questions
- What characterizes a data store?
โ A small table inside Make with a key and a data structure
For state and dedupe. - A linked record in Airtable:
โ A relation between records in different tables
Like a foreign key. - Which query returns a total per stage?
โ SELECT stage, SUM(value) FROM deals GROUP BY stage
GROUP BY. - Where do you keep a Supabase service_role key?
โ In a connection / Keychain
A key with full permissions! - RETURNING id in an INSERT:
โ Returns the new record's id
Useful for an API response. - When do you move from Sheets to a DB?
โ When there is a lot of data, relations, and parallel work
Scale and integrity. - Check the existence of a record returns:
โ Whether a key exists (Boolean)
For checking duplicates. - Airtable Search Records with a formula:
โ Filters on Airtable's side
Saves downloading.
Solution to task 1: A data store as memory
The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.
๐ธ 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.
- 1Data structureData stores โ Add data store โ Data structure: Add โ fields.

๐ธ Step 1 โ the red ring marks where to click - Open eu2.make.com/datastores in your browser (the โData storesโ screen).
- On the screen you will see: Add data store ยท Name: leads_seen ยท Data structure: email (Text) ยท count (Number) ยท firstSeen (Date)
- Click the Add button.
- 2In the scenarioAfter the clean-up: Data store โ Get a record (key: email).

๐ธ 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
Data storeand click the Data store app. - In the list of actions choose Get a record.
- In the Data store field type:
leads_seen - In the Key field map (drag from the panel or type):
{{email}} - Click OK (or Save) to close the module window.
- 3Filtercount Does not exist.

๐ธ Step 3.1 โ the red ring marks where to click 
๐ธ Step 3.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 Compose a string.
- In the Text field map (drag from the panel or type):
New lead: {{email}} - 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:
New. - In Condition set:
count ยท Basic: Does not exist(pick the field from the panel, the operator from the list, and type a value). - Click OK โ a funnel icon appears on the line.
- 4UpdateAdd/replace a record: key email, count = ifempty(โฆ)+1, firstSeen = ifempty(โฆ; now).

๐ธ 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
Data storeand click the Data store app. - In the list of actions choose Add/replace a record.
- In the Key field map (drag from the panel or type):
{{email}} - In the count field map (drag from the panel or type):
{{ifempty(2.count; 0) + 1}} - In the firstSeen field map (drag from the panel or type):
{{ifempty(2.firstSeen; now)}} - 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:
{ "key": "dana@acme.co.il", "count": 1 }
๐ ๏ธ Common problems and how to fix them
| Symptom | Fix |
|---|---|
| Get a record stops when there is no record | In the settings: make sure the module returns an empty bundle, or use Check the existence. |
| The key doesn't match | Capital letters/spaces. |
Solution to task 2: An Airtable CRM
The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.
๐ธ 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.
- 1BaseContacts (Name, Email, Company), Deals (Name, Contact โถ link, Stage, Value).

๐ธ Step 1 โ the red ring marks where to click - Open airtable.com in your browser (the โCRM Baseโ screen).
- On the screen you will see: Contacts: Name ยท Email ยท Company ยท Deals: Name ยท Contact (link) ยท Stage ยท Value
- 2Tokenairtable.com/create/tokens โ scopes data.records:read/write, schema.bases:read โ Base.

๐ธ Step 2 โ the red ring marks where to click - Open airtable.com/create/tokens in your browser (the โCreate personal access tokenโ screen).
- On the screen you will see: Scopes: data.records:read ยท data.records:write ยท schema.bases:read ยท Access: CRM Base
- Click the Create token button.
- 3UpsertAirtable โ Upsert a Record (or Search โ Router โ Create/Update).

๐ธ Step 3.1 โ the red ring marks where to click 
๐ธ Step 3.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:
S08 - Airtable. - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
Airtableand click the Airtable app. - In the list of actions choose Upsert a Record.
- In the Base field type:
CRM - In the Table field type:
Contacts - In the Fields to merge on field type:
Email - Click OK (or Save) to close the module window.
- 4DealAirtable โ Create a Record โ Contact: an array with the id.

๐ธ 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
Airtableand click the Airtable app. - In the list of actions choose Create a Record.
- In the Table field type:
Deals - In the Contact field map (drag from the panel or type):
{{1.id}} - In the Stage field type:
Proposal - In the Value field type:
18000 - 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:
{ "id": "recA1b2โฆ", "fields": { "Stage": "Proposal" } }
๐ ๏ธ Common problems and how to fix them
| Symptom | Fix |
|---|---|
| INVALID_MULTIPLE_CHOICE_OPTIONS | A Stage value that doesn't exist in the single select. |
| 403 | The token wasn't given access to this base. |
Solution to task 3: Supabase + an API
The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.
๐ธ 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.
- 1TableSupabase โ SQL Editor โ CREATE TABLE.

๐ธ Step 1 โ the red ring marks where to click - Open supabase.com/dashboard/project/โฆ/sql in your browser (the โSQL Editorโ screen).
- On the screen you will see: create table deals (id bigserial primary key, email text, title text, value numeric, stage text, created_at timestamptz default now());
- Click the Run button.
- 2ConnectionPostgreSQL โ Execute a query โ Add connection (Database details โ Connection string).

๐ธ 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:
S08 - CRM API. - Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
PostgreSQLand click the PostgreSQL app. - In the list of actions choose Execute a query.
- Keep the defaults.
- Click OK (or Save) to close the module window.
- In the PostgreSQL module click Add next to the Connection field โ Create a connection.
- Fill in:
Host ยท Port 5432 ยท Database postgres ยท User ยท Password, and confirm (Save / Sign in with Google, etc.).
- 3POSTWebhook โ auth โ Execute a query with parameters โ Create JSON โ 201.

๐ธ Step 3.1 โ the red ring marks where to click 
๐ธ Step 3.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 Custom webhook.
- In the Webhook field type:
POST /deal - 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 key. - In Condition set:
x-api-key ยท Equal to ยท โฆ(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 module number 1 to open its settings.
- In the Query field type:
insert into deals (email,title,value,stage) values ($1,$2,$3,$4) returning id - In the Parameters field map (drag from the panel or type):
{{email}}, {{title}}, {{value}}, {{stage}} - Click OK.
- Click the + (the big circle in the middle, or the half-circle to the right of the last module).
- In the search box type
JSONand click the JSON app. - In the list of actions choose Create JSON.
- In the id field map (drag from the panel or type):
{{id}} - 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
Webhooksand click the Webhooks app. - In the list of actions choose Webhook response.
- In the Status field type:
201 - Click OK (or Save) to close the module window.
- 4GETWebhook โ
select * from deals where email = $1โ Array aggregator โ Router 200/404.
๐ธ Step 4.1 โ the red ring marks where to click 
๐ธ Step 4.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:
S08 - GET deals. - 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.
- Keep the defaults.
- 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
PostgreSQLand click the PostgreSQL app. - In the list of actions choose Execute a query.
- In the Query field type:
select * from deals where email = $1 - 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
Flow Controland click the Flow Control app. - In the list of actions choose Array aggregator.
- Keep the defaults.
- 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
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 - 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:
404 - 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.
๐ฌ The final result โ run the simulation
๐ ๏ธ Common problems and how to fix them
| Symptom | Fix |
|---|---|
| connection refused / timeout | Wrong host/port or SSL off. |
| permission denied for table | The connection's user has no permissions โ use postgres or set up GRANT. |
Solution to task 4: A daily pipeline report
The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.
๐ธ 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.
- 1TriggerEvery day 08:00.

๐ธ 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:
S08 - Daily Pipeline. - Click the clock ๐ in the bottom bar (next to the ON/OFF switch).
- In the schedule settings choose:
Every day ยท 08:00and click OK.
- 2QueryExecute a query: GROUP BY.

๐ธ 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
PostgreSQLand click the PostgreSQL app. - In the list of actions choose Execute a query.
- In the Query field type:
select stage, count(*) deals, sum(value) total from deals group by stage - Click OK (or Save) to close the module window.
- 3TextText aggregator:
{{stage}}: {{deals}} ยท ILS {{formatNumber(total;0;".";",")}}.
๐ธ 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 Text aggregator.
- In the Text field map (drag from the panel or type):
{{stage}}: {{deals}} ยท โช{{formatNumber(total;0;".";",")}} - Click OK (or Save) to close the module window.
- 4StuckA second query โ Text aggregator โ the same message.

๐ธ 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
PostgreSQLand click the PostgreSQL app. - In the list of actions choose Execute a query.
- In the Query field type:
select โฆ where updated_at < now() - interval '14 days' - 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 Text aggregator.
- Keep the defaults.
- 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
Telegram Botand click the Telegram Bot app. - In the list of actions choose Send a Text Message or a Reply.
- Keep the defaults.
- 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:
{ "text": "proposal: 4 ยท โช72,000\nwon: 2 ยท โช56,000" }
๐ ๏ธ Common problems and how to fix them
| Symptom | Fix |
|---|---|
| Telegram was sent 4 times | The Text aggregator is missing. |
| total arrives as text | Postgres numeric โ parseNumber. |
Solution to the bonus challenge
A source / last_synced_at field: when you update from one side, mark source = make and last_synced_at = now. On the other side โ a filter that ignores changes whose updated_at โค last_synced_at + a few seconds. Without it, every update "bounces" the other side forever.