Creating custom system message for AI Agent

Describe the problem/error/question

Hey, im new to n8n. I would like to pull in a custom system message from a file stored in Google Drive. This will tell the Agent how to act and what it’s objective is. I know you can just hardcode this in the system message input box but would like to make this variable.

Thanks,
Alex

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Version 1.62.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Windows11

Hi @Alex_Petheram
welcome to the n8n community :wave:

You could try to retrieve the file and the text from Drive before the Ai Agent node, like this:

Let me know if this helps

2 Likes

Heya!

Sorry for the delay, been working on my actual job not my project :see_no_evil:

This worked perfectly!! Thank you so much :smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.