SiYuan Trigger
AI-generatedSummary
Poll SiYuan for newly created or modified documents or blocks and emit matching records as workflow items. Choose the event type, optionally limit changes to a notebook, and set the maximum number of results per poll; polling frequency is configured with Poll Times.
Inputs
- Poll Times — Sets when polling occurs, using a preset interval, every X minutes or hours, or a custom cron expression.
- Event — Selects document changes (default) or block changes.
- Notebook ID — Filters results to a notebook ID; leave empty to include all notebooks. Document and block IDs are not valid here.
- Max Results Per Poll — Limits the number of matching records returned in each poll; defaults to 50.
- SiYuan API credentials (required) — Connects to SiYuan using the configured API URL and token.
Output shape
A list of workflow items, each containing a matching SiYuan block record in json.
The first poll establishes a timestamp baseline and returns no items. Later polls query records updated after the saved timestamp and return no items when there are no matches. The timestamp is advanced to the newest returned record; because results are ordered newest first and limited, a poll with more matches than the limit can leave older matching records beyond the cutoff.