Kaizen

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_prompt

Integration Pattern

Connect to a Kaizen Activity trigger so matching runs automatically when a todo is completed:

  1. Kaizen Activity trigger: e.g. "Any todo first completion" or "Todo completed".
  2. Match Discovery Prompt: todoIdReference = <kaizen_activity_1.todoId>.
  3. Condition: branch on hasMatches == true to notify or suggest completion.

Input Fields

Todo Input

FieldOptionsDescription
todoInputModemanual, referenceHow to specify the completed todo
todoIdManualstringTodo ID (when manual)
todoIdReferencestringe.g. <kaizen_activity_1.todoId> (when reference)

Prompt Selection

FieldOptionsDescription
promptSelectionModeall, specificCheck all active prompts or specific IDs
promptIdsstringComma-separated prompt IDs (when specific)

Matching Options

FieldDescription
minConfidenceMinimum confidence 0–1 (e.g. 0.6). Higher = fewer but more accurate matches.
enableAiMatchingUse AI semantic matching (default: true)
enableWebSearchTodoEnrich todo context via web search (optional)
enableWebSearchConnectionUse web search to find connections between todo and prompt themes (optional)

Workspace and user context are passed from the trigger or workflow context.

Outputs

OutputTypeDescription
matchesarrayMatching prompts with promptId, promptText, matchMethod, confidence, reasoning
suggestedCompletionsarraySuggested completions ready for user confirmation
hasMatchesbooleanWhether any matches were found
matchesFoundnumberCount of matches
metadataobjecttodoId, 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 completion

Check Specific Prompts Only

inputs:
  todoIdReference: "<kaizen_activity_1.todoId>"
  promptSelectionMode: specific
  promptIds: "prompt_123, prompt_456"
  minConfidence: 0.7

Present 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.

On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started