Researchers at the National Institute on Drug Abuse (NIDA) have developed software that provides personalized feedback for treating drug dependence, alcoholism, smoking cessation, pain management, and associated risky behaviors. The tool is designed for both healthcare providers at the point-of-care and for self-help. Many people who could benefit from treatment do not receive it because of its low availability and high cost. The available software “mPAL” (Mobile Personalized Assessment and Learning), combines mobile-health-based educational functions with the Ecological Momentary Assessment (EMA) functions of TED (Transactional Electronic Diary) software. mPAL allows the interchange of data obtained from EMA and the learning system to deliver context-aware intervention in real time, customized to the individual needs of participants. mPAL enables participants to interact with educational materials at the time and place of their choosing and receive personalized feedback when and where it is most needed.