Hardware-less doorbell for the TiDB AgentX Hackathon. Visitors can scan a QR code → interact with an AI agent → resident gets notified via a text on their phone! No transformer, batteries, wires, or chime required. This makes it perfect for apartments, condos, or older homes. Best of all, it deploys with a single click with no coding or cloud experience required!
Prerequisites:
- AWS Account with permissions for Lambda, API Gateway, SNS, S3, Secrets Manager, Bedrock
- Enable Bedrock model access: Go to AWS Console → Bedrock → Model access → Request access for "Titan Text G1 - Express"
- TiDB Serverless cluster (get free at tidbcloud.com)
Setup Steps:
- Create TiDB Serverless cluster at tidbcloud.com
- Click "Connect" → "Generate Password" → copy the connection string, which is in the tab next to the
Parameters
on the connection modal - Click "Deploy to AWS" button above
- Enter your TiDB connection string and notification email address
- Deploy the stack (takes ~3 minutes)
- Check your email and confirm the SNS subscription (click the confirmation link)
- Open the "QRCodeUrl" from stack outputs
- Print the QR code page and post by your door!
- Done! Visitors can now scan and interact with your virtual doorman
Multi-Step Agentic AI Workflow:
- Data Ingestion → Visitor messages stored in TiDB with session tracking
- Historical Context → Agent checks previous visits for returning visitor detection
- AI Classification → Amazon Bedrock (Titan Text Express) analyzes message context
- AI Response Generation → Personalized responses based on visitor history
- External Actions → Email notifications sent to resident with visit context
Intelligence Features:
- Recognizes returning visitors and personalizes responses
- Tracks historical visit patterns in TiDB
- Provides visit context to residents via email
- Fallback classification ensures reliability
- S3 Static Website - Visitor interface and QR code generation
- API Gateway - Public endpoints for visitor interactions
- Lambda Functions - Session management and AI agent orchestration
- TiDB Serverless - Stores visits and transcripts with historical search
- AWS Bedrock - AI for visitor intent classification and response generation
- SNS - Email notifications to residents
- Secrets Manager - Secure TiDB credential storage