A new thermally coupled microreactor, which simultaneously produces hydrogen and aniline, is simulated. It is suggested that the nitrobenzene hydrogenation process, the heat source, occurs in the tube section, thereby providing the requisite energy for the reactor system. Conversely, the shell section contains the steam reforming of glycerol coolant for the exothermic reaction. The results are evaluated in the two flow directions, namely, cocurrent and countercurrent. The furnace and cooling system, vital for the conventional steam reforming and aniline production processes, are eliminated, respectively, having accurately implemented the sensitivity analysis. Optimization of the most effective parameters is performed via genetic algorithm.