Graphrt

LINE Messaging

Push and reply messages (with retry keys), multicast and broadcast (node only), profiles, followers, groups and quota, agent pushes need an opt-in and a recipient id allowlist

Beta v0.1.0 Node.js 16 actions ToS risk low
Use in Graphrt Desktop

About

A Graphrt plugin for the LINE Messaging API: a LINE Official Account bot that pushes and replies to messages, multicasts and broadcasts (node only), reads user profiles, followers and group info, and checks the monthly message quota.

What it can do

  • Send: push_message (one user, group or room), reply_message (with a webhook reply token), multicast_message (up to 500 users, node only), broadcast_message (all friends, node only), validate_push_messages (check message objects, sends nothing), show_loading_animation
  • Users: get_profile, list_followers (verified/premium accounts, next_cursor)
  • Groups: get_group_summary, get_group_member_count, get_group_member_profile
  • Bot and quota: get_bot_info, get_quota, get_quota_consumption, get_push_message_count
  • api_request: any other endpoint on api.line.me (e.g. /v2/bot/richmenu/list, GET only for agents)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Bot info line-messaging.get_bot_info
  • User profile line-messaging.get_profile
  • Follower ids line-messaging.list_followers
  • Group summary line-messaging.get_group_summary
  • Group member count line-messaging.get_group_member_count
  • Group member profile line-messaging.get_group_member_profile
  • Message quota line-messaging.get_quota
  • Quota used line-messaging.get_quota_consumption
  • Push messages sent line-messaging.get_push_message_count
  • Validate messages line-messaging.validate_push_messages
Show all 16 actions
  • Push message line-messaging.push_message
  • Reply line-messaging.reply_message
  • Multicast line-messaging.multicast_message
  • Broadcast line-messaging.broadcast_message
  • Loading animation line-messaging.show_loading_animation
  • LINE Messaging API request line-messaging.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • LINE_CHANNEL_ACCESS_TOKEN Required
    Channel access token (long-lived, or a v2.1 / stateless token you rotate yourself)
  • LINE_TOOL_ALLOW_SEND Optional
    1 lets agent tools use push_message and reply_message
  • LINE_TOOL_RECIPIENT_ALLOWLIST For agent pushes
    Comma-separated user, group or room ids agent tools may push to (matched exactly, no wildcards)

How to use it

In Graphrt Desktop

  1. Open Plugins and search for LINE Messaging.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install line-messaging
workflow.yaml
- id: push
  type: line-messaging.push_message
  to: U4af4980629a1b2c3d4e5f6a7b8c9d0e1
  messages:
    - { type: text, text: "Your order {{#start.order_id#}} has shipped" }
- id: reply
  type: line-messaging.reply_message
  reply_token: "{{#start.reply_token#}}"
  messages:
    - { type: text, text: "Thanks! We'll get back to you soon." }
Plugins in the docs