> ## 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.

# Receiving messages

> React when customers message your LINE account—replies, follows, and button taps are forwarded to your app.

LINE is two-way. When a customer sends a message to your connected Official Account—or follows it, or taps a button—Stardeck forwards that event to your app, and your app can react however you describe.

```mermaid theme={null}
flowchart LR
    Cust["💬 Customer"] -- "sends a message" --> LINE["LINE"]
    LINE -- "webhook" --> SD["☁️ Stardeck"]
    SD -- "forwards event" --> App["📱 Your app"]
```

For this to work, your account's **webhook URL** must be set in the LINE console—see [Connect LINE](/connected-services/line/connecting).

## What your app can react to

Events forwarded to your app include:

* **Messages** — a customer sends text to your account
* **Follows / unfollows** — a customer adds or removes your account
* **Button taps** — a customer taps an action button you sent earlier
* **Group events** — your account is added to or removed from a group

## Choosing which app receives events

When several apps are granted the same LINE account, you choose which of them receives that account's incoming events. Manage this per app in the app's integration settings—so a message comes into exactly the app that should handle it, not all of them.

## Build it

Open the app's project chat and describe what should happen when a message arrives:

```
When someone messages our LINE account, look up their recent order and reply with its status
```

```
When a new customer follows our LINE account, save them to our contacts and send a welcome message
```

The agent wires up receiving the events and sending the replies. You describe the behavior; you don't manage any of the plumbing.

<Note>
  Want the replies handled by an AI agent rather than logic you describe? Pair your LINE account to a [**Starcat Customer Agent**](/customer-agents/overview) that converses with customers automatically and lets your team approve drafts or take over. (In early access—ask [support](mailto:support@stardeck.ai) if you don't see **Conversations** in your dashboard.)
</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="Connect LINE" icon="plug" href="/connected-services/line/connecting">
    Link your account and set its webhook
  </Card>

  <Card title="LINE overview" icon="line" iconType="brands" href="/connected-services/line/overview">
    What you can build with LINE
  </Card>
</CardGroup>
