An office action is a document prepared and sent by an examiner from the USPTO about the issues with your patent application. Don't worry about the initial rejection. Although most are initially rejected, many rejections are overcome and result in a patent.