Conversational AI for Financial Apps: Native Architecture and Phased Deployment
This article explains how financial apps can evolve from page-based interactions to proactive, conversational services. It compares WebView and native architectures, defines device capability and compliance boundaries, and outlines a three-layer design combining multimodal intent understanding, on-device and cloud inference, and dynamic action cards. It also covers offline behavior, privacy controls, audit logging, routing policies, and performance measurement.
1. From Passive Responses to Proactive Services: The Changing Financial User Experience
For most of the past decade, financial app interactions have revolved around page hierarchies. Users had to learn the menu structure, fill out forms manually, and wait for the server to return results. In reality, users want to solve a problem or complete a task. Finding the right entry point is only an intermediate step.
Consider reducing a portfolio position. In many traditional app flows, users must open My Holdings, select a fund, tap Sell, enter the number of units, and review risk disclosures. The exact number of screens varies by app version and product design, but four or five screens are common. With a conversational interface, the user can simply say, “Reduce my technology-stock allocation by half.” The system then needs to do three things: interpret the request, check compliance boundaries, and generate a confirmation card. The user only needs to confirm once.
Higher on-device computing capacity makes this transition possible. Mobile SoCs with NPUs can now run small models and some quantized medium-sized models. When short tasks such as intent recognition run locally, network round trips can be avoided and responses are generally faster, although the actual difference must be measured on the target devices.
In financial applications, the need to keep data on the device whenever possible, make decisions explainable, and keep operations auditable all influence the architecture.
2. Define the Use-Case Boundaries Before Choosing an Architecture
There is no universal answer to whether an app should use WebView. When the primary purpose of a page is presentation and conversation is only an auxiliary entry point, a WebView combined with a small amount of native functionality is usually sufficient and has a lower development cost. When conversation becomes the primary interaction model and the app frequently needs device capabilities, high-frequency updates, and long-running sessions, a native architecture offers clearer advantages.
The following table compares the two approaches across four dimensions.
| Dimension | WebView Approach | Native Approach |
|---|---|---|
| First frame and long lists | Depends on JavaScript parsing and DOM re-rendering; frame drops become more likely as pages grow heavier | Uses mechanisms such as RecyclerView to reuse off-screen views; message data is managed through pagination and caching |
| Device context | Passed through a JavaScript bridge, which introduces overhead for high-frequency data | Read directly through provider interfaces, with authorization required for each capability |
| Poor connectivity and offline use | Requires additional cache and local-processing logic | Can attach an on-device small model to handle common questions offline |
| Compliance auditing | The container itself does not determine where data goes | The application must implement collection records and audit logs |
This table only indicates general architectural direction. Actual figures depend on the device model, operating system version, and WebView engine version. Teams should benchmark their own target devices instead of directly applying data from other projects.
Device Tiering Criteria
Both cloud-edge routing and on-device medium-sized models depend on device capabilities. Devices should therefore be classified before deployment. Teams can use the following initial criteria:
- Available memory: Use runtime-available memory rather than nominal memory. An initial threshold of 8 GB can be used; devices below that level should not load the medium-sized model.
- SoC allowlist: List chip models that have been tested and meet the required NPU acceleration results. Devices outside the allowlist should not load the medium-sized model by default.
- NPU support list: Record the relationship between operating system versions and NPU drivers, and reassess the list after system upgrades.
These thresholds are only starting points. Final decisions should be based on measured first-token latency and sustained power consumption on the target devices.
How to Determine Compliance Boundaries
The Personal Financial Information Protection Technical Specification (JR/T 0171-2020) is a recommended industry standard in China. It requires explicit user consent for the collection, transmission, and storage of sensitive financial information, as well as traceable audit records. Specific obligations should be determined according to the latest requirements from relevant regulators and the organization’s internal compliance team.
WebView is only a presentation container; it does not determine where data goes. The key factor is whether the conversational engine depends on cloud processing. If every user input is processed in the cloud, the request content leaves the device. HTTPS protects data in transit, but it cannot replace data minimization, local-first processing, or authorization auditing.
A data collection inventory can be organized as follows. Retention periods should be determined by the compliance team.
| Data Category | Collection Purpose | Authorization Method | Processing Location | Retention Period |
|---|---|---|---|---|
| Conversation text | Intent recognition and response generation | Explicit consent on first use | On-device by default; separate consent required for cloud analysis | Cleaned up after the session according to compliance requirements |
| Risk-assessment level | Product suitability and compliance-boundary checks | Read with account authorization | Read on-device only | For the duration of the account, subject to compliance guidance |
| Portfolio changes and recent browsing | Generating action recommendations | Separate consent | On-device; separate consent required for cloud analysis | Determined by compliance guidance, with automatic expiration |
| Location | Finding nearby branches | System permission plus separate consent | On-device, retaining only approximate precision | Deleted after use; no movement history retained |
| Calendar | Generating reminders based on planned times | System permission plus separate consent | On-device | Only recent events retained, with an expiration period |
At a minimum, audit logs should record the following fields: event ID, a pseudonymized user identifier, timestamp, data category, processing location—on-device or cloud—model version, operation result, and authorization version.
When a user disables cloud analysis, the system should also record the disablement time and source of the action. Periodic sampling should verify that no cloud request is sent after the feature has been disabled.
Poor Connectivity and Offline Use
Fund NAV queries and financial calculations often take place in environments with weak connectivity, such as subway systems or underground parking garages. If basic intent recognition depends entirely on the cloud, the conversational feature becomes unavailable when the network is interrupted.
Keeping a small model on the device allows the app to handle common questions offline and generate fixed responses. Once connectivity is restored, the cloud can supplement the interaction with more complex analysis.
3. Three Core Modules of a Native Conversational AI Architecture
A financial conversational engine that can perceive context, generate responses, and execute actions consists of three main parts: intent understanding, hybrid on-device/cloud inference, and dynamic action cards. Each is described below.
Module 1: Multimodal Intent Understanding
Intent understanding cannot rely solely on keyword matching. Useful signals generally fall into three categories:
- Explicit signals: Text and voice entered by the user
- Implicit signals: Location, calendar, screen state, and recent actions
- Business signals: Risk-assessment level, portfolio changes, and recent browsing history
Implicit signals involve privacy considerations, so the relevant system permissions must be requested before collection. A simplified example is shown below:
class FinancialContextCollector(private val permissions: PermissionState,private val locationProvider: LocationProvider,private val calendarProvider: CalendarProvider,) {fun buildContext(): ContextBundle {val builder = ContextBundle.Builder().addRiskProfile(RiskProfileRepository.current()) // Business signal, read locally only// Check authorization separately for each implicit signal.// Skip unauthorized signals without affecting basic conversation.if (permissions.isGranted(Permission.LOCATION)) {builder.addLocation(locationProvider.lastKnown())}if (permissions.isGranted(Permission.CALENDAR)) {builder.addCalendarEvents(calendarProvider.upcomingEvents(limit = 5))}return builder.build()}}
Collected context should include an expiration time. Once the time-to-live has elapsed, the field must no longer participate in inference:
data class ContextField<T>(val value: T, val collectedAt: Long, val ttlMillis: Long) {fun isExpired(now: Long): Boolean = now - collectedAt > ttlMillis}
When a user denies authorization, the system should record one denial event and avoid showing a permission prompt on every turn. A permission explanation should be shown again only when the user actively initiates a feature that requires the relevant capability.
The following table describes fallback behavior when signals are unavailable.
| Signal | Fallback When Unauthorized | Alternative Signal |
|---|---|---|
| Location | “Tell me your city and I can help you find a nearby branch.” | A city or branch name entered by the user |
| Calendar | “If you have a planned time, you can tell me directly.” | A time provided in the conversation |
| Notifications | Do not send proactive reminders; provide the result inside the conversation | A confirmation card in the conversation |
| Screen state | Do not read it; handle the request through the current page’s explicit entry point | Page routing information |
Module 2: Hybrid On-Device and Cloud Inference
A single inference mode cannot easily optimize quality, latency, and cost at the same time. A three-level architecture can be used instead.
The first level is an on-device small model for common-question matching, fixed responses, and sensitive-term filtering. The target model size should remain within the range of several dozen megabytes.
The second level is an on-device medium-sized model for context-dependent long conversations and portfolio-analysis summaries. For example, a 7B-parameter model may require approximately 4 GB for 4-bit quantized weights. After adding the KV cache and runtime overhead, it generally requires more than 8 GB of available memory and an SoC that supports NPU acceleration.
This level is suitable only for high-end devices that pass the device-tiering assessment. Low- and mid-range devices should skip it.
The third level is a cloud-based large model for cross-period portfolio analysis, complex asset-allocation questions, and queries requiring real-time data. Cloud routing can be triggered when:
- The on-device model’s confidence is below a defined threshold
- The request involves multiple accounts or a long time span
- The user explicitly requests in-depth analysis
Before a request is sent to the cloud, it should be de-identified. Direct identifiers such as national ID numbers and bank card numbers should be removed, and only the fields required to complete the task should be transmitted.
Users should be able to disable cloud analysis in settings. When it is disabled, the system should provide only on-device capabilities.
The routing policy can be structured as follows:
| Level | Trigger | Device Prerequisites | Timeout Budget | Failure Fallback | Cost and Privacy Boundary |
|---|---|---|---|---|---|
| On-device small model | Default choice for common questions | Small model is loaded | 300 ms | If the device qualifies and the medium-sized model is loaded, route to the on-device medium-sized model. Otherwise, send a de-identified request to the cloud if authorized; if not, return a fixed response | Data remains on the device |
| On-device medium-sized model | Context-dependent request on a qualified device | Device passes tiering, supports NPU acceleration, and has loaded the model | 2 seconds | Send a de-identified request to the cloud if the user has authorized it; otherwise, return a fixed response | Data remains on the device; power consumption must be monitored |
| Cloud large model | Complex analysis with user consent and cloud analysis enabled | Network available | 5 seconds | Return a fixed response and suggest trying again later | Send only de-identified fields; usage is billed per call |
Timeout budgets must have a clearly defined measurement methodology. Otherwise, figures from different teams cannot be compared. The following approach is recommended:
- Device models: Report results separately by device tier, with at least one representative device for each tier.
- Startup state: Record cold-start and warm-start results separately.
- Network conditions: Test Wi-Fi, normal 4G, and simulated weak-network conditions separately.
- Metrics: Record P50, P95, and failure rate. Use P95 as the basis for evaluating timeout thresholds.
The 300 ms, 2-second, and 5-second values are starting budgets. They reflect general user expectations: once a response takes more than roughly one second, users clearly perceive the wait, so the on-device small model receives the shortest budget. These values should be calibrated with real measurements before launch.
Module 3: Dynamic Action Cards
The first two modules handle understanding and inference. Action cards handle user confirmation and execution.
If the result of a conversation is only a block of text, the user still has to return to the existing page to complete the operation, breaking the interaction loop. Dynamic action cards convert model output into a confirmation and execution interface.
