Run in Enrichment Spreadsheet
Use this function as a column step in
deepline enrich.deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=gong_ask_entity:{"workspaceId":"{{workspaceId}}","crmEntityType":"ACCOUNT","crmEntityId":"{{crmEntityId}}","timePeriod":"LAST_7DAYS","question":"{{question}}"}' --json
Map payload values to spreadsheet columns with
{{column_name}} placeholders.Input Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
payload.workspaceId | integer | Yes | Workspace identifier. The calls and emails used to answer the question must be associated with this workspace. | |
payload.crmEntityType | "ACCOUNT" | "CONTACT" | "DEAL" | "LEAD" | Yes | The object type of the entity in the CRM. | |
payload.crmEntityId | string | Yes | The CRM Id of the entity the question is asked about. | |
payload.timePeriod | "LAST_7DAYS" | "LAST_30DAYS" | "LAST_90DAYS" | "LAST_90_DAYS_SINCE_LAST_ACTIVITY" | "LAST_YEAR_SINCE_LAST_ACTIVITY" | "LAST_YEAR" | "THIS_WEEK" | "THIS_MONTH" | "THIS_YEAR" | "THIS_QUARTER" | "CUSTOM_RANGE" | "ALL_CONVERSATIONS" | Yes | Specifies the time period during which associated calls and emails must have occurred to be used to generate the answer. The calls and emails must be associated with the specified entity. | |
payload.fromDateTime | string | No | Required when timePeriod is CUSTOM_RANGE Specifies the date and time (UTC) on or after which calls (based on call start time) and emails must have occurred to be included when generating the answer. Date and time (in ISO-8601 format: ‘2024-10-18T08:00:00Z’, where Z stands for UTC). | |
payload.toDateTime | string | No | Relevant only when timePeriod is CUSTOM_RANGE Specifies the date and time (UTC) before which calls (based on call start time) and emails must have occurred to be included when generating the answer. Date and time (in ISO-8601 format: ‘2024-10-18T08:00:00Z’, where Z stands for UTC). | |
payload.question | string | Yes | The question to answer. |
Allowed values
| Field | Allowed values |
|---|---|
payload.crmEntityType | ACCOUNT, CONTACT, DEAL, LEAD |
payload.timePeriod | LAST_7DAYS, LAST_30DAYS, LAST_90DAYS, LAST_90_DAYS_SINCE_LAST_ACTIVITY, LAST_YEAR_SINCE_LAST_ACTIVITY, LAST_YEAR, THIS_WEEK, THIS_MONTH, THIS_YEAR, THIS_QUARTER, CUSTOM_RANGE, ALL_CONVERSATIONS |
Output Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
result.data | object | Yes | Provider response payload. | |
result.meta | object | No | Additional response metadata (status, paging). |
Advanced: Direct CLI
Use direct execution for single payload debugging.
deepline tools execute gong_ask_entity --payload '{
"workspaceId": "integer",
"crmEntityType": "ACCOUNT",
"crmEntityId": "string",
"timePeriod": "LAST_7DAYS",
"question": "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:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.
- Billing mode:
no_bill.