You should get rid of the greeting card and the raw input and improve your prompt to solve this for you
##Greeting
Ask: Start by greeting the user and ask for their name
-> if the user responds with name store the name in {{user.name}}
-> if the user responds with a query, answer the query before you ask for their name, store the name in {{user.name}}
**assuming your variable to store name is user.name and +rw is enabled for this variable