Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

line-rich-messages

bởi shingo0620

Coding Agents & IDEs
485Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Comprehensive guide for LINE Rich UI features (Flex Messages, buttons, quick replies, and markdown auto-conversion).

Mô tả

Kỹ năng này làm gì

Templates and syntax guides for building rich UI in LINE messaging. Covers Flex Messages, quick reply buttons, confirm dialogs, and markdown-to-Flex auto-conversion. Designed for LINE bots running through the OpenClaw LINE plugin.

Pre-built JSON templates and a decision matrix remove the need to read LINE API docs or manually debug malformed Flex JSON.

Khi nào nên dùng

  • Sending a button menu when a chatbot asks the user to pick a category
  • Displaying order items as a formatted Flex Message card
  • Adding quick reply chips to reduce typing on mobile
  • Showing a confirm dialog before a user deletes saved data
  • Rendering a comparison table visually inside a LINE chat

Quy trình ví dụ

ĐẦU VÀO

User asks: 'Show me the available plans'

AGENT
  1. 1

    Consult decision-matrix.md to select the right UI element (bubble with buttons)

  2. 2

    Load the button template from flex-templates.md

  3. 3

    Populate the template with plan names, descriptions, and reply actions

  4. 4

    Send the Flex Message JSON through the OpenClaw LINE plugin

ĐẦU RA

A visual card with labeled buttons for each plan, delivered to the user in LINE

Yêu cầu

  • LINE Developer account
  • LINE Messaging API channel access token (configured in OpenClaw LINE plugin)

Cài đặt

clawhub install shingo0620/line-rich-messages

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết