Stars mostly form in cluster environments, where neighbouring stars can have an influence on the evolution of the newly formed protoplanetary discs. Besides gravitational interactions, external photoevaporation can also shape protoplanetary discs. Depending on the strength of external photo-evaporation, discs may be destroyed within 1–2 Myrs, or more gradually, depending on whether the external photo-evaporation field is stronger or weaker, respectively. We used the chemcomp code, which includes a viscous disc evolution model including pebble drift and evaporation to calculate the chemical composition of protoplanetary discs. We extended this code to include external photoevaporation following the FRIED grid. Before external photoevaporation becomes efficient, the disc follows a purely viscous disc evolution, where the C/O ratio in the inner disc initially decreases due to inwardly drifting and evaporating water ice pebbles. Over time, the C/O ratio increases again as water vapour is accreted onto the star and carbon-rich gas gradually migrates inwards. However, once external photo-evaporation commences, the outer disc begins to get dispersed. During this process, the inner disc’s chemical evolution still follows the evolution of a purely viscous disc because the majority of the pebbles have already drifted inwards on timescales shorter than 1 Myr. At low viscosity, the inner disc’s C/O ratio remains sub-solar until the disc is dispersed through external photoevaporation. At a high viscosity, the inner disc’s composition can reach super-solar values in C/O, because the water vapour is accreted onto the star faster and carbon rich gas from the outer disc can move inwards faster as well, as long as the disc can survive a few Myrs. In both cases, there is no visible difference in terms of the chemical composition of the inner disc compared to a purely viscous model, due to the rapid inward drift of pebbles that sets the chemical composition of the disc. Thus, our model predicts that the inner disc chemistry would be similar between discs that are subject to external photoevaporation and discs that are isolated and experience no external photo-evaporation. This finding is in line with observations of protoplanetary discs with JWST.