How can I get my chatbot to keep the chat going when an IF statement is false?

Describe the problem/error/question

I’m struggling to get a chatbot to continue the conversation going when an IF statement is false. How can I get this to happen?

What is the error message (if any)?

No message at the moment - the workflow just ends.

Please share your workflow

Share the output returned by the last node

No output, it just ends.

Information on your n8n setup

  • n8n version: Unsure, but I downloaded it less than a month ago.
  • Database (default: SQLite): No database
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Desktop app
  • Operating system: Mac OS 15.x

Hi @EAG to ensure your chatbot continues the conversation even when an IF condition is false, you need to structure your workflow to handle both true and false cases properly.

First try using an Else Branch
In n8n, use the IF node with Else Output to keep the conversation flowing regardless of the condition.

If this worked for you make sure to like my comment and mark it as the solution

:call_me_hand:

Hey Baseman, thanks for the response. I know that an IF branch requires an output for a false case, but for now I’ve set it up to a Basic LLM Chain that outputs the AI Agent message. I feel like there’s got to be a simpler way to keep it responding until the condition is met.

Regarding your response… by Else output, did you mean the workflow to follow when the result is False? Or is it a literal output?

Hey @EAG hope you are doing great!

If you are still testing, you could add a simple wait node to your false case while you create or need a more complex routine for your use case

Hope this help!

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