A beautiful AI-powered search for government process discovery.
This Proof-of-Concept was built during the GovTech Hackathon 2025 in Saarbrücken, Germany by the OpenFlow team Melanie & Sven.
The Saarland government's F13 AI platform provides a Retrieval-Augmented Generation (RAG) service with embedding generation and vector similarity search capabilities. OpenFlow leverages F13's AI capabilities while maintaining ownership of process data and search orchestration.
Use F13 to:
- Stop silos re-implementing redundant processes in government departments
- Make it easy for administrative staff to find the right process
- Enable standardization and collaboration across departments
Today: F13 is planned to provide the aggregated database for publicly available goverment data for use in applications and automation scenarios.
This solution is based on the assumption that F13 will provide:
- Embedding information for government processes and documents
- The aggregated (vector) database provides similarity search APIs
- BPMN generation capabilities are centrally available
flowchart LR
A[Process Data / Documents / BPMN]
B[OpenFlow Process Store]
C[F13 RAG & Aggregated Database]
E[BPMN Modeler]
A --> B
B --> C
B --> E
Demo Persona: Sarah, New Employee Sarah joins the IT department and needs to procure a software license for 26,999 EUR. Unsure about the process and requirements, she uses OpenFlow and simply asks:
"How do I procure software licenses over 25,000 EUR for our department? Do I need a tender process?"
OpenFlow instantly provides:
- Matching processes ranked by relevance (score and adoption count)
- The step-by-step procurement workflow (visualized)
- Contact info for the responsible office
- Related documents and legal bases
- Evidence why this process fits her query
Sarah quickly understands what to do, who to contact, and which forms to use—no jargon or manual searching required.
What does the demo show?
- Natural language search for government processes
- AI-powered matching via F13 embedding and vector search
- Rich process metadata (owner, contact, forms, legal basis)
- Interactive BPMN workflow visualization
- Evidence snippets for transparency
Goal
Showcase the potential of combining F13's AI capabilities with a dedicated process discovery platform to make government work more accessible and efficient for everyone—from seasoned administrators to new employees like Sarah.
This solution, is a comprehensive government process discovery platform that uses F13's AI capabilities for embedding generation and vector search while maintaining complete ownership of process data, search logic, and user experience.
Core functionalities include:
- Process Management: Store and manage complete government process repository
- Natural Language Search: Users input queries and documents to find relevant processes
- AI-Powered Matching: Generate embeddings via F13 and perform similarity search
- Rich Metadata: Provide process owners, contact info, forms, legal bases, and analytics
flowchart LR
A[User]
subgraph OpenFlow
B[OpenFlow Frontend]
C[OpenFlow API Service]
D[(OpenFlow Database)]
E[User Service]
end
subgraph F13
F[Embedding API]
G[(Vector Database)]
end
subgraph External
H[BPMN Modeler]
I[Intranet API]
end
A --> B
B --> C
C --> D
C --> F
C --> G
C --> H
E --> I
C --> E
flowchart
subgraph OpenFlow Frontend
A[Search Interface & Process Visualization]
end
subgraph OpenFlow API Service
B[Process Repository Management]
C[Search Orchestration & Ranking]
D[User Service API]
end
subgraph OpenFlow Database
F[(Process Metadata)]
G[(User Profiles & Preferences)]
end
subgraph F13 Platform
J[Embedding Generation API]
K[(Vector Similarity Search)]
end
subgraph BPMN Modeler
L[Workflow Generation Service]
end
subgraph Government Intranet
M[Organigram Service API]
N[(Organizational Structure Data)]
end
A --> B
A --> C
B --> F
C --> J
C --> K
C --> F
B --> L
D --> M
M --> N
C --> D
D --> G
Note: User and intranet are omitted for clarity.
sequenceDiagram
participant User as User
participant OpenFlow as OpenFlow API
participant F13_RAG as F13 RAG Service
participant OpenFlow_DB as OpenFlow Database
User->>OpenFlow: Search query + optional document
OpenFlow->>F13_RAG: POST /rag/database (query + filters)
Note over F13_RAG: Generates query embedding<br/>Performs vector similarity search<br/>Retrieves relevant documents
F13_RAG-->>OpenFlow: RAGOutput (answer + sources with metadata)
OpenFlow->>OpenFlow_DB: Extract process IDs, fetch full metadata
OpenFlow_DB-->>OpenFlow: Process details (BPMN, contacts, forms, etc.)
OpenFlow-->>User: Return enriched search results
OpenFlow Ownership:
- Complete control over process data and business logic
- Integration with existing government systems
- Not depicted above but enabled:
- Audit trails and compliance features
- User personalization and department-specific customizations
- Analytics and usage tracking for government insights
F13 Integration:
- State-of-the-art embedding generation for semantic search
- High-performance vector similarity search
- Leverages government AI infrastructure
- No vendor lock-in for search algorithms
Intranet Organigram Service Integration:
- Centralized organizational data: Single source of truth for government structure
- Real-time hierarchy: Always up-to-date department and personnel information
- User context enrichment: Provides organizational context for personalization
- Contact information: Authoritative contact details for process owners
OpenFlow User Service:
- Organizational data abstraction: Wraps Intranet Organigram API
- User profile management: Combines org data with user preferences
- Department filtering: Enables department-specific process recommendations
- Contact enrichment: Adds hierarchical context to process owners
Backend Development:
- Implement OpenFlow API service (ASP.NET Core)
- Set up OpenFlow database schema (process metadata, users, analytics)
- Integrate F13 embedding API client
- Integrate F13 vector database for similarity search
- Implement BPMN modeler integration
- Build process management CRUD operations
- Implement User Service for Intranet Organigram integration
- Build organizational hierarchy caching layer
Search & Discovery:
- Implement semantic search orchestration
- Add user context and personalization features
- Build process ranking and filtering logic
- Replace mock data with real F13 integration
User Experience:
- Authentication & Authorization (government SSO)
- Department-specific process filtering
- User preferences and bookmarking
- Search history and analytics dashboard
- Setup of F13 cumbersome based on open source documentation (ARM processor architecture)
- Bug report created https://gitlab.opencode.de/f13/dokumentation/-/issues/43
Frontend:
- React 18 with TypeScript
- PrimeReact UI components
- RSPACK for fast bundling
- PrimeIcons
- bpmn-js for workflow visualization
Backend (To be implemented):
- ASP.NET Core with C#
- Entity Framework Core for database access
- Microsoft SemanticKernel for AI orchestration
- PostgreSQL with pgvector extension
AI & Integration:
- F13 Embedding API for semantic vector generation
- F13 Vector Database for similarity search
- BPMN Modeler API for workflow generation
- Government SSO integration
- Node.js 24+
- npm or yarn
- Clone the repository:
git clone <repository-url> openflow
cd openflow/src/frontend- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser to
http://localhost:3000
npm run build-
Search: Enter natural language queries like:
- "How is procurement over 10k EUR handled?"
- "Show me the employee onboarding process"
- "What happens after invoice approval?"
-
Browse Results: View matching processes sorted by relevance score
-
Explore Details: Click on any process to see:
- BPMN workflow diagram
- Contact information
- Related documents
- Legal basis and regulations
- Key performance indicators
- Supporting evidence snippets
src/frontend/
├── src/
│ ├── components/ # React components
│ │ ├── chat/ # Search input and file upload
│ │ ├── details/ # Process details components
│ │ └── list/ # Process list components
│ ├── types/ # TypeScript definitions
│ ├── theme/ # PrimeReact theme configuration
│ ├── data/ # Mock data for development
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main application
│ └── index.tsx # Entry point
├── public/ # Static assets
├── package.json
├── tsconfig.json
└── rspack.config.js
OpenFlow as Process Owner:
- Maintains complete government process repository
- Handles user management, preferences, and analytics
- Orchestrates search across multiple AI services
- Integrates with existing government systems
F13 AI Platform Integration:
- RAG Database Endpoint: Performs semantic search with automatic embedding generation and vector similarity
- Document Ingestion: Indexes process documents into F13's vector database (Elasticsearch)
- Metadata Filtering: Supports filtering by source, date range, and custom metadata fields
- Infrastructure: Leverages government AI platform for secure, compliant processing
- No Direct Embedding API: Embeddings are generated internally within RAG workflows
BPMN Management (Separate from F13):
- Pre-generated Diagrams: BPMN XML stored in OpenFlow database or file system
- Manual Creation: Process diagrams created using BPMN modeling tools
- Future Enhancement: Potential LLM-based generation using F13's chat capabilities
- Visualization: Frontend renders BPMN using bpmn-js library
Intranet Organigram Service (External Government System):
- Centralized Master Data: Single source of truth for organizational structure
OpenFlow User Service (Internal Component):
- Purpose: Abstracts and caches Intranet Organigram data
- Responsibilities:
- Fetch and cache organizational hierarchy
- Resolve department IDs to full hierarchical paths
- Enrich process owners with current contact information
- Provide user department context for personalized search
MIT License

