When your trigger word appears in a comment, a public reply is posted automatically and a direct message goes to the commenter.
Choose separate words for replies and DMs.
Prepare the reply and the direct message.
The automation runs the moment a comment arrives.