Orkes logo image
Product
Platform
Orkes Platform thumbnail
Orkes Platform
Orkes Agentic Workflows
Orkes Conductor Vs Conductor OSS thumbnail
Orkes vs. Conductor OSS
Orkes Cloud
How Orkes Powers Boat Thumbnail
How Orkes Powers BOAT
Try enterprise Orkes Cloud for free
Enjoy a free 14-day trial with all enterprise features
Start for free
Capabilities
Microservices Workflow Orchestration icon
Microservices Workflow Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Realtime API Orchestration icon
Realtime API Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Event Driven Architecture icon
Event Driven Architecture
Create durable workflows that promote modularity, flexibility, and responsiveness.
Human Workflow Orchestration icon
Human Workflow Orchestration
Seamlessly insert humans in the loop of complex workflows.
Process orchestration icon
Process Orchestration
Visualize end-to-end business processes, connect people, processes and systems, and monitor performance to resolve issues in real-time
Use Cases
By Industry
Financial Services icon
Financial Services
Secure and comprehensive workflow orchestration for financial services
Media and Entertainment icon
Media and Entertainment
Enterprise grade workflow orchestration for your media pipelines
Telecommunications icon
Telecommunications
Future proof your workflow management with workflow orchestration
Healthcare icon
Healthcare
Revolutionize and expedite patient care with workflow orchestration for healthcare
Shipping and logistics icon
Shipping and Logistics
Reinforce your inventory management with durable execution and long running workflows
Software icon
Software
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean leo mauris, laoreet interdum sodales a, mollis nec enim.
Docs
Developers
Learn
Blog
Explore our blog for insights into the latest trends in workflow orchestration, real-world use cases, and updates on how our solutions are transforming industries.
Read blogs
Check out our latest blog:
Conductor CLI Guide: Register, Run, Retry, and Recover Durable Workflows Without Leaving Your Terminal đź’»
Customers
Discover how leading companies are using Orkes to accelerate development, streamline operations, and achieve remarkable results.
Read case studies
Our latest case study:
Twilio Case Study Thumbnail
Orkes Academy New!
Master workflow orchestration with hands-on labs, structured learning paths, and certification. Build production-ready workflows from fundamentals to Agentic AI.
Explore courses
Featured course:
Orkes Academy Thumbnail
Events icon
Events
Videos icons
Videos
In the news icon
In the News
Whitepapers icon
Whitepapers
About us icon
About Us
Pricing
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Orkes logo image

Company

Platform
Careers
HIRING!
Partners
About Us
Legal Hub
Security

Product

Cloud
Platform
Support

Community

Docs
Blogs
Events

Use Cases

Microservices Workflow Orchestration
Realtime API Orchestration
Event Driven Architecture
Agentic Workflows
Human Workflow Orchestration
Process Orchestration

Compare

Orkes vs Camunda
Orkes vs BPMN
Orkes vs LangChain
Orkes vs Temporal
Twitter or X Socials linkLinkedIn Socials linkYouTube Socials linkSlack Socials linkGithub Socials linkFacebook iconInstagram iconTik Tok icon
© 2026 Orkes. All Rights Reserved.
Back to Blogs

Table of Contents

Share on:Share on LinkedInShare on FacebookShare on Twitter
Worker Code Illustration

Get Started for Free with Dev Edition

Signup
Back to Blogs
AGENTIC ENGINEERING

Build an AI-Powered Loan Risk Assessment Workflow (with Sub-Workflows + Human Review)

Maria Shimkovska
Maria Shimkovska
Content Engineer
Last updated: December 4, 2025
December 4, 2025
5 min read

Related Blogs

Enterprise Uptime Guardrails: Build a Website Health Checker Workflow (HTTP Checks + Inline Logic + SMS Alerts)

Dec 2, 2025

Enterprise Uptime Guardrails: Build a Website Health Checker Workflow (HTTP Checks + Inline Logic + SMS Alerts)

Vector Databases 101: A Simple Guide for Building AI Apps with Conductor

Nov 26, 2025

Vector Databases 101: A Simple Guide for Building AI Apps with Conductor

Orkes Conductor Embeddings Explained: The Tasks Behind Semantic Search & AI Workflows

Nov 25, 2025

Orkes Conductor Embeddings Explained: The Tasks Behind Semantic Search & AI Workflows

Ready to Build Something Amazing?

Join thousands of developers building the future with Orkes.

Start for free

Cover illustration for the blog: Build an AI-Powered Loan Risk Assessment Workflow (with Sub-Workflows + Human Review)

Section 1: Use Case (Banking)

This agentic workflow automates the risk assessment part of giving out loans. Basically, it takes care of the repetitive paperwork by validating the documents people upload, using an LLM to pull out the important details, and flagging applications for human review when automation isn’t the safest or most reliable choice.

Instead of spending hours manually checking documents and scoring risk, you get a consistent and auditable agentic workflow instead. Your team gets that time back to focus on other high-impact work, like growing the business and staying on top of the other priorities already on the radar. And when a human needs to be in the loop, the workflow supports that too.

In short, the workflow is here to answer:
“Given these loan request details and relevant supporting documents, how risky is it to auto-approve this loan, and should a human take a look before anything moves forward?”

Where this fits in loan origination (the bigger picture)

Illustration showing a simplified end to end loan origination process, and it highlights where Orkes Conductor is used in the process. In this example Orkes Conductor steps in after the step of Upload Documents.

In a loan origination system, this agentic workflow sits right after the customer applies and uploads their documents, and before the application reaches final underwriting.

The workflow checks that the files are usable, pulls out the key details (like identity and income signals), and runs an initial risk check to see how safe it is to keep processing automatically.

If everything looks clean and consistent, it helps the application move forward faster. If anything looks unclear or higher risk, it automatically routes the case to a human using Conductor's built-in Human task so the bank doesn’t rely on automation when it shouldn’t.

Section 2: How To Build It

First, here is what the Risk Assessment agentic workflow looks like in Orkes Conductor. Seeing it will help you visualize the entire thing.

The workflow starts with an agentic sub-workflow task as its first step.

The sub-workflow task is a built-in Orkes Conductor task, which in this example uses OCR (Optical Character Recognition) to read the user’s document and extract key fields from it, along with the document type. So it could be a W2, a passport, a driver's license, or another identification they provide.

The screenshot below shows you the full workflow, and you can see that the first step is the sub-workflow, which I will go into next.

The main benefit of using a sub-workflow is that you can have a separate process (workflow) run in its entirety in the main workflow. All without making the main workflow look messy. Think of it like function in programming.

A screenshot of the main agentix workflow in Orkes Conductor.

The data is then passed to a second task in the main workflow: a Conductor built-in LLM task, which is what makes this workflow an agentic workflow.

It takes the extracted document details (plus the applicant info), reasons over them together, and produces a loan risk score (how risky this application is to approve).

The workflow then outputs a routing flag to decide whether the case can safely continue through the rest of the automation or whether it should be sent to a person for review. A person can then reject the loan if it ends up on their desk so to speak, or approve it.

Let's take a deeper look into the sub-workflow

Here’s a more detailed look at the sub-workflow (called document_classifier in our case), which runs as the first step of the main workflow.

The sub-workflow is also an agentic workflow itself, because it contains an LLM step as part of the flow. If you're curious about what an agentic workflow is, a good way to remember is to see if in any part of the flow it uses an LLM for it's decision-making. It's honestly as simple as that.

Screenshot of the agentic sub-workflow in Orkes Conductor

Think of this step as a preprocessing stage.

This smaller agentic workflow takes in the uploaded document, validates it using an LLM, and extracts the key details. Once it’s done, the main workflow continues to the next step using that output.

The document_classifier sub-workflow checks the uploaded document and makes sure it's a pdf, which for this workflow is what is expected. But when you are creating your own, you can write your own rules and you can check for any type of file you want.

In this case, if the file is NOT a PDF, then it generates an error for the user. So it could be something like "Hey pls upload a PDF, thank you" and it terminates the workflow.

Once the user uploads a new document (hopefully the correct one) then the entire workflow starts again.

If all looks good, and the file is a PDF, it goes into the get_document_task step, which is another Conductor built-in task called Get Document.

It extracts important information from the PDF file, and then passes it to the next task in this workflow, which in our case is another LLM task which classifies what the document type is.

What are the inputs for the main workflow?

Cover illustration for Vector Databases 101: A Simple Guide for Building AI Apps with Conductor blog showing three different types of data turning into vectors and then being stored into a vector database.

As you can see from the illustration above, the following inputs go into the main workflow:

  • documentUrl — link to the applicant’s uploaded PDF in this case
  • name — applicant name
  • doB — applicant's date of birth
  • loanAmount — applicant's requested amount
  • term — loan duration the application requests

Step-by-step summary

A quick summary of what's happening across both the sub-workflow and the main one.

Document Classifier (Sub-Workflow)

StepStageWhat happensOutput / Decision
1Check File TypeInspect the URL and continue only if it’s a PDFIf not PDF: friendly error + terminate cleanly
2Fetch the DocumentUse GET_DOCUMENT to download the PDF and extract textExtracted PDF text
3Classify Using LLMOpenAI model analyzes extracted textDocument type + relevant metadata

Risk Assessment + Loan Processing (Main Workflow)

StepStageWhat happensOutput / Decision
4Run LLM Risk ScoringCombine applicant fields + the classified document; LLM generates decisioningRisk score, interest rate suggestion, explanation, humanApproval: true/false
5Conditional RoutingIf humanApproval = true, open a HUMAN task; otherwise continueHuman task opened or proceed to automation
6Process Loan AutomaticallyTrigger an HTTP call to finalize the loanLoan finalized (automated)

Why Conductor?

Conductor helps you turn a complicated AI process into clear and reliable steps (like checking documents, using an LLM to score risk, sending edge cases to a human for approval, and calling APIs to finish the job.)

Instead of relying on one big script or a single LLM prompt, you get more control, better tracking of what happened, and safer error handling.

The result is a smoother system where AI does the fast work and humans handle the tricky calls, making important decisions (like loan approvals) safer and more dependable.