Can put AMPScript that redirects to another page in the SMS template as shown in the figure below?
I am try to do this because, I need to capture interactions and POST them to a web service.
If you're going to build something in the platform, it's best to do whatever you need to do to test it.
First the AMPScript function is
Regardless, I doubt it will work, since you'd be redirecting from the target users messaging app, not a SFMC email or page.
There's nothing stopping you from outputting a link in your message, but I don't think any automatic redirection in a SMS is a thing.