Module 12 Β· The AI Assistant & Graduation β Lesson 1 of 3 Β· ~11 min
The Assistant's Brain
The last feature
PawWalk has one screen we haven't opened yet: the Assistant β a little chat where an owner types "a walker in the Mission for my husky tomorrow at 3pm" and gets back suggested walkers they can book with one tap.
Here's the good news for your final module: there is nothing new in it. The AI lives on the backend (POST /assistant/chat parses the sentence and picks walkers). The app's job is the same loop you've built eleven times: send a request, decode Codable JSON, keep state in an @Observable view model, render it in SwiftUI.
So this module is a victory lap. You'll read the two real files behind the screen β AssistantViewModel.swift and AssistantView.swift β and recognize every single line.