AI Agent Chatbot Error from Non Convos?

Describe the problem/error/question

I use the N8N AI Agent provided chatbot HTML template on my website and something strange is happening. Every time a user visits the website, it starts a conversation it looks like (even tho the chat hasn’t been started). If started, the chat works fine.

What is the error message (if any)?

Expected to find the prompt in an input field called 'chatInput' (this is what the chat trigger node outputs). To use something else, change the 'Prompt' parameter

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.60.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubuntu

Hi @chrisjames

Thanks for posting here and welcome to the community! :raised_hands:

How are you triggering the chat on your site? Any options you are setting?
It could be getting triggered on a page-refresh as well.

Does it still trigger when you turn the loadPreviousSession off?
image

Alternatively, you could also try the memory option or use a Filter node to continue the workflow only if chatInput is present.

1 Like

I did just add in there a check Input (if) node so that fixes that.

But now I when I try to delete the execution from the log using

Then I get an error:

NodeApiError: Method not allowed - please check you are using the right HTTP method at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1185:15) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2071:20) at RoutingNode.rawRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/RoutingNode.js:336:29) at RoutingNode.makeRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/RoutingNode.js:422:28) at async Promise.allSettled (index 0) at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/RoutingNode.js:157:35) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:773:23) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20

So strange that it can’t make a DELETE call on itself?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.