If you have a chat (instant messaging) program open but don't want to be disturbed, you can change your availability so that people knwo you don't want to chat.
Click on your user name in the top right corner of the screen.
Choose to be
The selected status will display a dot to the left of it, and your friends/contacts on chat will immediately be able to see your different status.