> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to LINE Bot

> Learn how to quickly integrate LINE Bot with Pathors, including Messaging API, Channel Secret, Access Token, and webhook setup.

## Overview

This guide will walk you through integrating LINE Bot with Pathors, covering provider creation, Messaging API, LINE login, access token, channel secret, and webhook setup.

## Step 1: Create a Provider

1. Go to the [LINE Developers Console](https://developers.line.biz/console/)
2. Click "Create a new provider" and enter a provider name (Chinese characters only)

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step1-create-provider.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=165207185933c52223f16becbbc2cb2a" alt="Create a new provider" width="2672" height="1440" data-path="images/linebot/step1-create-provider.png" />
</Frame>

## Step 2: Create Messaging API

1. Due to recent updates, use the [special form](https://entry.line.biz/form/entry/unverified) to create a Messaging API channel
2. Fill in the required information (account name, email, company info, etc.) and submit

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step2-messaging-api-form.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=a916dac4d3ca21288ae86ca973b8ac64" alt="Messaging API creation form" width="2672" height="1440" data-path="images/linebot/step2-messaging-api-form.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step3-messaging-api-form-filled.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=3bc2f3203bc248109b921d730c9bcbb4" alt="Form filled to create Messaging API" width="2672" height="1440" data-path="images/linebot/step3-messaging-api-form-filled.png" />
</Frame>

3. After creation, click "Enable Messaging API" on the page

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step4-enable-messaging-api.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=b0891f30074db1d9aa3b2d963abc6f59" alt="Enable Messaging API" width="2672" height="1440" data-path="images/linebot/step4-enable-messaging-api.png" />
</Frame>

## Step 3: Create LINE Login

1. Under your provider, select "Create a LINE Login channel"
2. Follow the instructions to complete the setup

## Step 4: Get Channel Secret & Access Token

1. Go to the [LINE Biz Admin Console](https://manager.line.biz/account/)
2. Select the Messaging API you just created

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step5-biz-select-messaging-api.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=24f47934d072bb10607f11204b2251fc" alt="Select Messaging API and go to settings" width="2672" height="1440" data-path="images/linebot/step5-biz-select-messaging-api.png" />
</Frame>

3. Click "Settings" in the top right
4. In the left menu, select "Messaging API"

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step6-biz-messaging-api-menu.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=ea7ee0a27e76ad21d5f78e639f022eab" alt="Click Messaging API menu" width="2672" height="1440" data-path="images/linebot/step6-biz-messaging-api-menu.png" />
</Frame>

5. You will find the Channel Secret and can set the webhook URL here

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step7-set-webhook-and-get-secret.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=5a093a3bcdcd4fa03e0ba95341b43ec2" alt="Set webhook and get Channel Secret" width="2672" height="1440" data-path="images/linebot/step7-set-webhook-and-get-secret.png" />
</Frame>

6. Click the "Channel access token" button and follow the instructions to issue a long-lived channel access token

<Frame>
  <img src="https://mintcdn.com/pathorstechnology/KdB-f_Xl4XvHDQAi/images/linebot/step8-issue-access-token.png?fit=max&auto=format&n=KdB-f_Xl4XvHDQAi&q=85&s=69af3e165a239554dacff610140c39bf" alt="Issue Channel Access Token" width="2672" height="1440" data-path="images/linebot/step8-issue-access-token.png" />
</Frame>

* See the official guide: [issue long live channel access token](https://developers.line.biz/en/docs/basics/channel-access-token/#long-lived-channel-access-token)

## FAQ

* Both channel access token and channel secret are required; get them from the Messaging API and LINE login pages respectively
* The webhook URL can be set on the Messaging API page

## Related Resources

* [LINE Developers Official Documentation](https://developers.line.biz/en/docs/)
