> ## Documentation Index
> Fetch the complete documentation index at: https://docs.timothe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Forms の埋め込み

> Google Forms のフォームをエージェントウィジェットに埋め込む方法

[Google Forms](https://www.google.com/intl/ja_jp/forms/about/) のフォームをウィジェット内に埋め込み、エンドユーザーがその場でアンケートや問い合わせフォームに回答できるようにします。

## 前提条件

* Google アカウント
* 作成済みのフォーム

## 埋め込みコードの取得

1. Google Forms でフォームを開く
2. 右上の **送信** ボタンをクリック
3. **リンクアイコン（`<>`）** タブを選択
4. 表示される埋め込み用 HTML コードをコピー、またはフォーム URL をコピー

## 設定

ダッシュボードの **エージェント設定 > アクション > アクションを追加 > 埋め込みコード** を選択し、以下のように設定します。

| 項目  | 値の例            |
| --- | -------------- |
| ラベル | アンケートに回答する     |
| コード | 以下の iframe コード |

```html theme={null}
<iframe
  src="https://docs.google.com/forms/d/e/XXXXX/viewform?embedded=true"
  width="100%"
  height="500"
  frameborder="0"
></iframe>
```

<Info>
  Google Forms は無料で利用でき、回答は Google スプレッドシートに自動で集計できます。URL の末尾に `?embedded=true` を付けると埋め込み表示に最適化されます。
</Info>
