Exception:
Can’t assign permission set Messaging Setup Flow to user. The user license doesn’t allow the permission: Messaging Agent
Resolution:
1. Make sure the user is assigned to the Messaging Permission Set License.
2. Make sure Messaging User is assigned under Permission Set License Assignments section.