Navigate to the **Connectors** or **External Data Source** section in the RAGFlow Admin Panel and select **Bitbucket**. Fill in the connector details in the popup window:
- **Name**: A descriptive name for this connector.
- **Bitbucket Account Email**: The email address for your Bitbucket account.
- **Bitbucket API Token**: The API token with proper permissions created in the previous step.
- **Workspace** The `WORKSPACE_NAME` from your Bitbucket URL, e.g., `https://bitbucket.org/{WORKSPACE_NAME}/...`
- **Index Mode**
- **Workspace**: (Default) Indexes all repositories in the workspace.
- **Repositories**: Indexes specified repositories in the workspace.
- **Repository Slugs**: A comma-separated list of repository slugs, e.g., `repo2,repo2`.
- **Projects**: Indexes specified projects in the workspace.
- **Projects**: A comma-separated list of project keys, e.g., `PROJ1,PROJ2`.
*RAGFlow validates the connection immediately and indexes all pull requests from the specified repos or projects.*