pui.getScreenJSON()

This API returns a stringified JSON representation of the current Genie screen.

For instance, this format allows the screen to be conveyed to a Profound AI Agent, enabling the AI to respond accurately to user inquiries.

Example:

profound.ai.startAgent({ agent: "universal.agent.json", data: () => ({ "pageJson": pui.getScreenJSON() }), server: "https://pai_hostname:8081" });

Â