REPLACE the Alternator and clean the battery terminals if they have not been cleaned.
A vacuum leak or a slight crack in a vacuum line can cause this too
Have the IAC contoller cleaned & or replaced.
IAC = Idle Air Control valve its located inline after the throttle body
this unit can...