Is there a way to add and change connections dynamically?

I am trying to build a flow where based on the data received from the trigger (a webhook), it should fetch new jira issues using the credentials received from the webhook and send them over email where again the connection credentials will be defined in the webhook’s data.

So the webhook will receive two sets of credentials, one for which jira account to fetch issues from and one for which email to send it to.

Try to use Connections Piece, and then refer to the output to the connection field by pressing on (F) or (X) the dynamic value button at connection field.