Capture the outcome and complete the response

Completed

Now you will feed the remaining paths' results into the response variable and connect every path to the single Respond to the agent action.

  1. On the manager path, add a Variable action and choose Update Variable in its panel with the update operation instead of initialize. Rename the action Update Manager Response, select the response variable, and set its value to capture the reviewer's decision, for example:

    Manager has responded with @{outputs('Manager_Review')?['body/response']}
    

    Screenshot showing the Variable action panel with Update Variable chosen, renamed Update Manager Response, targeting the response variable with the reviewer's decision in its value.

  2. On the senior-manager path, add another Variable action with Update Variable, renamed Update Senior Manager Response and again targeting response, for example:

    Senior manager has responded with @{outputs('Senior_Manager_Review')?['body/response']}
    
  3. The Other path gets the same treatment with no review in between: add a Variable action with Update Variable, renamed Update Approved Response, setting response to the Response dynamic value of Draft Approved Message, connected between Draft Approved Message and the respond action.

  4. Drag the Respond to the agent action to the end and connect every path to it. Along the way the designer may have spawned extra copies of the respond action. They appear numbered, like Respond to the agent 2. Delete any you find, and reconnect their path to the original. This flow deliberately ends in a single respond action: the response variable exists precisely so one exit can serve every path. Paths that update the variable should send response into the Respond to the agent output.

  5. Select Save. The flow checker may warn that multiple nodes lead into a single action. For this lab you can acknowledge and ignore these warnings, as the workflow still publishes and runs.

    Screenshot showing the flow checker warnings about multiple nodes leading into a single action, safe to ignore for this lab.

✅ Checkpoint: Every path converges on Respond to the agent, and every path (not-eligible, both approval tiers, and Other) writes its message into the response variable that the respond action returns.