Repository navigation
feat(workflows): a classify node on the canvas - #498
Merged
Merged
Conversation
A Classify node picks one of your labels, a content type or a topic for the recording (or for what came in) and passes on the choice, how sure and every label ranked; set to act, a sure answer sets the content type, suggests the topic or adds the tag, so the node keeps something by itself. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GKv2oVRvFRdiSf4USLsM1N
… checks The README's Connect your agents and Automate it items now name find, classify and the workflow Classify node, docs/requirements.md backs each with its tests, and the merged #398 leaves In progress. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GKv2oVRvFRdiSf4USLsM1N
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: classify (#494) was reachable from the API, MCP and the assistant. A workflow could only reach it with an LLM prompt of its own, so a pipeline couldn't label every asset it ran on.
After: the workflow canvas has a Classify node, under AI. It picks one of your labels, a content type or one of the namespace's topics. It classifies the asset, or what came in as text (Classify: What comes in). It passes on
{choice, confidence, sure, ranked, by}, so a Condition or Switch can branch on the choice or onsure, or Save output can keep it.With Act on a sure answer on, a sure answer does one of these:
Such a node counts as keeping something, so a workflow needs nothing else. A try on the canvas only says "would act on it". Settings are checked on save, in the backend and on the canvas: labels or a vocabulary, at least two labels, and acting only on the asset.
The README's built list now names find, classify and this node, with their checks in
docs/requirements.md, and the merged #398 leaves In progress.Motivation and Context
This is the last part of Adeel's "core services such as classify, search by face/voice/entity/type/content type/date" ask, which said "usable by agents and workflows". Find (#398) and classify (#494) are merged.
How:
classifyjoins the recording kit's own nodes (workflows.OWN_NODES,_check_classify,_classifyoverclassify.classify). The kit's existingkeepshook makes a classify node that acts count as keeping something. The frontend adds the node's info, settings panel, summary line and checks (workflow-model.ts,node-settings.tsx).Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Done questions (AGENTS.md)
GET /workflowsnode types).test_a_workflow_classifies,workflow-flow.test.ts,docs/processing.md(Workflows and the canvas, Classifying), README built list anddocs/requirements.mdrows for find, classify and the node (make requirementspasses).make openapigave no change.classify.classify, the kit'skeepshook, the canvas'sLines/Select/Checkbox.Local checks:
ruff check,ruff format --check,mypy, the classify and workflow tests,tsc,eslint,prettier, the workflow jest suites,make requirements,mkdocs build --strict.🤖 Generated with Claude Code
https://claude.ai/code/session_01GKv2oVRvFRdiSf4USLsM1N