Could be a vacuum leak. Check vacuum pipes. Could be the Idle Air Control valve needs cleaned/replaced. Could be a EGR valve fault. Pull the vacuum pipe off it and plug the pipe, see if any different. If not then EGR valve may need cleaned. Pull error codes to try to narrow it down. Good luck.