Building a Secure Enterprise AI Assistant with Amazon Bedrock for Financial Services

payu · Finance · 2025 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Regulated financial-services enterprise AI assistant

PayU wanted employees to use generative AI for troubleshooting, drafting, HR policy questions, and business analytics without sending regulated financial data, customer details, or proprietary systems information through unsecured public AI tools.

Constraints:

Architecture

PayU built a private enterprise AI assistant around Open WebUI, an Access Gateway, Amazon Bedrock, Bedrock Agents, Bedrock Knowledge Bases, Guardrails, AWS PrivateLink, and PayU's Luna data lakehouse. Employees authenticate through SSO and RBAC into Open WebUI, choose foundation models or specialized agents, and route requests through the gateway to Bedrock. RAG uses S3-hosted documents, Bedrock Knowledge Bases, OpenSearch vectors, and Guardrails; text-to-SQL agents use schemas, action groups, Lambda, Athena, Glue, and S3 datamarts.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  employee[Employee] --> open-webui[Open WebUI]
  open-webui[Open WebUI] --> access-gateway[Access Gateway]
  open-webui[Open WebUI] --> amazon-rds-postgresql[Amazon RDS PostgreSQL]
  access-gateway[Access Gateway] --> amazon-bedrock[Amazon Bedrock]
  amazon-bedrock[Amazon Bedrock] --> bedrock-agents[Bedrock Agents]
  amazon-bedrock[Amazon Bedrock] --> bedrock-knowledge-bases[Bedrock Knowledge Bases]
  amazon-bedrock[Amazon Bedrock] --> bedrock-guardrails[Bedrock Guardrails]
  amazon-bedrock[Amazon Bedrock] --> privatelink[PrivateLink]
  bedrock-agents[Bedrock Agents] --> action-groups[Action Groups]
  action-groups[Action Groups] --> aws-lambda[AWS Lambda]
  aws-lambda[AWS Lambda] --> amazon-athena[Amazon Athena]
  amazon-athena[Amazon Athena] --> luna-data-lakehouse[Luna Data Lakehouse]
  bedrock-agents[Bedrock Agents] --> bedrock-knowledge-bases[Bedrock Knowledge Bases]
  bedrock-knowledge-bases[Bedrock Knowledge Bases] --> opensearch-service[OpenSearch Service]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Employee Authenticated PayU worker querying enterprise AI capabilities. Open WebUI
Open WebUI Self-hosted browser frontend with SSO, RBAC, model and agent selection, and persistent usage records. Employee, Access Gateway, Amazon RDS PostgreSQL
Access Gateway Adapter between Open WebUI and Amazon Bedrock APIs. Open WebUI, Amazon Bedrock
Amazon Bedrock Managed foundation-model service and host for agents, knowledge bases, and guardrails. Access Gateway, Bedrock Agents, Bedrock Knowledge Bases, Bedrock Guardrails, PrivateLink
Bedrock Agents Role-specific agents such as HR policy, credit disbursal, collections, and payments demographics. Amazon Bedrock, Action Groups, Bedrock Knowledge Bases
Action Groups Schema-defined operations that let agents call compute functions and orchestrate multi-step work. Bedrock Agents, AWS Lambda
AWS Lambda Serverless execution layer for SQL queries and Athena connectivity. Action Groups, Amazon Athena
Amazon Athena SQL query service over S3 datamarts exposed through Glue tables. AWS Lambda, Luna Data Lakehouse
Luna Data Lakehouse S3, Spark, Hudi, and Glue-backed business datamart platform. Amazon Athena
Bedrock Knowledge Bases RAG layer over HR and enterprise documents vectorized into OpenSearch. Amazon Bedrock, OpenSearch Service
OpenSearch Service Vector store for Bedrock Knowledge Bases. Bedrock Knowledge Bases
PrivateLink Private network path between PayU's VPC and Amazon Bedrock. Amazon Bedrock
Bedrock Guardrails Safety layer for blocking harmful content and filtering hallucinated responses. Amazon Bedrock
Amazon RDS PostgreSQL Persistent store for configurations, conversation histories, and usage metrics. Open WebUI

Data flow

An employee signs in to Open WebUI through the identity provider and receives role-scoped access to models, agents, knowledge bases, and foundation models. The Access Gateway translates frontend requests to Bedrock-compatible calls. For HR policy questions, Bedrock Knowledge Bases retrieve vectorized S3 documents from OpenSearch. For business analytics, a Bedrock agent orchestrates text-to-SQL, validates syntax, invokes action groups, runs Lambda/Athena against S3 datamarts, and returns governed answers over PrivateLink.

4 supporting quotes
“Depending on their role, employees can access FMs and agents through the Open WebUI interface. They have the option to choose either an FM or an agent from a dropdown menu.”article, stated
“Access Gateway serves as an intermediary between Open WebUI and Amazon Bedrock, translating Amazon Bedrock APIs to a compatible schema for Open WebUI.”article, stated
“HR policy documents are stored in another S3 bucket. Using Amazon Bedrock Knowledge Bases, these are vectorized and stored in OpenSearch Service.”article, stated
“The Lambda function serves as the execution engine, running SQL queries and connecting with Athena to process data.”article, stated

Why this architecture

PayU chose a managed-private AWS architecture because it needed enterprise GenAI access without violating data-residency, VPC, and audit constraints. Open WebUI gave a controllable self-hosted interface; Bedrock supplied model, agent, knowledge-base, and guardrail services through one API; PrivateLink avoided public internet exposure; and specialized agents matched different retrieval patterns to HR documents and lakehouse analytics.

3 supporting quotes
“As a regulated entity, we were required to keep all our data within India and securely contained within our PayU virtual private cloud (VPC).”article, stated
“The models are accessible through a single, unified API. Amazon Bedrock also offers a comprehensive suite of features that align with our requirements”article, stated
“These approaches provide precise, context-aware responses while maintaining data governance. Implementation details of the text-to-SQL workflow is described in the following diagram.”article, stated

Models used: Amazon Bedrock foundation models · AI21 Labs models · Anthropic models · Cohere models · DeepSeek models · Meta models · Mistral AI models · Amazon models

Scale

Alternatives considered (roads not taken)

Allow employees to keep using public generative AI assistants

Rejected because: Public tools risked transmitting proprietary, customer, and regulated data to third-party AI providers.

“we made the decision to restrict access to these public generative AI systems. This move was necessary to safeguard our organization against potential data leaks and regulatory breaches”article, stated

Use a single general-purpose assistant for every business function

Rejected because: PayU needed role-governed agents tied to specific job functions, data sources, and retrieval mechanisms.

“we deployed specialized agents tailored to specific business functions—including hr-policy-agent, credit-disbursal-agent, collections-agent, and payments-demographics-agent.”article, stated
“credit-disbursal-agent, collections-agent, and payments-demographics-agent. Access to these agents is governed by user roles and job functions. These agents follow a combination of RAG and text-to-SQL approaches. For example, hr-policy-agent uses RAG, querying a vectorized”article, stated

Expose Amazon Bedrock over public internet or NAT paths

Rejected because: Organizational prompts and responses could contain sensitive data, so PayU used PrivateLink to keep connectivity inside AWS private networking.

“To achieve this, we implemented AWS PrivateLink, creating a private and dedicated connection between our VPC and Amazon Bedrock. With this configuration, Amazon Bedrock is accessible as though it resides within our own VPC, removing the need for an”article, stated
“this configuration, Amazon Bedrock is accessible as though it resides within our own VPC, removing the need for an internet gateway or NAT gateway. By setting up an interface endpoint with PrivateLink, we provisioned a network interface directly in our VPC subnet, so that data remains securely”article, stated

Patterns

multi-agent-orchestration (agent architecture)

PayU deployed role-specific Bedrock agents for HR policy, credit disbursal, collections, and payments demographics instead of one broad assistant.

“we deployed specialized agents tailored to specific business functions—including hr-policy-agent, credit-disbursal-agent, collections-agent, and payments-demographics-agent.”article, stated

rag-retrieval (retrieval)

The HR policy agent queries vectorized S3 documents stored in OpenSearch through Bedrock Knowledge Bases.

“hr-policy-agent uses RAG, querying a vectorized knowledge base in Amazon OpenSearch Service”article, stated

tool-use-orchestration (agent architecture)

Text-to-SQL agents use Bedrock orchestration, action groups, schemas, Lambda, and Athena to execute structured data queries.

“Each action group includes a schema, which defines the required format and parameters. This schema allows the agent to interact accurately with the compute layer”article, stated
“The Lambda function serves as the execution engine, running SQL queries and connecting with Athena to process data.”article, stated

privacy-preserving-processing (security)

PayU used AWS PrivateLink and VPC-contained access so prompt context and generated responses stayed off the public internet.

“By setting up an interface endpoint with PrivateLink, we provisioned a network interface directly in our VPC subnet, so that data remains securely within the AWS network.”article, stated

guardrails-io-filtering (safety)

Amazon Bedrock Guardrails filters harmful content and hallucinated responses across RAG and agent workflows.

“provides essential safeguards across model, prompt, and application levels for blocking undesirable and harmful multimodal content”article, stated

Tradeoffs

Use Open WebUI as the employee frontend

Chose A self-hosted open-source UI with enterprise features over Building a custom assistant frontend from scratch.

Rationale: Open WebUI already provided extensibility, SSO, RBAC, and model integration while remaining deployable inside PayU's private environment.

“For the frontend, we selected Open WebUI, an open-source solution known for its extensibility, rich feature set, and intuitive, user-friendly interface”article, stated
“Open WebUI supports enterprise features like single sign-on (SSO), so users can authenticate seamlessly using their organization’s identity provider”article, stated

Use Bedrock managed services

Chose Amazon Bedrock foundation models, agents, knowledge bases, and guardrails over A single in-house LLM service and orchestration stack.

Rationale: Bedrock gave PayU a unified API plus managed agent, RAG, and guardrail features aligned with its enterprise requirements.

“We chose Amazon Bedrock because it is a fully managed service that provides access to a wide selection of high-performing foundation models”article, stated
“Amazon Bedrock also offers a comprehensive suite of features that align with our requirements”article, stated

Separate HR policy RAG from business analytics text-to-SQL

Chose Use-case-specific agents and retrieval paths over One generic retrieval mechanism for all enterprise questions.

Rationale: Documents benefited from vector search, while business datamarts required SQL execution over lakehouse tables.

“hr-policy-agent uses RAG, querying a vectorized knowledge base in Amazon OpenSearch Service, whereas credit-disbursal-agent uses a text-to-SQL pipeline”article, stated

Gotchas (what bit them)

Public AI assistants created immediate regulatory and data-leak risk.

Root cause: Employees found public tools useful enough to use them for work, but the tools could receive sensitive system, customer, and regulated data.

Resolution: PayU restricted public tools and built a private Bedrock-based assistant with VPC, RBAC, and data-residency controls.

“this growing reliance on public generative AI tools quickly raised red flags for our Information Security (Infosec) team.”article, stated
“we made the decision to restrict access to these public generative AI systems.”article, stated

Different data types required different retrieval and generation paths.

Root cause: HR documents and business datamarts could not be served well by the same retrieval mechanism.

Resolution: PayU combined RAG over vectorized documents with text-to-SQL over S3 lakehouse data.

“These agents follow a combination of RAG and text-to-SQL approaches.”article, stated
“credit-disbursal-agent uses a text-to-SQL pipeline, translating natural language queries into structured SQL commands”article, stated

Agent execution needed explicit serverless permissions and resource policies.

Root cause: Action groups invoke compute against Athena and S3-backed data, so insecure Lambda permissions could undermine the platform.

Resolution: The architecture calls out configuring resource policies and permissions for secure Lambda operation.

“To enable secure and efficient operation, it is essential to configure resource policies and permissions correctly, which helps maintain the integrity of the serverless compute environment.”article, stated

Evaluation

The source reports rollout impact through internal productivity estimates, generated organizational interest, business-unit collaboration, and reduced analyst turnaround time.

Metrics: 30% business analyst productivity improvement · reduced turnaround times · multiple workflows added after rollout

3 supporting quotes
“After the rollout, internal estimates revealed a 30% improvement in the productivity of the business analyst team.”article, stated
“This boost in efficiency has made it possible for analysts to focus on more strategic tasks and reduced turnaround times.”article, stated
“This enthusiasm has led to the addition of multiple business workflows to the application.”article, stated

Outcomes

The implementation serves a regulated Indian financial-services environment with multiple specialized agents, SSO/RBAC, PrivateLink connectivity, and S3 lakehouse analytics.

3 supporting quotes
“The introduction of this application has generated significant interest in generative AI within PayU.”article, stated
“Collaboration between business units and the technical team has accelerated digital transformation efforts.”article, stated
“After the rollout, internal estimates revealed a 30% improvement in the productivity of the business analyst team.”article, stated