DEV Community

Cover image for Building Secure AI Finance Chatbots: Architecture Lessons and 5 Companies to Evaluate
Claire
Claire

Posted on

Building Secure AI Finance Chatbots: Architecture Lessons and 5 Companies to Evaluate

A finance chatbot receives a simple request: “Pay the outstanding invoice.”

The model identifies the intent. The backend finds the invoice. A payment service prepares the transaction.

But several questions remain: Does the authenticated user control that account? Has the user confirmed the amount and recipient? What happens if the payment succeeds but the response times out?

These questions determine whether a conversational feature can operate safely in production.

This analysis builds on GeekyAnts’ article on building PCI DSS-ready AI finance products. Its central architectural recommendation is to separate conversation handling from payment execution, with explicit boundaries around sensitive data, tool access, and audit records.

For developers, that recommendation becomes useful when translated into enforceable backend behavior.

Start with the payment boundary

A practical design keeps raw card entry inside a payment provider’s hosted checkout or hosted fields. The chatbot can help initiate the journey and explain its status without receiving the card number or verification code.

However, tokenization does not automatically remove every connected component from PCI DSS scope. The implementation, segmentation, and ability of surrounding systems to affect payment security still matter. PCI SSC’s tokenization guidance explains these dependencies.

Teams should map the actual data flow before deciding which systems sit outside the cardholder data environment.

That map should include infrastructure that developers sometimes overlook:

  • Request tracing and application performance monitoring.
  • Error reporting and support tools.
  • Message queues and retry payloads.
  • Conversation exports, backups, and analytics pipelines.

A clean application database provides little reassurance if a debugging integration captures the original request body.

“PCI DSS-ready” should describe preparation for applicable controls and assessment. It should never imply that an architecture diagram establishes compliance. The authoritative requirements are available through the PCI SSC document library.

Treat model output as an untrusted request

A model may propose an action, but backend services must determine whether that action is permitted.

For example, a proposed payment might contain an invoice reference and requested operation. The server should independently resolve the invoice, verify account ownership, and calculate the payable amount.

The model should not supply trusted authorization facts.

OWASP identifies excessive functionality, permissions, and autonomy as causes of unsafe agent behavior. Its Excessive Agency guidance recommends limiting available tools and permissions, enforcing authorization downstream, and requiring human approval where appropriate.

For a payment assistant, these principles suggest several concrete controls:

  • Expose narrow operations such as prepare_invoice_payment, rather than a general-purpose API execution tool.
  • Derive user identity from the authenticated session.
  • Bind confirmation to the exact recipient, amount, currency, and transaction reference.
  • Recheck authorization when executing the confirmed action.
  • Reject unexpected parameters and unsupported state transitions.

A confirmation becomes invalid if the transaction changes afterward.

This is also why prompt instructions alone cannot secure a payment workflow. A model can misunderstand instructions; the execution service must still enforce the rules.

RAG needs its own authorization model

The source article recommends retrieval-augmented generation as a starting point for accessing current policy information.

That is useful, but retrieval does not inherently protect sensitive information. Retrieved text commonly enters the model’s context. If the retrieval layer returns another customer’s records, the exposure has already occurred before response generation.

OWASP’s Vector and Embedding Weaknesses guidance highlights unauthorized access, data leakage, and poisoned retrieval content.

A safer implementation applies authorization before returning documents. It also separates public guidance from customer-specific records and preserves document provenance.

For example, a general question about dispute deadlines could use approved policy documents. A question about an individual dispute should call an authenticated service that returns only the necessary fields.

RAG and fine-tuning also serve different purposes. Current policy retrieval and model behavior adaptation need not be competing architectural choices. Neither removes the need for access control and evaluation.

Test the transaction lifecycle, including uncertain outcomes

The source highlights production problems such as incomplete audit trails, latency, weak environment separation, and payment failures.

An additional engineering concern is ambiguity after a timeout.

If a processor accepts a payment but the application loses the response, an immediate retry could create a duplicate unless the payment integration handles retries safely.

An illustrative test matrix helps make these cases explicit:

Scenario Expected behavior
User repeats a confirmed request The same logical payment is not executed twice
Processor response times out The system reconciles status before attempting another payment
Retrieved content requests a tool call Content cannot override tool permissions
User supplies another account’s invoice Server-side ownership checks reject the request
Amount changes after confirmation The system requires fresh confirmation
Model service becomes unavailable Payment status remains available through a deterministic path

These tests extend beyond conversational accuracy. They verify that the surrounding system preserves transaction integrity when components fail.

Five companies to evaluate for AI finance development

The following companies offer relevant engineering, AI, or payments services. This is a capability-based shortlist, not an independently verified ranking of security or delivery performance.

1. GeekyAnts

GeekyAnts describes work across AI engineering, finance products, and payment platforms in the source article.

It merits evaluation for projects combining conversational interfaces with custom product development. Buyers should request evidence of payment boundary design, integration testing, and operational handover on comparable engagements.

Publishing technical guidance provides a starting point for discussion; project-specific evidence should determine selection.

2. Thoughtworks

Thoughtworks’ payments services cover payment technology and modernization.

This makes it relevant to teams integrating AI into an existing payment platform. An evaluation should examine how the proposed team would preserve established transaction behavior while introducing conversational workflows.

3. IBM Consulting

IBM’s payments consulting practice addresses payment transformation and supporting technology.

It is a candidate where the chatbot depends on broader enterprise integration. Buyers should clarify system dependencies, responsibility for security controls, and how the implementation would handle failures across legacy and newer services.

4. Accenture

Accenture’s payments services include payments strategy, core modernization, and intelligent operations.

Its scope makes it relevant to larger transformation programs. Evaluation should establish clear ownership across AI, payment processing, infrastructure, and operations, especially when multiple vendors participate.

5. EPAM

EPAM’s open banking and payments services make it another candidate for payment integration and digital engineering work.

A practical assessment should focus on API authorization, transaction state management, automated failure testing, and maintainability after delivery.

Evaluate the failure path before the demo

A useful vendor demonstration should include an unauthorized invoice, a changed payment amount, and an uncertain processor response.

The engineering team should be able to explain which service makes each decision, what evidence gets recorded, and how the application recovers.

A fluent conversation demonstrates interface quality. A safely rejected request and a correctly reconciled payment demonstrate the controls that a production finance product needs.

Top comments (0)