How How to Build a Scripted Conversational Chatbot in n8n?

I’m building a conversational AI chatbot in n8n, but instead of just responding to user input, I want the bot to follow a scripted flow — like asking a series of predefined questions in order (e.g., Question 1 → wait for answer → Question 2, etc.).
How do I do that ? Anyone created such chatbot?

Hi,

I haven’t built something similar, but have you tried putting in the script into your system prompt for the AI and then labelling each input from the user, so the AI knows which question to ask next? I can put something together to show you what I mean if you are interested.

what is the purpose of the bot / script?