Skip to content

Actions Reference

Actions are the building blocks of Canoryn agents. Each action represents a capability—something your agent can do.

Action Categories

CategoryDescriptionExample
TriggersStart points for blueprintsVoice, Time, App Launch
LogicControl flow and decisionsCondition, Loop, Switch
AILLM-powered intelligenceGenerate, Summarize, Classify
SystemmacOS integrationsOpen App, Notification, Clipboard
MediaMusic and entertainmentSpotify, Apple Music
DataStorage and retrievalMemory, Variables, Files

Action Structure

Every action has:

typescript
interface Action {
  id: string; // Unique identifier (e.g., "spotify.play")
  name: string; // Display name (e.g., "Play Music")
  category: string; // Grouping (e.g., "spotify")
  inputs: Port[]; // Input parameters
  outputs: Port[]; // Output values
  execute: Function; // The actual logic
}

Common Actions

Triggers

ActionDescriptionOutput
trigger.voiceActivated by voice commandTranscribed text
trigger.timeScheduled executionCurrent time
trigger.appWhen app opens/closesApp name, event type
trigger.hotkeyKeyboard shortcut-

Logic

ActionDescriptionInputs
logic.conditionIf/else branchingBoolean condition
logic.switchMulti-way branchingValue to match
logic.loopRepeat actionsCount or condition
logic.delayWait before continuingDuration (seconds)

AI

ActionDescriptionInputs
ai.generateFree-form LLM promptPrompt, Context
ai.summarizeCondense textText input
ai.classifyCategorize inputText, Categories
ai.extractPull structured dataText, Schema

System

ActionDescriptionInputs
system.notificationShow macOS notificationTitle, Body
system.open_appLaunch an applicationApp name
system.clipboardRead/write clipboardMode, Content
system.speakText-to-speechMessage

Creating Custom Actions

Developer Feature

Custom actions require Swift knowledge. This feature is for advanced users.

See the Action Development Guide for creating your own actions.

Next Steps