# LINE

{% hint style="info" %}
Publish to LINE with the Total plan and above.
{% endhint %}

{% hint style="warning" %}
Requires a LINE account to access the [LINE Developers Console](https://documentation.proto.cx/docs/developer-documentation).
{% endhint %}

Publishing an AI agent to LINE allows your audience to interact with the agent—and [subsequently with live agents](https://documentation.proto.cx/docs/modules/ai-agents/workflows-and-actions/human-handoff)—in a LINE thread.

In the agent's **Publish** tab, [create a LINE channel](https://documentation.proto.cx/docs/modules/ai-agents/publishing/..#add-a-channel) or select an existing one from the table to open its settings.

***

## Basic Settings

In the **Basics** accordion, the following options are available:

* **Name** — the internal name of the channel, used to distinguish from any other Messenger channels the agent is published to.
* **Default chat language** — the language used by the AI agent at the start of a new chat. Available languages are set in the agent's [General](https://documentation.proto.cx/docs/modules/manage-ai-agents#general) settings.
* **Icon** — the channel's avatar seen by live agents in the [Inbox](https://documentation.proto.cx/docs/modules/inbox) dashboard.

Press **Save** to confirm edits.

***

## Connecting to LINE

In the **Configuration** accordion, three values are required from your LINE Developers Console account:

* **Channel ID**
* **Channel secret**
* **Access token**

Then, you'll need to integrate a Proto webhook with the LINE Developers Console.

Follow the guides below for each step.

***

### Channel ID, Secret, and Access Token

Create a channel in the LINE Developer Console:

1. Log in to the [LINE Developers Console](https://developers.line.biz/console/register/messaging-api/provider/) with the same email and password as your LINE account.
2. On first login to the Developer Console, make sure to register as a developer.
3. Create a new **provider** or select an existing one. This cannot be changed later.
4. Create a **channel** and confirm.
5. Go to the channel's basic settings. Copy the **Channel ID** and **Channel Secret**, and paste them into the respective fields in Proto's LINE **Configuration** accordion.

***

### Proto Webhook

For Proto to send and receive message from LINE, a webhook integration is required.

1. In the [LINE Developers Console](https://developers.line.biz/console/register/messaging-api/provider/), go to the **channel**.
2. Go to its **Messaging API** tab.
3. Under the Webhook section, select **Edit** and copy in the webhook URL from Proto's LINE **Webhook** accordion.
4. After proceeding, you will be redirected to the LINE Official Account Manager's Response settings page. Ensure they are set as follows:
   * **Chat** - Enabled
   * **Greeting message** - Disabled
   * **Webhooks** - Enabled
   * **Response Hours** - Enabled
   * **Response Method** - Manual Chat

***

## Voice Messages

LINE supports voice messaging via speech recognition (ASR) and text-to-speech (TTS).

* Inbound voice — when a person sends a voice message in LINE, it is automatically transcribed to text using ASR and processed by the AI agent as a standard text input.
* Outbound voice — AI agent text responses can be delivered as audio messages using TTS.

Voice capabilities require ASR and TTS to be enabled at the workspace level via the main menu.

***

## Using LINE

In the LINE Developers Console, go to the channel's **Messaging API** tab and scan the QR code.

This will allow you to add the Proto AI agent as a friend on LINE, and the contact can be shared with your audience for them to do the same.

<br>
