> 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/serve/whatislineliff.md).

# LINE LIFF：什麼是 LINE LIFF

什麼是 LINE LIFF（LINE Front-end Framework）：在 LINE 應用程式內嵌入網頁應用的框架，以及 MaiAgent Web Chat 用 LIFF 開啟的好處。

### <mark style="color:blue;">LINE LIFF 的概念：</mark>

LINE LIFF (LINE Front-end Framework) 是 LINE 所提供的一個網頁應用程式框架，讓開發者能夠在 LINE 應用程式內建立網頁應用。

透過 LIFF，開發者可以在 LINE 的聊天視窗中嵌入自定義的網頁應用程式，並能使用 LINE 提供的各種功能與使用者互動，例如讀取使用者的 LINE 資訊、傳送訊息、分享內容等。

### <mark style="color:blue;">LINE LIFF 的特點：</mark>

* **嵌入式 Web 應用程式**

  可以將網頁嵌入到 LINE 中，讓使用者直接在聊天或其他場景中開啟和使用。
* **存取 LINE 功能**

  使用 LIFF API，可取得使用者的基本資料（例如用戶名稱、LINE User ID），或使用 LINE 的功能，例如傳送訊息、加入好友等。
* **跨平台**

  LIFF 應用程式可以在各種設備上使用，包括手機（iOS 和 Android）與桌面瀏覽器，只要 LINE 支援即可。
* **方便的開發與部署**

  開發者只需部署一個 Web 應用程式並註冊到 LINE Developers 平台，就可以輕鬆讓使用者透過 LINE 使用該應用程式。

### <mark style="color:blue;">**LINE LIFF 的使用場景：**</mark>

* **會員系統**
  * 使用 LIFF 接入會員資料，讓使用者可以一鍵登入並綁定 LINE 帳號。
* **電子商務**
  * 在聊天中提供商品清單、購物車功能，並結合支付流程。
* **行銷活動**
  * 創建互動式活動頁面，例如抽獎、問卷調查等，讓用戶參與並分享給好友。
* **客戶服務**
  * 嵌入查詢系統或機器人互動功能，提供即時回應。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/tech/serve/whatislineliff.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
