Start in minutes

Ready-made templates with Code

Pre-configured flows with Code, ready to activate in a few clicks.

Code in practice

How different teams use Code in everyday automations.

Illustration of Code being used in a Pluga automation
  • Fees by installment count, conditional cost-sharing between cost centers, specific taxation by service type: every transaction gets the same precision. The script calculates everything and the value is already normalized.

    Code financial rules
  • Leads captured from ads, forms and landing pages can arrive with irregular data: phone numbers without a country code, states written out in full, first and last name in a single field. Code cleans, standardizes and delivers everything ready for your CRM.

    Standardize leads with Code
  • Updated currency rates, shipping cost lookups in a logistics API, document validation and lookups in other systems: with Code, any accessible API can be used as part of the automation.

    Connect APIs with Code
  • Data blocks that arrive in one format and need to leave in another, composite strings that would have to become multiple fields, nested arrays that are hard to map: apply a script that adjusts the data exactly the way you need, right in the flow.

    Normalize payloads
  • Lead scoring, discount policies, commission tiers, support priority: apply your business's own logic inside the automation flow. Different inputs, predictable outputs, always.

    Apply a deterministic rule

All automations with Code

Trusted by over 10.000 amazing companies

Possibilities with Code on Pluga

Triggers and Actions of Code

The trigger is the event that starts the flow with Code, while the action is the task Pluga performs automatically on that app.

Premium Trigger
Code

Run Python

Start automation with a Python code snippet

  • Start a workflow from an API without a native integration
  • Retrieve data from an internal system as the starting point
  • Calculate or fetch information before the automation continues
Premium Trigger
Code

Run JavaScript

Start automation with a JavaScript code snippet

  • Fetch data from an external API as the starting point of your workflow
  • Define a scheduled polling interval to collect data
  • Retrieve and transform data before your automation continues
Premium Action
Code

Run Python

Run a Python code snippet within the automation

  • Start a workflow from an API without a native integration
  • Retrieve data from an internal system as the starting point
  • Calculate or retrieve information before the automation continues

Input data

Code Required

Output data

Premium Action
Code

Run JavaScript

Run a JavaScript code snippet within the automation

  • Retrieve data from an external API as the starting point of your workflow
  • Set a scheduled polling interval to collect data
  • Retrieve and transform data during your automation workflow

Input data

Code Required

Output data

How it works

How to integrate with Code

1. Trigger Source app When something happens…
2. Intermediate action Code Run Python, Run JavaScript
3. Action Target app Perform an action…
Works even better with

Boost Code with other workflow features

Combine multiple resources to build even smarter workflows with Code.

Agendador

Agendador

The Scheduler runs your workflows on the days and times you choose. Set the frequency by the hour, day, week, or month, adjust the time zone, and select which days of the week to include.

Webhooks

Webhooks

Webhooks bridge the systems you use, including those that aren’t yet available in Pluga’s app library. They send and receive data through a unique URL using POST, GET, PUT, PATCH, and DELETE requests.

Roteador

Roteador

The Router lets you create conditional paths within a single workflow. You define the criteria, and Pluga routes the execution to the right path based on the captured data.

Frequently Asked Questions

Everything you need to know to get started with Code on Pluga.

  • Code is a Premium Pluga feature that lets you add custom scripts directly to your automation flows. With it, you can query external APIs, apply your own business rules, process complex payloads and manipulate data to your exact needs, giving your integrations much more flexibility.

  • You can currently write your scripts using Python or JavaScript. Just pick the language your team is more familiar with to run calculations, transform strings or connect systems.

  • It works both ways! As a trigger, to start the automation flow by pulling data from an external API (via scheduled polling, for example). As an action, it can run in the middle or at the end of the flow to receive data, process it, calculate, format or send it to a closed system.

  • Yes! That's one of Code's biggest benefits. If the app, ERP or internal system you use has an accessible API, you can use Code to send or fetch information from it, integrating it with the more than 131 apps already natively available on Pluga.

  • Absolutely. Code becomes even more powerful when combined with features like Scheduler (to run your scripts and query APIs at specific time intervals), Webhooks (to receive and process complex payloads) and Router (to create conditional paths based on your code's result).