Case Study 04/Conversational AI & CloudCompleted

Thirukkural AI Chatbot

Bilingual Tamil & English conversational chatbot on WhatsApp and serverless AWS.

Developed a conversational chatbot that helps users explore Thirukkural by asking questions in Tamil or English. The bot responds instantly with relevant Kurals and their meanings, making classical Tamil literature more accessible through WhatsApp and AWS serverless architecture.

Motivation:Classical Tamil wisdom in the Thirukkural is timeless, yet finding relevant couplets for everyday questions often requires searching dense literary indexes.

Index
02 Build · Entry 04 / 06
My Role
Creator & Cloud Developer (Personal Project)
Current Status
Completed
Execution Environment
AWS Serverless + WhatsApp (Twilio API)
02/Problem Statement

Readers wanting quick, meaningful Thirukkural couplets in either Tamil or English lacked a frictionless conversational interface inside everyday messaging.

03/Target Users & Use Cases
Intended Users

Tamil literature enthusiasts, students, and everyday readers exploring Thirukkural in Tamil or English.

Real-World Scenarios
  • Sending a natural-language question in Tamil or English on WhatsApp.
  • Receiving relevant Thirukkural couplets and explanations in real time.
Why It Is Useful

Makes classical Tamil literature immediately accessible inside WhatsApp with serverless scalability and cost efficiency.

04/Verified Technology Stack
AI / ML
Amazon Lex (Conversational Intent Handling)
Cloud Infrastructure
AWS LambdaAPI GatewayDynamoDB
APIs & Integrations
Twilio API (WhatsApp Integration)
05/Architecture & System Design

Event-driven AWS serverless pipeline bridging WhatsApp messaging via Twilio through API Gateway into AWS Lambda, Amazon Lex, and DynamoDB.

Main Components
  • · WhatsApp client interface
  • · Twilio API for real-time WhatsApp message relay
  • · AWS API Gateway for webhook ingestion
  • · Amazon Lex & AWS Lambda for intent handling and query execution
  • · Amazon DynamoDB for Kural and meaning records
Data Flow

WhatsApp User → Twilio API → API Gateway → AWS Lambda + Amazon Lex → DynamoDB → WhatsApp Reply

Execution Environment

AWS Serverless Architecture

System Architecture DiagramEvent-driven AWS Serverless

AWS Serverless Conversational Flow

01
WhatsApp
Tamil / English query
02
Twilio API
Webhook relay
03
API Gateway
Request ingestion
04
Lambda + Lex
Intent & query logic
05
DynamoDB
Kural & meaning store
06/End-to-End Workflow
01. User Query

User sends a question in Tamil or English on WhatsApp.

02. Twilio & API Gateway

Twilio forwards the WhatsApp message to API Gateway.

03. Lex & Lambda

Amazon Lex and AWS Lambda interpret intent and query Kural records.

04. DynamoDB Reply

Matching Kural and meaning are returned back to WhatsApp in real time.

07/Implementation Details
Completed Features
  • · Bilingual (Tamil & English) Kural search
  • · Real-time WhatsApp integration via Twilio API
  • · AWS Serverless backend using Lambda, API Gateway, Amazon Lex, and DynamoDB
Partially Implemented

None documented.

Experimental

None documented.

Planned
  • · Expanded commentary exploration (planned)
  • · Web interface companion (planned)
08/Challenges & Solutions

Development challenges to be documented.

09/My Role & Contributions

Creator & Cloud Developer (Personal Project)

  • Conversational intent design in Amazon Lex
  • Serverless backend logic in AWS Lambda
  • DynamoDB data modeling for Kural storage
  • API Gateway & Twilio WhatsApp webhook integration
10/Current Implementation Status
CompletedAWS Serverless + WhatsApp (Twilio API)

Documented working project combining Amazon Lex, AWS Lambda, API Gateway, DynamoDB, and Twilio WhatsApp integration.

11/Screenshots & Evidence
Visual Evidence SlotScreenshots Needed

Details to be confirmed — verified WhatsApp conversation screenshots and AWS architecture console captures are needed.

Required Captures
  • WhatsApp conversation screenshot showing Tamil & English Kural queries
  • AWS Lambda / Lex / DynamoDB flow capture
12/Learnings & Future Improvements
Key Learnings

Gained hands-on experience wiring event-driven AWS serverless components (API Gateway, Lambda, Lex, DynamoDB) to an external messaging webhook (Twilio).

Planned Future Improvements (Not Yet Implemented)
  • Add web-based exploration UI alongside WhatsApp (planned)
  • Support richer thematic commentary lookups (planned)