Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

AI Mystery Game: Building an Interactive AI-Powered Mystery Game with Amazon Bedrock

Description and use

AI Mystery Game showcases how to use Amazon Bedrock and AWS Lambda to build a browser-based game that dynamically generates mysteries, provides hints, and evaluates player answers, with the frontend hosted on Netlify.

Problem

Create a browser-based game that generates a new mystery each play, lets players investigate clues, request hints, and submit answers for AI evaluation.

Outcome

The game demonstrates how a single foundation model can support multiple interactive features via prompt engineering, and showcases a serverless architecture that separates frontend and backend.

Workflow

  • Build HTML/CSS/JS frontend with controls for category, difficulty, generate, hint, submit.
  • Implement a single AWS Lambda Python function handling actions: generate, hint, check.
  • Use Bedrock Converse API with Amazon Nova Lite to generate structured JSON for mysteries, hints, and evaluations.
  • Expose Lambda via Amazon API Gateway HTTP endpoint.
  • Configure CORS in API Gateway for Netlify frontend.
  • Test Lambda independently with both API Gateway and console events.
  • Deploy frontend on Netlify, backend on AWS.
  • Run live demo.

Evidence

I built AI Mystery Game, a browser-based game that combines generative AI with interactive gameplay using Amazon Bedrock, AWS Lambda, and Amazon API Gateway.

Source

The frontend is hosted on Netlify, while the backend processing and AI generation are handled by AWS.

Source

I implemented the backend using Python in AWS Lambda.

Source

I used Amazon Nova Lite to generate mysteries, create hints, and evaluate answers.

Source

I configured Cross-Origin Resource Sharing (CORS) in API Gateway and redeployed the API.

Source

  • Record date: 2026-10-24T13:26:23.647Z