Skip to content
Riccardo Vandra
0:10:56
144
6
0
Last update : 11/09/2024

🚀 Supercharge Your Workflows: Mastering Custom Code in Make.com (For Free!)

Table of Contents

Ever wished you could unlock the power of custom code in Make.com without the hefty enterprise price tag? You’re in the right place! 🪄 This breakdown reveals how to run your own code, opening a world of possibilities for automating even the most complex tasks.

💡 Why Custom Code Matters

Think of custom code as your secret weapon against tedious data manipulation. ⚔️ Imagine effortlessly:

  • Dynamically replacing variables in templates: Say goodbye to manually updating countless fields!
  • Streamlining complex workflows: Transform 20 operations into a single, elegant code snippet.

Real-life Example: Personalizing mass emails with custom variables (name, city, purchase history) becomes a breeze!

🤯 Surprising Fact: Did you know that custom code can often achieve the same result as dozens of Make.com modules? Talk about efficiency!

💡 Pro Tip: Start with simple code snippets to get comfortable before tackling more complex tasks.

🧰 Setting Up Your Free Code-Running Machine

Don’t worry, this isn’t as intimidating as it sounds! We’ll use a tool called Render to create a custom server:

  1. Sign up for a free Render account: https://render.com/
  2. Choose the free instance type.
  3. Add three environment variables:
    • PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium-browser
    • PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
    • Create a secure token (any random string will do) and add it as an environment variable.
  4. Deploy your service! This takes just a few minutes.

🤯 Surprising Fact: You can even run web scrapers on your Render server, adding another layer of automation to your toolkit!

💡 Pro Tip: Use a service like UptimeRobot (https://uptimerobot.com/) to keep your server running smoothly 24/7.

🔌 Connecting Your Server to Make.com

Now for the magic! ✨ Let’s link your server to a Make.com scenario:

  1. Add an HTTP module: Choose “Make a request.”
  2. Set the URL to your Render server’s address and the endpoint to /execute.
  3. Add an Authorization header with the secure token you created earlier.
  4. In the body, write your JavaScript code!

Real-life Example: Let’s say you want to convert text to uppercase. Your code would look like this:

function processTemplate(input) {
  return input.toUpperCase();
}

🤯 Surprising Fact: You can use any JavaScript library within your code, expanding your automation possibilities even further!

💡 Pro Tip: Test your code thoroughly within Make.com to ensure it’s working as expected.

📝 Real-World Scenario: Dynamic Template Replacement

Remember our email personalization example? Here’s how to achieve it with custom code:

  1. Define your template: “Hello {name}, welcome to {city}!”
  2. Create an array of variables: [{ "name": "John", "city": "New York" }]
  3. Write your JavaScript code: This code will find and replace the variables in your template.
function processTemplate(template, variables) {
  for (const variable of variables) {
    for (const key in variable) {
      const regex = new RegExp(`{${key}}`, 'g');
      template = template.replace(regex, variable[key]);
    }
  }
  return template;
}

🤯 Surprising Fact: This approach is significantly faster and more efficient than using multiple Make.com modules!

💡 Pro Tip: Use online JavaScript editors and AI tools to help you write and debug your code.

🎉 Unlocking a World of Automation

Congratulations! You’ve just unlocked a powerful new skillset. 🔓 With custom code in your arsenal, you can:

  • Automate tasks previously considered impossible.
  • Build incredibly efficient and scalable workflows.
  • Become a true Make.com power user!

Remember: Start small, experiment, and don’t be afraid to ask for help. The possibilities are truly endless!

Other videos of

Riccardo Vandra
0:11:53
27
2
1
Last update : 19/04/2025
Riccardo Vandra
0:09:38
9
0
0
Last update : 26/02/2025
Riccardo Vandra
0:18:52
30
1
0
Last update : 08/02/2025
Riccardo Vandra
0:20:40
26
8
1
Last update : 08/01/2025
Riccardo Vandra
2:56:31
3 715
194
18
Last update : 30/10/2024
Riccardo Vandra
0:10:51
469
17
2
Last update : 18/09/2024
Riccardo Vandra
0:05:36
361
15
2
Last update : 30/08/2024
Riccardo Vandra
0:20:18
284
11
0
Last update : 30/08/2024
Riccardo Vandra
0:04:37
74
2
0
Last update : 30/08/2024