A workflow creates another workflow with an ai agent but doesnt set the parameters of Ai agent properly

Hello all

I am desperatly looking for some help here.

I have a workflow which creates another workflow with an ai agent. Everything works until the ai agents prompt settings are not set properly. I want that the ai agent gets its prompt from the first node(webhook), So it should be like in the picture. When I use this:

“promptType”: “define”,
“Prompt”: “={{ $json.body.chatInput }}”,

it sets the prompt type correctly but doesnt get the {{ $json.body.chatInput }} into the prompt type. Instead of “Prompt” I tried other things like:“text“ “chatInput“ etc. everything. its not working.

Anybody might have an idea? Highly appreciated! Thanks in advance

Gr

x