Currently, I've a Python code. That process the incomming message from a Facebook messenger User. But this is a pasive chat against the chat bot. I'd like to do the following.
User: Pay
Bot: Please type the username of the person you want to pay.
User: eddwinpaz
Bot: Please type the amount you want to send.
User: 100.00
Bot: Are you sure you want to send 100.00 to Eddwinpaz?
Some how if the user in this conversation does not answers on the exact order the app wont be able to do the payment. There is a way to get the previous text and see if its answering in the correct order. Or give some logic in order to store in a session_array[sender_id,username,amount] and after I send the user a Button(Yes,No) I can actually perform the payment.
Because I need to store on the server the values regarding a question. Other example is.
Bot: what is your email?
User: myemail@gmail.com
Bot: your email has been saved!