> 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FcOvW0byFVEBljiYiabTH%2Funknown.png?alt=media&amp;token=ff7b349e-9fc0-437e-9af3-849729fafed6" alt=""><figcaption></figcaption></figure>

* Go to Preferences

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FPAHb5T5jATZOpAVjwK8m%2Funknown.png?alt=media&amp;token=874a5ada-cb10-4817-a738-ddf5a1982aa5" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FhMjJCU6OCeUhVK7rvKKf%2Funknown.png?alt=media&amp;token=40e7b2df-c27e-4641-9cf8-917470a32597" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FnHFwXVjSXpVavm2XNr4f%2Funknown.png?alt=media&amp;token=18791564-d3be-4b6b-ad65-32b2b5f04f48" 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="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FSRPRcXue598Diw8GCTju%2Funknown.png?alt=media&amp;token=893d82b2-11cd-4e6e-820c-cdbf4efa2b72" alt=""><figcaption></figcaption></figure>

* Select the required repositories.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FS5t3O3iZFcEMZrWs8eZc%2Funknown.png?alt=media&amp;token=daf8e463-2f49-46f0-9a6d-e5aa400e5358" alt=""><figcaption></figcaption></figure>

* Choose the relevant branches.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F1qC8OGkoFIY75VT1zWHo%2Funknown.png?alt=media&amp;token=c096eb4a-9cb1-4fb3-b589-9e207699a0ec" alt=""><figcaption></figcaption></figure>

* Click Connect to complete the integration.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FVxSNRB11wzhVf1AqU8RT%2Funknown.png?alt=media&amp;token=512ce78e-3291-4018-8ec0-3800ba012fff" alt=""><figcaption></figcaption></figure>

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