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

> Import a call recording into Attention from a media URL for transcription and analysis. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Import a call recording into Attention from a media URL for transcription and analysis.

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

## 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_import_conversation',
  {
    "mediaURL": "https://example.com",
    "userID": "user_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute attention_import_conversation --input '{
  "mediaURL": "https://example.com",
  "userID": "user_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": {
    "uuid": "uuid_123"
  }
}
```

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

## Input reference

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.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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) Format: `date-time`. |
| `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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.uuid` | `string` | Yes | — | UUID of the newly imported conversation |
| `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": {
          "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>

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