Input type compatibility check before execution

Hi,

I’m currently checking out n8n and came across a question that I haven’t found an answer to.

Let’s say there is a sensor represented by a sensor-node in the workflow. It provides an object of type SensorData. Then there is a dashboard-node that takes a SensorData object and sends it to my dashboard.
Is it possible to check the input data in the dashboard-node for compatibility before running the workflow? This would mean that a node that does not provide a SensorData object can’t be connected or shows an error when connected to the dashboard-node.

Thank you very much for your help!
Kind regards,
Christian

Hey @hchris1!

Welcome to the community!

You can use the IF node to check the input data. You can even use the Function node to write custom code snippets that check your data and if needed transform them.

I am not sure what exactly you mean, but if you want to check your data the above solution might help.

Here is a blog post that you might helpful: Smart Factory Automation using IoT and Sensor Data with n8n :factory: