/uxie-ghl-factory:get-ghl-workflow-logsfrom uxie-ghl-factory
Reads GoHighLevel workflow execution logs, enrollment history, and per-step contact counts from read-only internal endpoints. Answers runtime questions like why contacts are stuck, which steps failed, and how many contacts went down each path.
Ships in uxie-ghl-factory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
With uxie-ghl-internal-mcp registered, every read below is one call and no browser:
| The question | Tool |
|---|---|
| what fired, per contact, per step | get_workflow_logs (pass executionId for one run's full trace) |
| why didn't my trigger fire | get_trigger_logs — attempted vs matched, with the filter comparison that decided it |
| where is everyone parked | get_workflow_stats, get_contacts_at_step |
| how is the whole account doing | get_account_workflow_overview |
| a complete, evidence-qualified window | get_workflow_runtime_window |
Prefer them — they send the required query switches, walk the cursor, and reconcile the per-step counts. The manual path further down is the same reads done by hand, for a session with no server registered.
The interpretation below is the part that matters either way. The tools get you the rows; what those rows MEAN is this skill's real content, and it is what stops a confident wrong answer.
Capture the runtime behind a HighLevel workflow — the execution trace, the enrollment records, and the live per-step occupancy — and turn it into evidence the user can act on. Where get-ghl-workflow-json answers "how is this workflow built," this skill answers "what happened when contacts ran through it."
This is a narrow, read-only extraction-and-interpretation skill, not a full audit. It gets the runtime data onto disk and explains what it means.
Per-step outcome counts = get_workflow_logs status counts. The builder has NO route for per-step
success / failed / skipped totals (bundle 2026-09-29-2); its only per-step numbers are contacts parked now
(count-per-step), SMS/email delivery aggregates and marketplace-app action stats. For a trigger that fires but does not
match, use get_trigger_logs (ranked reasons and per-contact rows), and get_account_workflow_overview
triggerCountFilter for one filtered count (workflow / trigger type / contact / form or survey, at most 31 days).
finished is not completion. A roster status of finished means the contact LEFT the
workflow — which covers both ran every step and was removed from it. Force-to-next-step and
remove-stuck-records both end at finished, and the roster cannot tell them apart. To know which,
read that contact's execution log or check the side effect the last step should have produced. Any
completion rate computed from roster status overstates.
Some log rows are not steps. GHL emits lifecycle rows — add_to_workflow,
added_to_workflow, remove_from_workflow — alongside the rows for authored steps. They carry a
stepName that reads like a real step ("Add to workflow") and a stepId matching nothing in
workflowData.templates. get_workflow_logs flags them as isLifecycleRow: true; never
correlate a flagged row to a step. added_to_workflow is still the only proof a trigger fired, so
they matter — they just are not steps.
Execution logs are contact PII. Every row carries contactName and contactEmail, not just
ids. Treat a saved log file the way you would treat a contact export: it does not belong in a
public repo, a ticket, or a screenshot.
A fourth, for when a workflow "stopped working": a scheduled pause puts workflows into draft,
so a paused workflow is indistinguishable from one somebody unpublished by hand. Check
GET /workflow/{loc}/scheduled-pause/config before concluding anything was changed.
These matter because the token you intercept can, in principle, mutate a live client's automations — and a workflow's runtime data is real people's message history. Stay strictly read-only.
GET requests against backend.leadconnectorhq.com. Never POST, PUT, PATCH, or DELETE with an intercepted JWT — the runtime-control endpoints (stop-execution, force-resume, requeue/remove stuck) are explicitly out of scope for this skill.429 or 403, record the rejection, stop, and tell the user — don't hammer a client's backend.${CLAUDE_PLUGIN_ROOT}/docs/auth-jwt-capture.md (the canonical auth doc). The intercepted JWT must be scoped to the workflow-builder iframe origin or reads 401 — the auth doc covers this.The workflow builder's Execution logs and Enrollment history tabs are powered by three read endpoints. Each answers a different question; together they reconstruct a workflow's health.
| Endpoint | The question it answers |
|---|---|
workflows/logs/v2 | What fired? One row per action executed per contact — the step-by-step trace, with success/failure/skip and the reason. |
workflows/status/search/workflow-with-filter | Who's enrolled, and when do they move? One row per contact enrollment — current step, next resume time, how they entered. |
workflows/status/search/count-per-step | Where is everyone right now? A live count of contacts parked at each step. |
Exact URLs, query params, pagination, and response schemas are in references/logs-capture-runbook.md. Read it before fetching.
Beyond the three tabs above, four more read rails exist and are live-proven; use them
through the MCP server (uxie-ghl-internal-mcp) when it is registered:
| Question | Tool / rail |
|---|---|
| Why didn't my trigger fire? | get_trigger_logs → workflows/trigger/logs/triggerId + top-failed-reasons: one row per attempt with qualified, failedReason, actualValue vs expectedValue (the filter comparison that decided it), ranked reasons. triggerType is REQUIRED by the endpoint; the tool resolves it from workflowId. |
| Show me ONE run, step by step | get_workflow_logs with executionId (= any log row's workflowStatusId / an enrollment's id) → every record of that run on logs/v2. logs/v2 always needs workflowId — there is no cross-workflow contact view server-side (422). |
| Which workflows are failing right now? How busy is the account? | get_account_workflow_overview → workflows/statistics, logs/weekly-enrollment-data, error-notification/{count,list,settings} (the list page's Needs-Review tab + who gets error emails), batched status/search/enroll-stats(-cache) totals per workflow. |
| Which step is leaking / who's parked there? | get_workflow_stats (aggregates, 30 days) + get_contacts_at_step (details-by-step wants currentStepId, not stepId). |
Those tables are the proven, tool-wrapped subset. search_endpoints on the internal MCP indexes
every runtime route the builder source calls — scheduled-pause config, split-test stats,
premium-tier usage, the smart-list query that answers "which workflows use step X" in one
request — each stub naming the typed tool that covers it, if one does. Look there when the
question is not on the tables.
Log-row fields worth knowing: workflowStatusId (the enrollment/run id), meta.version
(the workflow version the run executed on), meta.addedSource (how the contact entered —
trigger type/id, or workflow_status_page + user), meta.removedFrom.type
(end_of_workflow / contact_reply_stop_response / wait_step_window_in_past /
wait_step_date_in_past_exit), meta.skippedFor.type (dnd / time-window / appointment-wait /
missing-data / active-already / …), meta.delayedFor.type (rate-limit / system-delay),
nextExecutionAt (when a waiting contact resumes), recordType (custom-object runs).
https://app.gohighlevel.com/location/{LOCATION_ID}/workflow/{WORKFLOW_ID}. If either ID is missing, ask for the workflow URL or both IDs.count-per-step + workflow-with-filterlogs/v2logs/v2 with contactId filterreferences/logs-capture-runbook.md for the browser procedure, endpoint params, pagination, and schemas. Load ${CLAUDE_PLUGIN_ROOT}/docs/auth-jwt-capture.md for JWT capture and headers.logs/v2, page with the keyset cursor until you have enough to answer (don't blindly pull the whole history of a busy workflow).workflow-logs/{locationId}/{workflowId}/{YYYY-MM-DD-HHMM}/logs.jsonenrollments.json, step-counts.json (whichever were fetched)manifest.json with source URL, capture time, endpoints hit, page count, date window, and anything skipped.Raw log rows are only useful once mapped to what they mean. The signal lives in status and meta:
| Signal | Where | What it tells you |
|---|---|---|
status: success but meta.status ≥ 400 | logs/v2 | Silent failure — the step "ran" but the downstream send/API rejected it. |
status: failed | logs/v2 | Hard error; meta.msg / meta.status say why. |
status: skipped | logs/v2 | Gated out; meta.skippedFor.type (dnd, time-window, missing-data, active-already, appointment-wait, …) says which gate — or the step's own API answered 4xx — the body is in meta (see below). |
status: finished | logs/v2 | Contact left the workflow; meta.removedFrom.type says why (reply-stop, end-of-workflow, wait-window-in-past). |
executeOn in the past, still wait_time | workflow-with-filter | Stuck contact — should have resumed already. |
step absent from count-per-step | count-per-step | No contact is (or maybe ever was) there — candidate dead branch; confirm against logs. |
metrics.actionExecutionTime + segments[] | logs/v2 | Where latency is. |
meta.addedSource / extraMeta.attributionSource | workflow-with-filter | How the contact entered (trigger, ad campaign, manual). |
Join keys: workflowStatusId (a ULID) ties one enrollment to all its log rows; workflowTraceId groups the rows of a single run. Use these to answer "walk me through what happened to this one contact."
Five rules, each one from live runs and each one the difference between a finding and a confident wrong answer:
skipped rows ARE returned by get_workflow_logs — a claim that it drops them was tested
and refuted. A skipped row whose meta carries a 4xx body (property <id> should not exist,
Can not create duplicate opportunity, Internal Action Error - Please use Opportunity trigger/find opportunity action) is a FINDING, not absence of evidence — read the body.
The bodies and what each one means:
knowledge/corpus/workflows/50-runtime/11-runtime-logs.md → "4xx bodies inside skipped rows".actionDispatched: false on an internal_create_opportunity / internal_update_opportunity
success row is a NO-OP. The write never reached the premium-actions-worker (meta.actionFrom
is empty) and the card did NOT move — seen on manual/API enrolment into an opportunity-triggered
workflow. The label is scoped to those two types only: internal_notification legitimately runs
with an empty actionFrom.success — Message queued for delivery is QUEUED, not delivered. A
contact with no phone gets six "successes" and zero conversations. Cross-check the contact's
conversation list before believing a vendor send row; the native sms step reports
missing-data: No Phone number honestly.remove_from_workflow immediately followed by added_to_workflow is a
benign RESTART — a new inbound arrived mid-run and the new run answers everything so far. A
remove_from_workflow with NO add after it, ~15–18 s into a run a custom trigger started, is the
trigger-priority collision kill — knowledge/corpus/workflows/50-runtime/flow-bot-runtime.md.TOKEN_EXPIRED; on a hand-rolled read (curl, a
harness) a 401 body parses as clean JSON with no rows — the rows are missing because the read
was, not the runs. auth_status first.addedSource.source + sourceId say whether the run is BOUND to an appointment. A trigger-born
enrolment carries sourceId: appointment_<id>; one started by another workflow's add_to_workflow
has NO sourceId. The second kind renders every {{appointment.*}} empty and SKIPS every
appointment-anchored wait (skippedFor: {"type":"missing-data"}) — a healthy-looking roster row
and a collapsed reminder ladder. If a reminder went out at the wrong time, check sourceId first.attempted: 0 even while every
enrolment names them as its source. A non-firing autonomous trigger can only be inferred from the
ABSENCE of an enrolment; there is no per-attempt log to read./ server-side) — reach a workflow via the SPA's client-side router or by clicking through; the runbook covers this.references/logs-capture-runbook.md — exact endpoints, query params, keyset pagination, date windows, response schemas, and save-file guidance.scripts/throttle.py — persistent human-pace throttle and cooldown guard (shared design with the sibling read skill).${CLAUDE_PLUGIN_ROOT}/docs/auth-jwt-capture.md — canonical JWT capture + header format.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gohighlevel, highlevel, workflow-logs, execution-trace, runtime-analysis
npx claudepluginhub uxieee/uxie-ghl-factory --plugin uxie-ghl-factory22 skills in this plugin
/create-ghl-workflowUse when programmatically creating, building, or publishing a GoHighLevel / HighLevel workflow, or adding triggers/actions/steps to one, via the internal builder API — e.g. "create a GHL workflow", "add a webhook/email step via API", "build a HighLevel automation programmatically", or when a workflow step created via API saves but won't open in the builder. Write counterpart to get-ghl-workflow-json (read-only). Draft-first; publish when the approved plan says the workflow goes live (no separate yes)./get-ghl-workflow-jsonCapture, export, and validate GoHighLevel / HighLevel workflow JSON from the workflow builder's read-only internal endpoints. Use when the user asks to get, download, export, inspect, archive, harvest, or troubleshoot raw workflow JSON/config; workflow trigger JSON; sticky notes; step counts; workflow settings; trigger/action catalogs; or when they provide an app.gohighlevel.com location/workflow URL and want the underlying JSON. Uses browser JWT interception, human-paced throttling, and read-only GET requests only./ghl-ai-studioGoHighLevel AI Studio — the AI website builder, internally called `vibe`. Use when a task involves reading, auditing, building, iterating on or publishing a site that was made in AI Studio, or when someone names a site and you do not know which GHL surface owns it. Also use when a GHL site cannot be found in funnels/websites — AI Studio is a separate collection and querying the wrong one returns an empty list.Other plugins' skills for the same job