LINE Messaging API
Send push, reply and broadcast messages from a LINE Official Account, the main chat app in Japan, Taiwan and Thailand, and check the bot, its monthly message quota and user profiles. The free plan includes a monthly number of push messages (it varies by country); replies are free.
7 æ¥éç¡æ · ã¯ã¬ãžããã«ãŒãäžèŠ Â· EU ãã¹ã
LINE ã«äœã§ãèãã
AnythingMCP çµç±ã§ LINE Messaging API ã«å®éã®ããã³ããã詊ãã â Claude ãããŒã«ãåŒã³åºããåçããŸããããªãã®ã¡ãã»ãŒãžã§ Enter ãæŒããš Cloud ã«ã€ã³ã¹ããŒã«ããŸãã
LINE ã Cloud ã«ã€ã³ã¹ããŒã«Claude 㯠AI ã®ãã誀ãããšããããŸããåçãã確èªãã ããã
2 åã§ã»ããã¢ãã
- 1cloud.anythingmcp.com ã§ç¡æãã©ã€ã¢ã«éå§ã
- 2ã³ãã¯ã¿ãŒã¹ãã¢ã§ LINE Messaging API ãã¯ãªãã¯ãè³æ Œæ å ±ã貌ãä»ãã
- 3MCP API ããŒãçºè¡ããAI ã¯ã©ã€ã¢ã³ãã MCP URL ã«åããã
LINE ã®ã¬ã€ã
äž»èŠ AI ã¯ã©ã€ã¢ã³ãåãã®ã¹ããããã€ã¹ãããã»ããã¢ããã
LINE Messaging API ã®ã»ããã¢ãã
ã³ãã¯ã¿å®çŸ©ãã®ãã®ããïŒèªèšŒæ å ±ã®å ¥æå ãå¿ èŠãªæš©éããã®ã¢ããã¿ãåŒã³åºã APIã ã³ãã¯ã¿äœè ã«ããè±èªã§æäŸãããŠããŸãã
This connector uses the LINE Messaging API v2.
Creating a channel: log in to https://developers.line.biz/console â create a Provider â 'Create a new channel' â 'Messaging API'. Set up the LINE Official Account (auto-created with the channel), then under the channel's 'Messaging API' tab, scroll to 'Channel access token' â 'Issue' a long-lived token. Paste it as LINE_CHANNEL_ACCESS_TOKEN.
Authentication: Bearer Token (the channel access token). Note: this token belongs to the channel, not to a user â anyone with the token can post as that Official Account, so keep it secret.
Message shape: LINE messages are objects with a type field. Simplest example: {"type": "text", "text": "Hello"}. Other types: sticker, image, video, audio, location, template, flex. The messages parameter on every tool is an array of up to 5 message objects.
to userId: a userId is U followed by 32 hex characters. It comes from a webhook event (this connector does not receive webhooks, so the user has to give it to you) or, on verified and premium accounts, from line_list_follower_ids. A display name is not a userId, and a made-up one fails with "The value for the 'userId' parameter is invalid".
replyToken: returned in webhook events, single-use, valid for about a minute after the user's message. Never call line_reply_message with a placeholder: LINE answers "Invalid reply token". Without a fresh token, push instead. Use line_reply_message (free, unlimited) instead of line_push_message (counts against the monthly quota) whenever possible.
Broadcast: sends to ALL friends of the Official Account. Counts heavily against the push quota â use sparingly.
Pricing: the free plan includes a monthly number of push and broadcast messages that depends on the country (for example 200 in Japan); paid plans raise it. line_get_message_quota returns the account's own limit.
Before sending: line_get_bot_info checks the token, line_get_message_quota and line_get_message_quota_consumption show how much of the monthly push quota is left. Push and broadcast reach real people: show the message and the recipient and wait for the user's yes.
ããªãã® AI 㯠LINE Messaging API ãã 2 ã¯ãªãã¯å ã
ã³ãã¯ã¿ãŒãã€ã³ã¹ããŒã«ãè³æ Œæ å ±ã貌ãä»ããAI ã«è³ªåã7 æ¥éç¡æãã¯ã¬ãžããã«ãŒãäžèŠã