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

# Attention: List Proactive Actions

> List Attention next-best actions for your users, filterable by owner and status. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List Attention next-best actions for your users, filterable by owner and status.

> [!NOTE]
>
> Tool ID: `attention_list_proactive_actions`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'attention_list_proactive_actions',
  {
    "owner_uuid": "owner_123",
    "status": [
      "pending"
    ],
    "cursor": "cursor_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute attention_list_proactive_actions --input '{
  "owner_uuid": "owner_123",
  "status": [
    "pending"
  ],
  "cursor": "cursor_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": [
      {
        "uuid": "uuid_123",
        "entity_type": "example",
        "entity_id": "entity_123",
        "owner_user_uuid": "owner_user_123",
        "action_type": "example",
        "title": "VP of Engineering",
        "signal_type": "example",
        "severity": "example",
        "display_group": "example",
        "subject": "Introduction",
        "draft_body": "example",
        "proposed_recipients": [
          "example"
        ],
        "proposed_slots": [
          "example"
        ],
        "status": "example",
        "external_url": "https://example.com",
        "why": {
          "rationale": "example",
          "key_quote": {}
        },
        "generated_at": "2026-01-15T12:00:00Z",
        "updated_at": "2026-01-15T12:00:00Z",
        "expires_at": "2026-01-15T12:00:00Z"
      }
    ],
    "next_cursor": "cursor_123"
  }
}
```

Use `deepline describe attention_list_proactive_actions --json` for the latest machine-readable contract.

## Input reference

Lists Proactive actions (Next Best Actions), mirroring the action feed users see in the UI. ### Scope \* An **organization-level** API key returns actions for every user in the organization. \* A **user-scoped** API key returns only that user's actions. The `owner_uuid` filter is ignored for user-scoped keys. ### Filtering \* `status` defaults to `pending`. Pass one or more of `pending`, `drafted`, `sent`, `dismissed`, `expired` to widen the set. Suppressed actions are never returned. \* `owner_uuid` narrows the result to a single owner (organization-level keys only). ### Pagination \* Cursor-based. Omit `cursor` for the first page. pass the response's `next_cursor` unchanged for the next. When `next_cursor` is absent, iteration is complete. \* `size` is clamped to a server-side maximum of 200 (default 50).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.owner_uuid` | `string` | No | — | Filter to a single owner user UUID. Only honored for organization-level API keys. ignored for user-scoped keys. |
| `payload.status` | `array` | No | — | Lifecycle statuses to include. Defaults to pending only. Suppressed actions are never returned. |
| `payload.cursor` | `string` | No | — | Opaque pagination cursor from a previous response's next\_cursor. Omit for the first page. |
| `payload.size` | `integer` | No | — | Maximum number of actions to return per page (default 50, max 200) Minimum: 1. Maximum: 200. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Lists Proactive actions (Next Best Actions), mirroring the action feed users see in the UI. ### Scope * An **organization-level** API key returns actions for every user in the organization. * A **user-scoped** API key returns only that user's actions; the `owner_uuid` filter is ignored for user-scoped keys. ### Filtering * `status` defaults to `pending`. Pass one or more of `pending`, `drafted`, `sent`, `dismissed`, `expired` to widen the set. Suppressed actions are never returned. * `owner_uuid` narrows the result to a single owner (organization-level keys only). ### Pagination * Cursor-based. Omit `cursor` for the first page; pass the response's `next_cursor` unchanged for the next. When `next_cursor` is absent, iteration is complete. * `size` is clamped to a server-side maximum of 200 (default 50).",
    "properties": {
      "owner_uuid": {
        "type": "string",
        "description": "Filter to a single owner user UUID. Only honored for organization-level API keys; ignored for user-scoped keys."
      },
      "status": {
        "type": "array",
        "description": "Lifecycle statuses to include. Defaults to pending only. Suppressed actions are never returned.",
        "items": {
          "type": "string",
          "enum": [
            "pending",
            "drafted",
            "sent",
            "dismissed",
            "expired"
          ]
        }
      },
      "cursor": {
        "type": "string",
        "description": "Opaque pagination cursor from a previous response's next_cursor. Omit for the first page."
      },
      "size": {
        "type": "integer",
        "description": "Maximum number of actions to return per page (default 50, max 200)",
        "minimum": 1,
        "maximum": 200
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `array` | No | — | — |
| `result.data.data[].uuid` | `string` | Yes | — | Unique identifier of the action |
| `result.data.data[].entity_type` | `string` | Yes | — | Type of the entity the action targets (e.g. crm\_record) |
| `result.data.data[].entity_id` | `string` | Yes | — | Identifier of the entity the action targets |
| `result.data.data[].owner_user_uuid` | `string` | Yes | — | UUID of the user who owns the action |
| `result.data.data[].action_type` | `string` | Yes | — | Kind of action (e.g. send\_email) |
| `result.data.data[].title` | `string` | Yes | — | Short title / next move |
| `result.data.data[].signal_type` | `string` | Yes | — | The parent signal's type (e.g. no\_reply, close\_date\_risk). Empty when the action has no parent signal. |
| `result.data.data[].severity` | `string` | Yes | — | The parent signal's severity: high, medium, or low. Empty when absent. |
| `result.data.data[].display_group` | `string` | Yes | — | The deterministic feed section this action belongs to, derived from signal\_type: At risk, You committed, Buying signals, Re-engage, Coordinate internally, CRM cleanup, Connect your tools, or Other. |
| `result.data.data[].subject` | `string` | Yes | — | Draft subject line, when the action is an email. |
| `result.data.data[].draft_body` | `string` | Yes | — | Drafted message body, when available. |
| `result.data.data[].proposed_recipients` | `array` | Yes | — | Proposed recipients of the drafted message. |
| `result.data.data[].proposed_slots` | `array` | Yes | — | Proposed meeting time slots, rendered in the rep's timezone. |
| `result.data.data[].status` | `string` | Yes | — | Lifecycle status: pending, drafted, sent, dismissed, or expired. |
| `result.data.data[].external_url` | `string` | Yes | — | URL of the drafted artifact in the external system, when available |
| `result.data.data[].why` | `object` | Yes | — | The reasoning behind a Proactive action — the "why this suggestion" contract. |
| `result.data.data[].why.rationale` | `string` | No | — | Plain-language explanation of why this action is suggested. |
| `result.data.data[].why.key_quote` | `object` | No | — | — |
| `result.data.data[].why.key_quote.text` | `string` | No | — | — |
| `result.data.data[].why.key_quote.speaker` | `string` | No | — | — |
| `result.data.data[].why.key_quote.source_label` | `string` | No | — | — |
| `result.data.data[].why.key_quote.source_url` | `string` | No | — | — |
| `result.data.data[].why.evidence` | `array` | No | — | — |
| `result.data.data[].why.evidence[].label` | `string` | No | — | — |
| `result.data.data[].why.evidence[].description` | `string` | No | — | — |
| `result.data.data[].why.evidence[].impact` | `string` | No | — | — |
| `result.data.data[].why.evidence[].source_label` | `string` | No | — | — |
| `result.data.data[].why.evidence[].source_url` | `string` | No | — | — |
| `result.data.data[].generated_at` | `string` | Yes | — | When the action was generated Format: `date-time`. |
| `result.data.data[].updated_at` | `string` | Yes | — | When the action was last updated Format: `date-time`. |
| `result.data.data[].expires_at` | `string` | Yes | — | When the action stops being valid and is no longer shown. Format: `date-time`. |
| `result.data.next_cursor` | `string` | No | — | Opaque cursor for the next page. Absent when there are no more results. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A Proactive Next Best Action as shown to the user.",
              "properties": {
                "uuid": {
                  "type": "string",
                  "description": "Unique identifier of the action"
                },
                "entity_type": {
                  "type": "string",
                  "description": "Type of the entity the action targets (e.g. crm_record)"
                },
                "entity_id": {
                  "type": "string",
                  "description": "Identifier of the entity the action targets"
                },
                "owner_user_uuid": {
                  "type": "string",
                  "description": "UUID of the user who owns the action"
                },
                "action_type": {
                  "type": "string",
                  "description": "Kind of action (e.g. send_email)"
                },
                "title": {
                  "type": "string",
                  "description": "Short title / next move"
                },
                "signal_type": {
                  "type": "string",
                  "description": "The parent signal's type (e.g. no_reply, close_date_risk). Empty when the action has no parent signal."
                },
                "severity": {
                  "type": "string",
                  "description": "The parent signal's severity: high, medium, or low. Empty when absent."
                },
                "display_group": {
                  "type": "string",
                  "description": "The deterministic feed section this action belongs to, derived from signal_type: At risk, You committed, Buying signals, Re-engage, Coordinate internally, CRM cleanup, Connect your tools, or Other."
                },
                "subject": {
                  "type": "string",
                  "description": "Draft subject line, when the action is an email."
                },
                "draft_body": {
                  "type": "string",
                  "description": "Drafted message body, when available."
                },
                "proposed_recipients": {
                  "type": "array",
                  "description": "Proposed recipients of the drafted message.",
                  "items": {
                    "type": "string"
                  }
                },
                "proposed_slots": {
                  "type": "array",
                  "description": "Proposed meeting time slots, rendered in the rep's timezone.",
                  "items": {
                    "type": "string"
                  }
                },
                "status": {
                  "type": "string",
                  "description": "Lifecycle status: pending, drafted, sent, dismissed, or expired."
                },
                "external_url": {
                  "type": "string",
                  "description": "URL of the drafted artifact in the external system, when available"
                },
                "why": {
                  "type": "object",
                  "description": "The reasoning behind a Proactive action — the \"why this suggestion\" contract.",
                  "properties": {
                    "rationale": {
                      "type": "string",
                      "description": "Plain-language explanation of why this action is suggested."
                    },
                    "key_quote": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        },
                        "speaker": {
                          "type": "string"
                        },
                        "source_label": {
                          "type": "string"
                        },
                        "source_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "evidence": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "impact": {
                            "type": "string"
                          },
                          "source_label": {
                            "type": "string"
                          },
                          "source_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "generated_at": {
                  "type": "string",
                  "description": "When the action was generated",
                  "format": "date-time"
                },
                "updated_at": {
                  "type": "string",
                  "description": "When the action was last updated",
                  "format": "date-time"
                },
                "expires_at": {
                  "type": "string",
                  "description": "When the action stops being valid and is no longer shown.",
                  "format": "date-time"
                }
              },
              "required": [
                "uuid",
                "entity_type",
                "entity_id",
                "owner_user_uuid",
                "action_type",
                "title",
                "signal_type",
                "severity",
                "display_group",
                "subject",
                "draft_body",
                "proposed_recipients",
                "proposed_slots",
                "status",
                "external_url",
                "why",
                "generated_at",
                "updated_at",
                "expires_at"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": "string",
            "description": "Opaque cursor for the next page. Absent when there are no more results."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Attention provider guide](https://deepline.com/docs/providers/attention/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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