Calling Agents from Workflow does not resolve variables

I dynamically create the agent call within my workflow.

But when you look into the Agent logs, you see that the mustache is not resolved correctly:

Is that a bug? Or am i doing something wrong?

Additionally is there a way to overwrite the instructions. I am using Messages here, but technically i would like to adjust the agends instructions within the invocation.

Is it possible to overwrite them like:

{
”instructions”: “my dynamic instructions”,
"action": "invoke"
}

Hi @Tobias_Sell,

To confirm, the issue that in the Agents log it shows the input as {{code1.data}} ?

And the agent's run is incorrect because it is not able to parse out the data being passed in?

Not sure about overwriting the instructions, would have to check in with @kent on that.