Skip to main content

Admin: Multi-Agent Workflows

Admin

Manage workflow templates, seed pipeline agents, and monitor the multi-agent workflow system.

Admin Overview#

Admins manage the template marketplace — approving, unpublishing, or deleting user-submitted workflow templates. Admins also seed the system with pipeline agents and industry writer agents during initial deployment or updates.

Template Moderation

Review, publish, unpublish, and delete marketplace templates.

Pipeline Seeding

Seed the 11 default verification pipeline agents.

Writer Seeding

Seed 4 industry-specific writer agents.

Template Moderation#

The template moderation page at /admin/workflow-templates lets you manage all published and unpublished templates.

View All Templates

See all templates with filters for Published/Unpublished status.

Publish Templates

Make templates visible in the marketplace for all users.

Unpublish Templates

Remove templates from marketplace visibility without deleting.

Delete Templates

Permanently remove templates and their snapshots.

For each template, you can view the creator name, purchase count, price, tags, version, and creation date. Monitor purchase counts to identify popular templates and review prices for marketplace health.

Pipeline Agent Seeding#

Seed the 11 default verification pipeline agents into the database. This is required during initial platform deployment or after updating pipeline agent definitions.

1

Invoke the Seed Endpoint

Send a POST request to /api/admin/seed/pipeline-agents. This is admin-gated.
2

Verify Seeding

The 11 pipeline agents (LADDER through Quality) are created in the AgentDefinition table.
3

Confirm on Agent Library

Navigate to the Agent Library page and verify the Verification Pipeline section shows all 11 agents.
StepAgentRole
1LADDERQuery Decomposition
2Research PlannerResearch Planning
3ARLAdaptive Research Loop
4Domain ReviewDomain Expert Review
5Cross-DomainCross-Domain Synthesis
6SynthesisEvidence Synthesis
7WritingReport Writing
8CriticQuality Critique
9ICCInternal Consistency Check
10VerificationClaim Verification
11QualityFinal Quality Scoring

Industry Writer Seeding#

Seed 4 industry-specific writer agents with domain expertise. Send a POST request to /api/agents/seed-industry-writers (admin-gated).

AgentDomainSpecialties
Healthcare WriterMedical & Life SciencesClinical analysis, medical terminology, evidence grading
Finance WriterFinancial AnalysisEquity research, market analysis, risk assessment
Legal WriterRegulatory & ComplianceLegal research, IRAC format, compliance checklists
Technology WriterTechnology & SoftwareArchitecture analysis, vendor comparison, market dynamics

Database Models#

The multi-agent workflow system uses these database models:

ModelPurposeGrowth Pattern
WorkflowTemplatePublished template snapshotsGrows with each publish
WorkflowTemplatePurchasePurchase transaction recordsGrows with marketplace activity
WorkflowTemplateReviewUser ratings and reviewsGrows with marketplace activity
OrchestratorWorkflowScheduleRecurring schedule configsGrows with user schedules
WorkflowContextLinkContext source attachmentsGrows with context usage
OrchestratorWorkflow (extended)Agent workflows with marketplace fieldsGrows with workflow creation
AgentDefinition (extended)Pipeline step mapping via pipelineStepIdGrows with agent creation
WorkflowExecution (extended)Execution with context snapshotsGrows with each workflow run

API Endpoints#

Admin-specific API endpoints for the multi-agent workflow system:

MethodRoutePurpose
POST/api/admin/seed/pipeline-agentsSeed 11 default pipeline agents
POST/api/agents/seed-industry-writersSeed 4 industry writer agents
GET/api/admin/workflow-templatesList all templates (admin view)
PATCH/api/admin/workflow-templates/[id]Update template (publish/unpublish)
DELETE/api/admin/workflow-templates/[id]Delete template permanently

User-facing endpoints that admins should be aware of:

MethodRoutePurpose
POST/api/workflows/[id]/publishPublish workflow as template
GET/api/workflow-templatesList published templates (public)
POST/api/workflow-templates/[id]/instantiateClone template into user workflows
POST/api/workflow-templates/[id]/purchasePurchase a paid template
GET/POST/api/workflow-templates/[id]/reviewsRead/write template reviews
GET/POST/DELETE/api/research/workflows/[id]/contextCRUD context attachments
POST/GET/PATCH/DELETE/api/workflows/[id]/scheduleCRUD workflow schedules
GET/api/agents/pipeline-agentsList pipeline agents

Monitoring#

Key metrics to monitor for the multi-agent workflow system:

MetricWhere to CheckAction If Abnormal
Template publish rateAdmin templates pageCheck for publish errors in logs
Purchase volumeWorkflowTemplatePurchase countReview pricing and marketplace health
Schedule failuresOrchestratorWorkflowSchedule.failCountInvestigate execution errors
Context attachment countWorkflowContextLink tableMonitor for orphaned links
Pipeline agent availabilityAgent Library pageRe-run seed if agents missing