I know Douglas Adams already did a depressed robot. So, it’s certainly not the first time it’s been done.
But, I still have to say it: Tammy, the A.I. with low self-esteem, from How to Live Safely in a Science-Fiction Universe, may be one of the funniest characters ever created.