try checking your IAC and TPS, if thats not it check if your coolant lines going to the throttle body have been bypassed, i have bypassed them on my V6 and i sometimes get similar problems when its very cold out. try checking it you have air in your coolant. and one last check would be your alternator, just before mine tied it did something very similar to this