> 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-en/lineliff/setting.md).

# How to Integrate

### <mark style="color:blue;">Prerequisites:</mark>

* Have already created a "Website" chat platform on the [MaiAgent Platform](https://admin.maiagent.ai/)
* Have already created a "Provider" and "LINE Login" channel on the [LINE Developers](https://developers.line.biz/zh-hant/) console platform

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

<figure><img src="/files/099CxZTfUQwcUy4IZsEi" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">Setup Steps:</mark>

1. On the [LINE Developers](https://developers.line.biz/zh-hant/) LINE Developers console platform, name your **LIFF app** in the "**LIFF app name**" field on the LIFF detail page.

**2. Size** field - select **Full**

**3. Endpoint URL** field

Copy the "**Public Access URL**" from the chat platform to the "**Endpoint URL**" field, and add "**/line-liff/**"

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

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

4. For the **Scopes** field, select **profile**
5. For the **Add friend option** field, select **On (normal)**
6. Click the "Save" button at the bottom of the page, then return to the LIFF detail page. You will see that the system has generated a **LIFF ID**. Enter this ID after ".../line-liff/" in the "Endpoint URL" field and click "**Update**"
7. Finally, go to the top and set this **LIFF** to <mark style="color:blue;">**Published**</mark> to complete the setup and go live.

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

### <mark style="color:blue;">Start Using!</mark>

1. The "**LIFF URL**" is the link URL for this **LIFF**.
2. When users click the "**LIFF URL**" link (rich menu) in LINE chat rooms, they will be directed to the Web Chat page to interact with the AI assistant, and the MaiAgent backend will receive user and conversation information.

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

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

### <mark style="color:blue;">Applicable Scenarios</mark>

Rich menu links in official accounts, online store integration, membership system integration, event registration systems, customer service systems


---

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