Ecosystem

Workflowsin development

Manage business automation as code, without building the operations underneath.

ActQL is an open-source engine. You write reading data across SaaS and databases, transforming it and writing it back as one SQL program, and run it.

Who it is for

  • You find it faster to have a coding agent write code than to wire nodes one by one in a GUI tool such as n8n or Zapier.
  • You want to keep automation as code in Git and review it as a diff in a pull request.
  • You do not want to build or maintain the operations underneath, such as storing run history, retrying on failure and managing credentials. You would rather leave them to a managed cloud.

Example program

Say the meeting notes for each deal are in Google Drive and the deals themselves are in Salesforce. This program reads the notes for each deal, asks an LLM whether the stage or the next step has changed, and updates Salesforce only for the deals that changed.

SELECT o.id AS id, o.StageName, o.NextStep,
       c.content AS notes
FROM salesforce.opportunities AS o
JOIN drive.files AS f ON f.name = o.name
JOIN drive.contents AS c USING (resource, version)
|> INFER `model-task:deal-review.v1`
     INPUT (StageName, NextStep, notes) AS review
|> WHERE review.outcome = 'ok' AND review.value.changed
|> RESULT updates
|> EFFECT UPDATE salesforce.Opportunity
     ID id SET (
       StageName = review.value.stage,
       NextStep = review.value.next_step
     );

INFER calls an LLM and gets back a value of a fixed type. EFFECT writes to an external system.

This program has no infrastructure code in it: no API authentication, paging, rate limits, retries on error or saved state. Automation that uses no LLM is a program of the same shape without INFER.

Four things that change with ActQL

  1. A program contains less: the engine absorbs authentication and paging. You write only the pure logic of what to read, how to match it and what to write.
  2. Checks before a run catch bugs: the engine finds wrong names and types before it touches any data.
  3. You can test scenarios: the engine runs the same way on your machine and in CI. Swap the SaaS and the LLM for mocks, and you can confirm the flow of an automation without touching production.
  4. The cloud takes over the operations: the managed cloud stores run history, retries on failure and manages SaaS credentials. You no longer build and maintain that yourself.

How it works on this page explains each of these. For the design of ActQL as a whole, see the top page.

What you can try today (the preview)

  • The developer preview published today (v0.0.2) runs the deal-review example on this page from start to finish against mocks, with no credentials. There is a TypeScript/Node library and a CLI, and no Python version yet. Programs run on your machine, from your own application, or from CI or cron, and need no dedicated workflow server.
  • ActQL Cloud, which handles durable run history, automatic retries, credential management, the scheduler and webhooks, is coming soon. Until then, a job runner you already have, such as cron or CI, starts the program through the CLI or the SDK. Storing run history, resuming a Run that stopped and approving at a Checkpoint all work on your machine with the engine alone.

If you would like to try ActQL Cloud when it is out, sign up for the newsletter. We send release news by email.


How it works

When you build business automation as code yourself, the code and infrastructure for operating it keep growing.

Write a SaaS integration in Python or TypeScript, and much of the code ends up being something other than the business logic you set out to write: API paging, rate limit handling, retries on network errors, state for runs that die partway, idempotency.

Use a GUI iPaaS instead, and complex processing turns into a black box that is hard to review as code.

ActQL resolves this dilemma with a declarative SQL program, an execution engine that also runs locally, and a managed cloud.

A program contains only the pure logic

In a GUI workflow product, what the processing does is buried in node settings and their JSON. In a script of your own, it is mixed with infrastructure code. Either way, it takes work to see what the whole thing does.

An ActQL program states what it reads, how it matches it and what it writes. The Connectors take care of authentication, paging, rate limits and the steps of a write.

So you can read a change from the diff in Git. A pull request that adds one condition looks like this:

 |> INFER `model-task:deal-review.v1`
      INPUT (StageName, NextStep, notes) AS review
-|> WHERE review.outcome = 'ok' AND review.value.changed
+|> WHERE review.outcome = 'ok' AND review.value.changed
+     AND StageName != 'Closed Won'
 |> RESULT updates

The syntax is GoogleSQL with extensions, which coding agents write well. A person reviews this diff and has no long code to read through.

Checks before a run

The actql check command checks a program statically, before reading any data.

It verifies names and types, and lists what the program reads, what it writes and the permissions it needs. If the program compares a string field with a number, for example, check refuses it and gives the line number. You catch a wrong reference before the run, where otherwise it could go unnoticed and keep writing empty values to a SaaS.

actql explain also shows the execution plan beforehand: where each step will be processed.

Scenario tests that do not touch production

With a GUI workflow product, you tend to end up trying an automation against the production SaaS. Preparing a separate test environment and keeping it in sync is work too.

The ActQL engine runs unchanged inside a process on your machine or in CI. You can swap the SaaS it connects to and the LLM for mocks. Reads return the records you put in fixture files, the LLM returns the answers you prepared, and writes go to the mock records only. The same engine as in production does the checking, the policy, the Checkpoints and the resuming.

You can confirm scenarios such as "a deal already closed is not updated" or "a record the LLM failed to judge is not written" by changing the input data. Run them in CI on every pull request, and you see the effect of a changed condition before you merge it.

Run history, retries and credentials in the cloud

If you re-run a script that failed partway, its API calls and updates happen twice. To prevent that you need something that records in a database how far the processing got. You also need a way to manage the credentials of the connected SaaS (API keys, OAuth tokens) in a secret manager. Building this infrastructure yourself is a heavy burden.

With ActQL, you can leave the operation of this infrastructure to ActQL Cloud, the managed cloud.

ActQL Cloud stores the state and history of each execution, a Run, automatically. A Run that stopped partway, on a network error for instance, resumes from where it stopped without repeating what finished. ActQL Cloud also records the outcome of each write.

When the reply to a write is lost and nobody knows whether it succeeded, the Connector asks the external system for its state before the Run goes on. ActQL does not resend on a guess and write twice. actql status shows the state of a Run at any time.

In the cloud you can also pause a Run at a Checkpoint before a write, and apply the change to production only after a person has approved the records about to change. A rule can let changes with little impact through automatically.

Comparison with current approaches

ToolWhen it fitsWhen ActQL fits
Custom scriptsPython, TypeScriptQuickly writing a one-off, small integration.Running it over time, with retries, recovery, approval, and permissions handled.
iPaaSn8n, ZapierQuickly connecting a few SaaS apps in a GUI.Keeping the whole picture clear as integrations grow, letting agents write it, embedding it in your own app, running writes with approval.
ToolHow it combines with ActQL
Workflow enginesTemporalThey do not compete. Temporal manages the long-running job that lasts days, and ActQL handles the complex cross-system reads and writes as one step inside it.

Getting started

  • To try it locally, install the preview with npm install @actql/node and npm install -g actql. actql init creates a mock project that needs no credentials, so you can try it right away. The Quickstart walks through the whole flow.
  • To run it from your application, use the TypeScript SDK. The program runs inside your application's process, so you set up no separate workflow server.
  • To run it on a schedule, call the CLI from the CI or cron you already use. The CLI can also print its results as JSON for later steps to read.

Supported Connectors lists the systems a program can connect to.

In development.

Subscribe to the ActQL blog

Release news and blog posts from ActQL, by email.

Privacy Policy