> For the complete documentation index, see [llms.txt](https://support.charlla.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.charlla.io/jp/users-guide/widget/copy-code.md).

# サイトへ表示させる

作成したウィジェットを自社サイトに設置し、ユーザーに見える状態にするための手順をご案内します。

{% stepper %}
{% step %}

### ウィジェットのコードをコピーする

まず、設置に必要な専用コード（タグ）を取得します。

1. 上部メニューの \[ウィジェット] をクリックし、一覧画面を開きます。
2. 設置したいウィジェットのパネルにマウスカーソルを合わせます。
3. 出現したアイコンの中から、\[コードコピー] アイコン（ `< >` マーク） をクリックします。

{% hint style="success" %}
**コピーアイコンをクリックすると、自動でクリップボードにコードがコピーされます。**
{% endhint %}

<figure><img src="https://3627017617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgHfZL4HYwO19vNYjGhjS%2Fuploads%2F4ItVjPkvPrKe05pjBKt0%2F%E3%82%B3%E3%83%BC%E3%83%89%E3%82%B3%E3%83%94%E3%83%BC.png?alt=media&amp;token=bbaf008d-9db7-4560-bdfa-10dd4ebec430" alt=""><figcaption><p>画像クリックで拡大</p></figcaption></figure>
{% endstep %}

{% step %}

### コピーしたコードをサイトへ貼り付ける

Charllaでコピーしたコードは、ご自身のWebサイトの HTMLエディタ に貼り付けます。\
HTMLの編集が可能なページであれば、基本的にどこにでもウィジェットを表示させることができます。

【設置の流れ】

1. サイトの管理画面へアクセスし、編集したいページを開きます。
2. 編集画面を「HTMLエディタ（コード編集モード）」に切り替え、コピーしたコードを任意の場所に貼り付けます。
3. 変更を \[保存] すれば完了です。

{% hint style="success" %}
**保存前のプレビューをおすすめします**

コードを貼り付けた後は、いきなり保存・公開するのではなく、まずはプレビュー機能を使って「想定した位置に表示されているか」「サイトのデザインが崩れていないか」を確認してから保存すると安心です。
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://support.charlla.io/jp/users-guide/widget/copy-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
