You may also want to see:
When it comes to growing your community, you not only need fresh content regularly but also need to engage your loyal readers through comments and other activities. You may not have the time to respond to every comment yourself though. The good news is you can write a simple block of code to reply to certain comments automatically. For example, you can write a function that checks if someone is asking for the price of your product to provide them with the relevant link.
All you need to do is update the keyword array to add custom replies. For example, you can add a discount message for your shop. When someone comments with specific keywords, this function activates to automatically reply to them.
More WordPress reading: