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

# Prospecting agent events

> Outbound webhooks Klipy sends for prospecting agent outcomes — opportunity captured, meeting booked, and thread closed. Payloads carry ids only.

# Prospecting agent events

These 3 events fire when a Klipy prospecting agent reaches a customer-facing outcome on a thread. Every payload carries ids only — no message bodies or contact PII.

## `prospecting.opportunity_captured`

Fires when a prospecting agent captures an opportunity from a thread.

```json theme={null}
{
  "type": "prospecting.opportunity_captured",
  "object": "event",
  "data": {
    "agentId": "agt_1a2b3c",
    "threadId": "thr_4d5e6f",
    "opportunityId": "opp_7g8h9i"
  }
}
```

| Field | Type | Description |
| - | - | - |
| `agentId` | id | The prospecting agent that captured the opportunity. |
| `threadId` | id | The thread the opportunity was captured from. |
| `opportunityId` | id | The opportunity that was captured. |

## `prospecting.meeting_booked`

Fires when a prospecting agent books a meeting on a thread.

```json theme={null}
{
  "type": "prospecting.meeting_booked",
  "object": "event",
  "data": {
    "agentId": "agt_1a2b3c",
    "threadId": "thr_4d5e6f",
    "bookingId": "bkg_7g8h9i"
  }
}
```

| Field | Type | Description |
| - | - | - |
| `agentId` | id | The prospecting agent that booked the meeting. |
| `threadId` | id | The thread the meeting was booked from. |
| `bookingId` | id | The booking created for the meeting. |

## `prospecting.thread_closed`

Fires when a prospecting agent closes a thread.

```json theme={null}
{
  "type": "prospecting.thread_closed",
  "object": "event",
  "data": {
    "agentId": "agt_1a2b3c",
    "threadId": "thr_4d5e6f"
  }
}
```

| Field | Type | Description |
| - | - | - |
| `agentId` | id | The prospecting agent that closed the thread. |
| `threadId` | id | The thread that was closed. |

## Delivery and idempotency handling

* Use `data.threadId` together with the event `type` as your idempotency key.
* These payloads are ids only; fetch any additional detail from the corresponding Klipy API using the ids provided.

## Related links

* [Webhook introduction](https://klipy.ai/docs/developers/webhooks/introduction.md)
* [Webhook event types](https://klipy.ai/docs/developers/webhooks/event-types.md)


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