Correct data not displayed using AI Agent
Learn how to fix issues where an AI Agent returns data but the component does not display it correctly.
- Confirm that the Agent's query returns data.
- Identify the component that should display the data.
- Review the Agent-generated component content and the field or variable used by the display logic.
- Ask the Agent to display the returned data and correct the binding. For example, use the prompt I can't see the data returned by this query.
- If an error is shown, include the complete error in a new Agent prompt. For example, ReferenceError: invoice is not defined indicates that the component is referencing an unavailable variable.
- Preview the component again.
- Confirm that the displayed values match the returned data.