Hey, I am currently working on an Agent Workflow that is basically a chatbot. I only want to trigger the next node (process file as html file) after the very last step is finished. Problem is, that right now it triggers the next node every time and thereby changes the output the chatbot is giving back. I tried filtering, but that changes responses as well, as well as adjusting the prompt itself. I also tried using a sub workflow but then not all chat history (and thereby not all information) is passed to the file formatting step. Any ideas on that?
So basically I am doing the process like that: you interact with the chatbot for the purpose of answering all the questions needed to onboard the customer. Before finishing, you as the user get an overview of all answers to the chat and confirm them. That should be the output that is then processed via an html template and messaged via mail. Memory seems to work within user flow (by using session ID) but either when adding the file creation step directly in the workflow it does not complete the agent step before moving to the file but creates a file after every reply. Alternative to trigger workflow eternally (also does it every time but you can filteR) and only let a certain response through the filter but that would still cause unnecessarily many requests and would not include the chat history though. Third option I also used the option to call a tool within agent that would create the html file but that also changed the responses of the interaction via chat because it tried to include it directly even if prompt instructions said to not do so.
Did you try my example? Have a look at my system prompt as it specifically instructs the agent to only call the submit tool once all questions are answered. This causes the html page workflow to only execute at the end and not after every response.
Yes I tried that and it doesn’t execute every step but then it seems to not execute at all. I have to investigate a bit more today on how to fix this part. But thank you, it already helped!