ghl-workflow-mcp

v1.3.2
ghl-workflow-mcp Checked 3 days ago Published 2 days ago

Connect your AI agent (Claude, Cursor, VS Code and others) to the GHL Workflow Backup & Audit Chrome extension.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_workflows List workflows

List the workflows in the GoHighLevel sub-account: ID, status (draft or published), folder and name, 250 per page. Filter by search (name, ID or folder), folder, status or triggerType. triggers: true (or triggerType) also shows each workflow's triggers with name, type and whether each is on or OFF: the quick way to check a set is live. That reads every workflow, so the first call can take a minute or two; later calls re-read only the workflows changed since.

ParameterTypeDescription
folderstringA folder path ("Sales / Follow-ups"), or one folder's name; includes its subfolders. "(top level)" for workflows in no folder.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
offsetintegerSkip this many rows (for the next page).
searchstringPart of a workflow name or ID.
statusstring
triggerTypestringPart of a trigger type, for example "contact_tag" or "form".
triggersbooleanShow each workflow's triggers and whether they are on.

get_folder Get folder

Read every workflow in a folder and its subfolders in one call, each in the same form as get_workflow, with folderPath. Pages by whole workflows; a workflow too big for a page comes as its outline (use get_steps for detail). summary: true gives each workflow in brief instead, in one answer: status, triggers on or OFF, step counts, waits already passed or named differently from their setting, and texts sent as more than one message. Use it to check a set is ready, or to re-check after a fix.

ParameterTypeDescription
folder *stringA folder path ("Sales / Follow-ups") or one folder's name, from list_workflows.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
offsetintegerThe workflow to continue from (given at the end of the previous page).
summarybooleanEach workflow in brief, without its steps.

export_emails Export emails to files

Save the HTML of every email in a workflow, or in every workflow of a folder, as .html files on this computer (emails built from a saved template included), and list them: workflow, step, subject and file. Use it to read many email bodies in full; get_steps with html: true fits only a few per answer.

ParameterTypeDescription
folderstringA folder (path or name) instead of one workflow.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
saveDirstringWhere to save. Defaults to a "ghl-emails" folder in the agent's working folder.
workflowIdstringWorkflow ID, from list_workflows.

compare_workflows Compare two workflows

What differs between two workflows, such as two copies of the same workflow for different regions or months: steps only in one, steps whose settings differ (by setting path, both values), trigger differences and setting differences. Steps are matched by ID (copies keep them), then by type and name. Leave out workflowB to see what changed in workflowA since you last read it in this session (get_workflow, get_steps, get_folder or an earlier compare): the quick way to check a fix without reading the whole workflow again.

ParameterTypeDescription
workflowA *stringFirst workflow ID.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
workflowBstringSecond workflow ID. Leave out to compare workflowA with your last read of it.

get_workflow Get workflow

Read one whole workflow in the extension's export format (version 2): every step, every trigger, settings, the names of the tags, fields, forms and other things it uses, and when each timed wait fires (waitSchedule). Builder display settings and email preview links are left out. A very large workflow comes back as an outline of its steps; then use get_steps for detail. To read only some steps, or only the settings or triggers, use get_steps instead: it is much smaller. Call get_audit_guide first if you are reviewing it.

ParameterTypeDescription
workflowId *stringWorkflow ID, from list_workflows.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
offsetintegerFor a very large workflow: the outline step to continue from.
waitsbooleanfalse leaves out waitSchedule, when you have it already.

message_timeline Message timeline and checks

Every message in a workflow (SMS, email and other sends) in the order it is sent, on every path, with when it goes out: an exact time in the sub-account's time zone and any audience zones you name, a time in each contact's own zone, or how long after the contact enters. Flags SMS and WhatsApp sent in quiet hours (9 PM to 8 AM unless you set others). Also checks the messages: text pasted twice in one message, leftover placeholders ([INSERT LINK], TBD, empty {{ }}), two messages with exactly the same text, "starts in 20 minutes" sent at the wrong time before the event, and "N hours left" claims…

ParameterTypeDescription
workflowId *stringWorkflow ID, from list_workflows.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
quietEndintegerQuiet hours end, 24-hour clock. Default 8 (8 AM).
quietStartintegerQuiet hours start, 24-hour clock. Default 21 (9 PM).
textbooleanfalse leaves out the short excerpt of each message.
zonesarrayExtra time zones to show exact times in, as IANA names: "America/New_York", "America/Los_Angeles".

run_history Run history

What actually happened when contacts went through a workflow, from GoHighLevel's execution logs and enrollment history (kept about 60 days). Read-only. With workflowId: how many contacts wait at each step right now (waitingNow), the latest log events (each step a contact reached: done, skipped, failed with GoHighLevel's reason, waiting until when), and the latest enrolments (who entered, by which trigger, where they are now). Add contactId, or executionId (a log event's `run`), to follow one contact's run step by step, oldest first: the way to see why a test message failed or was skipped, or t…

ParameterTypeDescription
afterstringThe `after` value of a previous answer, for the next page of that part.
contactIdstringOne contact (from an earlier answer, or the contact's page address in GoHighLevel).
daysintegerHow far back. Default 30, at most 59.
executionIdstringOne run: the `run` of a log event or enrolment.
limitintegerRows per part. Default 50, or 99 for one contact or run.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
partsarrayWhich parts to read. Default all three (with workflowId).
statusstring"failed" for failed steps only. Default all.
testbooleanTest runs (from Test workflow) instead of live ones.
workflowIdstringWorkflow ID, from list_workflows.

get_steps Get steps

Full detail of chosen steps of a workflow, by step ID (from get_workflow's outline). Ask for up to about 30 at a time; any that do not fit are named so you can ask again. Email bodies come back as text (htmlText) with their links (htmlLinks); ask with html: true for the HTML itself, which you need to copy an email step into a draft. include: ["triggers"] and/or ["settings"] returns the workflow's triggers or its settings and status, with or without steps.

ParameterTypeDescription
workflowId *stringWorkflow ID, from list_workflows.
htmlbooleanReturn email bodies as HTML instead of text.
includearrayAlso (or only) the triggers and/or the settings.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
stepIdsarrayStep IDs.

get_references Get references

The named things in the sub-account that workflows point at (tags, custom fields, forms, surveys, calendars, pipelines, users, workflows and more). With no arguments: how many of each type. With type and/or search: the matching entries as ID and name.

ParameterTypeDescription
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
offsetintegerSkip this many rows (for the next page).
searchstringPart of a name or ID.
typestringOne type, for example "tags" or "customFields".

find_usage Find usage

Find every workflow, step and trigger that uses something: a tag, custom field, form, workflow, link or ID. Matches names partly and case-insensitively. Reads every workflow in the sub-account, so the first call can take a minute or two; later calls re-read only the workflows changed since, so the next pages come back at once.

ParameterTypeDescription
query *stringA name, ID or piece of a link.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
offsetintegerSkip this many rows (for the next page).

validate_workflow Validate a workflow

Check a workflow before creating it, without creating anything: whether it can be read, broken links between steps, step or trigger types this sub-account has never used, and tags, fields, forms or other items that do not exist here. The first call in a sub-account reads all its workflows to learn the types it uses, so it can take a minute or two. Build it from real steps: take them from existing workflows with get_workflow and get_steps and change what you need; do not invent step or trigger types or settings (types this sub-account has never used are refused). Every step needs a unique id (a…

ParameterTypeDescription
workflow *The workflow in export format: { workflowName, nodes: [...steps], triggers: [...], references }. The shape get_workflow and get_steps return.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.

create_draft_workflow Create a draft workflow

Create a NEW draft workflow in GoHighLevel. Its name gets "[AI] " in front unless the user switched that off in Settings. It never changes, publishes or deletes an existing workflow; to change one, create an edited copy and the user swaps it in. To copy an existing workflow with some text changed or steps removed, use clone_workflow instead: it needs no steps passed in. Works only when the user has switched on "Allow drafts" in the extension Settings, and every call waits for the user to approve it in a window that shows the steps and your reason (up to 5 minutes), so tell the user to look for…

ParameterTypeDescription
reason *stringOne or two sentences for the user: what this draft is and why. Shown on the approval window.
workflow *The workflow in export format: { workflowName, nodes: [...steps], triggers: [...], references }. The shape get_workflow and get_steps return.
folderstringFolder for the draft: a path as list_workflows shows it ("Sales / Follow-ups"), a unique folder name, or a folder id. It must exist.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
namestringExact name for the new draft (before any "[AI] "). Defaults to the workflow's own name.

clone_workflow Clone a workflow with changes

Copy an existing workflow as a NEW draft, with text replaced and steps removed, in one call; the original is never touched. For example a copy for another region or month: replace "Sydney" with "New York" and "AEST" with "ET" in every message, and drop two steps. Settings come with it, the SMS sender number included. Replace rules change the text of steps (messages, subjects, names and other text settings), never ids or links between steps; with triggers: true a rule also changes the triggers. Rules match without regard to case unless matchCase is true. Steps are removed by id (from get_workfl…

ParameterTypeDescription
reason *stringOne or two sentences for the user: what this copy is for. Shown on the approval window.
workflowId *stringWorkflow ID, from list_workflows.
folderstringFolder for the draft: a path as list_workflows shows it ("Sales / Follow-ups"), a unique folder name, or a folder id. It must exist.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
namestringExact name for the copy (before any "[AI] "). Defaults to "<original name> (copy)".
removeStepsarrayIds of steps to leave out of the copy.
replacearrayReplace rules, applied in order.

edit_workflow Edit an existing workflow

Change an EXISTING workflow in place: replace text in its steps, change the name or settings (attributes) of a step, remove steps, or change workflow settings. For example fix the subject of one email, change a wait from 2 to 3 days, or correct a date in an SMS, without cloning the whole workflow. Works only when the user has switched on "Allow editing existing workflows" in the extension Settings; a published workflow also needs "Also allow editing published workflows", and a change to it is LIVE at once. Every call waits for the user to approve it in a window that shows the workflow and each…

ParameterTypeDescription
reason *stringOne or two sentences for the user: what you change and why. Shown on the approval window and kept in History.
workflowId *stringWorkflow ID, from list_workflows.
locationIdstringGHL sub-account (location) ID. Leave out to use the sub-account open in Chrome.
removeStepsarrayIds of steps to remove.
replacearrayReplace rules for step text, applied in order.
settingsobjectWorkflow settings to change: timezone, allowMultiple, allowMultipleOpportunity, stopOnResponse, removeContactFromLastStep, autoMarkAsRead.
updateStepsarray

get_audit_guide Get audit guide

Instructions for reviewing a workflow: how to read the export format, what counts as a real problem, and the HTML report to produce. Use before auditing any workflow. If it ends by naming an offset, call again with it for the rest.

ParameterTypeDescription
offsetintegerWhere to continue a long guide (given at the end of the previous part).