Session 7 / 15๐Ÿ”Žืขื‘

How to use the guide

The guide has three levels of help for each task. Start at the first level and go down only if you need to:

  1. Level 1 โ€” direction: what you need to achieve, and ready prompts for AI tools that help without giving the answer.
  2. Level 2 โ€” steps: an ordered list of what to click and what to type in Make.
  3. Level 3 โ€” the full solution: on the solution page.
๐Ÿ’ก TipAlways Run once after every module you add, and check the bubble above it. That way you know exactly where things go wrong.

Step 0 โ€” accounts and setup

๐Ÿ“Š A sales sheet

30 rows: date, agent, product, amount, region.

๐Ÿงช Regex101

Testing expressions. https://regex101.com

๐Ÿ’ป Make Code

Available on paid plans. On Free we work with functions only. https://apps.make.com/code

Task 1: Array functions

๐ŸŽฏ What you need to achieve

Compute KPIs without an Iterator โ€” functions only.

  1. Search Rows on the sales sheet โ†’ Array aggregator.
  2. Set multiple variables: total, deals, avg, agents (unique), topDeal (the highest amount).
  3. sumCenter: the sum only for the Center region with a filtered map.
  4. Check against a manual calculation in the sheet.

๐Ÿค– Prompts for AI tools (ChatGPT / Claude / Gemini)

A "private tutor" prompt โ€” when you are stuck:

I am a student in the course "AI Business Automation with Make".
I am working on the task: "Array functions".
The requirements:
1. Search Rows on the sales sheet โ†’ Array aggregator.
2. Set multiple variables: total, deals, avg, agents (unique), topDeal (the highest amount).
3. sumCenter: the sum only for the Center region with a filtered map.
4. Check against a manual calculation in the sheet.

What I have done so far: [describe briefly]
Where I got stuck / the full error message: [paste]
What the output bubble of the last module shows (Output bundle): [paste]

Please explain step by step what to check and what to change, with the exact module and field names in Make.
Do not give me the whole solution at once โ€” first one hint, and if I ask, the next step.

A concept-explanation prompt:

Explain to me in simple words, as to a beginner, the concepts that appear in the task "Array functions" in Make.
For each concept: a one-sentence definition, a short business example, and where you see it in Make's interface.
๐Ÿชœ Level 2 โ€” 4 ordered steps: what to click and what to type
  1. Search
    Search Rows without a filter (or by date).
  2. Aggregator
    Array aggregator, Source: Search Rows, fields: agent, amount, region.
  3. KPIs
    total={{sum(map(2.array; "amount"))}}, deals={{length(2.array)}}, avg={{round(total/deals)}}, agents={{join(distinct(map(2.array; "agent")); ", ")}}.
  4. Filtered
    sumCenter={{sum(map(2.array; "amount"; "region"; "Center"))}}.

โœ… How to know you succeeded

๐Ÿ› ๏ธ If something does not work

SymptomWhat to do
sum returns an errorText values with a currency sign or commas โ€” clean them in the sheet or parseNumber.
agents appears as [object]map on a whole collection โ€” specify a field.

Task 2: The Text parser on order emails

๐ŸŽฏ What you need to achieve

Extract an order number, an amount and a date from text in a fixed format.

  1. Compose a string with 3 example emails (or Gmail Watch emails).
  2. Text parser โ†’ Match pattern with named groups.
  3. Convert amount to a number and date to a date.
  4. Filter: only if an order was found.

๐Ÿค– Prompts for AI tools (ChatGPT / Claude / Gemini)

A "private tutor" prompt โ€” when you are stuck:

I am a student in the course "AI Business Automation with Make".
I am working on the task: "The Text parser on order emails".
The requirements:
1. Compose a string with 3 example emails (or Gmail Watch emails).
2. Text parser โ†’ Match pattern with named groups.
3. Convert amount to a number and date to a date.
4. Filter: only if an order was found.

What I have done so far: [describe briefly]
Where I got stuck / the full error message: [paste]
What the output bubble of the last module shows (Output bundle): [paste]

Please explain step by step what to check and what to change, with the exact module and field names in Make.
Do not give me the whole solution at once โ€” first one hint, and if I ask, the next step.

A concept-explanation prompt:

Explain to me in simple words, as to a beginner, the concepts that appear in the task "The Text parser on order emails" in Make.
For each concept: a one-sentence definition, a short business example, and where you see it in Make's interface.
๐Ÿชœ Level 2 โ€” 4 ordered steps: what to click and what to type
  1. Input
    Tools โ†’ Compose a string with the order text.
  2. Regex
    Text parser โ†’ Match pattern โ†’ the pattern from the lecture โ†’ Run once.
  3. Conversions
    amount={{parseNumber(replace(2.amount; ","; emptystring))}}, date={{parseDate(2.date; "DD/MM/YYYY")}}.
  4. Filter
    order Exists.

โœ… How to know you succeeded

๐Ÿ› ๏ธ If something does not work

SymptomWhat to do
The pattern doesn't matchTypographic quotes/dots vs. plain ones โ€” use .? instead.
amount with a commareplace before parseNumber.

Task 3: An HTML table and a CSV

๐ŸŽฏ What you need to achieve

Produce an HTML table for the email and an attached CSV file.

  1. A Text aggregator with a row per sale (<tr>).
  2. A CSV with headers and a BOM.
  3. Gmail with the table in the body and the CSV attached.
  4. Open the CSV in Excel and check the characters.

๐Ÿค– Prompts for AI tools (ChatGPT / Claude / Gemini)

A "private tutor" prompt โ€” when you are stuck:

I am a student in the course "AI Business Automation with Make".
I am working on the task: "An HTML table and a CSV".
The requirements:
1. A Text aggregator with a row per sale (&lt;tr&gt;).
2. A CSV with headers and a BOM.
3. Gmail with the table in the body and the CSV attached.
4. Open the CSV in Excel and check the characters.

What I have done so far: [describe briefly]
Where I got stuck / the full error message: [paste]
What the output bubble of the last module shows (Output bundle): [paste]

Please explain step by step what to check and what to change, with the exact module and field names in Make.
Do not give me the whole solution at once โ€” first one hint, and if I ask, the next step.

A concept-explanation prompt:

Explain to me in simple words, as to a beginner, the concepts that appear in the task "An HTML table and a CSV" in Make.
For each concept: a one-sentence definition, a short business example, and where you see it in Make's interface.
๐Ÿชœ Level 2 โ€” 4 ordered steps: what to click and what to type
  1. Table
    Text aggregator (Source: Search Rows), Text: <tr><td>{{agent}}</td>โ€ฆ</tr>.
  2. CSV
    CSV โ†’ Create CSV (advanced) โ†’ Source: Search Rows? (or Array aggregator) โ†’ fields.
  3. BOM
    File data: {{"\uFEFF" + 6.text}} (or the Include BOM option if it exists).
  4. Gmail
    HTML content with <table>, Attachments: file name sales-week-{{formatDate(now; "W")}}.csv, Data: the CSV.

โœ… How to know you succeeded

๐Ÿ› ๏ธ If something does not work

SymptomWhat to do
Gmail was sent 30 timesThe Text aggregator/CSV isn't set with the right source.
The CSV is gibberish in ExcelThe BOM is missing.

Task 4: A full weekly sales report

๐ŸŽฏ What you need to achieve

Complete the project including a comparison with last week.

  1. Schedule Sunday 08:00.
  2. Search for the current week and the previous week (two searches + aggregators).
  3. KPIs + percent change + top agent.
  4. An HTML email + CSV; a summary on Telegram.
  5. (Optional) a Make Code version of the KPI calculation.

๐Ÿค– Prompts for AI tools (ChatGPT / Claude / Gemini)

A "private tutor" prompt โ€” when you are stuck:

I am a student in the course "AI Business Automation with Make".
I am working on the task: "A full weekly sales report".
The requirements:
1. Schedule Sunday 08:00.
2. Search for the current week and the previous week (two searches + aggregators).
3. KPIs + percent change + top agent.
4. An HTML email + CSV; a summary on Telegram.
5. (Optional) a Make Code version of the KPI calculation.

What I have done so far: [describe briefly]
Where I got stuck / the full error message: [paste]
What the output bubble of the last module shows (Output bundle): [paste]

Please explain step by step what to check and what to change, with the exact module and field names in Make.
Do not give me the whole solution at once โ€” first one hint, and if I ask, the next step.

A concept-explanation prompt:

Explain to me in simple words, as to a beginner, the concepts that appear in the task "A full weekly sales report" in Make.
For each concept: a one-sentence definition, a short business example, and where you see it in Make's interface.
๐Ÿชœ Level 2 โ€” 6 ordered steps: what to click and what to type
  1. Trigger
    Days of the week: Sunday 08:00.
  2. This week
    Search (date after addDays(now;-7)) โ†’ Array aggregator.
  3. Last week
    Search (between -14 and -7) โ†’ Array aggregator.
  4. KPIs
    total, prev, change={{round((total-prev)/prev*100)}}.
  5. Leader
    Make Code (the JS from the lecture) or Group by.
  6. Output
    Gmail + Telegram.

โœ… How to know you succeeded

๐Ÿ› ๏ธ If something does not work

SymptomWhat to do
prev = 0 โ†’ division by zeroif(prev = 0; "โ€”"; โ€ฆ).
Make Code: input undefinedMap the array to an input field named rows.

Before you submit