# Upload a file, download the result

Source: https://zshot-cli.com/examples/enhance-leads/
Markdown: https://zshot-cli.com/examples/enhance-leads/index.md
Section: [Examples](https://zshot-cli.com/examples/)
License: [Pro](https://zshot-cli.com/support/licenses/pro)

Use an agent to log into [ZRM](https://zshot-cli.com/example_assets/zrm/), upload [a CSV](https://zshot-cli.com/example_assets/zrm/leads.csv) and [download the result](/example-renders/enhance-leads.csv) that the page generates for you. This example uses Anthropic, using an API key that you must provide.

**CLI**

```sh
zshot -f leads-enhanced.csv \
  -t download \
  --navigate "Log in, open the Lead Enhancer, upload the leads file, enhance it, and download the enhanced CSV" \
  --navigator-file leads=https://zshot-cli.com/example_assets/zrm/leads.csv \
  --navigator-credential username=success@zshot-app.com \
  --navigator-credential password=password \
  --navigator-type "anthropic://YOUR_API_KEY@" \
  "https://zshot-cli.com/example_assets/zrm/"
```

**JSON** — `POST /` body for the [API](/reference/server/api), Pro license

```json
{
  "url": "https://zshot-cli.com/example_assets/zrm/",
  "output_type": "download",
  "navigate": "Log in, open the Lead Enhancer, upload the leads file, enhance it, and download the enhanced CSV",
  "navigator_type": "anthropic://YOUR_API_KEY@",
  "navigator_credential": {
    "username": "success@zshot-app.com",
    "password": "password"
  },
  "navigator_file": {
    "leads": "https://zshot-cli.com/example_assets/zrm/leads.csv"
  }
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/zrm/","output_type":"download","navigate":"Log in, open the Lead Enhancer, upload the leads file, enhance it, and download the enhanced CSV","navigator_type":"anthropic://YOUR_API_KEY@","navigator_credential":{"username":"success@zshot-app.com","password":"password"},"navigator_file":{"leads":"https://zshot-cli.com/example_assets/zrm/leads.csv"}}' \
  -o leads-enhanced.csv
```

Expected output: [enhance-leads.csv](/example-renders/enhance-leads.csv)

```
name,title,company,email,synergy_score
"Dr. Marisol Ferreira, PMP",Senior Director of Synergy Acceleration,Globex Technologies,marisol.ferreira@globex.example,75.3
"Mx. Deshawn Okafor, CSPO",Global Head of Alignment Acceleration,Initech Global,deshawn.okafor@initech.example,23.4
"Mx. Priya Raghunathan, PMP",Senior Director of Alignment Operations,Vandelay Holdings,priya.r@vandelay.example,26.3
Chief Tomas Aguilar,VP of Paradigm Innovation,Pied Piper Synergistics,tomas.aguilar@piedpiper.example,8.5
"Mx. Ingrid Bergqvist, PMP",Interim Alignment Innovation,Wonka Procurement,ingrid.bergqvist@wonka.example,18.3
Dr. Kofi Mensah (Synergy Certified),VP of Synergy Enablement,Nimbus Global,kofi.mensah@nimbus.example,47.5
```

## Related

Flags:

- [`--navigate`](https://zshot-cli.com/reference/flags/navigator/navigate/)
- [`--navigator-file`](https://zshot-cli.com/reference/flags/navigator/navigator-file/)
- [`--navigator-credential`](https://zshot-cli.com/reference/flags/navigator/navigator-credential/)
- [`--navigator-type`](https://zshot-cli.com/reference/flags/navigator/navigator-type/)
- [`--output-type`](https://zshot-cli.com/reference/flags/common/output-type/)

Topics:

- [Download](https://zshot-cli.com/reference/formats/download/)
- [LLM Connections](https://zshot-cli.com/reference/llm_connections/) — Select an agent navigation backend

## Navigation

- [Examples](https://zshot-cli.com/examples/)
  - [Webpage as PNG](https://zshot-cli.com/examples/hello-from-zshot/)
  - [Full-page phone screenshot](https://zshot-cli.com/examples/full-page-phone/)
  - [Wait for a JavaScript event](https://zshot-cli.com/examples/wait-for-event/)
  - [Rendered HTML](https://zshot-cli.com/examples/html-output/)
  - [Tablet screenshot](https://zshot-cli.com/examples/tablet-screenshot/)
  - [Accessible PDF](https://zshot-cli.com/examples/accessible-pdf/)
  - [WebM video](https://zshot-cli.com/examples/webm-video/)
  - [Animated GIF](https://zshot-cli.com/examples/animated-gif/)
  - [Dark mode](https://zshot-cli.com/examples/dark-mode/)
  - [Emulate geolocation](https://zshot-cli.com/examples/geolocation/)
  - [Log in, then capture](https://zshot-cli.com/examples/navigate-login/)
  - [Log in, then extract JSON](https://zshot-cli.com/examples/sales-report-json/)
  - **Upload a file, download the result**
  - [Crawl a site into a WACZ](https://zshot-cli.com/examples/crawl-links/)
  - [Archive a sitemap into a WACZ](https://zshot-cli.com/examples/wacz-sitemap/)
  - [Run an API server](https://zshot-cli.com/examples/api-server/)
  - [Signed URL support](https://zshot-cli.com/examples/menu-board/)
  - [Browser as a CDN](https://zshot-cli.com/examples/browser-as-a-cdn/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

