A new family of amino acid containing pyridine–triazolopyridine cores has been prepared by means of a copper catalysed reaction. These compounds exhibit an intense emission that has been employed to sense the distance between two carboxylic acids in a linear molecule, from oxalic to glutaric acids.