# GoHighLevel (GHL) App

This allows you to connect your AI agent to a workflow inside GHL super easily.

## Step 1 - Install the App

1. Go to [this link and install](https://marketplace.gohighlevel.com/oauth/chooselocation?response_type=code\&redirect_uri=http%3A%2F%2Fapp.stammer.ai%2Fen%2Fcrm%2Fconnect%2F\&client_id=68775afcc0d1fe46b797f39c-md5oem3b\&scope=conversations.readonly+conversations.write+conversations%2Fmessage.readonly+conversations%2Fmessage.write+conversations%2Flivechat.write+contacts.readonly+contacts.write) to a sub-account
2. Click Allow & Install
3. You will be redirected to your Stammer.ai account and prompt you to login. If you are already logged in then you will see the green success message 'CRM connected successfully'
   1. Be sure your installing as a sub-account&#x20;

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FLueasT8kIEeqnCYpVBht%2FScreenshot%202025-07-30%20at%209.59.05%E2%80%AFPM.jpg?alt=media&#x26;token=ebaac20f-1b35-439c-9a8d-8358a43c289c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FsJBVhNvwBphfedK2ZvZ0%2FScreenshot%202025-07-30%20at%209.59.27%E2%80%AFPM.jpg?alt=media&#x26;token=8bed49b2-7334-4a42-9765-ef45579769f7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2F1TLfqZKUQ3rg5qaKJvzz%2FScreenshot%202025-07-30%20at%209.59.39%E2%80%AFPM.jpg?alt=media&#x26;token=972e09ba-f085-4b04-aa50-03b5e0c4c319" alt=""><figcaption></figcaption></figure>

## Step 2 - Add App to a Workflow

1. Inside the workflow builder search for the Stammer AI application

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2Fb1sJKJb6FFeqLMU9rRR6%2FScreenshot%202025-07-28%20at%206.12.05%E2%80%AFPM.jpg?alt=media&#x26;token=94e5fda1-cbf4-4b60-a382-4c3a52607ce6" alt=""><figcaption></figcaption></figure>

2. Add the action 'Send message to AI agent' into your workflow
3. Paste in the UUID for the AI agent you want to connect to.
   1. You find this by going into your Stammer dashboard and copying the UUID

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2Fg7hZdZslIzUPMD0S7eC5%2FScreenshot%202025-07-30%20at%2010.04.01%E2%80%AFPM.jpg?alt=media&#x26;token=8a9e9627-536f-43de-a70e-ca456e5c4cdc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FX9Pb9bmxejY5f4KHuUN4%2FScreenshot%202025-07-30%20at%2010.02.38%E2%80%AFPM.jpg?alt=media&#x26;token=c8b3a88a-5f8d-4515-85d5-12ee6414bc6e" alt=""><figcaption></figcaption></figure>

You're done!&#x20;

You can further customize the action with a custom base system prompt by adding in dynamic values (custom fields from GHL) that tell the AI agent more about the users its talking to.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/integrations/gohighlevel-ghl-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
