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.
Thanks for posting here and welcome to the community!
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