Type 2 diabetes needs daily self-management, but most of it happens outside the clinic, where patients get little continuous support. Earlier studies of mobile applications and chatbots were mostly short, and few tested whether benefits last after use stops. This randomized controlled trial will test an Arabic-language mobile application with an artificial intelligence chatbot for adults with type 2 diabetes attending outpatient diabetes clinics in Egypt. The application offers diabetes education, reminders, glucose and activity logging, goal setting, prompts that adapt when use declines, a diabetes distress check, and nurse oversight. A total of 120 adults will be randomly assigned equally to usual care plus the application for 8 weeks, or to usual care with an educational leaflet. Outcome assessors will not know group assignment. The main outcome is self-efficacy. Other outcomes are self-care behaviors, medication adherence, disease knowledge, random blood glucose, diabetes distress, and application use, measured at the start, at 8 weeks, and 6 and 12 weeks after the intervention ends. About 20 intervention participants will then be interviewed about their experiences and what helps or hinders continued use, and these findings will be combined with the trial results.