> ## 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.

# Typeform の埋め込み

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

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

## 前提条件

* Typeform アカウント
* 公開済みのフォーム

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

1. Typeform にログイン
2. 対象の **フォーム** を開く
3. 上部の **共有** タブをクリック
4. **Embed in a web page** を選択
5. フォームの URL（`https://xxxxxx.typeform.com/to/XXXXX`）をコピー

## 設定

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

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

```html theme={null}
<iframe
  src="https://xxxxxx.typeform.com/to/XXXXX"
  width="100%"
  height="500"
  frameborder="0"
></iframe>
```

<Info>
  Typeform は JavaScript SDK による埋め込みも提供していますが、iframe 形式が最もシンプルに設定できます。
</Info>
