automations
Skill này làm gì
Skill này giải thích cách tạo automation trong ứng dụng Agent-Native. Automation là một tập hướng dẫn mà agent làm theo, được kích hoạt bởi lịch, sự kiện, webhook hoặc việc nhấn thủ công. Skill dành cho người muốn công việc định kỳ của agent chạy mà không cần yêu cầu mỗi lần.
Khi nào nên dùng
- ✓Khi bạn muốn agent chạy một tác vụ theo lịch, chẳng hạn mỗi sáng.
- ✓Khi bạn muốn một tác vụ bắt đầu khi một sự kiện cụ thể xảy ra.
- ✓Khi bạn muốn một dịch vụ bên ngoài khởi động tác vụ qua webhook.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/automations/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập một automation gửi cho tôi bản tóm tắt các ticket hỗ trợ mới vào mỗi sáng thứ Hai đến thứ Sáu không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lưu mỗi automation thành một file markdown, với vài thiết lập ở đầu cho thời điểm chạy, và các hướng dẫn bên dưới. Bạn cũng có thể chạy thủ công bất cứ lúc nào.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Automations
Rule
Automations are the user-facing umbrella for agent-executed tasks that run on
demand, in response to events or webhooks, or on a cron schedule. Schedule,
Event, Manual, and Webhook are the persisted trigger types. Each
automation is a markdown resource under jobs/ with YAML frontmatter describing
when and how it fires, and a body containing natural-language instructions the
agent follows.
Recurring Jobs is the legacy name and API for scheduled automations.
manage-jobs, jobs/, and /agent#jobs remain stable compatibility surfaces.
Use manage-automations for new personal or organization automations, including
per-automation model overrides and MCP allowlists. Keep manage-jobs for
existing schedule-only integrations and delivery metadata.
The Persisted Trigger Types
| Type | Fires when | Trigger-specific fields |
|---|---|---|
schedule |
Cron expression matches (same as recurring jobs) | schedule (required), timezone |
event |
A matching event is emitted on the event bus | event (required), condition (optional) |
manual |
A user explicitly invokes run-now |
None |
webhook |
A POST reaches its generated webhook endpoint | None |
Event triggers can optionally include a condition -- a natural-language
string evaluated by a model against the event payload before dispatch. If the
condition does not match, the automation is skipped. Manual automations have no
schedule, timezone, event, or condition; they never fire from the
scheduler or event bus and run only through manage-automations
action=run-now. Webhook automations run only when their generated endpoint is
called. The endpoint path contains a secret token; share it only with the
intended webhook provider.
The UI's Email received choice is not a persisted trigger type. It is a
specialized event editor that persists triggerType: event with
event: mail.message.received and represents email filters as the event
condition.
How It Works
- User asks the agent to create an automation (or uses the app's Automations
page in Settings,
/settings/automations; open it withopen-settings-pagepageautomations). - For an event trigger, the agent calls
manage-automationswithaction=list-eventsto discover the exact registered event name and payload. - Agent calls
manage-automationswithaction=defineto write ajobs/<name>.mdresource. - The scheduler acquires due schedule triggers, the event dispatcher acquires
matching event triggers, the webhook route accepts authenticated endpoint
calls, and manual triggers wait for
action=run-now. - Event acquisition enforces owner and organization scope and evaluates any condition against the event payload.
- Schedule, event, webhook, and explicit run-now acquisition converge on the shared background-automation runner, which validates identity, resolves the configured model and MCP allowlist, runs the agent loop, handles continuation and delivery, and records usage.
- Status (
lastRun,lastStatus,lastError) is written back to the resource frontmatter.
Trigger acquisition stays separate by design: the scheduler decides when a cron
expression is due, the event dispatcher matches event names, owners, and
conditions, the webhook route authenticates its endpoint token, and run-now is
the only acquisition path for manual automations. Everything after a trigger is
accepted uses the same execution lifecycle.
Markdown Format
---
enabled: true
triggerType: event
event: calendar.booking.created
condition: "attendee email ends with @example.com"
mode: agentic
domain: calendar
createdBy: user@example.com
runAs: creator
---
Send a Slack message to #sales with the booking details.
Use the web-request tool with ${keys.SLACK_WEBHOOK}.
Frontmatter Fields
| Field | Type | Purpose |
|---|---|---|
schedule |
string |
Cron expression; new scheduled automations default to once per hour (0 * * * *) when omitted |
enabled |
boolean |
Whether the automation is active |
triggerType |
"schedule" | "event" | "manual" | "webhook" |
How the automation fires |
event |
string? |
Câu hỏi thường gặp
Bốn loại trigger là gì?
Trigger theo lịch, theo sự kiện, thủ công và webhook là bốn loại skill liệt kê.
Điều kiện sự kiện làm gì?
Đó là một kiểm tra bằng ngôn ngữ thường, chạy trên sự kiện trước khi automation bắt đầu.
Khác gì với công việc định kỳ?
Công việc định kỳ là tên cũ của automation theo lịch, và API cũ vẫn hoạt động.
Chi tiết
Mô tả gốc của tác giả
Manual, event-triggered, webhook-triggered, and schedule-triggered automations with optional event conditions. Use when creating automations, wiring events or webhooks, running one on demand, or understanding triggers.
repo: BuilderIO/agent-native
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13138
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.