# 接続

接続を使うと、外部コンテンツをドキュメントサイトに取り込めます。

接続されたコンテンツは、 [AI 検索](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-site/ai-search) 、 [GitBook Assistant](https://gitbook.com/docs/documentation/ja-gitbook-documentation/ai-to/gitbook-ai-assistant)に表示されることがあります。一部の接続は、GitBook が変更リクエストを生成するのにも役立ちます。

接続を追加するには、サイトの **設定** を開いて **接続**.

<figure><img src="https://4217681718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FbbH4i4bbDdzpkvc57s9h%2F26_03_30_connections%402x.png?alt=media&#x26;token=92203fbd-dc21-4348-aa93-8806ca03c1b9" alt=""><figcaption></figcaption></figure>

### 接続の仕組み

{% stepper %}
{% step %}

### ソースを接続

ソースの種類を選択します。次に、認証するか、GitBook にインポートさせたい URL を入力します。

各接続は、そのソースから、課題、ディスカッション、ページ、動画などのレコードのストリームを作成します。
{% endstep %}

{% step %}

### GitBook はレコードを同期します

接続を保存すると、GitBook はそのソースからレコードの同期を開始します。

接続一覧では、同期ステータス、レコード数、最終同期時刻を確認できます。
{% endstep %}

{% step %}

### レコードの使用方法を選択する

各接続について、そのレコードを検索や GitBook Assistant に表示するかどうか、また GitBook が変更リクエストを生成するのに役立てるかどうかを選べます。

また、接続の検索順位を調整して、レコードの優先度を上げたり下げたりすることもできます。
{% endstep %}
{% endstepper %}

### 接続の設定

接続を編集すると、次のオプションを設定できます:

#### ラベル

使用 **ラベル** 接続にわかりやすい名前を付けるため。

これにより、特に複数のリポジトリ、ウェブサイト、またはチャンネルを接続している場合に、接続一覧でソースを識別しやすくなります。

#### 変更リクエストを自動生成

{% hint style="warning" %}
変更リクエストの自動生成は現在、早期アクセス中です。&#x20;

参照 [agent-jian-cha](https://gitbook.com/docs/documentation/ja-gitbook-documentation/gitbook-agent/agent-jian-cha "mention") アクセスをリクエストする方法について
{% endhint %}

をオンにする **変更リクエストを自動生成** GitBook が接続のレコードから学習し、ドキュメント更新案を提案できるようにするため。

GitBook はこれらのレコードを使用して、チームが確認するための提案変更付き変更リクエストを作成できます。

#### 検索 / アシスタントに公開

をオンにする **検索 / アシスタントに公開** 訪問者がこの接続のレコードを検索可能にし、質問への回答に利用できるようにするため。

これにより、接続されたコンテンツがサイトの AI 搭載検索体験や GitBook Assistant の応答に表示されるようになります。

{% hint style="warning" %}
有効にすると **検索 / アシスタントに公開** その接続のレコードが、そのサイトにアクセスできるすべての人に利用可能になります。サイトが外部公開されている場合は、外部訪問者も含まれます。
{% 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://gitbook.com/docs/documentation/ja-gitbook-documentation/ai-to/jie-xu.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.
