Pass data on different workflow?


his is my whole ai agent flow the works in this way like when the user sends message the main work of my ai agent is to work on 2 task default answers like hi or greeting i have added the switch case for that and the next one is training if the user ask about any training program then there is a switch to check if he is asking for mail or not if not make a training program and if after making the training program if he ask to mail it send the training program which was made but the thing is to make the program and to send it both of them are on diffreent flow if i ask for the program it make it on different flow and if i ask to mail it is on different flow with this when sening the mail the training program is not present on mail node so how can i send the program which was made on different flow to send it to mail on diiferent flow?

Hello @anshul, how are you?

Could you export the project JSON and share it here?

In the meantime, have you considered splitting your agents into subworkflows or, depending on your version of n8n, using the “ai agent tool”?

If this helps you, mark this answer as the solution. I’m glad I could help.