You can use surveys in awx as a front-end for users to answer questions in playbooks in the from of variables. In this example I will ask a question on which virtual machine I want to snapshot ? and then it will use that variable in the playbook to pass it through.
First I create the the survey in the playbook
Go to templates under resources > click your template “create snapshot”

Click the survey tab > click add

Type in the question and the variable in the playbook > click save

Click the toggle survey disable to enable it

My playbook with the variable vm_name

Launch the template

Type in the vm name and click next

Click Launch

In vcenter snapshot is created

Playbook output is successful
