> ## 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.

# Qualify website visitors | Agent guide

> Turn a Warmly Website Visit Contact event into a human-reviewed outbound action without automatically sending or writing to a destination.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/recipes/warm-outbound-web-intent.md)

Use this guide to turn a Warmly **Website Visit Contact** event into a reviewed
outbound lead. Warmly pushes the visitor event to your webhook. The Play
normalizes it, applies your rules, and stops before any external activation
until a human approves it.

![Warmly sends a website visitor event to a Deepline Play, which either stops the event or routes it to human review before activation.](https://mintcdn.com/deepline2/f_FY_i-dtVrozrGn/images/warmly-deepline-flow.png?fit=max\&auto=format\&n=f_FY_i-dtVrozrGn\&q=85\&s=1a8a562a7dc41dd918e10d425d6374f4)

Warmly sends the visitor event. The Play either records a reason to stop or sends a qualified lead to human review.

## Prerequisites

* A Warmly source that can send **Website Visit Contact** events.
* A reviewer and a review destination, such as a Slack queue or CRM review
  field.
* ICP, suppression, deduplication, and approval rules that the Play can apply.
* A connected Deepline org and a local project folder for the Play file.
* A sender-authentication plan, including a relay if the sender cannot sign the
  request in the format your Play verifies.

## Create the Play

Give your coding agent this request:

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Build warmly-warm-outbound.play.ts from this Warmly contact event.
Return a qualified lead and opener for review, or a skipped result with its reason.
```

Declare a webhook binding and a top-level description. Normalize the fields in
the mapping below. Preserve visitor/session identity and apply your ICP,
suppression, deduplication, and campaign-membership rules before paid enrichment.
For a stopped event, return `status=skipped` and `miss_reason`. Qualified events
may draft an opener; sending, campaign enrollment, and CRM writes remain disabled.

Configure sender verification before production. Match the actual sender's
signature scheme to the Play's supported authentication. If they differ, use a
relay that verifies the source request and signs the forwarded body. The
[webhook guide](https://deepline.com/docs/sdk-v2/webhooks-and-schedules.md#inbound-webhook-contract) shows
Standard Webhooks and secret setup. Keep credentials and signing secrets out of
chat, source, and version control. A webhook URL alone does not verify a sender.

Have the sender or relay reuse a supported delivery-ID header for retries of the
same delivery. Give new deliveries distinct IDs. A session ID in JSON does not
configure [webhook delivery deduplication](https://deepline.com/docs/sdk-v2/webhooks-and-schedules.md#webhook-delivery-identity).

## Validate it without deploying or spending credits

Check the local Play before it is published or receives an event:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays check ./warmly-warm-outbound.play.ts
```

Checking validates the local source without publishing or executing it. Review
the input mapping and disabled external actions before connecting the event source.

## Test the unpublished handler

Save one authorized Warmly **Website Visit Contact** test body as
`warmly-test-event.json`. Use the actual JSON shape from your source, including
its event/session identity. Keep external sends, campaign enrollment, and CRM
writes disabled in the authored Play. Review expected Deepline usage before this pilot:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays run ./warmly-warm-outbound.play.ts \
  --input @warmly-test-event.json
PILOT_RUN_ID="run-id-returned-by-plays-run"
deepline runs get "$PILOT_RUN_ID" --full --json
deepline billing usage --run-id "$PILOT_RUN_ID" --json
```

This executes the file without publishing it or changing its trigger. It can
use Deepline credits. Check normalized fields, accepted/skipped decisions,
`miss_reason`, and the reviewer output before publishing. This handler pilot
does not test the webhook signature or delivery path.

## Publish and configure Warmly

After you review the checked source, publish it:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays publish ./warmly-warm-outbound.play.ts --json
```

Copy `triggerMetadata.webhookUrl` from the JSON response. Treat the full URL as
a secret.

![Webhook node shown as the entry point in the Deepline Plays interface.](https://mintcdn.com/deepline2/f_FY_i-dtVrozrGn/images/warmly-webhook-node.png?fit=max\&auto=format\&n=f_FY_i-dtVrozrGn\&q=85\&s=75e40f42c7ee4a9e7ff0c888fa469408)

The Webhook node is the entry point for each Warmly event.

In Warmly:

* If your org uses **Settings > Webhooks**, add the issued endpoint there.
* In **Orchestrator**, choose **Website Visit Contact** and add
  **Send Contact to Webhook**. Use the authenticated relay endpoint when required.
  Configure delivery authentication before activating the orchestration.

Use **Send Company to Webhook** only when your Play is designed for
company-level events. See [Warmly's webhook guide](https://help.warmly.ai/articles/7839413626-setting-up-webhooks) for its current setup and payload details.

## Map the event fields

Check these names against your actual test body. Update the mapping when the
source shape differs.

| Warmly field | Play field |
| - | - |
| `Business Email` | `email` |
| `LinkedIn URL` | `linkedin_url` |
| `First Name`, `Last Name` | `first_name`, `last_name` |
| `Company Name`, `Website` | `company_name`, `domain` |
| `Title`, `Industry` | `title`, `industry` |
| `Session ID`, `Seen At` | Deduplication and event identity |
| `Pages Viewed Details` | Page-signal evidence |

Keep the raw event available for debugging, but write the normalized fields your
logic needs. Do not assume all visitor events identify a person. A company-only
event should stop with its recorded reason.

## Test one event and inspect the result

Send one controlled, authenticated Warmly test event. Inspect its run, rather
than assuming the newest unrelated run is your test:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
PLAY_NAME="warmly-warm-outbound"
deepline runs list --play "$PLAY_NAME" --limit 1

printf 'Paste the test run ID after checking its event identity: '
read -r RUN_ID
deepline runs get "$RUN_ID" --full
deepline runs logs "$RUN_ID" --limit 200
```

Match the saved event/session identity to the controlled test. If it is absent
from the latest result, follow the returned next-page command when available.
With this one-row list, the next page is:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline runs list --play "$PLAY_NAME" --limit 1 --offset 1
```

Increase the offset for later pages. Inspect the selected run's event identity
before accepting its ID. Check that
the event is normalized, deduplicated, and either stopped with a
`miss_reason` or routed to the designated human reviewer. Confirm that no CRM,
campaign, or email action ran before approval.

## Next step

For webhook authentication and other trigger patterns, read [Schedule or trigger a Play](https://deepline.com/docs/sdk-v2/webhooks-and-schedules.md). For the research that supports a
reviewed outbound action, read [Research accounts](https://deepline.com/docs/recipes/research-workflow.md).

## Verify this task

Verify the inbound authentication, payload mapping, account identity, and review output. Keep campaign activation disabled during the pilot.


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