Intervention in World War I

"Why did the United States at first resist intervention in World War I? Why did the United States and President Wilson retreat from the policy of neutrality/isolationism and eventually send troops?"