Why is the workflow selecting the wrong branch?

A mismatch between the intent extracted by the upstream LLM node and the switch condition used for routing can cause this issue. If the workflow is taking the wrong path, follow these steps to identify whether the issue is caused by incorrect intent extraction or a switch condition mismatch.

  1. Go to AI Agent Studio and open the Workflows workflows tab.
  2. Select Edit Edit to modify a workflow.
  3. From the toolbar, select Debug Debug.
  4. Enter a prompt in Ask Oracle and submit it to run the workflow.
  5. Inspect the upstream LLM node that extracts the intent.
  6. Confirm the extracted value matches the user’s request.
  7. Inspect the switch input and confirm the selected branch.
  8. Adjust the extraction prompt or switch condition.
  9. Retest with multiple run profiles.