n8n - 💡(How to fix) Fix Chat Webhook Triggers Workflow Without User Prompt [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#29475Fetched 2026-04-30 06:44:09
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1

Error Message

Describe the problem/error/question

What is the error message (if any)?

  • error: all

Root Cause

What is the error message (if any)?

Because the prompt is empty, the workflow fails. The ChatInput variable does not exist, but the execution still continues to the next node in the workflow. I could add an IF node to handle empty input, but I want to prevent these unnecessary executions from happening in the first place, since they consume executions and may increase costs.

Code Example

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

I’m using an n8n Chat Webhook embedded in another website. Every day, the workflow connected to this chat webhook is triggered at least 4–5 times without any actual prompt being submitted by a user.

What is the error message (if any)?

Because the prompt is empty, the workflow fails. The ChatInput variable does not exist, but the execution still continues to the next node in the workflow. I could add an IF node to handle empty input, but I want to prevent these unnecessary executions from happening in the first place, since they consume executions and may increase costs.

Please share your workflow/screenshots/recording

<img width="1068" height="475" alt="Image" src="https://github.com/user-attachments/assets/14ca7450-fb49-4a6a-86f2-a9b94de96c78" />
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. --> <img width="898" height="864" alt="Image" src="https://github.com/user-attachments/assets/602d29a8-6dff-433d-b043-f6ccd0da0d0c" />

expected that if no prompt enters the chat won't be triggered at all

Debug info

core

  • n8nVersion: 2.17.5
  • platform: docker (cloud)
  • nodeJsVersion: 24.14.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: 20
  • license: enterprise (sandbox)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 720 hours
  • maxCount: 25000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/144.0.0.0 safari/537.36 edg/144.0.0.0
  • isTouchDevice: false

Generated at: 2026-04-29T10:25:38.283Z

extent analysis

TL;DR

The issue can likely be resolved by configuring the Chat Webhook to only trigger when a prompt is submitted, potentially by adding a validation step or modifying the webhook settings.

Guidance

  • Review the Chat Webhook configuration to ensure it is set up to only trigger on user input, and not on other events such as page loads or refreshes.
  • Consider adding a validation step at the beginning of the workflow to check if a prompt has been submitted before proceeding with the execution.
  • Investigate if there are any browser or website-specific settings that could be causing the unnecessary triggers, such as automatic page refreshes or JavaScript events.
  • Check the n8n documentation for any specific settings or configurations related to Chat Webhooks that could help prevent unnecessary executions.

Notes

The provided information suggests that the issue is related to the Chat Webhook configuration or the website's behavior, but without more specific details about the website or the Chat Webhook settings, it's difficult to provide a more precise solution.

Recommendation

Apply workaround: Add a validation step at the beginning of the workflow to check if a prompt has been submitted before proceeding with the execution, as this will help prevent unnecessary executions and reduce costs.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Chat Webhook Triggers Workflow Without User Prompt [1 comments, 2 participants]