Case Studies | SaaS B2B

Asking the database questions in plain English

GenAI SQLBot

About

A SaaS B2B business working with Cloud Combinator on AWS. The client is anonymised at their request.

Challenge

The challenge had three focus areas, all centred on making data insight safe, accurate and self-service.

Insight locked behind SQL

Only technical staff could query the database directly, so everyday questions from the wider business queued behind the few people able to answer them.

Accuracy and safety

Generated SQL has to be correct and controlled. Answers needed guardrails to stay on-topic and safe, and the workflow had to handle query errors gracefully rather than failing silently.

Traceability and maintainability

As a regulated business handling operational data, the client needed every question and answer recorded for auditability, and the solution had to be something their own team could run and extend.

Solution

An employee asks a question in plain English through an API, served by an AWS Lambda Function URL. AWS Lambda orchestrates the request and calls Amazon Bedrock, which uses the database schema and a knowledge base to convert the question into SQL, applying prompt engineering and guardrails to keep the response safe and on-topic.

4 days

Focused build, design to deployment

Self-

SQL loop retries and fixes minor errors

Auto-sync

Knowledge base stays current with S3

By the numbers:

  • 4 days - Focused build, design to deployment
  • Self- - SQL loop retries and fixes minor errors
  • Auto-sync - Knowledge base stays current with S3
Changes

The proof of concept demonstrated a working natural-language-to-SQL workflow in the client's AWS environment and met its success criteria. Questions asked in plain English are converted to SQL, executed against the database, and returned through an API, with a self-correcting loop, guardrails and full conversation logging in place.

  • Plain-English queryingEmployees ask questions in natural language and get answers from the SQL database, with no SQL knowledge needed.
  • Safe, guided responsesAmazon Bedrock guardrails and prompt engineering keep answers controlled, consistent and on-topic.
  • Resilient by designA self-correcting loop fixes minor SQL errors automatically and retries within safe limits before reporting back.
  • Auditable and currentEvery question and response is logged in DynamoDB, and the knowledge base stays in sync with S3 automatically.
  • HandoverDelivered as a CloudFormation template with documentation and a knowledge-transfer session, so the client can run and extend it.

With the pattern proven, the client can take it from proof of concept toward production, adding user authentication and wider data sources to put natural-language insight in the hands of more of the business.

AWS Stack

Amazon Bedrock

For converting natural language into SQL and generating responses, with guardrails.

AWS Lambda

For orchestration, with Lambda Function URLs exposing the workflow as an API.

Amazon DynamoDB

For tracking conversations to support auditability and traceability.

Amazon S3

For document storage feeding the Bedrock knowledge base, with event-based sync.

Amazon VPC

For an isolated, secure network, with Amazon CloudWatch for real-time monitoring.

AWS CloudFormation

For automated, repeatable deployment of the whole stack.

YOU MIGHT LIKE

Related success stories

View all case studies

Case Studies | Insights

Utilising Language Recognition, Speed, and Enhanced Security to Make Social Media a Force for Good

  • Here, we take a detailed look at how the Cloud Combinator team collaborated with another cutting-edge AI service provider that provides intelligent systems to “make social media more social” for brands and users alike.
  • Arwen AI is a UK-based startup specialising in AI solutions to manage and enhance brands’ social media interactions. Founded in 2020 by Matt McGrory, Dr. David Cole, and Joel Bailey, Arwen. AI focuses on using AI to automatically detect and remove spam, toxic comments, and other unwanted content from social media platforms.
  • The team at Arwen have three core products. ‘Moderate’ is focused on identifying and removing toxic content from social media channels. ‘Engage’ helps brands identify and engage with meaningful conversations on social media, and ‘Customize’ allows brands to apply bespoke algorithms to their channels - creating an even more effective moderation and engagement.
Read more
CONTACT US

Ready to turn AI into impact?

We'll help you spot the highest-value opportunities, reduce risk around your first AI initiative, and define a clear path to results from day one.

Why talk to us:

Outcome-driven recommendations

AWS-recognised delivery expertise

Risk-aware AI adoption

Clear next step, not a sales pitch

Start with a focused 20-minute conversation about your goals — no pressure, no commitment.

This website uses cookies to enhance user experience and to analyze performance and traffic on our website.

See our Privacy Policy for details.