Technical & Functional Documentation

Torna Idioma
Platform Architecture

A comprehensive guide to the vision, architecture, and technical implementation of the Torna Idioma Spanish language revitalization platform.

Version
1.0
Date
March 2026
Status
Production
Operator
Digit2AI / Multi Travel Connection Inc
Table of Contents
Section One

1. What is Torna Idioma

Torna Idioma (The Return of the Language) is a comprehensive digital platform for revitalizing the Spanish language in the Philippines. It serves as the operational backbone for a government-endorsed initiative to reintroduce Spanish as a functional language for economic opportunity, cultural reconnection, and international collaboration.

The platform is operated by Multi Travel Connection, Inc. (DBA Torna Idioma), a Florida-incorporated company (EIN 59-2938390), and powered by Digit2AI's technology infrastructure. The academic content is supplied through a signed Memorandum of Understanding (MOU) with the Universidad Virtual del Estado de Guanajuato (UVEG), a public Mexican university.

12
Modules
72
Lessons
360
Teaching Hours
3
Cities
11
Partner Schools
10+
Universities

The name embodies the philosophy: "Torna" means "to return" — reflecting the return of the Spanish language to a nation where it was spoken for 333 years. The tagline "Vida · Cultura · Legado" (Life · Culture · Legacy) captures the three dimensions of the initiative.

🎓

Education Platform

12-module UVEG-certified SFL (Spanish as a Foreign Language) curriculum with interactive lessons, exercises, progress tracking, and certifications.

🌎

International Collaboration

Partnerships with universities across Mexico, Colombia, Chile, Argentina, Spain, and the Philippines for academic exchange and research.

🤖

AI-Powered Learning

Profesora Isabel, an AI tutor using the Don Quijote Immersion Method, provides personalized conversation practice adapted to each student's level.

Section Two

2. Target Audience

The platform serves six distinct user roles, each with tailored experiences, dashboards, and access levels:

👨‍🎓

Students

Filipino learners — university students, young professionals, and self-learners in Makati, Zamboanga, and Cavite seeking to learn Spanish for career advancement or cultural reconnection.

Primary UsersA1→B1+
🏢

BPO Workers

Call center professionals and BPO aspirants looking to add Spanish to their skillset for higher-paying positions serving Latin American accounts.

Job Board Access+25-35% salary
🏛️

Government Officials

City officials from Makati, Zamboanga, and Cavite who oversee program implementation, monitor KPIs, review economic impact, and manage school partnerships.

Full AnalyticsPolicy Dashboard
🤝

University Partners

Academic institutions across 6+ countries participating in curriculum development, faculty exchange, research collaboration, and student mobility programs.

10+ UniversitiesMOU-based

Geographic Focus: Three Pilot Cities

  • Makati City — Metro Manila's financial capital. Home to the BPO corridor and University of Makati. First city to pilot the program with the highest concentration of BPO demand for Spanish speakers.
  • Zamboanga City — Known as "Asia's Latin City." The only Philippine city with a living Spanish creole language (Chavacano), spoken by 600,000+ people.
  • Cavite — Historical province with deep Spanish colonial heritage. Home to Cavite State University and strong community ties to Spanish-era traditions.
Makati
Financial & BPO Hub
Zamboanga
Asia's Latin City
Cavite
Heritage Province
Section Three

3. Why We Built It

Torna Idioma exists at the intersection of three forces: economic opportunity, cultural heritage, and international diplomacy.

💰 The Economic Case

The Philippine BPO industry generates $32.5B annually. Spanish-speaking agents earn 25-35% more than English-only peers. With 650M+ Spanish speakers globally and growing US Hispanic population, demand far exceeds supply. Torna Idioma creates a direct pipeline from classroom to career.

🌐 The Diplomatic Case

Spanish proficiency opens doors to 20 Spanish-speaking nations. The Philippines' unique position — culturally Hispanic yet geographically Asian — makes it a natural bridge between ASEAN and Latin America. The initiative is endorsed by local governments and supported by international academic partnerships.

The Three Pillars: Dignidad · Orgullo · Premio

Dignidad (Dignity)

Every Filipino deserves access to their linguistic heritage. Spanish is not a colonial imposition — it's a shared cultural inheritance that empowers identity and self-worth.

Orgullo (Pride)

Speaking Spanish connects Filipinos to a global community of 580M speakers and to the literary works of Rizal, written in Spanish. It's a source of cultural pride.

Premio (Prize)

Tangible economic rewards: higher salaries, better career opportunities, international mobility, and access to the $7.7T GDP of the Spanish-speaking world.

Section Four

4. How We Built It

Torna Idioma is built as a vertical module within the RinglyPro CRM ecosystem — a multi-tenant platform that powers multiple AI-driven business verticals. This architecture allows rapid development while sharing core infrastructure.

Technology Stack

LayerTechnologyPurpose
BackendNode.js + Express.jsRESTful API server, route handling, middleware
Frontend (SPA)React 18 + ViteInteractive dashboard, classroom, progress tracking
Frontend (Landing)Static HTML + CSSPublic-facing landing page, no build step
DatabasePostgreSQLRelational data store (Render managed)
AuthenticationJWT + bcryptStateless auth with role-based access control
AI TutorOpenAI GPT-4o-miniConversational Spanish teacher ("Profesora Isabel")
HTTP ClientAxiosAPI communication with auto-auth interceptors
DeploymentRenderAuto-deploy on git push to main (~90 seconds)
LanguagesEN / ES / FILTrilingual UI (English, Spanish, Filipino)

Key Partnerships

🇲🇽 UVEG — Academic Supplier

Universidad Virtual del Estado de Guanajuato, a public university supported by the Government of Guanajuato, Mexico. Provides the 12-module SFL curriculum, certified teachers, and digital platform methodology.

MOU Status: Signed (Indefinite term, 60-day termination notice)

Pricing: $530 MXN/module (~$0.78 USD/hr/student)

🇵🇭 Philippine Partners

University of Makati — Primary pilot institution
Colegio de San Juan de Letrán — Heritage university
PUP — Polytechnic University of the Philippines
Universidad de Medellín — Colombia (exchange)
Instituto Cervantes Manila — Cultural partner

Section Five

5. Functional Architecture

The platform is organized into six functional modules, each serving a specific operational domain:

🌐 Public LayerLanding page, program information, supporter registration, event calendar
🔒 Education Module12 UVEG SFL modules, 72 lessons, exercises, progress tracking, certifications
💼 BPO Workforce ModuleCompany partnerships, job board, applications, placement tracking, salary analytics
🤖 AI Tutoring ModuleProfesora Isabel (GPT-4o-mini), Don Quijote Immersion Method, level-adaptive conversations
📊 Analytics & Impact ModuleKPI dashboards, economic impact reports, school enrollment, partner metrics

Module Details

Education Module — Learning Flow
Student
enrolls
Course Catalog
12 UVEG modules
Classroom
lesson content
Exercises
MC + Fill Blank
Progress
score & time
Certification
≥ 80% pass
BPO Pipeline — Student to Employment
Student
completes B1
Job Board
browse openings
Application
submit + track
Interview
BPO company
Placement
salary tracked

User Role Matrix

FeatureStudentTeacherBPO WorkerOfficialPartnerAdmin
Dashboard
Course Catalog
Classroom & Exercises
Progress Tracking
AI Tutor
Job Board
Create Courses
Program Metrics
Economic Impact
School Management
Partner Network
Supporter Management
Section Six

6. System Architecture

High-Level System Architecture
Browser
User
Static HTML
/Torna_Idioma/
Browser
Auth'd User
React SPA
/Torna_Idioma/*
Express API
/Torna_Idioma/api/*
PostgreSQL
Render
Express API
OpenAI API
GPT-4o-mini

Dual-Layer Frontend Architecture

The platform uses a unique dual-layer frontend that serves both a static HTML landing page and a React SPA from the same URL path:

Layer 1: Static Landing Page

public/Torna_Idioma/index.html

  • Served directly by Express static middleware
  • No build step required
  • Trilingual via CSS class toggling
  • Handles root URL /Torna_Idioma/
  • Contains mission, partners, roadmap, heritage

Request Flow

Request Routing // 1. Static middleware (runs first in Express) GET /Torna_Idioma/ public/Torna_Idioma/index.html (landing page) GET /Torna_Idioma/docs public/Torna_Idioma/documentation.html // 2. API routes (Express router) POST /Torna_Idioma/api/auth/login auth.js route handler GET /Torna_Idioma/api/courses courses.js route handler // 3. React SPA catch-all (fallback) GET /Torna_Idioma/dashboard dist/index.html (React Router handles it) GET /Torna_Idioma/courses dist/index.html (React Router handles it)

Backend Module Structure

File Tree verticals/torna_idioma/ ├── backend/ │ ├── index.js # Express router + seeding logic │ ├── services/ │ │ └── db.ti.js # PostgreSQL connection (Sequelize) │ ├── middleware/ │ │ └── auth.ti.js # JWT verification + role-based access │ ├── routes/ │ │ ├── auth.js # Login, register, profile │ │ ├── courses.js # CRUD, enrollments, lessons, progress │ │ ├── analytics.js # KPIs, economic impact, schools │ │ ├── bpo.js # Companies, jobs, applications │ │ ├── advocacy.js # Supporters, events, registrations │ │ └── tutor.js # AI chat (OpenAI GPT-4o-mini) │ ├── migrations/ # 6 SQL schema files (001-006) │ └── seeds/ │ ├── uveg-courses.js # 12 UVEG SFL module definitions │ ├── uveg-lessons.js # 72 lessons with content & exercises │ └── lessons.js # Legacy demo lessons (deprecated) ├── frontend/ │ ├── src/ │ │ ├── App.jsx # React Router, layout, sidebar │ │ ├── pages/ # 17 page components │ │ └── services/ │ │ ├── api.js # Axios + auth interceptors │ │ └── auth.js # JWT + session management │ ├── vite.config.js # Base: /Torna_Idioma/ │ └── dist/ # Production build output
Section Seven

7. Database Schema

The database uses 15 tables across 6 migration files. All tables use the ti_ prefix to namespace within the shared RinglyPro CRM database.

TableMigrationPurposeKey Fields
ti_users001User accountsemail, password_hash, role, tenant_id, language_pref
ti_courses002UVEG SFL modulestitle_en/es/fil, level, category, duration_hours, total_lessons
ti_lessons002Lesson contentcourse_id, content_en/es/fil, lesson_type, exercises (JSONB)
ti_enrollments002Student-course enrollmentuser_id, course_id, status, progress_pct
ti_lesson_progress002Lesson completionuser_id, lesson_id, score, time_spent_sec, status
ti_certifications002Issued certificatesuser_id, course_id, cert_level, score, issued_at
ti_schools003Partner schoolsname, school_type, enrolled_students, program_status
ti_bpo_companies003BPO employersname, industry, spanish_positions, avg_salary_increase
ti_bpo_placements003Job placementsuser_id, company_id, salary_before, salary_after
ti_partners003Academic partnersname, country, partner_type, partnership_status
ti_events003Cultural eventstitle_en/es/fil, event_type, location, capacity
ti_event_registrations003Event sign-upsevent_id, user_id, status
ti_supporters003Advocates/donorsfull_name, email, supporter_type, organization
ti_donations003Financial contributionssupporter_id, amount, donation_type, purpose
ti_bpo_jobs005Job listingscompany_id, title, salary_range, spanish_level_required, slots
ti_bpo_applications005Job applicationsuser_id, job_id, cover_note, status
ti_kpi_snapshots004KPI trackingsnapshot_date, period, metrics (JSONB)
ti_economic_impact004Impact reportstotal_bpo_placed, avg_salary_increase, tax_revenue
ti_tutor_sessions006AI tutor sessionsuser_id, message_count, level, last_active
Section Eight

8. API Reference

All API endpoints are prefixed with /Torna_Idioma/api. JWT authentication is required where indicated.

Authentication

MethodEndpointAuthDescription
POST/api/auth/loginEmail/password login, returns JWT token (24h)
POST/api/auth/registerNew user registration (student, bpo_worker, teacher, partner)
GET/api/auth/meJWTCurrent authenticated user profile

Courses & Learning

MethodEndpointAuthDescription
GET/api/coursesList all published courses (12 UVEG modules)
GET/api/courses/:idCourse detail with lesson list
POST/api/courses/:id/enrollJWTEnroll current user in a course
GET/api/courses/my/enrollmentsJWTUser's enrolled courses with progress
GET/api/courses/lessons/:idJWTFull lesson content + user progress
POST/api/courses/lessons/:id/progressJWTSubmit lesson score (status, score, time_spent_sec)
GET/api/courses/my/progressJWTFull progress summary (all enrollments, lessons, certs)

BPO Program

MethodEndpointAuthDescription
GET/api/bpo/companiesList active BPO partner companies
GET/api/bpo/jobsList open Spanish-speaking job postings
POST/api/bpo/jobs/:id/applyJWTApply for a job (cover note)
GET/api/bpo/my/applicationsJWTUser's job applications + status
GET/api/bpo/statsBPO program stats (companies, positions, placements)

Analytics & Advocacy

MethodEndpointAuthDescription
GET/api/analytics/overviewOfficialProgram-wide KPIs
GET/api/analytics/economic-impactOfficialMonthly economic impact data
GET/api/analytics/schoolsOfficialParticipating schools list
GET/api/analytics/partnersActive university partners
GET/api/advocacy/eventsUpcoming cultural events
POST/api/advocacy/supportersRegister as a supporter
POST/api/tutor/chatJWTChat with AI Profesora Isabel
Section Nine

9. UVEG SFL Curriculum

The curriculum is provided by the Universidad Virtual del Estado de Guanajuato (UVEG) under signed MOU. It follows the Common European Framework of Reference (CEFR) and progresses from absolute beginner (A1) to intermediate (B1+).

12
Modules
6
Lessons / Module
72
Total Lessons
30h
Per Module
360h
Total Program
≥80
Pass Mark
#ModuleCEFRTopics
1Introducción al EspañolA1Greetings, alphabet, nationalities, family, descriptions, courtesy
2Un Día en la VidaA1Routines, schedules, days/months, actions, frequency, future plans
3Somos lo que ConsumimosA1-A2Home, shopping, clothing, food, quantities, questions
4Lugares y TransporteA2Directions, transport, airport, city, locations, travel
5Tus Hábitos Hablan por TiA2Free time, cinema/music, sports, events, opinions, invitations
6Tu Cuerpo es tu TemploA2-B1Health, doctor, habits, exercise, symptoms, recommendations
7A Qué te DedicasB1Professions, skills, interviews, work environment, preterite tense
8Cultura y TradicionesB1Festivities, art, literature, gastronomy, customs, folklore
9Medios de Comunicación y TecnologíaB1Media, social media, tech, influence, advertising, digital
10Viajes y TurismoB1Planning, accommodation, activities, culture, emergencies
11Ambiente y SustentabilidadB1+Environment, problems, recycling, energy, ecotourism
12Cultura y Sociedad ContemporáneaB1+Contemporary art, music, film, fashion, gastronomy, celebrations

Lesson Structure

Each of the 72 lessons follows a consistent structure designed for self-paced MOOC-style learning:

Section Ten

10. Security & Authentication

Authentication Flow

  • User submits email + password to POST /api/auth/login
  • Backend verifies against bcrypt-hashed password (12 salt rounds)
  • JWT token issued with 24-hour expiration
  • Token stored in sessionStorage (cleared on tab close)
  • Every API request includes Authorization: Bearer {token}
  • 401 responses auto-clear session and redirect to login

Security Measures

Section Eleven

11. Deployment & Infrastructure

CI/CD Pipeline
Developer
git push main
GitHub
main branch
Render
auto-build
Deploy
~90 seconds
Live
aiagent.ringlypro.com

Infrastructure

  • Hosting: Render (Web Service)
  • Database: Render PostgreSQL (managed)
  • Domain: aiagent.ringlypro.com
  • Port: 10000 (production)
  • SSL: Automatic via Render
  • Auto-deploy: On push to main branch
Section Twelve

12. Future Roadmap

Phase 2: Live Instruction

Integration with UVEG virtual instructors — 2 hours/week of live conversation practice per group of 35 students, as specified in the MOU.

Q3 2026

Phase 4: City Expansion

Expand from 3 pilot cities to 10+ municipalities across the Philippines, including Iloilo, Cebu, and Manila.

2027

Phase 5: Mobile App

Native mobile application (iOS/Android) with offline lesson access, push notifications, and speech recognition for pronunciation practice.

2027

Phase 6: Student Exchange

Bilateral student exchange program between Philippine universities and UVEG/UdeM for immersive semester-abroad experiences in Mexico and Colombia.

2027-2028