The sentence above is a direct quotation: A quote when in which you report the exact words said by another person. If the word just before the quotation is a verb indicating someone uttering the quoted words, you should use a comma. Therefore, the revised version of the sentence would be as follows: When we opened the front door, the parrot said,"Hello!"