Creating a form with a submit button within botpress

I am trying to implement a simple html form creation within botpress v 11.8.4 .

: demo example

 <form action="#">

  First name:<br>
  <input type="text" name="firstname">
  Last name:<br>
  <input type="email" name="email ">

  <input type="submit" value="Start chat">

The form collects the name and email and on submit ,the chatting starts…

The bot can then respond by picking the username and saying something like
Bot: Hello {name} , welcome back!!

Is this possible within botpress and how can i impement this?

I did not implement a form myself but I believe this is the documentation you look for.

Here is an example of custom component for webchat made by the Botpress team