Did you check out the documentation we wrote specifically about Trigger-Node creation?
https://docs.n8n.io/nodes/creating-nodes/create-trigger-node.html
That covers the full process and also shows at the end how data can be returned:
Hope that is helpful!


