Write Your Own Code: Unleash Your Creativity in NuCAL

  • Melih Abdulhayoglu
  • Mar 14, 2025
  • 131
writing custom code in NuCAL

We can’t do everything, but you can. That’s the power of NuCAL—an automation platform that gives you total control over your workflows. While NuCAL provides a vast set of built-in functions and actions, sometimes you need something custom—something tailored to your exact needs. That’s where custom code comes in.

With JavaScript Node and HTTP Node, you can go beyond predefined actions and build exactly what you envision. Whether it’s integrating with an external API, processing complex data, or implementing a custom business logic, NuCAL gives you the flexibility to write your own code and expand the platform’s capabilities.

How to Write Your Own Code in NuCAL

NuCAL offers two powerful nodes that allow you to inject custom functionality into your workflows:

1. JavaScript Node – Your Code, Your Logic

The JavaScript Node is where you can write custom logic directly within your workflow. This node lets you use JavaScript to manipulate data, perform calculations, or create advanced automation sequences.

Example Use Case: Custom String Formatting

Need to format a customer’s name before sending an email? No problem! Just drop a JavaScript Node into your workflow and write:

javascriptCopyEditreturn {
  fullName: `${$input.firstName} ${$input.lastName}`.toUpperCase()
};

This simple function ensures that all customer names are formatted correctly before being processed in the next workflow step.

2. HTTP Node – Connect to Any API

If you need to fetch data from a third-party service, update an external database, or trigger another system, the HTTP Node has you covered. This node allows you to make HTTP requests (GET, POST, PUT, DELETE) to any API, extending the power of your automation beyond NuCAL.

Example Use Case: Fetching Weather Data

Want to send users a personalized weather update based on their location? Use the HTTP Node to call a weather API like this:

jsonCopyEdit{
  "method": "GET",
  "url": "https://api.weather.com/v3/wx/conditions/current",
  "headers": {
    "Content-Type": "application/json"
  },
  "params": {
    "geocode": "37.7749,-122.4194", 
    "format": "json",
    "apiKey": "your_api_key"
  }
}

Now, your workflow can dynamically fetch weather data and personalize messages for users!

Why Use Custom Code in NuCAL?

Ultimate Flexibility – If NuCAL doesn’t have a built-in function for what you need, write your own.
Endless Integrations – Connect to any third-party service or internal system via APIs.
Advanced Logic – Process data, apply formulas, and build workflows exactly how you want them.
Empower Your Creativity – Take automation beyond templates and make it uniquely yours.

Master Your Workflow!

With NuCAL’s JavaScript and HTTP Nodes, you are in control. Whether you’re customizing logic, integrating external APIs, or creating powerful automation, you’re the master of your workflow.

So go ahead—write your own code, expand your automation, and make NuCAL work for you! 🚀