Enterprise modding

Extend Momentum with custom Actions

Actions let you write server-side code to automate workflows, integrate third‑party services, and “mod” Momentum without managing your own backend. Built for high performance and zero cold start.

Trigger: storage/invoices:c
async (event, payload, momentum, require) => {
  const text = await momentum.storage.text(event.path);
  const extracted = await momentum.ai.json(
    `Convert the following context info into the following JSON: {
      from: string,
      total: number,
      tax: number,
      date: YYYY-MM-DD,
      notes: string
    }`, text);
    return await momentum.data.create('Finances/Invoices', {
      file: event.path
      ...extracted,
    });
  }

Everything you need to automate your business logic

Actions give you a full-featured scripting environment, deeply integrated with the Momentum platform. Use the same data models, permissions, and APIs your users see in the UI—just automated and programmable.

  • Write server-side code to “mod” Momentum & create custom functionality
  • JavaScript-based with the Momentum client library to minimize the learning curve
  • Install & consume NPM and Docker-based libraries from within Actions
  • Trigger via events, CRON jobs, or REST requests
  • Kept in memory for high performance and 0 cold start time

JavaScript first

Use JavaScript and the Momentum client library to work with data, files, messaging, AI, and more. If you can write a simple script, you can build an Action.

Use your favorite libraries

Pull in custom libraries and NPM packages, or connect to services running in Docker. Ship complex integrations without provisioning extra infrastructure.

Zero cold start

Actions stay in memory so they respond instantly. Ideal for interactive workflows and high-volume event processing where latency matters.

Integrated security

Actions respect Momentum’s permission model, audit logging, and compliance settings, so you can automate safely in regulated environments.

Trigger Actions from anywhere

Run the same Action in response to events, schedules, or external requests—without duplicating logic.

CRON schedules

Use CRON-style schedules to run Actions on a fixed cadence—hourly, daily, weekly, or custom intervals.

  • Nightly reporting & KPI rollups
  • Syncs with third-party APIs
  • Scheduled billing & invoicing

Event-driven

Listen to Momentum events—record changes, form submissions, file uploads, payments, and more—and react instantly.

  • Process data with AI
  • Extract files to database
  • Respond to socket events

REST endpoints

Expose Actions via REST so your websites, mobile apps, and external systems can call them directly.

  • Custom API endpoints
  • Webhook handlers & integrations
  • Fine-grained permission control

Designed for performance

Treated as first-class citizens without any cold start time

Optimized for high throughput

Actions are kept in memory for near-instant execution and can handle thousands of requests per second per instance while using under 1 GB of RAM.

  • Optimized runtime with zero cold start
  • Horizontal scaling with your Momentum deployment
  • Backed by Momentum’s authentication & permissions
  • Works alongside Analytics, AI, Storage, Payments, and more

Because Actions share the same platform as the rest of Momentum, you avoid the complexity of stitching together separate services, queues, and schedulers.

How a typical workflow looks

1. A user submits a form

Form data or files are submitted to Momentum through an app or form

2. An event fires

Momentum fires a "create" event and looks for any actions to run

3. Your Action runs

Your action runs, processing the event and its data, saving any results

4. Everything is logged

Alerts are sent out & execution details and changes are captured in the audit logs

What customers build with Actions

A few examples of how teams use Actions to automate operations and connect systems.

Revenue operations

Automate quotes, invoices, renewals, and payment reminders by combining Actions with Payments, Email, and PDF Generation.

  • Generate & send invoices on schedule
  • Import received invoices and run calculations
  • Analyze trends and create reports with AI

Operations & service delivery

Coordinate workflows across departments using Actions that react to changes in Data, Forms, and Storage.

  • Time-clocks and wage calculations
  • Process orders and create invoices
  • Automatically place orders & manage inventory

Integrations & APIs

Turn Momentum into the central hub for your tech stack by calling external APIs and exposing your own.

  • Sync data with CRM, accounting, or HR tools
  • Handle inbound webhooks from third parties
  • Offer a stable API to partners & customers

Build your own automation layer in days, not months

Use Actions to connect Momentum’s modules with your unique workflows and tools— with one-on-one human support at every step.

Start your free trial →