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

# Gong: Content Viewed

> Record in Gong that a prospect viewed a piece of shared content. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Record in Gong that a prospect viewed a piece of shared content.

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

## 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(
  'gong_content_viewed',
  {
    "reportingSystem": "example",
    "eventTimestamp": "example",
    "contentId": "content_123",
    "contentUrl": "https://example.com",
    "contentTitle": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute gong_content_viewed --input '{
  "reportingSystem": "example",
  "eventTimestamp": "example",
  "contentId": "content_123",
  "contentUrl": "https://example.com",
  "contentTitle": "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": {
    "requestId": "request_123",
    "integrationId": 123
  }
}
```

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

## Input reference

Content Viewed event

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.reportingSystem` | `string` | Yes | — | The unique identifier of the reporting system. It is the same value in all events originating from the same system. |
| `payload.eventTimestamp` | `string` | Yes | — | The date and time when the event happened in the ISO-8601 format (e.g., '2021-08-01T02:30:00+05:00' or '2021-08-01T08:00:00Z', where Z stands for UTC). |
| `payload.eventId` | `string` | No | — | The original id of the event as designated in the reporting system. |
| `payload.contentId` | `string` | Yes | — | The id of the content that was viewed in the reporting system. |
| `payload.contentUrl` | `string` | Yes | — | The url of the content that was viewed in the reporting system. This is the url that is was accessed by the viewer. |
| `payload.contentTitle` | `string` | Yes | — | Human readable title of the content. |
| `payload.viewActionTitle` | `string` | No | — | The name of the action like "Document Viewed" or "Presentation Opened". |
| `payload.shareId` | `string` | No | — | The id of the share action that corresponds to this view event, in case there can be more than one share per content. |
| `payload.viewInfoUrl` | `string` | No | — | The link to a page that presents additional information about this event. |
| `payload.viewer` | `object` | No | — | — |
| `payload.crmContext` | `array` | No | — | A list of references to external systems such as CRM, Telephony System, Case Management, etc. |
| `payload.contentProperties` | `array` | No | — | A list of additional properties for the content |
| `payload.eventProperties` | `array` | No | — | A list of additional properties for the event |
| `payload.userAgent` | `string` | No | — | "User-Agent" header value for browser based interaction |
| `payload.mobileAppId` | `string` | No | — | The application identification string in case of interaction via mobile application (bundle identifier or package name). |
| `payload.agentPlatform` | `"Windows, Linux, MacOS, iOS, Android"` | No | — | Platform on which the interaction was made Allowed: `Windows, Linux, MacOS, iOS, Android`. |
| `payload.workspaceId` | `string` | No | — | Optional workspace identifier. If specified, the event will be placed into this workspace, otherwise, the default algorithm for workspace placement will be applied. |
| `payload.trackingId` | `string` | No | — | The ID used for tracking the person who did the event. Must be null if a viewer is sent instead. |
| `payload.nonCompanyParticipants` | `array` | No | — | — |
| `payload.moreInfoUrl` | `string` | No | — | — |
| `payload.actionName` | `string` | No | — | — |
| `payload.sharingMessageBody` | `string` | No | — | — |
| `payload.sharer` | `object` | No | — | — |
| `payload.sharingMessageSubject` | `string` | No | — | — |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe gong_content_viewed --json`.

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.requestId` | `string` | No | — | A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes. |
| `result.data.integrationId` | `integer` | No | — | .public-api-info \{ background: rgb(222, 235, 255).}.public-api-tip \{ background: rgb(227, 252, 239).}.public-api-parameter \{ background: rgba(9,30,66,0.08).}.public-api-note \{ background: rgb(234, 230, 255).}.public-api-important \{ background: rgb(255, 250, 230).}.public-api-critical \{ background: rgb(255, 235, 230).}table, th, td \{ border: 1px solid gray. border-collapse: collapse.}th, td \{ padding: 5px.}th \{ text-align: left.}img \{ border: 2px solid #D3D5D9.} Your integration ID to be used in See the live schema for the complete constraint. |
| `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": {
          "requestId": {
            "type": "string",
            "description": "A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes."
          },
          "integrationId": {
            "type": "integer",
            "description": ".public-api-info { background: rgb(222, 235, 255);}.public-api-tip { background: rgb(227, 252, 239);}.public-api-parameter { background: rgba(9,30,66,0.08);}.public-api-note { background: rgb(234, 230, 255);}.public-api-important { background: rgb(255, 250, 230);}.public-api-critical { background: rgb(255, 235, 230);}table, th, td { border: 1px solid gray; border-collapse: collapse;}th, td { padding: 5px;}th { text-align: left;}img { border: 2px solid #D3D5D9;} Your integration ID to be used in requests to the API. This ensures you are accessing the correct integration. Note: Parse the integrationId as Long or BigInt. Parsing the integrationId as an Integer will truncate the integrationId to trailing zeros and will return an incorrect ID.",
            "format": "int64"
          }
        },
        "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

* [Gong provider guide](https://deepline.com/docs/providers/gong/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.