# Import LINE chat history

### Overview

Due to LINE API limitations, when you first integrate with Zaapi your previous conversations will not be visible in the inbox (only new messages will appear). In order to continue your conversations with previous LINE friends, you must import your LINE OA chat history.

{% hint style="warning" %}
In order to import LINE chat history, your account must be subscribed to the LINE OA Chat package. [Learn how to subscribe to the LINE OA Chat package](https://lineforbusiness.com/th/service/line-oa-features/oa-chat-package)
{% endhint %}

***

### How to import LINE chat history

1. Navigate to the settings are and click "Integrations" in Zaapi
2. Click the "LINE Settings" icon
3. Click the individual LINE account that you want to import
4. From LINE OA, export your chat history
   1. Go to LINE OA on desktop
   2. Click "Basic Settings"
   3. Scroll to the bottom of the page
   4. In the "Chat History Backup" section, click "Create new"
   5. When the .zip file is created, click "Download"
5. Upload the entire .zip file in the modal within Zaapi
6. Click save
7. Wait a few hours for this to successfully import

***

### LINE friends limitations

* Only new customers you have interacted with after integration will appear in Zaapi, until you have imported your LINE chat history
* During the import, Zaapi may not be able to import all friends due to limitations with the LINE API, or due to any of the following reasons:
  * Chats in the folder must have messages
  * The customer must be a friend of your LINE OA
  * The customer should not have changed their name recently (the sync is matched on the customer name from the file and their name at the time of import)


---

# Agent Instructions: 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:

```
GET https://help.zaapi.com/integrations/line/import-line-chat-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
