> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Research accounts | Agent guide

> Build a reviewable account-research Play that keeps source evidence, explains the account reason, and records unresolved rows before outreach begins.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/recipes/research-workflow.md)

> [!NOTE]
>
> Produce an account-research file whose reasons link to actual source evidence.

Use this guide when you need a reviewable reason to contact an account. The
result is a research file with evidence and a clear next question or action.

## Prerequisites

* `accounts.csv` with a stable account identifier and, preferably, a domain.
* A definition of the evidence you want, such as a job post, product change,
  funding event, public record, or company page.
* A rule for what should be skipped, suppressed, or sent for human review.

## Ask three bounded research questions

For a fictional account expanding into a second region, investigate:

1. What changed, when, and at which company entity?
2. Which team or operating process does the source actually describe?
3. What remains unknown before this is a relevant reason to contact the account?

A dated office-opening announcement supports the expansion observation.
An open-roles page supports posted hiring, not an approved budget. A failed
source request is `unavailable`, not evidence that nothing changed. Keep source
URLs, retrieval times, observation dates when available, and hypotheses beside
their supporting facts.

## Define the research contract

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Build account-research.play.ts for accounts.csv. Answer our
research questions with sourced facts, explicit uncertainty, and one proposed next action per account.
```

The Play must accept `{ "csv": "accounts.csv" }` and return the following for
each account. These are authored output requirements, not a provider schema:

| Return | Requirement |
| - | - |
| Account identity | Preserve the original account identifier and source row. |
| Evidence | Link every claim to a source URL or record, with retrieval time and event date when available. |
| Answers | Answer the three research questions and separate facts from hypotheses. |
| `why_now` | Base the contact reason only on the retained evidence. |
| Next action | Apply suppression and ownership rules, then propose an action or review state. |
| `miss_reason` | Explain unresolved accounts and those that should be skipped. |

Include a top-level Play description. Review the input and output contract
before execution, and keep CRM, sequence, and ad-platform writes disabled.
Use [Build a Play](https://deepline.com/docs/sdk-v2/plays.md#validate-before-deployment-or-spend) to check the
local source without publishing or starting provider work.

## Review a research sample

Prepare `accounts-pilot.csv` with a header and three representative accounts:
one likely match, one typical account, and one sparse or difficult account.
[Use a CSV as Play input](https://deepline.com/docs/sdk-v2/batch-csv.md) covers file preparation. Run only
that sample; provider requests can use Deepline credits:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays run --file ./account-research.play.ts \
  --input '{"csv":"accounts-pilot.csv"}' \
  --watch
```

Follow [Run Plays](https://deepline.com/docs/sdk-v2/calling-plays.md#inspect-and-export-an-existing-run) to
retain the run ID and export its dataset. Review each returned row:

* The source points to the correct account and supports the stated reason.
* Missing sources remain unresolved rather than becoming confident claims.
* Suppressed or owned accounts do not become outreach candidates.
* The next action follows from the evidence and has a clear reviewer.

> [!TIP]
>
> Do not turn research output into outreach automatically. Review the evidence
> and the action boundary first.

Check [recorded usage](https://deepline.com/docs/cost-control.md) before expanding to `accounts.csv` with
the same reviewed Play. Keep the accepted output contract and source checks
for the full list.

## Example result

This fictional review row is an authored output format, not an API payload:

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "account_id": "sample-01",
  "observation": "Company announcement describes an office opening",
  "evidence_status": "source_available",
  "hypothesis": "The second region may need a shared lead-routing process",
  "next_question": "Who owns routing across the two regions?",
  "next_action": "owner_review"
}
```

A live row must also carry the inspected source URL and dates. If that source
cannot be retrieved, preserve the error and mark the observation unresolved;
do not emit a confident `why_now`. Continue with
[reviewed outreach drafts](https://deepline.com/docs/plays/play-personalize-outreach.md) only for accepted
research.

## Use a scoped search result as evidence

> [accordion] Run one scoped DataForSEO search
>
> Inspect `dataforseo_serp_google_organic_live_advanced` for current access,
> fields, and pricing. Connect credentials through [Integrations](https://deepline.com/docs/integrations.md)
> when required. This example requests one keyword, US location code `2840`,
> English, and depth 10; execution can incur usage:
>
> ```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
> deepline describe dataforseo_serp_google_organic_live_advanced --json
> deepline run dataforseo_serp_google_organic_live_advanced \
>   --input '{"keyword":"crm software","location_code":2840,"language_code":"en","depth":10}' \
>   --json-out serp.json
> ```
>
> Pass the declared input object. Deepline wraps POST inputs in the provider's
> single-task array; GET actions use top-level fields as query parameters.
> Adding another array wrapper changes the expected input shape.
>
> Check the returned source task status before interpreting an empty result.
> Keep query, location, language, collection time, and source evidence together.
> A successful empty result applies to that scope; a failed request does not
> establish absence. Search placement does not prove competitor spend or
> conversions.
>
> Save the execution ID and returned recovery commands. After a lost response,
> [inspect the saved execution](https://deepline.com/docs/sdk-v2/tool-execution-recovery.md) before launching
> new work. Read recorded Deepline usage separately; pending or missing charges
> do not establish a free call. Pricing can depend on the selected task options.
>
> Use the [action reference](https://deepline.com/docs/providers/dataforseo/dataforseo-serp-google-organic-live-advanced.md)
> for current fields. For several queries or recurring comparisons, preserve
> query scope and observation time in the authored Play.

## Verify this task

Open the sources behind accepted observations. An office-opening announcement supports expansion; hiring does not prove budget; failed retrieval stays unavailable.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.