Essentially, the definition is providing a service/benefit to an entity or person in the U.S. while in the U.S. and receiving something of value in return. So, broadly speaking, this appears to encompass what you describe. What exactly are you doing when you are in the U.S.?