Automatically insert cypher query and run into neo4j textbox

I am creating a web interface where user can select a column and based on that, a query will be inserted and run into the neo4j web page automatically, and the result graph would be shown. How can I achieve the part where I want to insert the cypher query in the textbox of Neo4j webpage and run it, basically automate this process so the user don't have to type in the cypher query.