> For the complete documentation index, see [llms.txt](https://docs.klink.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.klink.cloud/getting-started/setup-channels/line-oa/connect-to-line-oa.md). Agents can also search and read this documentation through its [MCP server](https://docs.klink.cloud/~gitbook/mcp).

# Connect to LINE OA

This tutorial will guide you how to connect your existing LINE OA

{% hint style="info" %}
You need the following information to connect your existing LINE OA channel. Follow the tutorial to get it.

* Channel ID
* Channel secret

klink.cloud fetches the access token itself. You do not paste a Channel Access Token, and you do not paste a webhook URL.
{% endhint %}

{% content-ref url="/pages/j9iKoEMuG62Wd1vknGYg" %}
[Get Channel ID and Channel Secret](https://docs.klink.cloud/getting-started/setup-channels/line-oa/get-channel-id-and-channel-secret.md)
{% endcontent-ref %}

After you have the Channel ID and Channel secret, follow the steps below.

### Step 1 - Go to Settings, then Message Integration, then Available Channels, then LINE

The page title is **Connect LINE**. Enter the **Channel ID** and **Channel secret**, and a **channel name** (shown in the inbox, reports, and settings). Click **Connect LINE**.

klink.cloud then fetches the access token and sets the webhook URL automatically to:

`https://me.klink.cloud/line/{tenantId}/{channelId}/webhook`

You do not need to copy this URL into LINE yourself. After a successful connect, it appears in LINE Messaging API settings once you refresh the page.

### Step 2 - Turn on Use webhook and Webhook redelivery

Go to the [LINE Developers Console](https://developers.line.biz/) or Official Account Manager, open **Messaging API**, and refresh the page. Turn on **Use webhook** (LINE may also label this **Webhook URL**) and **Webhook redelivery**. klink.cloud sets the endpoint URL, but it does not flip these switches. Until they are on, inbound LINE messages will not arrive in klink.cloud.

### Done

You will see your LINE OA channel connected, and you will be able to receive messages from your customers via LINE OA.

{% hint style="info" %}
To allow group chats later, use Enable Group Chat after the channel is already connected.
{% endhint %}

{% content-ref url="/pages/hPtVcl3JHOg6C8jZ4IlM" %}
[Enable Group Chat](https://docs.klink.cloud/getting-started/setup-channels/line-oa/enable-group-chat.md)
{% endcontent-ref %}
