Hello everyone,
I’m running into a small issue with my n8n chat setup.
Here’s the situation:
- My agent has 3 steps.
- Step 2 sends a response back via Respond to Webhook.
- After that, I want Step 3 of the agent prompt to run automatically.
The problem is that right now Step 3 only runs if a new chat message is received, but I’d like it to execute immediately after Step 2, without waiting for another trigger from the user.
Does anyone know how I can make sure Step 3 is executed right after Step 2’s response?
Thanks a lot for your help!
@Mohamed_Necib2 The core issue is that once a Respond to Webhook node sends a response back to the user, the initial webhook connection is typically considered complete . So, continuing the workflow requires a new trigger.
my suggestion would be to put all 3 steps inside your AI Agent’s prompt so it completes the entire process before sending the final response.
Thank you for your reply.
I found a solution: I just created another agent that only handles steps 2 and 3 of the original agent’s workflow.
What are your thoughts on this configuration?
This is a smart solution @Mohamed_Necib2
A better option is to make sure steps 2 and 3 is run after you respond to the user
Thank you for your help, I did it in another way but I do like your solutions.
I just made sure in the prompt that he does the analysis and then he sends a message.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.