Agent
Log in, then extract JSON
Have an agent open a report, then get it back as JSON in the shape you define.
What to do:
- 1 Paste itPaste this into the URL field: https://zshot-cli.com/example_assets/zrm/
- 2 Choose JSONClick the settings button beside the URL field, then Screenshot, then Ask the page. Click JSON.
- 3 Say what you want backClick Edit prompt, enter what the result should hold, then click Done: The sales report as JSON
- 4 Give it a shapeClick Define a schema, paste this, then click Done: {"type":"array","items":{"type":"object","properties":{"company":{"type":"string"},"contact":{"type":"string"},"value":{"type":"number"}}}}
- 5 Say what to doClick Navigate, choose your model under Model, and describe the job: Login, change the region to APAC, and click on Sales Report
- 6 Add the loginClick Advanced Options, then Credentials, and add a username and a password, then click Save.
- 7 Capture itClick Capture. The status line follows each step, and the report opens as JSON in the shape you gave it.