Yes, automated messages are legal. Just make sure the customer you’re texting has opted in to receive your messages. You’ll want to avoid any issues related to SMS spam.