Question about feedback agent

I’m currently building a flow with two agents:

  1. The first agent receives a department name and selects relevant job positions based on a master list (pulled from Google Sheets). The agent is only allowed to pick from what’s in the master list ,no generating new titles.

  2. The second agent is a validator. It checks if the positions selected by the first agent actually exist in the master list. If any invalid positions are found, it sends feedback back to the first agent.

The problem is ,I can’t seem to pass the feedback back into the first agent properly.
When I try to reference it in the system instruction using {{ $json.feedback }}, it just shows as undefined.

But I’ve seen some YouTube tutorialsat 21:19 in

Does anyone know what I might be missing or have a better way to structure this kind of feedback loop?

1 Like

@Pichayut_Prasertwit I would put a switch/set field after the form and if loop. I can help you adjust the workflow. Can you upload your workflow here? Just copy it and paste it into a code block here.