To invoke the graph, you should use the key messages not text in input:
messages
text
{"messages": sample_text}