Openclaw AI Bot — Colored Choice Buttons Skill for Openclaw

An automated UI enhancement skill that classifies and colors Telegram bot buttons based on the criticality and risk of user actions.

dandysuper
v1.0.0
Feb 14, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install telegram-colored-choices-buttons

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install telegram-colored-choices-buttons using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Openclaw AI Bot — Colored Choice Buttons Skill?

This Openclaw Skills component ensures that every choice presented by an AI bot is visually distinct and intuitive. By automatically applying styles like destructive (red) for irreversible actions or secondary (gray) for neutral options, it significantly improves user safety and interface clarity. It eliminates the risk of sending unstyled, plain buttons by enforcing a strict rule-based classification system for all multi-choice interactions.

Built to integrate seamlessly with the Telegram Bot API, the skill uses a logical classification engine to differentiate between common actions, high-stakes operations, and simple navigation. This approach ensures that developers using Openclaw Skills can provide a professional, polished user experience without manually styling every individual button in their code.

Openclaw AI Bot — Colored Choice Buttons Skill Use Cases

  • Distinguishing dangerous actions like account deletion or data wipes from safe navigation.
  • Highlighting recommended or primary paths in multi-step onboarding and setup flows.
  • Reducing accidental clicks on high-cost actions by applying high-contrast red styling to spend or pay buttons.
  • Organizing complex menus by separating primary actions from secondary escape hatches like back or skip options.

How Openclaw AI Bot — Colored Choice Buttons Skill Works

  1. The bot captures a set of raw choice strings or button dictionaries intended for the user response.
  2. A dedicated Python classifier analyzes the button text, callback data, and optional context hints against predefined regex patterns.
  3. The skill assigns a specific style attribute such as destructive, secondary, or null to each button based on tier priority.
  4. The formatted JSON payload, including the assigned styles and optional custom emojis, is sent to the Telegram Bot API.
  5. The end user receives a visually color-coded interface that accurately reflects the priority and consequence of each available choice.

Openclaw AI Bot — Colored Choice Buttons Skill Setup

To implement this skill, integrate the Python classifier into your bot's message handling logic. You can quickly verify the functionality using the provided shell helper:

./SKILL.sh <BOT_TOKEN> <CHAT_ID>

Ensure your bot environment supports the latest Telegram Bot API features to render the destructive and secondary button styles correctly.

Openclaw AI Bot — Colored Choice Buttons Skill Data Schema & Taxonomy

The skill organizes button data using a structured mapping system to ensure consistent styling across all Openclaw Skills implementations:

Attribute Description
text The visible label displayed on the button.
style Determines color: destructive (red), secondary (gray), or omitted (blue/accent).
callback_data The internal identifier sent back to the bot when the user interacts.
icon_custom_emoji_id An optional unique ID for adding custom emoji icons to the button face.
row An optional integer to force specific button placement within the layout.

Openclaw AI Bot — Colored Choice Buttons Skill Advanced Features

  • Intelligent multi-tier layout logic that automatically manages button rows for optimal mobile display.
  • Context-aware classification allowing developers to pass extra hints to force specific styles for ambiguous actions.
  • Support for both Inline Keyboard and Reply Keyboard types within the same classification framework.
  • Automated high-contrast enforcement to ensure destructive actions always stand out against neutral choices.
  • Seamless integration with custom emoji IDs to enhance visual storytelling on button labels.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*