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

# Connect LINE to Cogno

> Connect LINE groups to search conversations, create Tasks, and send messages with images or videos through Cogno.

![LINE](https://mintcdn.com/genaxis/xAstFfwT24Zi47N8/images/integrations/line.png?fit=max\&auto=format\&n=xAstFfwT24Zi47N8\&q=85\&s=94242bde45a88760bdeb7aa1339dfb0c)

Bring new text from a LINE group into Cogno to search conversations, create Tasks from important messages, and send text to the group. Start by inviting Cogno in LINE and opening the connection link it sends.

## Before you start

* Choose a LINE group where you can invite Cogno.
* Be a member of the Cogno Workspace you want to connect. Workspace members can manage LINE; viewers cannot change the connection.
* Confirm the participants' consent, purpose of use, and access scope before starting collection.

Start from **Integrations → LINE** in the Workspace you want to connect.

## Connect a group

**1. Open Cogno in LINE**

In Cogno, open **Integrations → LINE**, select **Add group**, and choose
**Open Cogno in LINE**. You can also open the [Cogno official
account](https://line.me/R/ti/p/%40457jvzzt) directly.

**2. Invite Cogno to the group**

Invite the Cogno official account to your LINE group. Open the connection
link Cogno sends to the group. The link is valid for 7 days. You can
reopen it to connect the same group to another Workspace during that time.

**3. Choose the Workspace and Projects**

Sign in to Cogno and select the destination **Workspace**. Under **Projects
using this group**, select the Projects that should use its messages. You can
select multiple Projects. Existing Project settings are not removed.
Choose a group Workspace where you have a member, admin, or owner role.

**4. Confirm consent and connect**

Confirm participant consent, select **Collect new messages and attachments**, and
choose **Connect group**. You can also confirm display-name consent for
member matching. If no Project selects the group, Cogno does not act on its
messages, even when collection is enabled.

For a new connection, collection starts after setup completes. An existing connection that is already collecting continues during setup. You can set a **Group display name** later under **Integrations → LINE**.

After enabling collection, send a new text message to the LINE group and choose **Refresh**. An updated **Last received** time confirms receipt.

The same group can connect to multiple Workspaces. Open the connection link for each destination and confirm collection separately. Group display names, member mapping, search, important-message detection, and Tasks stay separate in each Workspace. Each Project selects its own LINE sources. Earlier history is never copied from another Workspace.

To add a Workspace later, expand the connected group and choose **Create connection link** under **Connect another Workspace**, then **Copy connection link**. Open that link and choose the additional destination. This additional-Workspace link expires after 7 days; share it only with the people connecting the group.

## Where to find each setting

| Place | What you configure |
| - | - |
| **Linked groups** | Group display names, participant consent, message collection, and the Projects using each group. |
| **Add group** | Instructions and the official-account link for connecting another group. |
| **Member mapping** | Which Workspace member corresponds to a LINE sender. |
| **Project Settings** | Which LINE groups are sources for that Project. |

The **Group display name** is a label inside Cogno. It does not rename the group in LINE. **Projects using this group** shows the current selection for Projects you can access, without opening another settings panel. Selecting a Project adds this group to that Project's sources and preserves its other selected groups. You can also change sources from **Project Settings**. No separate LINE member allowlist is needed.

## Map LINE senders to members

1. Under **Linked groups**, confirm consent to retrieve and store participants' LINE display names, then save.
2. Ask the person you want to map to send a **new text message** in a group with collection enabled.
3. Open the **Member mapping** tab and choose the corresponding Workspace member next to the LINE sender. Reload the page if the list has not updated.

Senders appear from new messages received after display-name consent. The list does not import every existing group participant at once. This mapping identifies who sent a message.

## What Cogno collects

* New group text messages and attachment metadata received after participant consent and collection are enabled.
* Earlier history is not imported. Cogno retrieves an attachment from LINE when asked to read it; LINE may expire the original content.
* Cogno sends a setup link when invited. Sending a regular message is a separate action, controlled by the connection's Tool settings.

## Read images, video, audio, and files

Send an attachment to a connected group, then ask Cogno to read it. For example, send a photo and write `@Cogno Describe this image`, or send a video and ask for a summary. The current Project must select the group as a source.

| Attachment | What Cogno can read |
| - | - |
| Image | A preview up to 2048 pixels on its longest side. |
| Video | A timestamped description of the visuals and audible speech. |
| Audio | A transcript and relevant sounds. |
| PDF | Extractable page text; scanned PDFs have no text extraction. |
| Text, CSV, JSON, XML | Up to 20,000 characters. |

Each read supports up to 15 MiB. Video and audio must be MP4/M4A and at most 5 minutes. Video/audio analysis uses the configured media service and requires it to be available. Other file types return metadata only. If LINE is preparing a clip, retry shortly. Expired, withdrawn, or externally hosted attachments cannot be read. Turning off collection or disconnecting the group prevents subsequent attachment reads. AI descriptions can contain errors; check uncertain details against the original.

## When Cogno acts on messages

In a connected group with only you and Cogno, new text messages request immediate
attention without a mention, just like a direct message. Cogno checks the current
participant count with LINE. When another person joins, or the count cannot be
confirmed, the group follows the usual rules below. Consent, collection, and
Project source selection still apply.

Mention Cogno using LINE's mention picker, or quote a message Cogno sent, to
request immediate attention without the normal conversation check. If the mention
picker is unavailable, start your message with `@Cogno` followed by a space or
line break and your request. This plain-text call also requests immediate attention;
merely discussing Cogno elsewhere in a message does not. Any reply is visible to the whole group, not a private reply
or a Slack-style thread, and still follows the **Send to LINE** Tool setting.

Cogno groups short bursts before deciding whether work is needed: after 30 seconds
without another message, or after two minutes of continuous messages. Large
bursts are split into bounded groups. A gap of five minutes starts a separate
conversation. A running agent receives more messages only when they continue
the same matter, not merely because they come from the same LINE group.

## Send text to a group

LINE replies focus on the essential answer, usually one to three short lines.
Ask for details when you need them; lengthy supporting material can go in a
Task or document instead of a series of messages. Text you explicitly ask
Cogno to relay is not shortened automatically.

Ask Cogno to send text to a connected group. The group must have collection enabled and participant consent confirmed, and it must be selected in the current Project's sources. Cogno posts as the same official account that joined the group, not as your personal LINE account.

To mention a group participant, ask Cogno to mention them and first map their LINE sender to a Workspace member as described above. Display-name consent must be enabled for that group, and the participant must have sent a new text there after mention support became available. Cogno checks that the person is still in the group; if the target cannot be confirmed, it does not send the message.

The **Read LINE** and **Send to LINE** capabilities follow the connection's Workspace and Project Tool settings. Both default to **Allow**. **Ask** requires approval before sending; **Block** prevents sending while reading continues. To stop sending to some groups only, override **Send to LINE** in each Project that selects those groups as sources. New messages arriving in the group do not automatically cause a reply to every message.

Each Workspace connected to a shared group can reply using its own selected Project sources. Sharing a group does not disable replies.

Each send contains one text message, up to 5,000 UTF-16 code units. Some characters, including many emoji, count as two units. Cogno can add one JPEG or PNG image (up to 10 MB) or one MP4 video (up to 200 MiB) after the text. A video needs a JPEG or PNG preview image of 1 MB or less, and so does an image over 1 MB. LINE loads the file from a link that stays valid for 7 days. Other file types and messages to personal LINE accounts are not supported by this action.

If a send fails or its result is uncertain, Cogno reports that state instead of claiming delivery. Repeating the same recorded send does not create another message. After unlinking, disconnecting, or stopping collection, Cogno cannot send to the group through that connection.

## Troubleshooting

| What you see | What to check |
| - | - |
| The connection link is unavailable | Connection links expire after 7 days. For a connected group, create a fresh link with **Connect another Workspace**. Otherwise, invite Cogno again. |
| The Workspace is missing or connection fails | Check the signed-in account, Workspace membership, and integration management permission. |
| The group is missing | Complete the Workspace selection using the connection link, then choose **Refresh** in the group list. |
| No messages arrive | Check **Joined**, participant consent, and collection. Save, then send a new text message. Invite Cogno again if the status is **Bot left**. |
| No senders appear | Save display-name consent, then ask the person to send a new text message. |
| Cogno does not act on a group's messages | Check **Projects using this group**. Select the Projects that should use it, and confirm consent and collection are enabled. |
| A Project cannot use the group | Check its selection under **Projects using this group**, and your access to the Workspace and Project. |

## Stop collection or disconnect

Turning collection off and saving opens a confirmation dialog. Stopping collection deletes retained LINE source content. Check the consent settings again when restarting.

To remove one group, choose **Unlink group** in that group's settings. Other groups remain connected. To disconnect LINE entirely, use the connection row's **More actions → Disconnect** menu.

Unlinking removes only this Workspace's connection and retained LINE source content. Other Workspaces connected to the same group continue collecting. Cogno leaves the LINE group only when its last Workspace connection is removed. Disconnecting LINE applies this rule to every group linked to this Workspace.

Removing Cogno in LINE removes that group's connections from every Workspace. To reconnect after Cogno leaves, invite it again and open its new connection link.

If leaving the group fails, collection stays stopped. Retry the unlink after resolving the error. For a group connected before automatic exit was introduced, Cogno may ask for one new LINE message to identify the group before retrying.

Previously created Tasks and answers remain after collection stops or the connection is removed.

## Replies in your personal LINE chat

After linking your Cogno account, send text to Cogno in your personal LINE chat. Ordinary messages do not get a separate “Received in…” reply; Cogno sends its answer back to the same chat. Replies do not append a workspace name. Workspace selection and change confirmations, account linking, and error messages still appear when needed.

To change workspaces, ask naturally, such as “Switch to my other workspace.” Cogno checks your membership and permission before switching. The change applies to later requests, and Cogno asks if the workspace name is ambiguous. You do not need to learn a command.

## Related pages

* [Integrations](https://cogno.studio/docs/integrations.md)
* [Projects](https://cogno.studio/docs/projects.md)
* [Connect LINE WORKS](https://cogno.studio/docs/lineworks-integration.md)
* [Troubleshooting](https://cogno.studio/docs/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.