# 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FCso7dc5o12TORU3eGRXO%2FScreenshot%20(8).png?alt=media&#x26;token=b3feb732-d7a8-46fc-b859-bb8b8e7a4d8a" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2F4tpleLxG06glJhVGmBwi%2F2.png?alt=media&#x26;token=a86f8d91-b0d0-498c-88a4-95ac1b2abbe4" alt=""><figcaption><p>Create a new channel</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FvpCWdhOVnubC1RRk3HUK%2F3.png?alt=media&#x26;token=d25b71d6-de5f-4662-b851-c2ba696202e4" alt=""><figcaption><p>Messaging API</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FR8yqCJj7tLLH33wVeYx2%2F4.png?alt=media&#x26;token=864f8567-c0ec-41cf-b041-c215bf352d4d" alt=""><figcaption><p>Fill in requried fields</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FCuPQmaSKsZ715SXuAoWs%2F5.png?alt=media&#x26;token=19479d31-844b-4873-b127-9ebebfd5a13f" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FVwouzBbO9YcLpVN5Gh1X%2F6.png?alt=media&#x26;token=1d08b4b2-05e5-4099-9e92-c7cd14e0b6d6" alt=""><figcaption><p>Paste Channel ID</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FGiFaciHErddBE23ieV3A%2F7.png?alt=media&#x26;token=0490e788-8bed-46db-9319-5a376fcc45d3" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FYruZBvuzWzT8byfijgqw%2F8.png?alt=media&#x26;token=fe6c6e45-2456-4fad-a01a-fec0c5d1c8cb" alt=""><figcaption><p>Paste Channel secret</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FPP7KAoPckjHaM7Dib1C3%2F10.png?alt=media&#x26;token=6fa8af38-c1b3-4c4a-bd30-e4911fea21a5" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FY6xyAN4yDo8vv5fHjvD3%2F11.png?alt=media&#x26;token=3c1b69b9-a939-4f5b-b0aa-cdf413b2c626" alt=""><figcaption><p>Paste Webhook URL</p></figcaption></figure>

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

<figure><img src="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FRxmYbFfHNzZfuAxtVoNR%2F12.png?alt=media&#x26;token=3af05e9e-a6e2-412a-9881-60e1959a68cc" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FsItYkUMfPDZSoJ3thaO1%2F13.png?alt=media&#x26;token=797ff132-2d70-4267-8fca-c61fc4cb8446" 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="https://3400071099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FypCKq44Psaly6khgrY7x%2Fuploads%2FYWoXRigbXLXx1Eat330E%2F14.png?alt=media&#x26;token=e997cabb-082e-45c4-a4a6-9270a4fdd44a" 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.
