Multiple inputs for Tool Agent

HI guys,

I ran into this problem,

I create a webhook to pass in a data as (https://ednguyenn.app.n8n.cloud/webhook-test/myflows?user_id=101) - essentially I want to create unique chat entry for many users.

Then it will triggered a node to pull some user data based on user_id=101 from posgre database and pass that data into RAG agent. Then Webhook Response will redirect to a Chat URL so user can input chat message.

However it did not initiate the AI agent properly with user data.

The reason I wanted to make this flow because I want to design such system that multiple users can use the workflow at the same time without sharing their private data. The Pogres Node will insert private data while the RAG database is just some general data for every user.

Anyone know is there a good way to set this up ?

Information on your n8n setup

i use the cloud version

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @ednguyenn

Thanks for posting here and welcome to the community! :partying_face:

You will probably have to separate these into two flows and use a Execute Workflow Node at the end of your webhook to pass the required information down to the agent flow.

Have a look in our documentation:

Also feel free to check out our workflow template collection - there’s a bunch of RAG use cases like this to draw inspiration from :slight_smile:

Hi @ednguyenn

On a second note… :thinking: You might even be able to build this using the Chat Memory Manager Node that is shared with the AI Agent. So something like this:

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