GTM-as-Code.
Automate
the work

RevSure's Programmatic GTM capabilities enable GTM-as-Code through the CLI, standalone scripts, and Agent Hub code nodes. For agentic AI and GTM engineers who want to code their GTM workflows.

In plain terms

RevSure's Programmatic GTM capabilities enable GTM-as-Code by turning governed context and actions into commands and scripts that users, agents, and production systems can run. Use the CLI directly, write a standalone program, or run the same code inside an Agent Hub code node.

Programmatic GTM capabilities

Engineer GTM-as-Code your way

Use the CLI directly, write the motion as a script, or run that script inside an Agent Hub code node.

RevSure CLI

Access RevSure through a CLI that users and agents can invoke directly.

Scripts

Use Programmatic GTM to write the motion as a standalone script, transform JSON results, and automate the work wherever it needs to run.

Agent Hub code node

Run that script inside one code node instead of using Agent Builder to wire each input, output, and writeback step by hand.

RevSure CLI

GTM-as-Code, directly from the CLI

The RevSure CLI puts governed context and actions on the command line. A human or agent can run commands directly and use the structured result in the next step.

01 · Install

Add the CLI

npm install -g @revsure/cli

Use it locally, in scripts, or in the environment where your workflow runs.

02 · Compose

Define the motion

revsure tools
revsure describe pipeline-health-overview

Use the available commands and inputs to express the GTM work you want to run.

03 · Run

Execute the motion

revsure pipeline-health-overview --quarters q0

Run it directly from the CLI and use the JSON result in the next step of the motion.

Scripts

One command becomes part of a complete program

Each RevSure command returns structured context. Your code can evaluate it, add your business logic, and route the result into the next approved step.

01Read live context

Pull the GTM view your workflow needs.

02Use the JSON

Filter, score, enrich, or combine the result in code.

03Carry work forward

Send an approved result to the next tool or system.

Scripts · programs & jobs

Write it once. Run it wherever your work runs

A script can run as a program or background job. Deploy it in the environment your team already trusts, then let it run when the work is due.

Scheduled checks

Run a recurring program that checks pipeline health, account activity, or data quality without a manual handoff.

Event-driven work

Start a workflow when the signal arrives, so the next approved step happens while the context is fresh.

Production services

Package code into an internal service, container, serverless function, or CI job without changing its GTM logic.

Visible outcomes

Send the resulting report, task, or approved action to the system where the team will use it.

Agent Hub code node

When code is the workflow, one node should be enough

Put the same Programmatic GTM script inside a dedicated Agent Hub code node, run it independently, and avoid assembling every input, output, and writeback step by hand.

AGENT HUBPLANNED
</>CODE NODE
Programmatic GTM

Your complete GTM motion, written as one script.

ContextApproved actions
ONE NODE · ONE COMPLETE MOTION

Keep the logic in code.

Run the script independently inside Agent Hub instead of recreating its logic across a chain of individual nodes.

  • Reads the context the motion needs
  • Runs your script and decision logic
  • Writes only through approved actions
Built for controlled execution

Programmatic GTM does not bypass governance

Read context freely. Make a change only when the workflow declares its intent—whether it runs once in a terminal or continuously in production.

Structured output

Every tool returns JSON your command, script, or deployed workflow can inspect, transform, and pass forward.

Explicit write control

Read context freely. Changes require an explicit write intent, so a report cannot accidentally become an action.

Consistent controls

The same context, permissions, and action guardrails apply whether code runs once locally or continuously in production.

Ready when your stack is

Bring GTM-as-Code into production

See how RevSure's Programmatic GTM capabilities let your team build, deploy, and govern GTM workflows on the stack you already run.