Skip to content
Proud to collaborate with Microsoft for Startups

chat.engine.find-similar-failures ​

Look up previously-resolved Lumen error groups similar to a query error message so the agent can reuse prior root_cause/solution knowledge instead of re-investigating from scratch.

Find previously-resolved Lumen error groups similar to a given error message.

Inputs:

  • organization_id: UUID of the organization (required)
  • error_message: raw error text, 5-8000 chars (required)
  • project: optional project hint
  • workflow_type: optional workflow-type hint
  • limit: 1-20, default 5
  • min_similarity: 0.0-1.0, default 0.6

Outputs (terminal state_data):

  • matches: list of similar error-group records, sorted by similarity DESC
  • total_matches: int, count of returned matches
  • query_embedding_ref: optional embedding identifier (or null)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-chat
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—UUID of the organization that scopes the similarity search. Error groups outside this org are never returned.
error_messagestringYes—Raw error message used as the similarity query. Must be 5-8000 characters.
projectstringNo—Optional project hint (e.g. 'ltinteg-api-core') to bias the search to errors from a specific Lumen project.
workflow_typestringNo—Optional workflow-type hint (e.g. 'agents.session-create') to scope the search to errors emitted by a specific workflow.
limitintegerNo5Max number of similar matches to return. 1-20, defaults to 5.
min_similarityfloatNo0.6Minimum similarity score (0.0-1.0) a match must meet to be returned. Defaults to 0.6.

Output Schema ​

FieldTypeRequiredDefaultDescription
matcheslistYes—List of similar error-group matches, each carrying {error_group_ref, similarity, summary, root_cause, solution, resolved_by, resolution_method, resolved_at, ticket_ref, occurrences_count}. Sorted by similarity DESC.
total_matchesintegerYes—Count of matches returned (always <= input.limit).
query_embedding_refstringNo—Optional embedding identifier returned by the underlying Lumen lookup, surfaced for telemetry/auditing. Null when not provided.
errorstringNo—Engine-stamped failure message (from the raised exception).
error_typestringNo—Engine-stamped failure type (exception class name).
failed_at_statestringNo—Engine-stamped name of the state where the failure occurred.
failed_layerstringNo—Engine-stamped DAG layer name (atomic workflows: null).
failed_stepstringNo—Engine-stamped step name within the failed layer.
failure_reasonstringNo—Stable failure code: organization_not_found
failure_detailstringNo—Human-readable detail mirrored from action_fail.
failed_actionstringNo—Name of the action method that raised.
organization_uuiduuidNo—organization_id echoed on the failure path for diagnostics.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeResolve organization, locate lumen lookup, run similarity query
completedNoYesYes—Similarity search succeeded; matches returned
failedNoYesNo—Similarity search failed; matches=[] returned for shape parity

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "chat.engine.find-similar-failures",
  "initial_data": {
    "organization_uuid": "value",
    "error_message": "value"
  }
}