In practice
Appointment reminders, order updates, one-time passcodes, marketing promotions and a front desk replying to a client from a web inbox are all A2P. It does not matter whether a human typed the message: if a business sends it through software, carriers count it as application-to-person.
The 2023 CTIA Messaging Principles call this non-consumer messaging. In the US it must travel over a sanctioned route, which means a registered 10DLC campaign, a verified toll-free number or a short code. A2P sent over unregistered routes is the main thing carrier filters look for.
Almost everything a vertical SaaS product sends on behalf of its customers is A2P, including two-way conversations started from a shared inbox.