Lamatic Webhook icon

Lamatic Webhook

Starts the workflow when a Lamatic-specific webhook is called

Overview

This node implements a webhook trigger specifically designed for Lamatic integration. It listens for HTTP POST requests on a user-defined path and starts the workflow when such a request is received. The node can respond immediately upon receiving the webhook or wait until the last node in the workflow finishes before responding, allowing flexible control over the response timing.

Common scenarios include:

  • Triggering workflows from external Lamatic events or systems that send data via webhooks.
  • Collecting incoming data from Lamatic devices or services to process or store it within n8n.
  • Responding with custom messages or data extracted from the workflow execution.

Practical examples:

  • A Lamatic device sends sensor data to this webhook; the workflow processes and stores the data.
  • An external system triggers an action in n8n by calling this webhook and waits for the workflow to complete before receiving a response.
  • Immediate acknowledgment of webhook receipt with a custom success message.

Properties

Name Meaning
Path The URL path on which the webhook listens for incoming POST requests.
Respond When and how to respond to the webhook:
- Immediately: Respond as soon as the webhook is received.
- When Last Node Finishes: Respond after the last node in the workflow completes.
Response Data (Shown only if Respond = "When Last Node Finishes") What data to return:
- All Entries: Returns all entries from the last node as an array.
- First Entry Binary: Returns binary data of the first entry.
- First Entry JSON: Returns JSON data of the first entry.
- No Response Body: Returns no body in the response.
Custom Response Data (Shown only if Respond = "Immediately") Custom string data to send back immediately upon webhook receipt. Defaults to "success".

Output

The node outputs JSON data representing the incoming webhook request details:

  • headers: HTTP headers sent with the webhook request.
  • params: URL parameters extracted from the webhook URL.
  • query: Query string parameters.
  • body: The body content of the webhook POST request.

If responding immediately, the node returns the custom response data specified by the user. If responding after the last node finishes, it returns data according to the selected response data option (all entries, first entry JSON, first entry binary, or no data).

Binary data output is supported when choosing to return the first entry's binary data.

Dependencies

  • This node requires no external API keys or services.
  • It depends on n8n's webhook infrastructure to receive HTTP POST requests.
  • No additional environment variables or credentials are needed.

Troubleshooting

  • Issue: Webhook not triggering workflow.
    • Check that the webhook URL path matches exactly the configured "Path" property.
    • Ensure the external service sends POST requests to the correct URL.
  • Issue: Unexpected response or empty response.
    • Verify the "Respond" and "Response Data" settings to ensure the node returns the expected data.
    • If using "When Last Node Finishes," confirm downstream nodes produce output.
  • Error: Missing required "Path" property.
    • The node requires a non-empty path to listen on; set this property before activating the workflow.
  • Error: Binary data requested but no binary data present.
    • Ensure the last node produces binary data if selecting "First Entry Binary" as response data.

Links and References

Discussion