The condensation of 2,4-dimethoxy-6-methylphenylacetonitrile (I) with ethyl acetate in the presence of Na metal produced keto nitrile (II). This was cyclized to the amino pyrazole (III) upon treatment with hydrazine and HOAc in refluxing toluene. Subsequent condensation of amino pyrazole (III) with ethyl acetimidate (IV) gave amidine (V), which was converted to the required pyrazolo triazinone (VI) by reaction with diethyl carbonate and NaOEt. Chlorination of (VI) with POCl3 in the presence of N,N-dimethylaniline produced the chloro derivative (VII). This was finally condensed with amine (VIII) to furnish the title compound.