Question about sentence-trigger & wildcards

I am trying to create an automation where I want to say a phrase with the sentence trigger, followed by another phrase that can always be different. So I would have to use a wildcard. The second phrase should then be stored in a text_input.

How can I achieve this or is it even possible?

It is possible with a custom integration. See an example of how I set it up in this topic.