Use the power of JavaScript codes... still no code!

Most people scroll past Execute Script because of the name. It sounds like something for developers.

It isn't. Open it, click the AI button, and just tell ZAIA what you need — in your own words, the way you'd explain it to a colleague:

I'll pass two arrays: the rows from my Sheet and the records from our HR system, plus the field that matches a person in both. Give me back three lists — who to create, who to update, who to deactivate. For the updates, tell me which fields changed.

That's it. ZAIA configures the action and you get a box: your inputs on one side, the outputs you asked for on the other, ready to map into the rest of your flow like any other action.

You didn't write code. You described what you wanted. It's still no-code — you just used the one action that can do anything.

Think of it as building your own custom action, on the spot, for whatever you need today.

Things people are building with it

Beautiful HTML, from your data

Pass in a collection and say what you want it to look like. You get clean HTML back, ready to drop straight into a Send Email action — or anywhere else that takes HTML.

  • "Here are my invoice line items. Turn them into a styled table with alternating row colours, a total row at the bottom, and make it look right on mobile."

  • "Here's a list of tasks grouped by owner. Build me a daily digest email with a heading per person and their tasks underneath."

No fighting with HTML in a text field. You describe the layout, you get the markup.

Comparing two lists

  • Reconcile a Sheet against another system and get back exactly who to create, update and deactivate.

  • Find duplicate contacts where the same phone number is written five different ways.

Reshaping data

  • Turn a nested API response into flat rows with tidy columns for a Google Sheet.

  • Build a request body with a dynamic list of items, so you send one call instead of one per item. (There's a mini flow for that one: Dynamic Collection Body Builder.)

Tidying up messy data

  • Match phone numbers whatever the format — country code, spaces, brackets, dashes.

  • Read a CSV or an email body where fields have commas inside quotes.

Business-time maths

  • Working hours between two timestamps, skipping weekends, holidays and after-hours — exactly what an SLA needs.

  • "The third business day of next month, skipping public holidays" for a payment run.

Checking a whole batch before you write it

  • Run 200 rows past 8 rules and get back pass or fail with a reason for each — so your flow decides once, before anything is written.

Why it's worth trying

  • One box instead of many actions. Faster to run, and much easier to read when you open the flow again in six months.

  • It doesn't care how much data you have. Two items or twenty thousand, your canvas looks the same.

  • It's a proper action. Named inputs, named outputs. Whoever picks up your flow next just maps the box.

  • Same result every time. So you can test it once and trust it.

One thing that makes a big difference

The clearer you explain it, the better the result. And the single most useful thing you can do is paste in an example of the data you'll be passing — a couple of records is plenty.

It's the difference between ZAIA guessing your structure and knowing it. With an example, the box it builds fits your data exactly: your field names, your date format, your quirks. Without one, you'll usually spend a round or two fixing field names.

So instead of just describing it, add something like:

Here's what I'll pass in the rows input:

[
  { "employeeId": "E-1042", "firstName": "Ann",  "department": "Sales",   "startDate": "2026-08-17T09:00:00+02:00" },
  { "employeeId": "E-1088", "firstName": "Bob",  "department": "Support", "startDate": "2026-08-19T14:30:00+02:00" }
]

And I want back a list of everyone in Sales, with their start date as 17 Aug 2026.

Same for the output — if you know the shape you need, show it. If it's feeding an API, paste that API's example body. If it's going into an email, say what the table should look like.

Two more small habits worth picking up:

  • Mention the messy cases you know about. Blank fields, duplicates, dates that sometimes arrive empty. If you don't mention them, they get handled however ZAIA guesses.

  • Ask for a count or a short summary as one of your outputs. Then you can see at a glance in the run log that it did what you expected.

Give it a go

Think of something you'd love to add to a flow but weren't sure how.

Open Execute Script, hit the AI button, and describe it. Say what you'll pass in and what you want back.

Then tell us in the comments what you made. We'd love to see it.