You can find a tutorial and walk-through of the code here:
http://jrmeyer.github.io/machinelearning/2016/02/01/TensorFlow-Tutorial.html
To ground this tutorial in some real-world application, we decided to use a common beginner problem from Natural Language Processing (NLP): email classification. The idea is simple - given an email you’ve never seen before, determine whether or not that email is Spam or not (aka Ham).