> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/tech/maiagent-tech-ja/lineliff/setting.md).

# 連携方法

### <mark style="color:blue;">事前準備：</mark>

* [MaiAgent プラットフォーム](https://admin.maiagent.ai/)上で「Website」の対話プラットフォームを作成済みであること
* [LINE Developers](https://developers.line.biz/zh-hant/) のコンソールで「Provider」および「LINE Login」チャネルを作成済みであること

<figure><img src="/files/OG7f9bHPaBFTouocgWFw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/sDdvo01Dg8MOr6wdewmm" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">設定手順：</mark>

1\. [LINE Developers](https://developers.line.biz/zh-hant/) の LINE Developers コンソールにある LIFF detail ページの「**LIFF app name**」欄に、お使いの **LIFF app** の名前を設定します。

**2. Size** 欄で **Full** を選択します。

**3. Endpoint URL** 欄

対話プラットフォームの「**公開アクセスURL**」をコピーして「**Endpoint URL**」欄に貼り付け、末尾に「\*\*/line-liff/」\*\*を追加します。

<figure><img src="/files/PVNuD6F9lCG3gOl1sM31" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Fsj11BLELc8AEPsxd8pL" alt=""><figcaption></figcaption></figure>

4\. **Scopes** 欄で **profile** を選択します。

5\. **Add friend option** 欄で \*\*\*\*On (normal) を選択します。

6\. ページ下部の「Save」ボタンを押し、先ほどの LIFF detail ページに戻ると、システムが **LIFF ID** を生成していることが確認できます。その ID を「Endpoint URL」欄の URL「.../line-liff/」の後ろに入力し、「**Update**」を押します。

7\. 最後にページ最上部で、この **LIFF** を <mark style="color:blue;">**Published**</mark> にすると、設定と公開が完了します。

<figure><img src="/files/1Z8jVnBpn4fYvLwjUGoB" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">利用を開始しましょう！</mark>

1. 「**LIFF URL**」が、この **LIFF** のリンク URL です。
2. LINE のトーク画面で「**LIFF URL**」リンク（リッチメニュー）を開いたユーザーは、Web Chat ページに誘導されて AI アシスタントとの対話を利用でき、MaiAgent の管理画面側でユーザー情報や対話情報を受け取ることができます。

<figure><img src="/files/mm8qmikAqXLOBGEbdEWz" alt="" width="188"><figcaption></figcaption></figure>

<figure><img src="/files/7k0QZCiKCoQZIs8kOry6" alt="" width="188"><figcaption></figcaption></figure>

### <mark style="color:blue;">適用シーン</mark>

公式アカウントのリッチメニューへのリンク設置、オンラインストア連携、会員システム連携、イベント申込システム、カスタマーサービスシステム


---

# 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://docs.maiagent.ai/tech/maiagent-tech-ja/lineliff/setting.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.
