On June 4, 2026, the curriculum transitioned from local scripts to network-connected architectures. We demystified APIs, request/response cycles, and JSON data formats.

1. Understanding APIs & Network Requests

We explored APIs (Application Programming Interfaces) as standardized protocol messengers enabling decoupled software systems to communicate. We compared the client-server request/response cycle to a restaurant, where the customer acts as the client, the waiter as the API gateway, the kitchen as the backend database, and the food as the delivered payload.

2. JSON Serialization & Schema Design

We analyzed JSON (JavaScript Object Notation) as the universal data exchange standard of web services. We mapped JSON structure to Python Dictionaries and Lists, noting its lightweight syntax, reliance on string double-quote keys, and strict data type values. This allows different runtimes to easily exchange messages and state.

3. Local Chatbot Backend Route

For our major project, Rashmi assigned a chatbot task utilizing the Gemini API, introducing Flask as a backend framework. While the cohort struggled with JSON formatting, I developed a clean local Flask integration. Using the official Gemini API, I built a fully operational local server route. Rashmi tested my chatbot and was deeply impressed by my dev speed and backend design choices.

Key Learnings

  • Explaining and diagramming client-server API request/response cycles.
  • Designing and parsing nested JSON data schemas mapped to Python collections.
  • Developing Flask backends with robust request schemas.
  • Interfacing and authenticating Python codebases with the Google Gemini API downstream.

Tools & Stack

  • Flask
  • Gemini API
  • JSON
  • Python 3.11

Challenges Overcome

  • Managing downstream generative model timeouts and API filter blocks.
  • Securing sensitive API authorization credentials using environment variables.

Task to be Performed

  • Understand HTTP client-server request-response parameters and JSON serialization.
  • Configure dynamic request-response structures on Flask routing endpoints.
  • Develop a Flask chatbot service integrating Google's Gemini-1.5-flash model.

Related Logs

Day 00

Onboarding & Exploration: Mapping the Core AI & Python Blueprint

Onboarding at Virtual Height, introducing the training program, providing an overview of the curriculum, and mapping the 2-week schedule.

May 29, 20264 min readRead Log
Day 01

Day 01: Foundations of AI, Python Lab, and the Velocity of Domain Mastery

Onboarding under Senior AI Trainer Rashmi, mapping the formal pillars of AI from ML to DL, mastering cross-platform Python execution, and demonstrating custom LLM and reverse engineering portfolios to the cohort.

Jun 01, 20264 min readRead Log