Match the technology to each step
AI agents work multi-step cases; AI models read and draft. Where an error is costly, calculations, permissions, and postings run on deterministic code.
The architecture follows a service through five layers, from the request to the accepted output.
From the request to the record
Receive requests through the agreed customer, partner, and system channels.
Track case progress, owners, and the permitted next actions.
Use AI agents, AI models, and approved rules to do the work.
Update or reconcile your systems through authorized interfaces.
Keep the records that measure delivery, show decisions, and support recovery.
In the open modules
Open a layer to see what it contributes and where its work ends.
Web and mobile experiences, partner portals, and operations tools call journey APIs, each with its own entry point.
Domain services coordinate the core services; an account-opening saga links the agreement, holder, account, and first transaction.
Each core module owns one record, such as a party, a contract, or an account, behind REST/OpenAPI contracts.
Provider interfaces keep payment rails, documents, signing, and insurer systems behind explicit contracts, with error handling and reconciliation.
Design principles
AI agents work multi-step cases; AI models read and draft. Where an error is costly, calculations, permissions, and postings run on deterministic code.
Delays, ambiguous evidence, and partial failures are part of the process, so the service defines how to pause, resume, and reconcile.
A proposed action is not an authorized one, and delegated limits apply to automated and human work alike.
Inside a service
A port says what the use case needs and an adapter supplies it, so a new database or provider stays inside its adapter.
Persist business records
Selected relational databaseNotify other services
Selected message brokerRequest a provider action
Provider API adapterArchitecture decisions
Define inputs, outputs, authorization, and versions, with idempotent retries where the service supports them.
Choose which service owns each record, and use event sourcing where it earns its place.
Keep long-running work in a persisted runtime; in-memory timers die with a restart.
Separate who a user or service is from what it may do, with OAuth2/JWT and policy contracts.
Trace every request, and agree how to reconcile when an external system acted but its response was lost.
Model output is typed information; permissions and your approval decide what proceeds.
Open engineering foundations
Firefly Framework supplies the service, data, event, security, process, and AI patterns the platform uses.
Your first operation
Tell us the process, the volume, and what “done” looks like. We will come back with a scope, a deployment plan, and a proposal.