2001 Chevrolet 2500 slows like it’s about to die

Truck seems to slow down randomly like it’s trying to die and then just as randomly take off like a major burst of speed. The EGR valve. Fuel filter, and fuel pump have been replaced within the last 30 days but it continues to be almost seemingly like its out of gas.