I am passing in a persona variable to the AI Agent in the $json.body.assistant variable, and when I tell the system prompt to use it, it doesn’t seem to pick it up properly.
What is the error message (if any)?
I select a mermaid persona, and it thinks its a pirate.
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
I found using an expression similar to
{{ JSON.stringify( $(“AI Agent”).item.json.output ) }}
in the system prompt allowed it to pull in the data from the previous node and send it to the ai.
A variation that I used was {{ JSON.stringify($json.promptdata[0][“1”]) }}
I believe it was because the data I was sending needed to be converted to a single string/text line.