> For the complete documentation index, see [llms.txt](https://docs.stammer.ai/stammer.ai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/integrations/gohighlevel-ghl-app.md).

# 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="/files/188jFNKZa5NiTw9uZHrR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/arkVMD0Ga5vTEznqXBDD" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/QGLxhWs2v4aCkS0r3VQe" 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="/files/BC3IKqn1IOpkp5ZXJ0S6" 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="/files/1BL6X0LSNGyUwkzhonCZ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Wc4m04ArnV4cXSEl3YPI" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
