Inspiration
Insurance claims processing is notoriously slow, manual, and prone to human error. As an autodidact and tech enthusiast passionate about building complete AI solutions, I wanted to tackle a complex, document-heavy B2B workflow. The inspiration came from seeing how businesses struggle with repetitive triage tasks. I set out to build an intelligent autopilot agent that not only extracts data but makes autonomous, risk-based decisions. Leveraging Alibaba Cloud's powerful DashScope (Qwen) and OSS, I aimed to transform a weeks-long manual process into a seamless, seconds-long automated pipeline.
What it does
Claimflow Autopilot is a B2B agent for autonomous insurance claims processing. It ingests raw claim submissions (such as email text or uploaded documents), uses an LLM to extract structured data, and routes each claim through an automated decision pipeline. The system computes a normalized risk score (0.0 to 1.0), auto-approves low-risk claims instantly, and securely escalates high-risk claims to human adjusters for review. It acts as an end-to-end triage, risk assessment, and routing system.
How we built it
I built Claimflow using a modern, robust Python stack. The backend is powered by FastAPI for high-performance REST endpoints. The core intelligence is driven by a LangGraph agent pipeline that manages the state and flow of each claim through distinct nodes: triage, risk_assessment, human_review, and approval. For the AI capabilities, I integrated Alibaba Cloud DashScope (Qwen) to handle complex natural language understanding and structured data extraction. All claim documents and raw inputs are securely stored using Alibaba Cloud OSS. I also utilized Pydantic for strict data validation and structured the project with automated testing (pytest) and linting (ruff) to ensure code quality.
Challenges we ran into
One of the main challenges was designing a resilient state machine for the LangGraph agent that could handle unstructured, messy real-world claim data without breaking the pipeline. Ensuring the Qwen model accurately extracted structured fields from free-text emails and correctly computed a normalized risk score required careful prompt engineering and schema validation. Another challenge was seamlessly integrating the asynchronous nature of FastAPI with the LangGraph execution flow while managing secure, scalable document uploads to Alibaba Cloud OSS. Accomplishments that we're proud of I am incredibly proud of successfully orchestrating a multi-node LangGraph pipeline that accurately mimics real-world business logic. Integrating Alibaba Cloud DashScope to achieve highly accurate data extraction and risk scoring from unstructured text is a major highlight. Furthermore, building a fully production-ready FastAPI application with automated testing, linting, and a clean architecture from the ground up gives me great confidence in the system's reliability and scalability.
What we learned
I deepened my understanding of how to build agentic workflows using LangGraph and how to effectively prompt Qwen models for structured data extraction and complex reasoning. I learned a lot about Alibaba Cloud's ecosystem, particularly how to efficiently manage object storage (OSS) for document-heavy applications. It also reinforced the importance of designing resilient error-handling and state management in autonomous AI pipelines.
What's next for Claimflow
Next, I plan to add support for multimodal inputs, allowing the system to process images of physical documents or damage assessments using Qwen's vision capabilities. I also want to implement a more advanced RAG (Retrieval-Augmented Generation) pipeline to cross-reference claims with specific insurance policy documents stored in OSS. Finally, I aim to deploy the application on Alibaba Cloud's serverless infrastructure for global scalability and add a real-time monitoring dashboard.
Built With
- agents
- alibaba
- api
- automation
- autonomous
- b2b
- cloud
- dashscope
- data
- extraction
- fastapi
- insurtech
- langgraph
- llm
- machine
- oss
- pydantic
- pytest
- python
- qwen
- rest
- risk
- ruff
- state
- uvicorn
Log in or sign up for Devpost to join the conversation.