Claude Templates / B-tier · Situational
Outreach
The GoHighLevel Integration Playbook
OAuth, contacts, conversations, opportunities — the GHL API gotchas up front.
GHL-INTEGRATION-PLAYBOOK.md · 16 sections · 2,182 words · 17 KB · markdown
Wiring an app to GoHighLevel without rediscovering every API quirk yourself. Token handling and refresh, contact upsert semantics, the Conversations endpoints, pipeline opportunities, and the specific fields the docs don't tell you are required.
What's inside
- //OAuth setup, token storage, and refresh handling
- //Contact upsert semantics and custom-field mapping
- //The Conversations API for reading and sending messages
- //Pipeline + opportunity creation
- //Tag and DND operations
- //The undocumented required-field gotchas that cause 4xx loops
Straight from the file
GHL is the dominant infrastructure layer for the BILT CRM customer base and most BILT portfolio marketing apps. Integrating cleanly with GHL is a recurring task — this playbook locks in the patterns and the landmines we've already paid for.
Table of contents
- 0. Use this spec
- 1. Architecture
- 2. Schema
- 3. OAuth 2.0 flow (end-user installs your app)
- 4. Private Integration Token (PIT JWT) flow
- 5. API Key (legacy v1) — DO NOT USE
- 6. CRITICAL GOTCHA — userId requirement on create-post
- 7. CRITICAL GOTCHA — destructive sync of boardids
- 8. CRITICAL GOTCHA — media MIME types
- 9. CRITICAL GOTCHA — instagramPostDetails not instagramPost
- 10. Social publish — wire-platform normalizer
- 11. Blog publish
- 12. CRM sync (optional)
- 13. Webhook receiver
- 14. Common pitfalls
- 15. Kickoff prompt
How to run it
Drop GHL-INTEGRATION-PLAYBOOK.md into your repo, then tell Claude Code: “Read GHL-INTEGRATION-PLAYBOOK.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.
More outreach playbooks
Publishing Pipeline
Scheduled posts, a scheduler tick, provider guards, and per-platform normalization.
Read + download →A-tierSMS Copilot Console
Cold-SMS auto-reply: an LLM brain that drafts, and code that decides.
Read + download →A-tierCold Email Campaign
The operational side — folder structure, daily metrics, A/B/C subjects, leak diagnosis.
Read + download →