How do I fix an expression or variable that resolves to the wrong value?

An expression or variable may resolve to the wrong value because of invalid expression syntax, an incorrect node code, a missing upstream dependency, or an incorrect output property path.

To troubleshoot the issue, follow these steps:
  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. Select the node you want to adjust.
  6. Go to the Configuration tab.
  7. Inspect the node configuration for expressions, such as {{$context.$nodes.NODE_CODE.$output}}.
  8. Confirm there aren't any spaces inside the expression braces.
  9. Verify that the referenced node code exists and is upstream of the current node.
  10. Inspect the output of the referenced node to ensure it contains the expected data.
  11. Compare the expression path with the actual output structure to verify the property path is correct.
  12. Correct the expression or rewire the workflow so the referenced node runs before the current node.