Diabetes represents a severe global health crisis with escalating rates, complications, and economic impact. Effective management requires a combination of nutrition, physical activity, medication, and insulin therapy, but challenges like limited specialist access and medication adherence hinder optimal glycemic control. Recent advancements in digital health, especially artificial intelligence (AI), offer promising solutions. This study explores the integration of AI in diabetes management through a Random Forest classifier to provide personalized dietary recommendations. The Nutrition Diet Expert System (NDES) achieved impressive results with 96.48% accuracy, 0.98 precision, 0.96 recall, and 0.97 F1-score. By optimizing food intake, insulin management, and lifestyle adjustments, NDES supports stable blood glucose levels, healthy weight, and improved patient out-comes. Ongoing AI advancements continue to offer innovative strategies for tackling global diabetes challenges.