5-Butyl-7-hydroxypyrazolo[1,5-a]pyrimidine (III) was prepared by condensation of 3-aminopyrazole (I) with methyl 3-oxoheptanoate (II) in refluxing toluene. Treatment of (III) with POCl3 in the presence of Et3N furnished the 7-chloro derivative (IV), which was then heated with aqueous ammonia in a sealed tube to afford the amino pyrazolopyrimidine (V). Finally, acylation of amine (V) with 3,4,5-trimethoxybenzoyl chloride (VI) led to the title amide.