Reach at least level 1 and the chat function opens up.
That is the entire requirement — the game gates communication behind the first level so that new accounts cannot use chat as a spam channel before doing anything else. It takes only a few minutes of play to clear.
If chat is still unavailable after levelling, refresh the page and confirm you are signed in to the right account. Browser games of this type frequently lose session state, and being silently logged out is the usual explanation when a feature that should be unlocked is not.