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

> Report event of a content share (/v2/customer-engagement/content/shared). Includes inputs, outputs, costs, and Deepline CLI examples for GTM automation.

## 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=gong_content_shared:{"reportingSystem":"{{reportingSystem}}","eventTimestamp":"{{eventTimestamp}}","contentId":"{{contentId}}","contentUrl":"{{contentUrl}}","contentTitle":"{{contentTitle}}"}' --json
```

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

## Input Schema

| Name                             | Type     | Required | Default | Description                                                                                                                                                          |
| -------------------------------- | -------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 shared in the reporting system.                                                                                                       |
| `payload.contentUrl`             | `string` | Yes      |         | The url of the content that was shared 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.shareId`                | `string` | No       |         | The id of the share action, in case there can be more than one share per content.                                                                                    |
| `payload.shareInfoUrl`           | `string` | No       |         | The link to a page that presents additional information about this event.                                                                                            |
| `payload.sharingMessageSubject`  | `string` | No       |         | The subject of share email / message.                                                                                                                                |
| `payload.sharingMessageBody`     | `string` | No       |         | The share message body. Can contain HTML and will be cleaned when it is presented.                                                                                   |
| `payload.sharer`                 | `object` | No       |         |                                                                                                                                                                      |
| `payload.recipients`             | `array`  | No       |         | array of objects with name + email of recipients. Email is required.                                                                                                 |
| `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.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.actionName`             | `string` | No       |         | The name of the action like "Document Sent" or "Presentation Shared".                                                                                                |
| `payload.nonCompanyParticipants` | `array`  | No       |         |                                                                                                                                                                      |
| `payload.moreInfoUrl`            | `string` | No       |         |                                                                                                                                                                      |
| `payload.trackingId`             | `string` | No       |         |                                                                                                                                                                      |
| `payload.mobileAppId`            | `string` | No       |         |                                                                                                                                                                      |
| `payload.agentPlatform`          | `string` | No       |         |                                                                                                                                                                      |
| `payload.userAgent`              | `string` | No       |         |                                                                                                                                                                      |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Content Shared Event",
    "properties": {
      "reportingSystem": {
        "type": "string",
        "description": "The unique identifier of the reporting system. It is the same value in all events originating from the same system."
      },
      "eventTimestamp": {
        "type": "string",
        "description": "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);"
      },
      "eventId": {
        "type": "string",
        "description": "The original id of the event as designated in the reporting system."
      },
      "contentId": {
        "type": "string",
        "description": "The id of the content that was shared in the reporting system."
      },
      "contentUrl": {
        "type": "string",
        "description": "The url of the content that was shared in the reporting system. This is the url that is was accessed by the viewer."
      },
      "contentTitle": {
        "type": "string",
        "description": "Human readable title of the content."
      },
      "shareId": {
        "type": "string",
        "description": "The id of the share action, in case there can be more than one share per content."
      },
      "shareInfoUrl": {
        "type": "string",
        "description": "The link to a page that presents additional information about this event."
      },
      "sharingMessageSubject": {
        "type": "string",
        "description": "The subject of share email / message."
      },
      "sharingMessageBody": {
        "type": "string",
        "description": "The share message body. Can contain HTML and will be cleaned when it is presented."
      },
      "sharer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The user id in Gong, if available."
          },
          "email": {
            "type": "string",
            "description": "The email address of the person, if available."
          },
          "name": {
            "type": "string",
            "description": "The name of the person, if available."
          }
        },
        "additionalProperties": false
      },
      "recipients": {
        "type": "array",
        "description": "array of objects with name + email of recipients. Email is required.",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "description": "The email address of the person, if available."
            },
            "name": {
              "type": "string",
              "description": "The name of the person, if available."
            },
            "title": {
              "type": "string",
              "description": "The title of the person, if available."
            },
            "context": {
              "type": "array",
              "description": "A list of links to external systems such as CRM, Telephony System, Case Management, etc.",
              "items": {
                "type": "object",
                "description": "Links to external systems such as CRM, Telephony System, Case Management etc. Currently only Salesforce and Generic are supported.",
                "properties": {
                  "system": {
                    "type": "string",
                    "description": "External system name. Currently only Salesforce and Generic are supported.",
                    "enum": [
                      "Salesforce",
                      "HubSpot",
                      "MicrosoftDynamic",
                      "Generic"
                    ]
                  },
                  "objects": {
                    "type": "array",
                    "description": "List of objects within the external system",
                    "items": {
                      "type": "object",
                      "description": "External object associated with the party",
                      "properties": {
                        "objectType": {
                          "type": "string",
                          "description": "Object Type. Valid only for non-company parties. e.g. Lead.",
                          "enum": [
                            "Lead",
                            "Contact",
                            "Account",
                            "Opportunity",
                            "User",
                            "Lead,Contact"
                          ]
                        },
                        "objectId": {
                          "type": "string",
                          "description": "Object ID. For Salesforce both case-sensitive and case-insensitive formats are supported."
                        },
                        "fields": {
                          "type": "array",
                          "description": "Object fields. Intended for future use only.",
                          "items": {
                            "type": "object",
                            "description": "External object data",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Field name"
                              },
                              "value": {
                                "type": "object",
                                "description": "Object value"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "objectId",
                        "objectType"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "system"
                ],
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      },
      "crmContext": {
        "type": "array",
        "description": "A list of references to external systems such as CRM, Telephony System, Case Management, etc.",
        "items": {
          "type": "object",
          "description": "Links to external systems such as CRM, Telephony System, Case Management etc. Currently only Salesforce and Generic are supported.",
          "properties": {
            "system": {
              "type": "string",
              "description": "External system name. Currently only Salesforce and Generic are supported.",
              "enum": [
                "Salesforce",
                "HubSpot",
                "MicrosoftDynamic",
                "Generic"
              ]
            },
            "objects": {
              "type": "array",
              "description": "List of objects within the external system. Note: Multiple opportunities/deals belonging to the same account are not supported.",
              "items": {
                "type": "object",
                "description": "External object associated with the call",
                "properties": {
                  "objectType": {
                    "type": "string",
                    "description": "Object Type. e.g. Account.",
                    "enum": [
                      "Opportunity",
                      "Account",
                      "Lead",
                      "Contact",
                      "User",
                      "Opportunity,Account"
                    ]
                  },
                  "objectId": {
                    "type": "string",
                    "description": "Object ID. For Salesforce both case-sensitive and case-insensitive formats are supported."
                  },
                  "fields": {
                    "type": "array",
                    "description": "Object fields. Intended for future use only.",
                    "items": {
                      "type": "object",
                      "description": "External object data",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Field name. For Account supported fields are: Name, Website, Industry and all the custom fields. For Opportunity supported fields are Name, LeadSource, Type, StageName, Probability, Amount, CloseDate and all the custom fields."
                        },
                        "value": {
                          "type": "object",
                          "description": "Field value"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "objectId",
                  "objectType"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "system"
          ],
          "additionalProperties": false
        }
      },
      "contentProperties": {
        "type": "array",
        "description": "A list of additional properties for the content",
        "items": {
          "type": "object",
          "description": "A list of additional properties for the event",
          "properties": {
            "name": {
              "type": "string",
              "description": "Property name."
            },
            "value": {
              "type": "string",
              "description": "Property value. Value format should match dataType. If dataType is \"number\", value should be passed in JSON number format, e.g. 3.14. If dataType is \"date\", the value should be passed in JSON date format, e.g. 2021-02-17T02:30:00-08:00. If the dataType is \"url\", the value should be valid URL, e.g. \"https://example.com/example?q=v\""
            },
            "dataType": {
              "type": "string",
              "description": "Property data type.",
              "enum": [
                "number, string, url, date"
              ]
            }
          },
          "required": [
            "dataType",
            "name",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "eventProperties": {
        "type": "array",
        "description": "A list of additional properties for the event",
        "items": {
          "type": "object",
          "description": "A list of additional properties for the event",
          "properties": {
            "name": {
              "type": "string",
              "description": "Property name."
            },
            "value": {
              "type": "string",
              "description": "Property value. Value format should match dataType. If dataType is \"number\", value should be passed in JSON number format, e.g. 3.14. If dataType is \"date\", the value should be passed in JSON date format, e.g. 2021-02-17T02:30:00-08:00. If the dataType is \"url\", the value should be valid URL, e.g. \"https://example.com/example?q=v\""
            },
            "dataType": {
              "type": "string",
              "description": "Property data type.",
              "enum": [
                "number, string, url, date"
              ]
            }
          },
          "required": [
            "dataType",
            "name",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "workspaceId": {
        "type": "string",
        "description": "Optional workspace identifier. If specified, the event will be placed into this workspace, otherwise, the default algorithm for workspace placement will be applied."
      },
      "actionName": {
        "type": "string",
        "description": "The name of the action like \"Document Sent\" or \"Presentation Shared\"."
      },
      "nonCompanyParticipants": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "description": "The email address of the person, if available."
            },
            "name": {
              "type": "string",
              "description": "The name of the person, if available."
            },
            "title": {
              "type": "string",
              "description": "The title of the person, if available."
            },
            "context": {
              "type": "array",
              "description": "A list of links to external systems such as CRM, Telephony System, Case Management, etc.",
              "items": {
                "type": "object",
                "description": "Links to external systems such as CRM, Telephony System, Case Management etc. Currently only Salesforce and Generic are supported.",
                "properties": {
                  "system": {
                    "type": "string",
                    "description": "External system name. Currently only Salesforce and Generic are supported.",
                    "enum": [
                      "Salesforce",
                      "HubSpot",
                      "MicrosoftDynamic",
                      "Generic"
                    ]
                  },
                  "objects": {
                    "type": "array",
                    "description": "List of objects within the external system",
                    "items": {
                      "type": "object",
                      "description": "External object associated with the party",
                      "properties": {
                        "objectType": {
                          "type": "string",
                          "description": "Object Type. Valid only for non-company parties. e.g. Lead.",
                          "enum": [
                            "Lead",
                            "Contact",
                            "Account",
                            "Opportunity",
                            "User",
                            "Lead,Contact"
                          ]
                        },
                        "objectId": {
                          "type": "string",
                          "description": "Object ID. For Salesforce both case-sensitive and case-insensitive formats are supported."
                        },
                        "fields": {
                          "type": "array",
                          "description": "Object fields. Intended for future use only.",
                          "items": {
                            "type": "object",
                            "description": "External object data",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Field name"
                              },
                              "value": {
                                "type": "object",
                                "description": "Object value"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "objectId",
                        "objectType"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "system"
                ],
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      },
      "moreInfoUrl": {
        "type": "string"
      },
      "trackingId": {
        "type": "string"
      },
      "mobileAppId": {
        "type": "string"
      },
      "agentPlatform": {
        "type": "string"
      },
      "userAgent": {
        "type": "string"
      }
    },
    "required": [
      "contentId",
      "contentTitle",
      "contentUrl",
      "eventTimestamp",
      "reportingSystem"
    ],
    "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": {
          "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>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute gong_content_shared --payload '{
  "reportingSystem": "string",
  "eventTimestamp": "string",
  "contentId": "string",
  "contentUrl": "string",
  "contentTitle": "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`.
