There are two ways to automate texts on the iPhone: using a third-party app for one-off messages, or using the Shortcuts app for recurring messages.
You can schedule text messages on the iPhone or iPad to be sent at a later time and date. You can automate the process of scheduling text messages with the shortcut app from apple, release with iOS 12 ...