> ## 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 Import Conversation: Inputs, Cost & CLI Example

> Import Conversation. Attention Attention Import Conversation docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=attention_import_conversation:{"mediaURL":"{{mediaURL}}","userID":"{{userID}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                               | Type      | Required | Default | Description                                                        |
| ---------------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------ |
| `payload.mediaURL`                 | `string`  | Yes      |         | URL of the media file to import (audio or video)                   |
| `payload.userID`                   | `string`  | Yes      |         | UUID of the user who owns this conversation                        |
| `payload.applicationName`          | `string`  | No       |         | Name of the external application (e.g., 'zap:gong', 'salesforce')  |
| `payload.applicationExternalID`    | `string`  | No       |         | External ID from the source application                            |
| `payload.conversationTitle`        | `string`  | No       |         | Title or name of the conversation                                  |
| `payload.conversationStartedAt`    | `string`  | No       |         | When the conversation started (ISO 8601 format)                    |
| `payload.headers`                  | `array`   | No       |         | HTTP headers to use when fetching the media file                   |
| `payload.opportunityID`            | `string`  | No       |         | ID of the associated opportunity or deal                           |
| `payload.linkedCrmRecords`         | `array`   | No       |         | CRM records linked to this conversation (accounts, contacts, etc.) |
| `payload.skipScorecardCalculation` | `boolean` | No       |         | Skip automatic scorecard calculation for this conversation         |
| `payload.skipCRMFieldsCalculation` | `boolean` | No       |         | Skip CRM fields calculation for this conversation                  |
| `payload.skipOpportunitiesExport`  | `boolean` | No       |         | Skip exporting opportunities for this conversation                 |
| `payload.transcriptionSettings`    | `object`  | No       |         |                                                                    |
| `payload.transcript`               | `object`  | No       |         |                                                                    |
| `payload.externalMetadata`         | `object`  | No       |         |                                                                    |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Import a conversation from a media file. This endpoint creates a new conversation from an external source (e.g., Gong, Salesforce) and processes it through the Attention platform's transcription and analysis pipeline.",
    "properties": {
      "mediaURL": {
        "type": "string",
        "description": "URL of the media file to import (audio or video)"
      },
      "userID": {
        "type": "string",
        "description": "UUID of the user who owns this conversation"
      },
      "applicationName": {
        "type": "string",
        "description": "Name of the external application (e.g., 'zap:gong', 'salesforce')"
      },
      "applicationExternalID": {
        "type": "string",
        "description": "External ID from the source application"
      },
      "conversationTitle": {
        "type": "string",
        "description": "Title or name of the conversation"
      },
      "conversationStartedAt": {
        "type": "string",
        "description": "When the conversation started (ISO 8601 format)",
        "format": "date-time"
      },
      "headers": {
        "type": "array",
        "description": "HTTP headers to use when fetching the media file",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "Header name"
            },
            "value": {
              "type": "string",
              "description": "Header value"
            }
          },
          "required": [
            "key",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "opportunityID": {
        "type": "string",
        "description": "ID of the associated opportunity or deal"
      },
      "linkedCrmRecords": {
        "type": "array",
        "description": "CRM records linked to this conversation (accounts, contacts, etc.)",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "code": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "id"
          ],
          "additionalProperties": false
        }
      },
      "skipScorecardCalculation": {
        "type": "boolean",
        "description": "Skip automatic scorecard calculation for this conversation"
      },
      "skipCRMFieldsCalculation": {
        "type": "boolean",
        "description": "Skip CRM fields calculation for this conversation"
      },
      "skipOpportunitiesExport": {
        "type": "boolean",
        "description": "Skip exporting opportunities for this conversation"
      },
      "transcriptionSettings": {
        "type": "object",
        "properties": {
          "gladia": {
            "type": "object",
            "properties": {
              "enableDiarization": {
                "type": "boolean",
                "description": "Enable speaker diarization (identifying different speakers)"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "transcript": {
        "type": "object",
        "properties": {
          "v1": {
            "type": "object",
            "properties": {
              "pieceInFlux": {
                "type": "string",
                "description": "Current incomplete piece being transcribed"
              },
              "final": {
                "type": "array",
                "description": "Finalized transcript items",
                "items": {
                  "type": "object",
                  "properties": {
                    "speaker": {
                      "type": "string",
                      "description": "Speaker identifier"
                    },
                    "sentence": {
                      "type": "string",
                      "description": "Transcribed text"
                    },
                    "startTimestamp": {
                      "type": "number",
                      "description": "Start time in seconds",
                      "format": "float"
                    },
                    "endTimestamp": {
                      "type": "number",
                      "description": "End time in seconds",
                      "format": "float"
                    }
                  },
                  "required": [
                    "startTimestamp"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "final",
              "pieceInFlux"
            ],
            "additionalProperties": false
          },
          "v2": {
            "type": "object",
            "properties": {
              "pieceInFlux": {
                "type": "string",
                "description": "Current incomplete piece being transcribed"
              },
              "final": {
                "type": "array",
                "description": "Finalized transcript items with word-level timing",
                "items": {
                  "type": "object",
                  "properties": {
                    "speaker": {
                      "type": "string",
                      "description": "Speaker identifier"
                    },
                    "words": {
                      "type": "array",
                      "description": "Individual words with timestamps",
                      "items": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "description": "Word text"
                          },
                          "startTimestamp": {
                            "type": "number",
                            "description": "Start time in seconds",
                            "format": "float"
                          },
                          "endTimestamp": {
                            "type": "number",
                            "description": "End time in seconds",
                            "format": "float"
                          }
                        },
                        "required": [
                          "endTimestamp",
                          "startTimestamp",
                          "text"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "speaker",
                    "words"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "final",
              "pieceInFlux"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "externalMetadata": {
        "type": "object",
        "properties": {
          "participants": {
            "type": "array",
            "description": "List of conversation participants",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "Participant email address"
                },
                "name": {
                  "type": "string",
                  "description": "Participant name"
                },
                "accessType": {
                  "type": "string",
                  "description": "Whether the participant is internal or external to the organization",
                  "enum": [
                    "Internal",
                    "External"
                  ]
                },
                "organizer": {
                  "type": "boolean",
                  "description": "Whether this participant is the organizer of the conversation"
                }
              },
              "required": [
                "accessType",
                "email",
                "name",
                "organizer"
              ],
              "additionalProperties": false
            }
          },
          "extra": {
            "type": "object",
            "description": "Additional metadata as key-value pairs",
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "mediaURL",
      "userID"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "UUID of the newly imported conversation"
          }
        },
        "required": [
          "uuid"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute attention_import_conversation --payload '{
  "mediaURL": "string",
  "userID": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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