Creating Relay Rules
A relay rule is DLinkClaw’s core automation unit: when an event happens, run actions.
Rule Structure
Section titled “Rule Structure”A relay rule has three parts:
trigger: # Trigger condition type: message_received source: any
condition: # Optional filter channel: "#support"
action: # Actions to run - type: notify target: "@oncall" - type: create_task board: "Support"How to Create
Section titled “How to Create”- Open the DLinkClaw client and go to the Workflows page.
- Click “New Relay Rule”.
- Choose a trigger type (message, schedule, webhook, file change, etc.).
- Configure conditions and actions — chain multiple action nodes.
- Save and enable.
Common Triggers
Section titled “Common Triggers”| Trigger | Description |
|---|---|
message_received |
Fires when a message arrives |
schedule |
Fires on a Cron schedule |
webhook |
Fires when called via webhook |
file_changed |
Fires when a watched file changes |
agent_completed |
Fires when an agent task completes |
Debugging
Section titled “Debugging”Enable “Debug Mode” to get a run log for every trigger, with per-node inputs and outputs.
