Document Processing: Workflow Patterns and Best Practices
Discover how to design efficient document processing workflows in Kognitos.
Last updated
Was this helpful?
Discover how to design efficient document processing workflows in Kognitos.
Last updated
Was this helpful?
This guide outlines best practices for designing document processing workflows, including structuring automations for single versus multiple document inputs. It covers when to use subprocesses and when to apply run parallelization.
When the automation handles one document at a time, focus on clean, modular design. Use to separate distinct stages, such as extraction, processing, and output creation, for clarity and reusability. A typical document processing workflow might look like:
When the automation is processing multiple documents, you can choose between three approaches:
Choosing the right approach ensures your workflow is scalable, efficient, and easy to troubleshoot.
Typically, the calling a subprocess and invoking a subprocess methods are used when documents are independent and can be processed separately. Run parallelization is used when documents are related and their outputs need to be combined or aggregated. For a detailed comparison, refer to