Kaizen Match Discovery Prompt
Check if a completed todo matches any discovery prompts (rule-based and AI matching)
The Match Discovery Prompt block checks whether a completed todo matches any active discovery prompts in the workspace. Use it after a Kaizen Activity trigger (e.g. on todo completion) to detect challenge/prompt completions. It uses rule-based matching (metadata criteria) and optional AI semantic matching, and returns suggested completions for user confirmation.
Block Type
kaizen_match_discovery_promptIntegration Pattern
Connect to a Kaizen Activity trigger so matching runs automatically when a todo is completed:
- Kaizen Activity trigger: e.g. "Any todo first completion" or "Todo completed".
- Match Discovery Prompt:
todoIdReference=<kaizen_activity_1.todoId>. - Condition: branch on
hasMatches == trueto notify or suggest completion.
Input Fields
Todo Input
| Field | Options | Description |
|---|---|---|
todoInputMode | manual, reference | How to specify the completed todo |
todoIdManual | string | Todo ID (when manual) |
todoIdReference | string | e.g. <kaizen_activity_1.todoId> (when reference) |
Prompt Selection
| Field | Options | Description |
|---|---|---|
promptSelectionMode | all, specific | Check all active prompts or specific IDs |
promptIds | string | Comma-separated prompt IDs (when specific) |
Matching Options
| Field | Description |
|---|---|
minConfidence | Minimum confidence 0–1 (e.g. 0.6). Higher = fewer but more accurate matches. |
enableAiMatching | Use AI semantic matching (default: true) |
enableWebSearchTodo | Enrich todo context via web search (optional) |
enableWebSearchConnection | Use web search to find connections between todo and prompt themes (optional) |
Workspace and user context are passed from the trigger or workflow context.
Outputs
| Output | Type | Description |
|---|---|---|
matches | array | Matching prompts with promptId, promptText, matchMethod, confidence, reasoning |
suggestedCompletions | array | Suggested completions ready for user confirmation |
hasMatches | boolean | Whether any matches were found |
matchesFound | number | Count of matches |
metadata | object | todoId, promptsChecked, matchesFound, matchTimestamp |
Common Use Cases
On Todo Completion: Check and Notify
# 1. Activity trigger: todo completed
# 2. Match Discovery Prompt
inputs:
todoInputMode: reference
todoIdReference: "<kaizen_activity_1.todoId>"
promptSelectionMode: all
minConfidence: 0.6
enableAiMatching: true
# 3. Condition: if hasMatches == true → send notification or suggest completionCheck Specific Prompts Only
inputs:
todoIdReference: "<kaizen_activity_1.todoId>"
promptSelectionMode: specific
promptIds: "prompt_123, prompt_456"
minConfidence: 0.7Present Suggested Completions to User
Use the suggestedCompletions output in a downstream block (e.g. response or notification) so the user can confirm or dismiss prompt completions. Rule-based matches typically have higher confidence than AI-only matches.
Referencing Outputs
todoIdReference: "<kaizen_activity_1.todoId>"Use with activity triggers for automatic matching on todo completion. Set minConfidence (e.g. 0.6) to control match quality. Enable AI matching for better semantic understanding when prompts are natural-language.