> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/getting-started/projects/create-a-new-project/external-data-and-connections/how-to-integrate-gitlab-with-walnutai.md).

# How to Integrate GitLab with WalnutAI

#### **Steps to Generate a GitLab Personal Access Token**

* Log in to GitLab
* Click your Profile Avatar

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

* Go to Preferences

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

* Click Access Tokens
* Fill in the details and choose the required permissions.
* Generate the token and copy it.

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

#### **Connect GitLab to WalnutAI**

* Log in to WalnutAI.
* Go to Integrations and select GitLab.

<figure><img src="/files/4rDWsP3DaNXUkDuroWEU" alt=""><figcaption></figcaption></figure>

* Paste the copied Personal Access Token.
* Click Validate and Fetch to verify the token and retrieve repository details.

<figure><img src="/files/5Ptg2UoLC5W1fxvvnJU6" alt=""><figcaption></figcaption></figure>

* Select the required repositories.

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

* Choose the relevant branches.

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

* Click Connect to complete the integration.

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

* Go to the WalnutAI code editor and clone the project.
