https://github.com/guidone/node-red-contrib-chatbot/raw/master/docs/images/example-collect-email.png

This is an example of how to parse the user input. The first

Email

block after the receiver just show a prompt message, note that the sender block tracks the user answer, that means that next message from the user will start from here and will be re-routed to the output to the

Telegram Sender

node. When the

track

option is enabled in the configuration panel, an output pin will appear in the

Telegram Sender

node.

If a valid email is found then the parsed value will be routed to the first output otherwise the second. The parsed email is available as payload or can be stored in the flow context, for example in the email variable.

The Show Email is just a simple message block that uses templating to show variables store in flow context (or global): Your email is {{email}}