Action Framework

The Arjux action framework allows you to extend your agent's capabilities with custom actions that trigger based on user messages.

Built-in Actions

Trending: Get current trending tokens on Clanker

Setup: Guide users through agent setup

Deploy: Help with deployment steps

Action Structure

Each action consists of three main components:

  • name: Unique identifier for the action
  • shouldExecute: Logic to determine when to trigger
  • execute: The action's main functionality

Response Types

Actions can respond in two ways:

  • Direct message response (shouldSendMessage: true)
  • Context for LLM (context: "...")

Memory Integration

Actions automatically:

  • Store their execution in long-term memory
  • Access user context and history
  • Maintain state across conversations