> ## 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: Ask Attention V2

> Ask Attention a question across chosen conversations or a deal, optionally summarized with timestamps. Includes SDK V2 examples, schemas, and cost.

Ask Attention a question across chosen conversations or a deal, optionally summarized with timestamps.

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

## 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_ask_attention_v2',
  {
    "conversations_ids": [
      "conversations_123"
    ],
    "deal_id": "deal_123",
    "prompt": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute attention_ask_attention_v2 --input '{
  "conversations_ids": [
    "conversations_123"
  ],
  "deal_id": "deal_123",
  "prompt": "example"
}' --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": [
    {
      "output": "example",
      "conversation_id": "conversation_123",
      "error": "example"
    }
  ]
}
```

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

## Input reference

Analyzes conversations or prompts to provide insights and attention points. This endpoint helps identify key information, sentiment, and important details in the provided content.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.include_timestamps` | `boolean` | No | — | When true, return timestamped segments (start/end seconds + excerpt) for each conversation alongside the textual answer. |
| `payload.summarize` | `boolean` | No | — | When true, synthesize all per-conversation outputs into a single combined response appended with conversation\_id "summary". |
| `payload.conversations_ids` | `array` | Yes | — | — |
| `payload.deal_id` | `string` | Yes | — | — |
| `payload.prompt` | `string` | Yes | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Analyzes conversations or prompts to provide insights and attention points. This endpoint helps identify key information, sentiment, and important details in the provided content.",
    "properties": {
      "include_timestamps": {
        "type": "boolean",
        "description": "When true, return timestamped segments (start/end seconds + excerpt) for each conversation alongside the textual answer."
      },
      "summarize": {
        "type": "boolean",
        "description": "When true, synthesize all per-conversation outputs into a single combined response appended with conversation_id \"summary\"."
      },
      "conversations_ids": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 50
        }
      },
      "deal_id": {
        "type": "string"
      },
      "prompt": {
        "type": "string"
      }
    },
    "required": [
      "conversations_ids",
      "deal_id",
      "prompt"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `array` | Yes | — | Provider response payload. |
| `result.data[].output` | `string` | Yes | — | — |
| `result.data[].conversation_id` | `string` | Yes | — | — |
| `result.data[].error` | `string` | Yes | — | — |
| `result.data[].segments` | `array` | No | — | Optional timestamped segments relevant to the answer (present when include\_timestamps=true). |
| `result.data[].segments[].start_sec` | `number` | No | — | Start time in seconds |
| `result.data[].segments[].end_sec` | `number` | No | — | End time in seconds |
| `result.data[].segments[].text` | `string` | No | — | Transcript excerpt for this segment |
| `result.data[].title` | `string` | No | — | Conversation title |
| `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": "array",
        "description": "Provider response payload.",
        "items": {
          "type": "object",
          "properties": {
            "output": {
              "type": "string"
            },
            "conversation_id": {
              "type": "string"
            },
            "error": {
              "type": "string"
            },
            "segments": {
              "type": "array",
              "description": "Optional timestamped segments relevant to the answer (present when include_timestamps=true).",
              "items": {
                "type": "object",
                "properties": {
                  "start_sec": {
                    "type": "number",
                    "description": "Start time in seconds"
                  },
                  "end_sec": {
                    "type": "number",
                    "description": "End time in seconds"
                  },
                  "text": {
                    "type": "string",
                    "description": "Transcript excerpt for this segment"
                  }
                },
                "additionalProperties": false
              }
            },
            "title": {
              "type": "string",
              "description": "Conversation title"
            }
          },
          "required": [
            "conversation_id",
            "error",
            "output"
          ],
          "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.