Im totally lost

Hello Flutterfellows

I'm trying to build a Chatbot, i have a page where user input a text that starts an API call. The call returns arrays that im storing in firestore.

These array are questions and results. I want the page to show the user the first question and ask for his answer that would be stored in firestore before showing the second question ...

The thing is im trying this with actions and everytime I fill the input field the API keeps starting again kinda like a loop. So i dont know how to make that input field specific at first time to start the api and after that jat to update the answers documents.

2
2 replies