How to collect inputs from a GPTassistant chat user based

So I am building telegram chat to GPT assistant I created that ask user information about him. the flow goes well and the assistant goes all the steps to get all the info.

THe issue is that I don’t know how to collect in each step the user input. i.e chat is asking for a name, user give it. then ask for phone number, user gives it. If i refer the set node to collect the user input every time I would not know what data is it every response and if it’s relevant because it is a free chat with GPT.

Much appriciate some help with this flow

Hello @Michael_Nahmias, welcome to n8n! :slight_smile:

If I understood your issue correctly, seems like the new Human in the Loop feature is exactly what you are looking for.

You can set a telegram message to trigger on your workflow, that will ask for the user’s name and then wait for response, then do the same for the phone number and you’ll then have the information you want and then feed it to your AI Agent.

You can easily find this when you add a node on your workflow, just select “Human in the loop” and select the telegram node there.