Skip to main content

Workflows and examples

Try a one-contact workflow​

In browser consent, select your personal or team workspace. Preview requires read access. Approve search, list, and export permissions only when you intend to use those operations.

Preview an audience for free​

Show the connected Dievio workspace and available workspace credits. Count contacts with the title Founder at stripe.com. Tell me whether the count is exact or estimated. Wait for my approval before running any paid search.

  1. Read get_account and confirm the workspace matches the user's intent.
  2. Discover filters with get_search_filters. Use get_search_count with {"company_websites":["stripe.com"],"job_titles":["Founder"]} inside filters. Report the count and its exact or estimated status. This uses zero credits.

Find leads, save a list, and export​

When you are ready, give a separate instruction to run the capped search.

Run the search with those same filters and return at most one contact. Save any result to a new list called Stripe founder test and give me the CSV download link.

  1. Call search_leads with the agreed filters, a new request_id, and max_results: 1.
  2. Poll the returned job_id with get_search_job and read its rows with get_search_results. If the job fails or returns no rows, report the outcome.
  3. When a result is available, call create_list, then save_search_results. Saving preserves the returned fields in lead_data.
  4. Call export_list_file with format: "csv" and give the user the private download link. Download within 15 minutes.

A returned contact uses one workspace credit. A successful search with no matches uses zero credits. Reading, saving, and exporting the result add no credit charge. For larger lists, follow the pagination rules.

Take the results from my latest completed search, create September outreach, and save every contact with all fields. Don't run a new search.

Use list_search_jobs to identify the job, check it with get_search_job, create the list, and paginate save_search_results using the existing job ID.

Work with your team​

Show the lists and available credits in my connected team account, then preview marketing directors in the UK for free.

Start with get_account, get_team, and list_lists. If the connected account is wrong, reconnect with the intended team. The agent cannot switch ownership by supplying another user's ID to a tool.

Enrich LinkedIn profiles​

Find work emails for these LinkedIn profile URLs. Return at most 20 matches, with no phone lookup.

Use lookup_linkedin with the supplied URLs, maxResults: 20, includeWorkEmails: true, includePersonalEmails: false, and includePhones: false. This is a paid operation for returned matches; previewing an audience is a separate free workflow.

Download a file without opening Dievio​

Export my US founders list as a downloadable CSV, with email, name, company, and company website as separate columns.

Find the list with list_lists, inspect its saved fields if needed, then call:

{
"list_id": "<list UUID returned by Dievio>",
"format": "csv",
"columns": ["email", "full_name", "company_name", "lead_data.company_website"]
}

Use these arguments with export_list_file. A requested path missing from a contact produces an empty cell. Use actual field paths from the saved contact payload. Omit columns for all available data, or choose json / jsonl to preserve nested structures. The result contains a ready-to-download link; the agent does not need to paste contacts into the chat or assemble pages. Download within 15 minutes; ask Dievio for a new link if it expires. This is free and works in the selected personal or team account. The site is needed only for initial connection approval.

Pagination for inline results​

Result, saved-contact, and inline export_list tools use offset / limit. Start at offset 0, advance by the number of returned rows, and continue while has_more is true. save_search_results also returns next_offset; use it for the next page.

Each CSV page includes a header row. When combining pages, keep the header from the first page only. The lead_data column contains additional fields encoded as JSON. CSV cells are escaped to avoid executing spreadsheet formulas.

list_lists and list_search_jobs return arrays. Request successive offsets until a page contains fewer items than the requested limit. A single page is not necessarily the complete account history.

Retries without duplicate work​

For mutations, generate one request_id UUID per intended operation and keep it alongside the arguments. Retry with the same ID and identical arguments after a lost response. Do not use a new ID to bypass an uncertain or in-progress result.

For a search, reconcile against the returned job ID or recent jobs before starting anything new. For a list mutation, read the list again to see whether it was applied. If the outcome remains uncertain, resolve it before creating another operation. Never blindly repeat a paid lookup with a new request ID.

Only queued searches can be cancelled. Running searches cannot safely be cancelled while the worker is processing and charging for results.