Explicit priority (required when specified) - disables automatic priority matching
OptionalpickPriority?: PickPriorityConfigConfiguration for automatic priority selection based on similarity
// Explicit priority (disables automatic matching)
const newTask: NewActivity = {
type: ActivityType.Task,
title: "Review pull request",
priority: { id: "work-project-123" }
};
// Automatic priority matching (default behavior)
const newNote: NewActivity = {
type: ActivityType.Note,
title: "Meeting notes",
note: "Discussed Q4 roadmap..."
// Defaults to pickPriority: { content: true }
};
// Custom priority matching
const newEvent: NewActivity = {
type: ActivityType.Event,
title: "Team standup",
pickPriority: { type: true, content: 50 }
};
Type for creating new activities.
Requires only the activity type, with all other fields optional. The ID and author will be automatically assigned by the Plot system based on the current execution context.
Priority can be specified in three ways:
priority: { id: "..." }- Use specific priority (disables pickPriority)pickPriority: { ... }- Auto-select based on similaritypickPriority: { content: true }for automatic matching