# How to connect LINE to Grok Bot

```json
{
  "title": "How to connect LINE to Grok Bot",
  "toolkit": "LINE",
  "toolkit_slug": "line",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/line/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/line/framework/grok-bot.md",
  "updated_at": "2026-10-04T15:58:07.773Z"
}
```

## Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.
This guide explains how to connect LINE to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with LINE in plain language.

## Also integrate LINE with

- [ChatGPT](https://composio.dev/toolkits/line/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/line/framework/claude-cowork)

## TL;DR

Composio exposes 1,500+ apps to your Grok bot through a single connection, so you get:
- Connect to 1,500+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
- Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
- Handle large tool responses outside the model context to keep conversations lean.

## Connect LINE to Grok Bot

### Connecting LINE to Grok Bot
Once Grok Bot is set up, you connect LINE entirely from its interface, and the whole flow takes under a minute.
### Set up Grok Bot
Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from [x.ai/bot](https://x.ai/bot) and sign in. An iPhone companion app is also available, and your bots sync across devices.
Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.
### Connect LINE
### 1. Add the Composio plugin
Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.
[Add to Grok Bot](https://x.ai/bot/plugin/32661537)
Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.
### 2. Authenticate
Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.
Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.
### 3. Connect your LINE account
Back in the chat, ask your bot to connect to LINE or give it any LINE task.
For example, ask it to:
- "Send coupon broadcast to LINE followers"
- "Create rich menu for promotions"
- "List LINE audience groups by size"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your LINE account is ready to use.

## What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.
With Composio Connect, your Grok bot can securely access apps like LINE through MCP without you sharing account credentials directly with the agent.

## What is the LINE MCP server, and what's possible with it?

The LINE MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your LINE account. It provides structured and secure access to your Official Account messages, followers, chat members, rich menus, and delivery counts, so your agent can send and reply to messages, manage rich menus, review audiences, mark messages as read, and track message delivery on your behalf.
- Message sending and replies: Have your agent send text messages to users or chats and reply to incoming messages from your LINE Official Account.
- Rich menu management: Direct your agent to create, view, list, update with images, or delete rich menus for your audience.
- Personalized menu assignment: Let the agent assign or remove rich menus for individual users and set or clear the default menu.
- Audience and chat review: Instruct your agent to list your Official Account followers or review the members of a group chat or room.
- Message monitoring: Have your agent mark incoming messages as read, check daily delivery totals, or retrieve preview images from retained media messages.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `LINE_CREATE_RICH_MENU` | Create Rich Menu | Create a rich-menu definition and return its ID. Creation alone does not display it: upload an image, then set it as default or link it to a user. |
| `LINE_CREATE_RICH_MENU_WITH_IMAGE` | Create Rich Menu with Image | Create a rich-menu definition and upload its JPEG or PNG image in one call. If image upload fails, the newly created definition is deleted automatically. The finished menu must still be set as default or linked to a user to display. |
| `LINE_DELETE_RICH_MENU` | Delete Rich Menu | Permanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove. |
| `LINE_DOWNLOAD_MESSAGE_CONTENT_PREVIEW` | Download Message Content Preview | Download LINE's reduced-size preview image for a retained image or video message whose contentProvider.type is line. |
| `LINE_GET_MESSAGE_DELIVERY_COUNT` | Get Message Delivery Count | Get the number of reply, push, multicast, or broadcast messages sent on one UTC+9 calendar date. A result can be unready, unavailable_for_privacy, or out_of_service instead of containing a count. |
| `LINE_GET_RICH_MENU` | Get Rich Menu | Get one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions. |
| `LINE_LINK_OR_UNLINK_USER_RICH_MENU` | Link or Unlink User Rich Menu | Link or unlink a per-user rich menu. WARNING: LINE can return HTTP 200 even when nothing changed for a nonexistent, deleted, blocked, non-friend, or cross-channel user; success confirms request acceptance, not the assignment effect. |
| `LINE_LIST_CHAT_MEMBER_IDS` | List Chat Member IDs | Return one page of member user IDs for a group or legacy room containing the bot. Requires a verified or premium LINE Official Account; room applies only to legacy multi-person chats. |
| `LINE_LIST_FOLLOWER_IDS` | List Follower IDs | Return one page of user IDs for friends of the LINE Official Account. This endpoint requires a verified or premium LINE Official Account and excludes blockers, deleted users, and users without profile consent. |
| `LINE_LIST_RICH_MENUS` | List Rich Menus | List all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included. |
| `LINE_MARK_MESSAGES_AS_READ` | Mark Messages as Read | Mark all messages through a webhook-issued read token as read. The token must have been received by this exact bot; this operation cannot be undone. |
| `LINE_SET_OR_CLEAR_DEFAULT_RICH_MENU` | Set or Clear Default Rich Menu | Set or clear the Messaging API default rich menu. Setting requires an image-backed rich menu; clearing does not delete the menu and does not clear a default managed in LINE Official Account Manager. |
| `LINE_UPLOAD_RICH_MENU_IMAGE` | Upload Rich Menu Image | Upload a JPEG or PNG image for a rich menu. An image cannot be replaced for the same rich-menu ID; create a new menu to use another image. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, your Grok bot can access the LINE MCP server through Composio to run the actions you authorize, using plain language in the chat.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that LINE is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

## How to build LINE MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/line/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/line/framework/claude-cowork)

## Related Toolkits

- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Outlook](https://composio.dev/toolkits/outlook) - Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
- [Slack](https://composio.dev/toolkits/slack) - Slack is a channel-based messaging platform for teams and organizations. It helps people collaborate in real time, share files, and connect all their tools in one place.
- [Gong](https://composio.dev/toolkits/gong) - Gong is a platform for video meetings, call recording, and team collaboration. It helps teams capture conversations, analyze calls, and turn insights into action.
- [Microsoft teams](https://composio.dev/toolkits/microsoft_teams) - Microsoft Teams is a collaboration platform that combines chat, meetings, and file sharing within Microsoft 365. It keeps distributed teams connected and productive through seamless virtual communication.
- [Slackbot](https://composio.dev/toolkits/slackbot) - Slackbot is a conversational automation tool for Slack that handles reminders, notifications, and automated responses. It boosts team productivity by streamlining onboarding, answering FAQs, and managing timely alerts—all right inside Slack.
- [2chat](https://composio.dev/toolkits/_2chat) - 2chat is an API platform for WhatsApp and multichannel text messaging. It streamlines chat automation, group management, and real-time messaging for developers.
- [Agent mail](https://composio.dev/toolkits/agent_mail) - Agent mail provides AI agents with dedicated email inboxes for sending, receiving, and managing emails. It empowers agents to communicate autonomously with people, services, and other agents—no human intervention needed.
- [Android Texter](https://composio.dev/toolkits/android_texter) - Android Texter is an API service that connects Android phones to SMS, MMS, contacts, and device data. Use it to automate mobile messaging without building your own phone-to-API bridge.
- [Basecamp](https://composio.dev/toolkits/basecamp) - Basecamp is a project management and team collaboration tool by 37signals. It helps teams organize tasks, share files, and communicate efficiently in one place.
- [Blooio](https://composio.dev/toolkits/blooio) - Blooio is a stable v2 API platform for messaging, chats, contacts, groups, phone numbers, and account analytics. It gives teams a clean way to build reliable communication workflows without stitching together fragile custom APIs.
- [Callback24](https://composio.dev/toolkits/callback24) - Callback24 is a telephony API for managing phone calls, users, services, and routing groups. It centralizes call control and routing to automate voice workflows and operations.
- [CallOnTheGo](https://composio.dev/toolkits/callonthego) - CallOnTheGo is a telephony API for managing phone numbers, caller IDs, suppression lists, audio assets, contact lists, and Voice AI campaigns. It provides programmatic control over calling infrastructure and campaign automation for scalable voice outreach.
- [Carbon Voice MCP](https://composio.dev/toolkits/carbon_voice_mcp) - Carbon Voice MCP is a voice-first collaboration platform for messages, conversations, and workflows. Use it to centralize voice communications and streamline team collaboration.
- [CardClan](https://composio.dev/toolkits/cardclan) - CardClan is a digital card platform for creating and sending personalized team cards. Use it to celebrate moments, share card links, and manage card workflows without extra coordination.
- [Chatwork](https://composio.dev/toolkits/chatwork) - Chatwork is a team communication platform with group chats, file sharing, and task management. It helps businesses boost collaboration and streamline productivity.
- [Clickmeeting](https://composio.dev/toolkits/clickmeeting) - ClickMeeting is a cloud-based platform for running online meetings and webinars. It helps businesses and individuals host, manage, and engage virtual audiences with ease.
- [Confluence](https://composio.dev/toolkits/confluence) - Confluence is Atlassian's team collaboration and knowledge management platform. It helps your team organize, share, and update documents and project content in one secure workspace.
- [Daily](https://composio.dev/toolkits/daily) - Daily is a WebRTC video and audio API platform for building rooms, meetings, recordings, live streams, transcriptions, and telephony. It gives developers reliable real-time media infrastructure without managing complex conferencing stacks.
- [Dailybot](https://composio.dev/toolkits/dailybot) - DailyBot streamlines team collaboration with chat-based standups, reminders, and polls. It keeps work flowing smoothly in your favorite messaging platforms.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and LINE MCP?

With a standalone LINE MCP server, the agents and LLMs can only access a fixed set of LINE tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from LINE and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Grok Bot?

Yes, you can. Grok Bot fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right LINE tools.

### Can I manage the permissions and scopes for LINE while using Tool Router?

Yes, absolutely. You can configure which LINE scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your LINE data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
