Passing user_id as a variable for a second flow

Hi Everyone

i Have 2 Workflows which are responsible to create information and save in a supabase database, this is like a “Create with AI” Button

user types the initial information about what he wants to create, AI Flow contextualize it and ask user for confirmation and uppon confirmation this flows triggers another one, using a AI Agent tool, to save the new record i the Database

All working ok.

but recently i have flipped applicatio to be multi user, so now i also need to save the user_id at the database, and my challenge is how i pass on the user_id for the next workflow, if i dont even add it into the AI.

i have the user_id arriving in the flow separated from the chat message.

the trigger is a chat message in a website, from where the Agent AI interact with user until the process is defined and AI create it.

i want to find a way to send my User_id variable to the next workflow, or maybe save it in a temporary location which i can retrieve in the next workflow and use to save it into the supabase.

Version : 1.111.0

below is flow 1 and 2, flow 2 is called by Call Create Job a tool from AI.

Hey!

Go into flow 2, in the trigger(when executed by another workflow) add parameter with value User_id, then when you go back in flow 1, and in the Call create job tool you will see an input workflow that has to filled with the variable.

Hi …

i have tried to send specific parameters, but the AI agent does not respond the same time for all the input, so instead im using “Accept all Data” at the flow 2, and than i have a parser to extract information i need or just use blank field if there is no information

what is challenge is the User_id is very specific, it cannot be up to interpretation of AI, so i was trying to avoid input user_id at AI Input and rely on it to output the right format.

instead i was looking in a way i could pass along with AI response the user ID, but could not find a way to do so.

You could refer directly to the other nodes and not necessarily $fromAI .

Example : instead letting AI to Populate the filed, you can use $(‘NODE NAME HERE).json.User_id.