This pilot randomized controlled trial evaluates the feasibility, effectiveness, and acceptance of the Personalized Interactive Patient Empowerment Artificial Intelligence Platform (PIPE-AI) enhanced by DiabetesGPT among adults with prediabetes or diabetes in Hong Kong primary healthcare settings. Participants will be randomized in a 1:1 ratio to an intervention group receiving PIPE-AI or to a waitlist control group receiving usual care during the first 3 months. Both groups will complete baseline and 3-month assessments, including patient-reported outcome measures, clinical outcomes, healthcare service utilization, and intermittent continuous glucose monitoring using Abbott FreeStyle Libre 2 Plus sensors.