A novel smart optoelectronic XOR gate based on directional couplers has been proposed for the first time. It takes advantages of the linear device operation and being easy to implement logic function as compared to the conventional optoelectronic logic gates. Detailed investigations such as configuration of the logic gate, optoelectronic converters and numerical analysis have been considered.