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

# Connect LINE

> Link your LINE Official Account to your organization, set its webhook, and grant it to your apps.

Connecting a LINE Official Account lets your apps send and receive messages through it. You'll need a LINE Official Account and access to the [LINE Developers Console](https://developers.line.biz/) to copy a few credentials.

<Note>
  Just testing? You don't need your own account yet—apps can send on a shared dev account in sandbox
  and preview with no setup (50 messages/day). Connect your own before going live. See [the testing
  comparison](/connected-services/line/overview#testing-vs-your-own-account).
</Note>

## Connect your account

<Steps>
  <Step title="Open Integrations">
    In your organization dashboard, go to **[Settings → Integrations](https://www.stardeck.ai/dashboard/settings?tab=integrations)** and expand **LINE**. Click **Connect LINE Official Account**.
  </Step>

  <Step title="Copy your credentials from LINE">
    In the LINE Developers Console, open your account's **Messaging API** channel and copy:

    * **Channel ID**
    * **Channel secret**
    * **Channel access token** (the long-lived token)
  </Step>

  <Step title="Paste them into Stardeck">
    Enter the three values (and an optional display name) and submit. Stardeck verifies them with LINE and adds the account to your list.
  </Step>

  <Step title="Set the webhook URL">
    Copy the **webhook URL** shown in the dialog and paste it into your channel's **Messaging API → Webhook settings** in the LINE console, then enable "Use webhook." This is what lets your account receive messages. See [Receiving messages](/connected-services/line/receiving-messages).
  </Step>
</Steps>

You can connect more than one Official Account—each appears as its own connection.

## Grant the connection to your apps

A connection does nothing until you allow an app to use it.

<Steps>
  <Step title="Open Grants">On the connection, click **Grants**.</Step>

  <Step title="Add an app">
    Pick an app from your organization and grant it access. Repeat for each app that should use this
    account.
  </Step>

  <Step title="Set a default">
    If an app can reach more than one LINE account, mark one as the **default** (the star). The
    agent uses the default when you don't name a specific account.
  </Step>
</Steps>

## Build features

Once a connection is granted, open the app's project chat and describe what you want:

```
Send a LINE message to the customer when their booking is confirmed
```

The agent builds against the granted connection automatically. See [What you can build](/connected-services/line/overview#what-you-can-build).

## Rotate credentials

If you regenerate your channel secret or access token in the LINE console, click **Rotate** on the connection and paste the new values. Stardeck re-verifies them, and your grants and defaults are preserved. (The account must stay the same—rotating can't switch a connection to a different Official Account.)

## Disconnect

Click **Delete** on a connection to remove it. Any app relying on it can no longer send or receive through that account, so re-point them to another connection if needed.

## Next steps

<CardGroup cols={2}>
  <Card title="Receiving messages" icon="inbox" href="/connected-services/line/receiving-messages">
    React when customers message your account
  </Card>

  <Card title="What you can build" icon="sparkles" href="/connected-services/line/overview">
    Example LINE features to ask the agent for
  </Card>
</CardGroup>
