Financial Services / Cross-Border Payments

/

RPay

Financial Services / Cross-Border Payments

RPay Brings Governed, Explainable AI to Payments Operations

Zero

Records saved without a person approving them first

One

Function that can write data, and it never calls a model

79

Automated tests covering the service and its infrastructure

Client

RPay

Location

San Francisco, California

Industry

Financial Services / Cross-Border Payments

Services & Tech

Amazon Bedrock (Anthropic Claude models), AWS Context Ontology Accelerator (COA), Amazon Textract, AWS Lambda, Amazon API Gateway, Amazon Cognito, Amazon DynamoDB, Amazon Aurora Serverless v2 (PostgreSQL), Amazon S3, Amazon CloudFront, AWS CDK

Project Overview

RPay, a cross-border payments platform, wanted to let its team ask questions about payments data in plain language and turn invoices and payout schedules into reviewable records, without giving an AI model the ability to change anything on its own. Avahi built a conversational assistant on Amazon Bedrock and the AWS Context Ontology Accelerator (COA). It answers questions on PayIn, payout, invoice and balance data, compares a merchant’s metrics with benchmark ranges, cites RPay’s knowledge documents, and reads invoices and payout schedules into proposals that a person must approve before anything is saved. The solution was built and tested on sandbox and synthetic data, and deployed to a development AWS account.

About The Customer

RPay operates a cross-border payments platform that handles PayIns, payouts and invoices for merchants across multiple currencies and corridors. Its teams need quick answers on success rates, payout volumes by corridor, invoice aging and balances by currency, and they process vendor invoices and payout instructions that arrive as documents.

The Problem

Operational questions such as which merchant has the most failed PayIns, or how a merchant’s settlement time compares with its peers, meant navigating several dashboard views or asking colleagues for custom reports. Each answer depended on someone knowing where to look and what each metric meant.

Invoices and payout schedules added a second problem. Payee names, amounts, currencies and due dates had to be read from documents, retyped, and matched to existing recipients by hand, which is slow and easy to get wrong. In a payments product, a wrong total or a wrong payee damages trust far more than a slow answer, so any AI assistance had to be strictly controlled.

Why AWS?

Amazon Bedrock gave RPay managed access to foundation models inside AWS security and compliance boundaries, with no model hosting to run. COA gave the project a ready semantic layer: an ontology that defines terms such as “PayIn success rate” once, governed metrics that make those numbers deterministic, natural-language-to-SQL and retrieval over documents, all reached through an MCP server. Amazon Textract handled document reading, and the whole stack was deployed with the AWS CDK and checked with cdk-nag.

Why RPay Chose Avahi

Avahi combined payments-domain care with hands-on AWS AI delivery. Avahi designed the assistant so that safety does not depend on the model behaving: the part of the system that reasons cannot save data, and the part that saves data cannot call a model. Avahi also kept arithmetic, benchmark comparison and payee matching in tested code rather than leaving them to the model.

Solution

Avahi built an assistant panel inside a dashboard shell that RPay’s team can open in a browser. Sign-in uses COA’s Amazon Cognito user pool, so every data request runs as the signed-in person and COA’s access grants and audit log apply to them.

Intent routing and answers on governed data

A fast model classifies each message as a data, knowledge, benchmark or document-write request, and only the tools for those intents are offered to the answering model. Data questions go to COA’s natural-language-to-SQL and governed metrics, and policy questions go to COA’s retrieval over RPay’s knowledge documents. Requests to make compliance decisions, move funds or schedule actions are refused before any tool runs. Because COA’s slower answers can take 20 to 90 seconds, each question runs as a background turn that the panel polls.

Benchmark comparison and explainability

For a performance question, the metric comes from a COA governed metric, the merchant’s segment comes from the database, and code compares the value with the benchmark range and produces the statement, for example whether the merchant is within, better than or worse than range. Every answer ends with reasoning and a “based on” list. That list is built by code from the tools that actually ran, so the assistant cannot claim a source it did not use.

Document reading

Amazon Textract reads uploaded PDF, JPEG and PNG files and returns text with per-word confidence. A model structures that text into invoice fields or payout lines, copying exactly as printed and leaving unreadable fields empty. Code then validates amounts, currencies and dates, checks that invoice lines add up to the printed total, and matches payees. Matching is deliberately conservative: close names are sent to a person rather than guessed, so the failure mode is an extra click, not a wrong payee.

A confirmation gate that does not depend on the model

The assistant can only propose. A separate function that makes no model calls, and is the only one holding write credentials, commits an approved proposal and writes an audit row. This is enforced by IAM, database roles and routing rather than by prompts, and it is covered by automated tests. The gate includes:

  • A content hash, so approval applies to exactly what was on screen and any edit needs a fresh approval
  • Ownership checks, so only the person who started a proposal can approve it
  • A one-way state change, so a double click writes once
  • Blocking issues, such as an unknown payee or a total mismatch, that prevent approval and are rechecked at commit
  • No fund movement: a payout batch is only ever a draft record, and nothing in the solution can execute a payment

The design also assumes uploaded documents can contain instructions aimed at the model. The review card, not the chat text, shows the amounts, and a prompt-injection sample invoice is part of the evaluation set.

Session memory keeps the text of recent turns so merchants can ask follow-up questions in the same session.

Key Deliverables

  • Assistant panel and dashboard shell, hosted on Amazon S3 and CloudFront, with Cognito sign-in
  • Assistant service on AWS Lambda with intent routing, tool use through COA’s MCP server, and code-built source attribution
  • COA integration: pinned release, loaded tables and reviewed ontology, governed metrics, knowledge documents and access setup, with scripted, reviewable steps
  • Benchmark comparison module with a versioned benchmark table
  • Textract-based reading of invoices and payout schedules, with structured extraction and validation
  • Payee matching and review card UI showing flagged items before approval
  • Model-free confirmation function, database roles and audit trail enforcing human approval before any write
  • Synthetic sandbox database on Aurora Serverless v2 PostgreSQL, with seed data and sample documents
  • Infrastructure as code with the AWS CDK, cdk-nag checks and AWS Partner Revenue Measurement tags
  • Evaluation suite of 26 test questions and a findings report template, plus automated tests (64 service tests and 15 infrastructure tests)
  • Documentation: architecture, design decisions, runbook, query-routing and OCR logic, and a “before production” guide

Project Impact

The engagement showed that RPay’s team can get answers on governed payments metrics, with benchmark context and a clear account of where each answer came from, through a single chat panel instead of several dashboard views. It also showed that invoice and payout document intake can be assisted by AI while a person keeps control of every record that is saved.

The design choices make the key behaviours testable without a model: totals, payee matching and benchmark statements are deterministic, and the approval requirement is enforced below the model. The engagement also produced a clear list of what must change before real use, covering merchant-level data isolation, integration with RPay’s own APIs, approval limits for invoices and payout batches, a production sign-in flow, and compliance review. Next steps named in the statement of work are live payment-data integration, proactive alerts, KYT and compliance triage support with decisions left to people, and peer benchmarking from aggregated merchant data.

Metrics

Your migration, without the risk

Moving off Azure — or planning your own enterprise AI migration?

Avahi takes enterprises from idea to production on AWS in weeks, not months — with validated parity and zero-downtime cutovers. Let’s scope yours.

RPay Brings Governed, Explainable AI to Payments Operations

Client

RPay

Location

San Francisco, California

Industry

Financial Services / Cross-Border Payments

Services & Tech

Amazon Bedrock (Anthropic Claude models), AWS Context Ontology Accelerator (COA), Amazon Textract, AWS Lambda, Amazon API Gateway, Amazon Cognito, Amazon DynamoDB, Amazon Aurora Serverless v2 (PostgreSQL), Amazon S3, Amazon CloudFront, AWS CDK

Project Overview

RPay, a cross-border payments platform, wanted to let its team ask questions about payments data in plain language and turn invoices and payout schedules into reviewable records, without giving an AI model the ability to change anything on its own. Avahi built a conversational assistant on Amazon Bedrock and the AWS Context Ontology Accelerator (COA). It answers questions on PayIn, payout, invoice and balance data, compares a merchant’s metrics with benchmark ranges, cites RPay’s knowledge documents, and reads invoices and payout schedules into proposals that a person must approve before anything is saved. The solution was built and tested on sandbox and synthetic data, and deployed to a development AWS account.

About The
 Customer

RPay operates a cross-border payments platform that handles PayIns, payouts and invoices for merchants across multiple currencies and corridors. Its teams need quick answers on success rates, payout volumes by corridor, invoice aging and balances by currency, and they process vendor invoices and payout instructions that arrive as documents.

The 
Problem

Operational questions such as which merchant has the most failed PayIns, or how a merchant’s settlement time compares with its peers, meant navigating several dashboard views or asking colleagues for custom reports. Each answer depended on someone knowing where to look and what each metric meant.

Invoices and payout schedules added a second problem. Payee names, amounts, currencies and due dates had to be read from documents, retyped, and matched to existing recipients by hand, which is slow and easy to get wrong. In a payments product, a wrong total or a wrong payee damages trust far more than a slow answer, so any AI assistance had to be strictly controlled.

Why AWS

Amazon Bedrock gave RPay managed access to foundation models inside AWS security and compliance boundaries, with no model hosting to run. COA gave the project a ready semantic layer: an ontology that defines terms such as “PayIn success rate” once, governed metrics that make those numbers deterministic, natural-language-to-SQL and retrieval over documents, all reached through an MCP server. Amazon Textract handled document reading, and the whole stack was deployed with the AWS CDK and checked with cdk-nag.

Why RPay Chose Avahi

Avahi combined payments-domain care with hands-on AWS AI delivery. Avahi designed the assistant so that safety does not depend on the model behaving: the part of the system that reasons cannot save data, and the part that saves data cannot call a model. Avahi also kept arithmetic, benchmark comparison and payee matching in tested code rather than leaving them to the model.

Solution

Avahi built an assistant panel inside a dashboard shell that RPay’s team can open in a browser. Sign-in uses COA’s Amazon Cognito user pool, so every data request runs as the signed-in person and COA’s access grants and audit log apply to them.

Intent routing and answers on governed data

A fast model classifies each message as a data, knowledge, benchmark or document-write request, and only the tools for those intents are offered to the answering model. Data questions go to COA’s natural-language-to-SQL and governed metrics, and policy questions go to COA’s retrieval over RPay’s knowledge documents. Requests to make compliance decisions, move funds or schedule actions are refused before any tool runs. Because COA’s slower answers can take 20 to 90 seconds, each question runs as a background turn that the panel polls.

Benchmark comparison and explainability

For a performance question, the metric comes from a COA governed metric, the merchant’s segment comes from the database, and code compares the value with the benchmark range and produces the statement, for example whether the merchant is within, better than or worse than range. Every answer ends with reasoning and a “based on” list. That list is built by code from the tools that actually ran, so the assistant cannot claim a source it did not use.

Document reading

Amazon Textract reads uploaded PDF, JPEG and PNG files and returns text with per-word confidence. A model structures that text into invoice fields or payout lines, copying exactly as printed and leaving unreadable fields empty. Code then validates amounts, currencies and dates, checks that invoice lines add up to the printed total, and matches payees. Matching is deliberately conservative: close names are sent to a person rather than guessed, so the failure mode is an extra click, not a wrong payee.

A confirmation gate that does not depend on the model

The assistant can only propose. A separate function that makes no model calls, and is the only one holding write credentials, commits an approved proposal and writes an audit row. This is enforced by IAM, database roles and routing rather than by prompts, and it is covered by automated tests. The gate includes:

  • A content hash, so approval applies to exactly what was on screen and any edit needs a fresh approval
  • Ownership checks, so only the person who started a proposal can approve it
  • A one-way state change, so a double click writes once
  • Blocking issues, such as an unknown payee or a total mismatch, that prevent approval and are rechecked at commit
  • No fund movement: a payout batch is only ever a draft record, and nothing in the solution can execute a payment

The design also assumes uploaded documents can contain instructions aimed at the model. The review card, not the chat text, shows the amounts, and a prompt-injection sample invoice is part of the evaluation set.

Session memory keeps the text of recent turns so merchants can ask follow-up questions in the same session.

Key Deliverables

  • Assistant panel and dashboard shell, hosted on Amazon S3 and CloudFront, with Cognito sign-in
  • Assistant service on AWS Lambda with intent routing, tool use through COA’s MCP server, and code-built source attribution
  • COA integration: pinned release, loaded tables and reviewed ontology, governed metrics, knowledge documents and access setup, with scripted, reviewable steps
  • Benchmark comparison module with a versioned benchmark table
  • Textract-based reading of invoices and payout schedules, with structured extraction and validation
  • Payee matching and review card UI showing flagged items before approval
  • Model-free confirmation function, database roles and audit trail enforcing human approval before any write
  • Synthetic sandbox database on Aurora Serverless v2 PostgreSQL, with seed data and sample documents
  • Infrastructure as code with the AWS CDK, cdk-nag checks and AWS Partner Revenue Measurement tags
  • Evaluation suite of 26 test questions and a findings report template, plus automated tests (64 service tests and 15 infrastructure tests)
  • Documentation: architecture, design decisions, runbook, query-routing and OCR logic, and a “before production” guide

Project
 Impact

The engagement showed that RPay’s team can get answers on governed payments metrics, with benchmark context and a clear account of where each answer came from, through a single chat panel instead of several dashboard views. It also showed that invoice and payout document intake can be assisted by AI while a person keeps control of every record that is saved.

The design choices make the key behaviours testable without a model: totals, payee matching and benchmark statements are deterministic, and the approval requirement is enforced below the model. The engagement also produced a clear list of what must change before real use, covering merchant-level data isolation, integration with RPay’s own APIs, approval limits for invoices and payout batches, a production sign-in flow, and compliance review. Next steps named in the statement of work are live payment-data integration, proactive alerts, KYT and compliance triage support with decisions left to people, and peer benchmarking from aggregated merchant data.

Ready to Transform Your Business with AI?

Let’s explore your high-impact AI opportunities together in a complimentary session