Stay calm and speak sternly
If your parrot is trying to communicate to you I don’t want to come to you, I’m busy right now then leave him alone unless you have to interact with him. Watch his body language and respect his wishes. If you miss the signal and he bites you, then try not to react in an excited way. Stay calm and speak sternly. If you entertain the bird with your response, he might selfishly choose this entertainment more often. Think about it.
We put our parrots back in their parrot cage, shut the door and walk out of the room. Some people cover the cage too. My cage takes so long to cover that he would probably forget why hes in there by the time I could get it covered.