Tynker makes it easy for you to ask the user questions, using the ask block. After using it, you can return whatever the user entered using the special answer variable block.
This script makes an actor greet the player by name.
Here are the results: