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

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: Assign by workload and availability

๐Ÿ”ฅ Advancedโฑ๏ธ ~40 min

๐ŸŽฌ The scenario

Instead of a blind queue โ€” assign to the available rep with the fewest open leads.

๐ŸŽฏ The requirements

  1. Availability table.
  2. Count open leads.
  3. Pick the minimum.

๐ŸŽฏ 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
{
  "owner": "Ron",
  "open": 2
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • Array aggregator + sort.

Search agents (available = true) โ†’ count for each (or one query with GROUP BY) โ†’ first(sort(โ€ฆ; "asc"; "open")).name.

๐ŸŽฌ 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.

  1. 1
    Available agents
    Search: agents with available = true.
    Marked screenshot โ€” step 1: Available agents
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Available agents
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C13 - Load-based assignment.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Webhooks and click the Webhooks app.
    5. In the list of actions choose Custom webhook.
    6. In the Webhook field type: lead
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type PostgreSQL and click the PostgreSQL app.
    10. In the list of actions choose Execute a query.
    11. In the Query field type: select a.name, count(l.id) open from agents a left join leads l on l.owner = a.name and l.status = 'open' where a.available group by a.name
    12. Click OK (or Save) to close the module window.
  2. 2
    Aggregate and pick the minimum
    Array aggregator โ†’ first(sort(โ€ฆ; "asc"; "open")).name.
    Marked screenshot โ€” step 2: Aggregate and pick the minimum
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: Aggregate and pick the minimum
    ๐Ÿ“ธ Step 2.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Array aggregator.
    4. In the Source Module field type: PostgreSQL - Execute a query [2]
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Tools and click the Tools app.
    8. In the list of actions choose Set variable.
    9. In the Variable name field type: owner
    10. In the Variable value field map (drag from the panel or type): {{first(sort(3.array; "asc"; "open")).name}}
    11. Click OK (or Save) to close the module window.
  3. 3
    Assign the lead
    Insert with owner.
    Marked screenshot โ€” step 3: Assign the lead
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Assign the lead
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type PostgreSQL and click the PostgreSQL app.
    3. In the list of actions choose Insert a row.
    4. In the Table field type: leads
    5. In the owner field map (drag from the panel or type): {{4.owner}}
    6. Click OK (or Save) to close the module window.
    7. Click โ–ถ Run once at the bottom left.
    8. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    9. The output should look roughly like this:
      {
       "owner": "Ron",
       "open": 2
      }

Experts: UTM and attribution

๐Ÿ”ฅ๐Ÿ”ฅ Expertsโฑ๏ธ ~50 min

๐ŸŽฌ The scenario

Know which campaign brought in the deals.

๐ŸŽฏ The requirements

  1. Capture UTM from the form.
  2. Save in the CRM.
  3. Revenue report by campaign.

๐ŸŽฏ 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
{
  "rows": [
    {
      "utm_campaign": "fb-oak-nov",
      "sum": 84000
    }
  ]
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • Hidden form fields filled from the URL.

Tally hidden fields โ†’ utm_* โ†’ save. When a deal closes โ€” JOIN deals with leads โ†’ sum(value) group by utm_campaign. That way you know which advertising dollar returned the most.

๐ŸŽฌ 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.

  1. 1
    UTM fields in the form
    Hidden fields in Tally: utm_source, utm_campaign.
    Marked screenshot โ€” step 1: UTM fields in the form
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. Open tally.so/forms in your browser (the โ€œLead formโ€ screen).
    2. On the screen you will see: Hidden fields: utm_source ยท utm_medium ยท utm_campaign
    3. Click the Publish button.
  2. 2
    Save in the CRM
    Insert into leads including the UTM.
    Marked screenshot โ€” step 2: Save in the CRM
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: Save in the CRM
    ๐Ÿ“ธ Step 2.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C13 - Attribution.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Webhooks and click the Webhooks app.
    5. In the list of actions choose Custom webhook.
    6. In the Webhook field type: tally
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type PostgreSQL and click the PostgreSQL app.
    10. In the list of actions choose Insert a row.
    11. In the Table field type: leads
    12. In the utm_campaign field map (drag from the panel or type): {{1.utm_campaign}}
    13. In the utm_source field map (drag from the panel or type): {{1.utm_source}}
    14. Click OK (or Save) to close the module window.
  3. 3
    A revenue-by-campaign report
    JOIN deals with leads โ†’ sum(value) group by utm_campaign.
    Marked screenshot โ€” step 3: A revenue-by-campaign report
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: A revenue-by-campaign report
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C13 - Campaign report.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type PostgreSQL and click the PostgreSQL app.
    5. In the list of actions choose Execute a query.
    6. In the Query field type: select l.utm_campaign, sum(d.value) from deals d join leads l on l.email = d.email where d.stage = 'won' group by 1 order by 2 desc
    7. Click OK (or Save) to close the module window.
    8. Click โ–ถ Run once at the bottom left.
    9. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    10. The output should look roughly like this:
      {
       "rows": [
        {
         "utm_campaign": "fb-oak-nov",
         "sum": 84000
        }
       ]
      }

Boss challenge: AI SDR โ€” a personal outreach draft

๐Ÿ‘‘ Boss challengeโฑ๏ธ ~60 min

๐ŸŽฌ The scenario

For every hot lead โ€” an outreach email draft tailored to the company and the need, for the rep to approve.

๐ŸŽฏ The requirements

  1. Quick research (company website).
  2. Draft in the rep's Gmail.
  3. No automatic sending.

๐ŸŽฏ 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
{
  "draftId": "r-91โ€ฆ"
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • HTTP GET to the homepage โ†’ HTML to text โ†’ AI.

HTTP (site by domain) โ†’ Text parser HTML to text โ†’ substring โ†’ AI: "Write an 80-word outreach emailโ€ฆ" โ†’ Gmail Create a draft (the rep's connection) โ†’ message to the rep "draft waiting". Respect robots and the sites' terms of use.

๐ŸŽฌ 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.

  1. 1
    Short research on the company
    HTTP to the website by domain โ†’ HTML to text.
    Marked screenshot โ€” step 1: Short research on the company
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Short research on the company
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C13 - AI SDR.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Webhooks and click the Webhooks app.
    5. In the list of actions choose Custom webhook.
    6. In the Webhook field type: hot-lead
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type HTTP and click the HTTP app.
    10. In the list of actions choose Make a request.
    11. In the URL field map (drag from the panel or type): https://{{last(split(1.email; "@"))}}
    12. Click OK (or Save) to close the module window.
    13. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    14. In the search box type Text parser and click the Text parser app.
    15. In the list of actions choose HTML to text.
    16. In the HTML field map (drag from the panel or type): {{substring(2.data; 0; 20000)}}
    17. Click OK (or Save) to close the module window.
  2. 2
    An AI outreach draft
    Prompt: an 80-word email tailored to the company and the need.
    Marked screenshot โ€” step 2: An AI outreach draft
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type OpenAI and click the OpenAI app.
    3. In the list of actions choose Create a completion.
    4. In the Prompt field map (drag from the panel or type): Write an 80-word outreach email to {{1.name}} from {{1.company}}. Info from the website: {{substring(3.text; 0; 3000)}}
    5. Click OK (or Save) to close the module window.
  3. 3
    A draft in the rep's inbox โ€” no sending
    Gmail Create a draft with the rep's connection + a message to the rep.
    Marked screenshot โ€” step 3: A draft in the rep's inbox โ€” no sending
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: A draft in the rep's inbox โ€” no sending
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Gmail and click the Gmail app.
    3. In the list of actions choose Create a draft.
    4. In the To field map (drag from the panel or type): {{1.email}}
    5. In the Content field map (drag from the panel or type): {{4.result}}
    6. Click OK (or Save) to close the module window.
    7. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    8. In the search box type Telegram Bot and click the Telegram Bot app.
    9. In the list of actions choose Send a Text Message or a Reply.
    10. In the Text field map (drag from the panel or type): โœ๏ธ A draft is waiting for you for {{1.company}}
    11. Click OK (or Save) to close the module window.
    12. Click โ–ถ Run once at the bottom left.
    13. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    14. The output should look roughly like this:
      {
       "draftId": "r-91โ€ฆ"
      }