Facing Difficulty in picking data from one non-empty route

Describe the problem/error/question

I’m building a WhatsApp Chatbot for voice and text. No either the message can be text or it can be audio. I’ve included the expression of both audio and text message output in the AI agent to let him know user input or message. As the route can only be one each time, so one of the two variables gives error when it is not executed.

The AI Agent has two variables. Check AI Agent prompt to view those. What I want is a solution to include only one variable in the AI Agent prompt to tell the AI agent that this is the user input.

What is the error message (if any)?

Referenced node is unexecuted

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.88.0
  • Operating system: n8n cloud
1 Like

Hi @tiyyiba,

You can feed both outputs from teh routing tool to the ai agent. It can only be one at a time, so it doesnt hurt. Here’s a workflow example.

Best,

Robert