ApiSchemasType aliases
Type Alias: AutomationAction
type AutomationAction =
| {
kind: "notify";
text: string;
}
| {
collection: string;
kind: "add";
links?: ReadonlyArray<AutomationLink>;
text: string;
}
| {
field: string;
kind: "set";
value: string | number | boolean;
}
| {
kind: "ask";
text: string;
};Defined in: packages/core/src/schemas/automations.ts:56
What an automation does. In text, {title} is what the record is called,
{<include>} how many an include found. add makes a record in any
collection one line of text can make one of (quickAddBody): a message, a
comment, a task, or one someone defined yesterday, with the links it names.
ask gives its text, in the maker's words, to an agent that runs automations.