LINE OA MCP and LINE Agent SDK
Connect a LINE Official Account to a LINE AI Agent from an AI tool. Allowed steps run on their own; steps for a person are marked and detected when done.
What it is#
LINE Agent SDK is the connection layer between an AI agent and a LINE Official Account (LINE OA). Whether you call the result a LINE Bot or a LINE AI Agent, it does one job: let an AI tool walk a person through the connection until the first real LINE message arrives.
- LINE OA MCP: MCP tools for Claude Code, Codex and Cursor.
- HTTP API: the same operations for programs that don't use MCP.
- Panel: the page where a person enters the Channel ID and Channel Secret and follows each step. The AI tool never handles a credential.
Three ways in#
Sandboxno Official Account yet. Add the shared sandbox as a friend, send a join code, and get the first message within minutes.Create a new Official Accountyou create the account and enable the Messaging API in LINE Official Account Manager while the AI walks you through it, then continue as an existing account.Connect an existing accountonly the Channel ID and Channel Secret. A read-only health check comes first, then push only, relay or direct, so an existing support system keeps working.
What LINE does and doesn't let you automate#
| Step | Who | How it's known to be done |
|---|---|---|
| Create a LINE Official Account | A person, in LINE Official Account Manager | No API |
| Enable the Messaging API and choose a provider | A person; the provider defaults to your company name and can't be changed once created | No API |
| Enter the Channel ID and Channel Secret | A person, in the panel | A stateless channel access token is issued with them |
| Set the webhook URL | Automatic | Written, then read back |
| Turn on "Use webhook" | A person, in the LINE Developers console | Detected automatically: LINE reports active |
| Add the account as a friend and send the pairing code | A person, on a phone | The webhook receives the code |
| Send the first message | Automatic, a reply to the pairing message | LINE accepts it, and replies don't use the monthly quota |