Refers to the intermediate compounds a and B and their production method comprising: (i) The Reductive acylation Compound Catalita C by hydrogenation in the presence of a catalyst metal such as Nickel Ramey in an amount of 0.1 to 0.3 times the amount of compound C In weight and acetic anhydride in an amount of 1 to 1.3 times the molar amount of compound C for obtaining the compound and (ii) dehydrate the compound in an acidic Environment for obtaining the compound B. these intermediate compounds a and B are used in the process of obtaining improved performance and Purity Of agomelatineSE REFIERE A LOS COMPUESTOS INTERMEDIOS A Y B Y SU PROCEDIMIENTO DE OBTENCION QUE COMPRENDE: i) LA ACILACION REDUCTORA DEL COMPUESTO C MEDIANTE UNA HIDROGENACION CATALITA EN PRESENCIA DE UN CATALIZADOR METALICO TAL COMO NIQUEL DE RAMEY EN UNA CANTIDAD DE 0.1 A 0.3 VECES LA CANTIDAD DEL COMPUESTO C EN PESO Y DE ANHIDRIDO ACETICO EN UNA CANTIDAD DE 1 A 1.3 VECES LA CANTIDAD MOLAR DEL COMPUESTO C PARA LA OBTENCION DEL COMPUESTO A Y ii) DESHIDRATAR EL COMPUESTO A EN UN MEDIO ACIDO PARA LA OBTENCION DEL COMPUESTO B. DICHOS COMPUESTOS INTERMEDIOS A Y B SON EMPLEADOS EN EL PROCEDIMIENTO DE OBTENCION DE AGOMELATINA MEJORANDO SU RENDIMIENTO Y PUREZA