This invention relates to novel substituted [1,2,4]triazolo[1,5-a]pyrimidines and their use as modulators of potassium channels. In other aspects the invention relates to the use of these compounds, in a method for therapy and to pharmaceutical compositions comprising the compounds of the invention.