> For the complete documentation index, see [llms.txt](https://imbrace.gitbook.io/imbrace-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imbrace.gitbook.io/imbrace-documentation/channels/line.md).

# LINE

LINE allows messages to be sent and received using its Messaging API. This allows developers and third-party apps to automatically communicate through LINE.

## Channel Integration

{% embed url="<https://www.youtube.com/watch?v=RN7KluzT1M4>" %}
Self help - LINE video
{% endembed %}

\
\
To begin, you will need:

* A [LINE](https://line.me/en/) Official Account or Business Account.
* A channel associated with the above account. For more information, see the [official help page](https://developers.line.biz/en/docs/messaging-api/getting-started/) for creating a channel.

\
\
**Connect to iMBrace**, please follow the steps below:&#x20;

**STEP 1:** Log in to [LINE Developers Console](https://developers.line.biz/console/).

<figure><img src="/files/jPuH6vN6PiMNKuP8snFT" alt=""><figcaption><p>LINE Developers Console</p></figcaption></figure>

**STEP 2:** Under **Providers**, select your **Admin** and click **\[Create a new channel]**.

<figure><img src="/files/zUMpqlHY8rDagkFOaY0o" alt=""><figcaption><p>Create a new channel</p></figcaption></figure>

**STEP 3:** Select **\[Messaging API]**.

<figure><img src="/files/dPSdbZ1MzkSWohjQwJEp" alt=""><figcaption><p>Messaging API</p></figcaption></figure>

**STEP 4:** Fill in all required fields and click **\[Create] > \[OK] > \[Agree]**.

<figure><img src="/files/3wGEmwHwq6LNlzoGGDE4" alt=""><figcaption><p>Fill in requried fields</p></figcaption></figure>

**STEP 5:** Under Basic settings, copy **Channel ID**.

<figure><img src="/files/Cd1L5WnrXij0gYCEwPUn" alt=""><figcaption><p>Copy Channel ID</p></figcaption></figure>

**STEP 6:** In iMBrace, create a new LINE channel account and paste the **Channel ID** to the **LINE Channel ID**.

<figure><img src="/files/sTEufFiy54GMl9arcR7d" alt=""><figcaption><p>Paste Channel ID</p></figcaption></figure>

**STEP 7:** In LINE Developers Console, copy **Channel Secret**.

<figure><img src="/files/pAH1NYVOecaKY1806bMN" alt=""><figcaption><p>Copy Channel secret</p></figcaption></figure>

**STEP 8:** In iMBrace, paste the **Channel secret** to the **LINE Channel Secret**.

<figure><img src="/files/p6zg0Mlk07yV6A56Kd0l" alt=""><figcaption><p>Paste Channel secret</p></figcaption></figure>

**STEP 9:** Click **\[Copy URL]** to copy the **Webhook URL**.

<figure><img src="/files/tluyGEyJXyWdqf5uM64q" alt=""><figcaption><p>Copy Webhook URL</p></figcaption></figure>

**STEP 10:** In LINE Developers Console, under the Webhook settings, paste the Webhook URL and click **\[Update] > \[Verify] > \[OK]**.

<figure><img src="/files/zGEP7azwbM5zflnRp0Sa" alt=""><figcaption><p>Paste Webhook URL</p></figcaption></figure>

**STEP 11:** Turn on the **Use webhook.**

<figure><img src="/files/KUq43vgusjxYbFqqjMMX" alt=""><figcaption><p>Turn on Use webhook</p></figcaption></figure>

**STEP 12:** Under the **Channel access token** section, click **\[Issue]** and copy the **Channel access token (long-lived)**.

<figure><img src="/files/cRfBw0N4TjfGIpu2izj8" alt=""><figcaption><p>Copy Channel access token (long-lived)</p></figcaption></figure>

**STEP 13:** In iMBrace, paste the **Channel access token (long-lived)** to the **LINE Channel Token** and click **\[CREATE] > \[Active]**.

<figure><img src="/files/4mBWoVbPZkmtHbQ5rQwe" alt=""><figcaption><p>Paste LINE Channel Token</p></figcaption></figure>

**DONE:** The channel account can then be used to send and receive messages through LINE using the LINE and LINE Trigger nodes.
