Manipulte output of one agent and pass as input to other

Hi, I have a crew consisting of 4 agents. I want to manipulate the output of agent #3 (which returns a JSON where I need to extract specific values) and pass it as input to agent #4. How can I do this?