First of all, I recommend doing some of the Basic learning paths in the Academy section.
Your Text Box needs to be inside a DataView or some similar widget. It also needs to be linked to the attribute of an object (that is shown in the widget). If you now execute a microflow/nanoflow from within the widget, you can Access the object and it's attributes (including your text attribute).