Always greet people before launching into your business interaction. "Bom dia" in the morning, "boa tarde" in the afternoon, and "boa noite" after dark. When you are done, thank them and say farewell (repeat the "boa tarde" or give some other pleasantry).
--GVeach