Chat showing new variable instead output

I want to keep my chat going until a condition is met.

As an interim solution, i want to create a new field “summary” to strip the output text past a certain point.

But, for some reason, the new field is showing up in the chat rather than the output string.

Hi @techdudesf,

This is because your set node after the ai agent will always fire on every chat message. You’ll need to enhance your system prompt to give it more detailed instructions on how to behave, like cutting off the conversation at the point you need. You can use claude.ai and ask it to enhance your system prompt with the rules you want it to follow.

Then for the summary, you need to make that a tool call instead and instruct the agent on when to do so.

In simple terms, everything you add after the AI Agent will be executed, hence you’re seeing the summary variable being printed as the chat response