In this work we study the reconstruction of an inflationary universe in the context of a theory of gravity f(ϕ)T, in which T corresponds to the trace of energy momentum tensor. To realize this reconstruction during the inflationary epoch, we consider as attractor the scalar spectral index ns in terms of the number of e-folds N, in the framework of the slow-roll approximation. By assuming a specific function f(ϕ) together with the simplest attractor ns(N), we find different expressions for the reconstructed effective potential V(ϕ). Additionally, we analyze the era of reheating occurs after of the reconstruction obtained during the inflationary epoch. In this scenario we determine the duration and temperature during the reheating epoch, in terms of the equation of state parameter and of the observational parameters. In this context, the different parameters associated to the reconstructed model are restricted during the scenarios of inflation and reheating by considering the recent astronomical observations.