From time to time, a specific flow that I have gives the following error
ActionResponseTimedOut. The execution of template action 'Return_value(s)_to_Power_Virtual_Agents' is failed: the client application timed out waiting for a response from service. This means that workflow took longer to respond than the alloted timeout value. The connection maintained between the client application and service will be closed and client application will get an HTTP status code 504 Gateway Timeout.

The settings for the action are as follows:

If one analyses the flows that gave the error, one thing pops up: an HTTP action.
When the flow failed with the error, this HTTP action took ~3min

When the error appeared in another flow, HTTP action took ~2min

This is the HTTP action Settings:
