# GitLab

### Overview

The GitLab integration connects nexos.ai with your GitLab account so you can reference repositories, issues, merge requests, and other GitLab content directly in your workspace. It helps you summarize changes, review context, and answer questions using the same source your team works in every day.

### Setting up the integration (organization admin)

1. Open **Settings**.
2. Go to **Organization** → **Integrations**.
3. Find **GitLab** in the list.
4. Set the integration to **Active** (enabled).

<figure><img src="/files/qaAotzpjg79CDLjfkuIl" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
After it’s enabled here, team members can connect their own GitLab accounts.
{% endhint %}

### Connecting your account (individual user) from **My Integrations**

1. Open **Settings** (select your email/profile at the bottom of the left sidebar, then **Settings**).
2. Select **My Integrations**.
3. Find **GitLab** and select **Connect**.

<figure><img src="/files/WBrsgFG0tAq5Rnq3X4qb" alt="" width="563"><figcaption></figcaption></figure>

4. You will be redirected to GitLab. Sign in if prompted.
5. Review the access request screen and select **Authorize** (or **Allow**) to approve.
6. Return to nexos.ai. GitLab should now show as connected in **My Integrations**.

<figure><img src="/files/2QLUK0fDyBWWvfoaRJV9" alt=""><figcaption></figcaption></figure>

### Use GitLab in Chat (turn it on for a conversation)

1. Open **Chat** (or an Agent chat).
2. Select the **Tools** icon.
3. Turn **GitLab** **on** to use it in that conversation.

### Use GitLab in Agents (turn it on for an agent)

1. Open **Agents** and select the agent you want to update.
2. Select the **Studio** icon (top-right), then open **Settings**.
3. Scroll to **Integrations** and turn **GitLab** **on**.
4. **Save** your changes, then test the agent (for example, “Summarize MR !42” or “List the open issues related to X”).

{% hint style="info" %}
**Alternative (quick method)**\
You can also tell the agent in plain language to add the GitLab integration (for example, “Add the GitLab integration for this agent”), and it will enable GitLab for itself automatically so you can continue without leaving the conversation.
{% endhint %}


---

# 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.nexos.ai/workspace/integrations/gitlab.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.
