skills$openclaw/creating-inline-actions
humanagent6.2k

by humanagent

creating-inline-actions – OpenClaw Skill

creating-inline-actions is an OpenClaw Skills integration for coding workflows. Interactive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder.

6.2k stars1.5k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecreating-inline-actions
descriptionInteractive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder. OpenClaw Skills integration.
ownerhumanagent
repositoryhumanagent/xmtp-agentpath: creating-inline-actions
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @humanagent/xmtp-agent:creating-inline-actions
last updatedFeb 7, 2026

Maintainer

humanagent

humanagent

Maintains creating-inline-actions in the OpenClaw Skills directory.

View GitHub profile
File Explorer
6 files
creating-inline-actions
rules
builder-create.md
1.2 KB
config-menus.md
1.5 KB
helpers-confirmation.md
947 B
helpers-selection.md
1.1 KB
SKILL.md
4.0 KB
SKILL.md

name: creating-inline-actions description: Interactive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder. license: MIT metadata: author: xmtp version: "1.0.0"

XMTP inline actions

Interactive button-based UI for XMTP agents following the XIP-67 specification. Users can tap buttons instead of typing commands.

When to apply

Reference these guidelines when:

  • Creating interactive button menus
  • Building confirmation dialogs
  • Implementing selection options
  • Setting up multi-menu navigation
  • Handling action callbacks

Rule categories by priority

PriorityCategoryImpactPrefix
1ActionBuilderCRITICALbuilder-
2HelpersHIGHhelpers-
3App ConfigMEDIUMconfig-
4ValidatorsMEDIUMvalidators-

Quick reference

ActionBuilder (CRITICAL)

  • builder-create - Create action menus with ActionBuilder
  • builder-send - Send actions to conversation

Helpers (HIGH)

  • helpers-confirmation - Send confirmation dialogs
  • helpers-selection - Send selection menus
  • helpers-navigation - Show navigation options

App Config (MEDIUM)

  • config-menus - Configure multi-menu applications
  • config-initialize - Initialize app from config

Validators (MEDIUM)

  • validators-inbox-id - Validate inbox ID format
  • validators-ethereum-address - Validate Ethereum address

Quick start

// 1. Add middleware to handle intent messages
agent.use(inlineActionsMiddleware);

// 2. Register action handlers
registerAction("my-action", async (ctx) => {
  await ctx.conversation.sendText("Action executed!");
});

// 3. Send interactive buttons
await ActionBuilder.create("my-menu", "Choose an option:")
  .add("my-action", "Click Me")
  .add("other-action", "Cancel")
  .send(ctx);

Implementation snippets

Action registry and handler:

import type { AgentMiddleware, MessageContext } from "@xmtp/agent-sdk";
import type { Intent } from "@xmtp/node-sdk";

type ActionHandler = (ctx: MessageContext) => Promise<void>;
const actionHandlers = new Map<string, ActionHandler>();

const registerAction = (id: string, handler: ActionHandler) => {
  actionHandlers.set(id, handler);
};

Inline actions middleware:

const inlineActionsMiddleware: AgentMiddleware = async (ctx, next) => {
  if (ctx.message.contentType?.typeId === "intent") {
    const intent = ctx.message.content as Intent;
    const handler = actionHandlers.get(intent.actionId);
    if (handler) await handler(ctx);
    else await ctx.conversation.sendText(`Unknown action: ${intent.actionId}`);
    return;
  }
  await next();
};

ActionBuilder class:

import { ActionStyle } from "@xmtp/node-sdk";

class ActionBuilder {
  private actions: { id: string; label: string; style?: ActionStyle }[] = [];
  constructor(private id: string, private description: string) {}
  
  static create(id: string, description: string) {
    return new ActionBuilder(id, description);
  }
  
  add(id: string, label: string, style?: ActionStyle) {
    this.actions.push({ id, label, style });
    return this;
  }
  
  async send(ctx: MessageContext) {
    await ctx.conversation.sendActions({
      id: this.id,
      description: this.description,
      actions: this.actions,
    });
  }
}

Confirmation helper:

const sendConfirmation = async (
  ctx: MessageContext, message: string,
  onYes: ActionHandler, onNo?: ActionHandler
) => {
  const ts = Date.now();
  registerAction(`yes-${ts}`, onYes);
  registerAction(`no-${ts}`, onNo || (async (c) => c.conversation.sendText("Cancelled")));
  await ActionBuilder.create(`confirm-${ts}`, message)
    .add(`yes-${ts}`, "Yes").add(`no-${ts}`, "No", ActionStyle.Danger).send(ctx);
};

How to use

Read individual rule files for detailed explanations:

rules/builder-create.md
rules/helpers-confirmation.md
rules/config-menus.md
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install creating-inline-actions?

Run openclaw add @humanagent/xmtp-agent:creating-inline-actions in your terminal. This installs creating-inline-actions into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/humanagent/xmtp-agent. Review commits and README documentation before installing.