ABSTRACT: BACKGROUND:Despite their high prevalence and significant burden, mental disorders such as depression remain largely underdiagnosed and undertreated. OBJECTIVE:The aim of the Allillanchu Project was to design, develop, and test an intervention to promote early detection, opportune referral, and access to treatment of patients with mental disorders attending public primary health care (PHC) services in Lima, Peru. METHODS:The project had a multiphase design: formative study, development of intervention components, and implementation. The intervention combined three strategies: training of PHC providers (PHCPs), task shifting the detection and referral of mental disorders, and a mobile health (mHealth) component comprising a screening app followed by motivational and reminder short message service (SMS) to identify at-risk patients. The intervention was implemented by 22 PHCPs from five health centers, working in antenatal care, tuberculosis, chronic diseases, and HIV or AIDS services. RESULTS:Over a period of 9 weeks, from September 2015 to November 2015, 733 patients were screened by the 22 PHCPs during routine consultations, and 762 screening were completed in total. The chronic diseases (49.9%, 380/762) and antenatal care services (36.7%, 380/762) had the higher number of screenings. Time constraints and workload were the main barriers to implementing the screening, whereas the use of technology, training, and supervision of the PHCPs by the research team were identified as facilitators. Of the 733 patients, 21.7% (159/733) screened positively and were advised to seek specialized care. Out of the 159 patients with a positive screening result, 127 had a follow-up interview, 72.4% (92/127) reported seeking specialized care, and 55.1% (70/127) stated seeing a specialist. Both patients and PHCPs recognized the utility of the screening and identified some key challenges to its wider implementation. CONCLUSIONS:The use of a screening app supported by training and supervision is feasible and uncovers a high prevalence of unidentified psychological symptoms in primary care. To increase its sustainability and utility, this procedure can be incorporated into the routine practices of existing health care services, following tailoring to the resources and features of each service. The early detection of psychological symptoms by a PHCP within a regular consultation, followed by adequate advice and support, can lead to a significant percentage of patients accessing specialized care and reducing the treatment gap of mental disorders.