How to Run a Full GTM Campaign Without Leaving Your Terminal

Mahdin M Zahere

You're a GTM engineer. Your tools are code, APIs, and CLIs — not drag-and-drop workflow builders. When someone asks you to "set up a campaign," they mean forms, routing, response sequences, CRM sync, and reporting. Most GTM platforms assume you'll do this in a GUI. You'd rather script it, version it, and deploy it.

Here's how to run a full inbound campaign — from capture to booked meeting — using code and APIs, without clicking through a single dashboard.

The campaign architecture

A complete inbound GTM campaign has five components. Each one is configurable via API or CLI if your stack supports it.

1. Capture — deploy the form.

The form needs to go live on a landing page or be embedded on an existing page. With Surface's API, you create the form programmatically —

defining fields, conditional logic, and qualification rules in a config file.
Deploy via API call. The form is live. No GUI, no drag-and-drop, no clicking through a form builder.

2. Qualification — define the scoring rules.

Qualification rules evaluate form responses + enrichment data against your criteria. Define them as code:


Push the config. Qualification is live. When a lead submits, the rules evaluate in order and trigger the matched routing action.

3. Routing — configure rep assignment.

Define your routing pools with rep attributes, capacity limits, and availability:

Territory changes? Edit the YAML, push the update. New rep? Add them to the pool. No Salesforce admin ticket required.

4. Response — configure instant outreach.

Define the response templates that fire when routing completes:


The response fires within seconds of form submission — personalized with the lead's data and the routed rep's information.

5. Monitoring — instrument the pipeline.

Set up alerts and dashboards via API:



The entire campaign — capture, qualification, routing, response, and monitoring — deployed from config files and API calls. Version controlled in git. Reproducible for the next campaign. No GUI sessions, no screenshot-based documentation.

Why this matters

Code-first GTM campaigns are auditable (every rule is in version control), reproducible (clone the config for the next campaign with different parameters), testable (run the qualification rules against historical leads before deploying), and fast to iterate (change a routing rule and push — no navigating through 6 CRM screens).

For GTM engineers who manage multiple campaigns, products, or segments, this approach scales in a way that GUI-based configuration never will.

Where Surface fits

Surface is built API-first — every feature available in the dashboard is also available via API. Forms, qualification rules, routing logic, response templates, and monitoring can all be configured, deployed, and updated programmatically.

If you're a GTM engineer who'd rather write a config file than click through a form builder, Surface was built for how you work.

  • "We feel pretty embedded in Surface, especially since we did the PLG stuff there. I would consider Surface to be like a pretty core part of what is running our website, which is a good thing."

    Maddy Fennessy

    Growth Marketing Lead

  • “If we turned off Surface tomorrow, we’d lose a lot of inbound. We’re almost entirely inbound-driven, so Surface is a critical part of how we operate.”

    Shubh Agrawal

    San Francisco

  • "We actually saw that 37% more users on average converted with the new form that they built for us"

    Alexandra Doan

    San Francisco

  • "We’re growing at the speed of light, and Surface is one of the few vendors keeping up with us. I'd pay whatever it takes to solve this problem—and Surface solved it."

    Pujun Bhatnagar

    CEO

  • “Whenever I had a feature request, the Surface team would update me throughout the process and follow up after launch to make sure everything was working correctly. It really feels like a white-glove experience.”

    Angela Kou

    Chief of Staff

  • "We used Typeform in the early days. It was great but you can tell when a company outgrows it. Surface gives us the mechanics we liked from Typeform, but with enterprise-grade control over brand, format, and functionality."

    Ian Christopher

    CEO

B2B teams running on Surface see 30% more demos within 30 days.

You can too.

Surface Labs is an applied AI lab building the future of marketing operations.

We're building autonomous systems that operate themselves and get smarter over time. We believe no marketer should spend their day wiring together tools and writing rules.


Our AI agents handle leads from capture to conversion, so marketing teams can focus on creativity.

Surface Labs, Inc © 2026 | All Rights Reserved.

Surface Labs is an applied AI lab building the future of marketing operations.

We're building autonomous systems that operate themselves and get smarter over time. We believe no marketer should spend their day wiring together tools and writing rules.


Our AI agents handle leads from capture to conversion, so marketing teams can focus on creativity.

Surface Labs, Inc © 2026 | All Rights Reserved.

Surface Labs is an applied AI lab building the future of marketing operations.

We're building autonomous systems that operate themselves and get smarter over time. We believe no marketer should spend their day wiring together tools and writing rules.


Our AI agents handle leads from capture to conversion, so marketing teams can focus on creativity.

Surface Labs, Inc © 2026 | All Rights Reserved.

Surface Labs is an applied AI lab building the future of marketing operations.

We're building autonomous systems that operate themselves and get smarter over time. We believe no marketer should spend their day wiring together tools and writing rules.


Our AI agents handle leads from capture to conversion, so marketing teams can focus on creativity.

Surface Labs, Inc © 2026 | All Rights Reserved.