Kanorio

雲端基礎設施

自動化

基於觸發條件的自動化功能,支援條件判斷、分支、延遲、重試、自訂觸發條件與 HTTP 動作。

可用

自動化功能會在特定事件發生時執行步驟:例如訂單已付款、網上表單已提交、特定日期到達,或是您的系統回報了某個事件。發送電子郵件只是眾多動作中的其中一種。

核心物件

  • 觸發條件與動作: 一個包含每個觸發條件資料與每個動作輸入之 JSON schema 的目錄。
  • 自動化: 在後台或透過 API 建立的條件、分支、延遲與速率限制。
  • 執行紀錄: 每次執行的詳細步驟,包含重試機制、失敗細節以及重新執行的選項。
  • 自訂觸發條件: 使用 POST /sites/{id}/automations/events 回報您自己的事件以啟動自動化。

API 如何運作

  • 使用 Management API 讀取目錄、建立與編輯自動化、進行測試,以及讀取並重試執行紀錄。
  • automations.run.failed Webhook 會在執行失敗時通知您。

API 開放的範圍

  • Automation engine: trigger/action catalog, owner-built flows, per-step runs, custom triggers可用
    API
    Management API (REST/MCP) automations.catalog.get, automations.templates.list, automations.flows.* (list/get/validate/create/update/set_status/archive/delete/test), automations.runs.* (list/get/rerun), automations.events.report/cancel, automations.triggers.*, automations.secrets.*; preinstalled toggles via automations.list/set_action_enabled; signed inbound endpoint POST /api/webhooks/automations/<token> (Standard Webhooks)
    託管網站
    /automations, /automations/settings
    Webhooks
    Every trigger in the catalog is also a subscribable webhook event; custom triggers accept signed inbound webhooks (planned)

API 參考

Webhook 事件

  • automations.run.failed · Fired when a run of an owner-built automation ends in FAILED after retries (compensation already applied). Not fired for test runs or platform-default automations; at most once per automation revision every 30 days.
  • automations.flow.paused · Fired when Kanorio turns an owner-built automation off automatically because its current revision ran more than 20 times in the past 7 days and 95% or more of those runs failed.