# Function createWorkflowRouter

- createWorkflowRouter(
  options?: { logger?: ILogger; analyzer?: ISharedTaskAnalyzer },
  ): IWorkflowRouter

  Creates a workflow pattern router.

  Analyzes task characteristics and selects the optimal orchestration pattern using a rule-based classification system.

  #### Parameters

  - `Optional` options: { logger?: ILogger; analyzer?: ISharedTaskAnalyzer }

  #### Returns IWorkflowRouter

  - Defined in packages/nexus-agents/src/orchestration/workflow-router.ts:54