Before you can file for Chapter 7 or Chapter 13 bankruptcy, you must consult with a nonprofit credit counseling agency. There are two courses you must complete. One is pre-filing and one is post-filing. Most people attend these courses online but they can be completed over the phone as well. The purpose of the first course is to see whether there are any options outside of filing for bankruptcy and the purpose of the second course is to educate you on your budget moving forward.