Hi,
One of the things that slows me down a lot with n8n is debugging, and especially getting data to debug. Looking forward to your inputs!
- Getting data structure from previous nodes
For example, if I have a node in the middle of the workflow for which the input depends on previous nodes, the left pane of n8n will show “No input data yet - Execute previous nodes - (From the earliest node that has no output data yet)”
Even if I have multiple execution of this workflow, I cannot access sample data when testing a node. For example, with this screenshot (OpenAI node replying on Telegram), if I work on a later node and want to select one parameter from a previous node, I am puzzled: Was it {{ $('SwitchWelcome').prompt }}
? Was it something else? Maybe I should write {{ $('SwitchWelcome').[prompt] }}
instead?
So I end up going to the Execution pane, looking at a previous execution, noting down the JSON structure, and then inputing it again in my node on Editor mode. I’ve sometimes seen a “drag and drop” feature to drop a parameter from a previous node in the left pane of the node editor, but it only works if data is already present!
How do you do it?
- Getting sample data from a Trigger node
On that example again, the workflow starts with a TelegramTrigger. It means that if I want to obtain test data to see if a node, in the middle of the workflow, process it correctly, I have to manually send data in webhook-test
. If I type “Execute Workflow” at the bottom if the screen, on that screenshot, it will not receive data from the actual telegram channel.
My workaround so far was to have a “double trigger” workflow, with a “When clicking Execute Workflow” node, as seen in screenshot, which sets mock data, so that the workflow can be executed manually without a need to fiddle with Telegram and -test
webhooks. However, today, when I clicked the “Execute Workflow” button, the only thing that happened was a tooltip “Waiting for you to create an event in Telegram” appearing above the “TelegramTrigger” node (and it would wait forever).
So, with these 2 use cases, I feel that my debugging is very slow and laborious, and when I see complex workflows share here, I’m thinking there must be a better way to build with n8n. Is it? Or do you actually succeed at your first try?
Thanks for your suggestions.
–
n8n: Docker image v.0.219.1