All guides

GoHighLevel engineering: building on HighLevel like a developer

Most GoHighLevel work is done by clicking. I build it from code: workflows installed and read back by a kit I wrote, and marketplace apps that sign users in, verify every webhook and keep each account's data apart.

  • On GoHighLevel since2018
  • Open sourcehighlevel-workflow-kit, MIT
  • In productionA sales dashboard and a payments ledger

GoHighLevel engineering means treating the CRM as a platform you build on, with code, tests and backups, instead of a screen you click through. I am an AI automation engineer in the Philippines and I have built on GoHighLevel since 2018. Two things I run today are the subject of this page: a kit that builds workflows from code, and marketplace apps that live inside the CRM.

Workflows from code

HighLevel’s public API has no endpoints for building workflows. So I wrote the GHL workflow kit, which talks to the same private API the workflow builder uses, with the signed-in user’s own session. The kit is public: highlevel-workflow-kit on GitHub, MIT licensed.

It runs as a local MCP server, one process per agency, with 13 tools. An AI assistant uses five recipe tools in order: discover the account, audit it, plan the change, install it, prove it.

Every write passes four gates.

  1. Writes are switched on, and the account is on the allowlist. Anything else is refused.
  2. An exact phrase. The install only runs when it is given a confirmation that names the operation, the account and the recipe. The plan step prints the phrase, so it cannot be guessed ahead of time.
  3. A backup. Every workflow and its triggers are saved to disk before a change.
  4. A read-back. The kit pulls each workflow from the CRM again and checks the chain of steps. If any chain is broken, it refuses to publish.

The session token is read by a small browser extension and held in memory by a local broker. It lasts about 36 minutes, and it cannot be made from an API key or an OAuth token. Each agency gets its own broker port, because a shared port mixes sessions.

The kit has 20 unit tests. They cover the audit, the chain check, the safety gates and the broker, including that an expired token is rejected and two agencies are kept apart. One honest limit: the chain check only understands linear workflows, so branches still get a human look.

Marketplace apps

The sales and commission dashboard I built for a construction company is a private marketplace app. It installs by OAuth, opens inside the CRM, and syncs in real time. I also built a payments ledger that runs inside a sub-account the same way. Here is how the parts work.

Install. The OAuth code is exchanged for a location token. When the app is installed at the agency level, it lists the installed locations and mints one token per location. Tokens are refreshed on demand. In the ledger they are stored encrypted. One trap: the redirect address in the exchange has to match the registered one byte for byte.

Sign-in. The CRM hands the embedded page an encrypted payload. The app decrypts it with the shared secret, which lives only in the server’s environment, and issues a session only to an approved member of that location.

Webhooks. Each webhook is verified over the raw body: the Ed25519 signature first, the older RSA signature as a fallback. The event id is stored so a repeat does nothing. Then the handler re-reads the record from the CRM instead of trusting what the webhook carried.

Sync. Webhooks are the main channel. A scheduled job reconciles what a webhook might have missed: opportunities every 15 minutes, tasks every 30, users every 6 hours. QuickBooks is connected read-only on its own 15 minute schedule.

Keeping accounts apart. In the dashboard, row-level security is on for every table, scoped through each user’s location membership. In the ledger, every table is keyed by location id.

Traps the docs do not mention

I hit each of these on a real build.

  • Create ignores the name. A new workflow is saved as “New Workflow” with a timestamp. Rename it in a second call.
  • Editing an attached trigger’s conditions silently does nothing. Delete the trigger and post it again.
  • A workflow set to not allow re-entry means once ever, not once per run.
  • The appointment trigger does not fire for an appointment made through the API.
  • The form trigger does not fire for forms captured by external tracking.
  • A 403 that says the workflow API is not enabled for a location is a per-account beta switch, not a missing scope.
  • Stage win probability is filled in for you as an even ramp. On one pipeline that default overstated a forecast about five times, until the real stage odds were set.
  • “Last modified” is never a business date. Do not report on it.
  • Some scopes exist only for agency-level apps. A sub-account app cannot ask for them.

How I test

  • Check access as a real user. A security policy that reads right in the catalog can still leak. I sign in as a real member and try to read another account’s rows.
  • Probe a fix from both sides. Confirm the wrong user is blocked, and that the right user still gets in.
  • Read back after every write. The CRM is the source of truth, not the response to my own request.
  • Design for the second install. No hard-coded location ids, fields mapped by meaning, and a first-run screen while the data syncs.

Getting started

If your agency needs workflows built the same way in every account, or an app inside the CRM, send the project brief. I reply with a written plan, then we continue on WhatsApp. The service pages are GoHighLevel builds and marketplace apps. The workflow kit is one of several MCP servers I wrote.

Questions

Can GoHighLevel workflows be built from code?

Not through the public API, which has no workflow builder. My kit builds them through the same private API the builder uses, on accounts I administer, with a backup first and a read-back after.

How does a GoHighLevel marketplace app sign users in?

The CRM passes the embedded page an encrypted payload. The app decrypts it with the shared secret from the app settings, checks who the user is, and issues its own session. The user never sees a second login.

How do you verify GoHighLevel webhooks?

Over the raw request body, checking the Ed25519 signature header first and the older RSA header as a fallback. Then I record the event id so a repeat is ignored, and re-read the record from the CRM.

Are you a GoHighLevel developer in the Philippines?

Yes. I am based in the Philippines, I have built on GoHighLevel since 2018, and I am the Operations Manager at a white-label HighLevel agency. I also founded the HighLevel Philippines community.