title: How to get the last user input in Rasa
body: <p>I can fetch the last user-inputted data from RASA chatbot using this method.</p>
  
  <pre><code>text = tracker.latest_message['text']
  </code></pre>
  
  <p>It's working perfectly in my case. Now I want to fetch the text of a button pressed by the user. For example, if the user presses the allion button, I want my <code>text</code> variable to hold as <code>text = "allion"</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/yQ6CB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yQ6CB.png" alt="enter image description here"></a></p>
  
  <p><strong>Is there any preferable solution?</strong> </p>