contact.service_category, contact.quoted_Tier, and contact.ai_intent) so the agent writes to fixed options instead of an open-ended text note.
contact.ai_intent matches an allowed value (estimate, repair, human_handoff) and ai-opted-out is not present before sending a booking link or updating an opportunity.
ghl-tools (danielhallman.com/mcp), mint a location-specific Private Integration token limited to the required scopes (contacts.readonly, workflows.readonly, opportunities.write) instead of sharing an agency-wide key.
Harden AI agent state management and tool permissions in sub-account <YOUR_LOCATION_ID>: 1. In Settings > Custom Fields, create typed Dropdown and Number fields (contact.ai_intent, contact.service_category) instead of storing state in free-text notes. 2. In Automation > Workflows, add an If/Else validation branch after Conversation AI to check allowed field values before sending SMS or moving pipeline stages. 3. In Settings > Private Integrations, restrict MCP and API tokens to location-scoped least-privilege permissions.
# Inspect custom field types and workflow validation branches via ghl-crm ghl-crm custom-fields list --context <YOUR_CONTEXT> --location <YOUR_LOCATION_ID> ghl-crm workflows list --context <YOUR_CONTEXT> --location <YOUR_LOCATION_ID>
Official HighLevel MCP v2 vs. Local CLI: HighLevel’s official hosted MCP (services.leadconnectorhq.com/mcp/anthropic/v2 & /openai/v2, 181 OAuth scopes) covers CRM records, workflows (write/publish/logs), Voice AI, Conversation AI, Knowledge Bases, forms, emails, and SaaS locations. Use the Official GHL MCP v2 Guide and local CLI tools (ghl-crm, ghl-agency, ghl-onboard) for authoritative DNS/DMARC/BIMI checks, Cloudflare/Porkbun domains, funnel layout JSON/CSS edits, and cross-location snapshot diffs.
ghl-tools) to a location-scoped Private Integration token with only the permissions that job requires.| Step | Menu Path in GHL | Action |
|---|---|---|
| Step 1 | Settings > Custom Fields | Replace free-text memory dumps with typed CRM fields: Click + Add Field and create explicit Dropdown (Single), Number, or Date fields (such as contact.service_category, contact.quoted_Tier, and contact.ai_intent) so the agent writes to fixed options instead of an open-ended text note. |
| Step 2 | Automation > Workflows | Validate fields with If/Else branches before running actions: After a Conversation AI or Inbound Webhook step, add an If/Else condition that verifies contact.ai_intent matches an allowed value (estimate, repair, human_handoff) and ai-opted-out is not present before sending a booking link or updating an opportunity. |
| Step 3 | Settings > Private Integrations | Scope external agent tokens to one sub-account: When connecting Claude Code, Cursor, or an MCP worker via ghl-tools (danielhallman.com/mcp), mint a location-specific Private Integration token limited to the required scopes (contacts.readonly, workflows.readonly, opportunities.write) instead of sharing an agency-wide key. |
Enter your work email for the GoHighLevel setup checklist covering AI Agent Security & State Schema and the 7-part operating manual (AI Agent & MCP Operator Pack), or claim the bonus vault with your GoHighLevel partner bonus claim.