Seeking help combining form output with files from disk

I have a workflow where I have a fixed set of text as rules in a couple large text files on disk. When a user fills out a form I need to have an AI agent look at what they filled out in the form along with the rules text from those files and give a response on how they did. The key here is that I need all the data together for the AI Agent.

I suspect I’m thinking about this wrong. Here’s a screenshot of how I have it now. Notice after submitting the form that “1 item” flows through, but “Read/Write Files from Disk” is left out. How can I get all of the information (files from disk and form fields) together for use as fields for the AI Agent?

yeah the form trigger and the file read node run as separate branches, so their outputs dont merge automatically. drop a Merge node between them and your AI Agent, set it to Append mode, and connect both branches. the agent gets everything in one item from there.

1 Like

Hi.

This is the solution:

Then, once a user submit form after write the text, then it will read files from your disk for rules and the text which user input is sent to Merge node.

That did it. Thank you!

My pleasure