Temporal Integration

Temporal is for coded workflows where you need durable orchestration—e.g. classify pages, group them by class, then process each group with DocRouter.

Use it when documents must be split, classified, grouped, and processed by group (e.g. multi-page surgery schedules, batch processing by type).

How it fits with DocRouter

  • Configure webhooks in DocRouter and point them at your Temporal workflow (or a small HTTP handler that forwards to Temporal).
  • Use Temporal signals to wait for the llm.completed webhook, then continue with validation, human-in-the-loop steps, or downstream integrations.
  • Your workflow code calls the DocRouter REST API to upload documents, list results, and manage resources.

For a full walkthrough, see How to create document workflows with Temporal and DocRouter.AI.

See also