How to run JavaScript or Python Code

We will show you the 4 ways how to run Javascript or Python in Make.

  1. Use AWS Lambda and find more infos here: Boost Your Airtable Automation with AWS Lambda + API Gateway | by Yongjoon Kim | AWS Tip same applies for Make. You basically invoke a function with code in Lambda.
  2. Google cloud functions full how-to: Using JavaScript with Integromat | by John Thomson | Medium
  3. Use Pipedream you do a http request from Make to Pipedream - you can use this template: https://pipedream.com/@foryourit/add-api-s-to-zapier-with-pipedream-p_pWCYg5J/edit
  4. You can use 1saas in Make and insert your code there. 1SaaS.co Integration | Workflow Automation | Make

Feel free to post other ideas how to run code.

17 Likes

Hello @Wemakefuture
Thank for the sharing
I use cloudflare workers. That is a good way to deploy quickly :
=> Cloudflare Workers documentation · Cloudflare Workers docs
I’ve tried this module too : CustomJs
=> https://www.customjs.space/

1 Like

I like how customjs.space make up for a missing feature. Thanks for sharing.

2 Likes

Another way is to use a system like PythonAnywhere and run code there that is invoked through an ssh module. Standard out from your pythoncode can return data back to Make via ssh too.

3 Likes

great idea! Python boys in the house!

1 Like

@optimal_prime you can run Python in 1SaaS Python even with custom pip3 modules if needed.

Looks like I’m going to need to try this because I can’t login to my server via the SSH module anymore. I upgraded to the latest Ubuntu and made the fatal error of allowing it to reset the sshd config file.

Now I just get this error and there doesn’t seem to be anything I can change in the Make module to fix it.

sshd[39522]: Unable to negotiate with 54.80.47.193 port 7013: no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]

I’m losing my mind, it’s been hours trying to figure this out.

Googled it for you and came up with this.

1 Like

ScrapeNinja.net allows to execute Javascript, but only in cases when you need this Javascript for some complex post-processing of arbitrary HTML of a scraped website - and this, I think, is one of the major use cases of custom JS code with Make. Here is a video showcasing ScrapeNinja Javascript extractors launched by Make, to extract data from websites and putting this data into Google Sheets:
Web Scraping in Google Sheets: I replaced importXML with Make (Integromat) and ScrapeNinja - YouTube

Thanks for the effort, but it didn’t change anything on the SSH/Make side of things.

However, on my local machine, it is working again without needing to type the password in, so at least there’s progress!

Thanks again

There is no free way to use Javascript code in make.com ?

You can use 1SaaS gets you 25 executions for free.

1 Like

There are many Javascript functions for array, string and date manipulation, but there is no way to write custom Javascript code and execute it directly from a Make module. There are lots of ways around this but all involve third party approaches.

Make is a nocode/locode tool so the real question is why would you want to write custom Javascript if Make itself can do quite a bit already without needing to call Javascript.

3 Likes

Well custom JavaScript functions are coming to make on the enterprise plans only it seems.

3 Likes

It would be very comfortable to have them inside of make. But only on enterprise plans does not help a lot of my customers.

1 Like

This post was flagged by the community and is temporarily hidden.