I remember reading about a startup that already did that. If I recall correctly, it developed organically out of a situation where the founder had actually lost a friend and trained a chat-bot on their email backlog.
Later she realized that there might be a business idea in this.
Does anyone recall that article?