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.
- Writes are switched on, and the account is on the allowlist. Anything else is refused.
- 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.
- A backup. Every workflow and its triggers are saved to disk before a change.
- 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.