Externally Updating the Tools Agent system message

Hi guys, I Have a default system message in my “Tools Agent”. now I want to update it (and keep it in memory till next update) using a webhook trigger, is there anyway of doing it? The update could be a file in google drive or in database.

Currently, a periodic call to the update document could work as well although I would like to see if anyone has done a less overload way of doing this?

how can I keep it in memory?

Thanks alot,

- n8n cloud
1 Like

Hi,

I’m not quite sure what you mean. Do you mean the AI agent node?

The input in it, should stay as it was.

Feel free to include your workflow by following the guide below.
n8n attach workflow

thank you, Pasting the json code makes all this page disappeared. I am only left with image sharing:

Hello,

So I think on the 15days flow, that not going to help and you can disconnect that, because it’s not useful to the ai agent, I would suggest store the data from the 15 minture flow into a db for fast access, and on that chat message receive flow, you can get latest prompt via a node to db either just before the ai agent/ or even adding it as a tool, I would just stick it infront of the ai agent personally.

Because you need it every time the AI agent calls that expression, it needs to be available always. Hence, when you’re in the production URL and the workflow runs, each call won’t have to trigger every 15 minutes, you need to put the data before the ai agent.

Hope this helps,

Best regards,

Samuel