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:
- Go to AI Agent Studio and open the
Workflows
tab. - Select Edit
to modify a workflow. - From the toolbar, select Debug
. - Enter a prompt in Ask Oracle and submit it to run the workflow.
- Select the node you want to adjust.
- Go to the Configuration tab.
- Inspect the node configuration for expressions, such as
{{$context.$nodes.NODE_CODE.$output}}. - Confirm there aren't any spaces inside the expression braces.
- Verify that the referenced node code exists and is upstream of the current node.
- Inspect the output of the referenced node to ensure it contains the expected data.
- Compare the expression path with the actual output structure to verify the property path is correct.
- Correct the expression or rewire the workflow so the referenced node runs before the current node.