> ## 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 Submit Flow Prospects Bulk Assignment: Inputs, Cost &

> Submit a bulk assignment of prospects to a flow (/v2/flows/prospects/bulk-assignments). Includes inputs, outputs, costs, 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=gong_submit_flow_prospects_bulk_assignment:{"flowInstanceOwnerEmail":"{{flowInstanceOwnerEmail}}","flowId":"{{flowId}}","prospects":"{{prospects}}"}' --json
```

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

## Input Schema

| Name                             | Type     | Required | Default | Description                                                |
| -------------------------------- | -------- | -------- | ------- | ---------------------------------------------------------- |
| `payload.flowInstanceOwnerEmail` | `string` | Yes      |         | The email of the Gong user who will own the flow instance. |
| `payload.flowId`                 | `string` | Yes      |         | The Flow ID to assign the prospects to.                    |
| `payload.prospects`              | `array`  | Yes      |         | The prospects that should be assigned to the flow.         |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Flow prospects bulk assignment.",
    "properties": {
      "flowInstanceOwnerEmail": {
        "type": "string",
        "description": "The email of the Gong user who will own the flow instance."
      },
      "flowId": {
        "type": "string",
        "description": "The Flow ID to assign the prospects to."
      },
      "prospects": {
        "type": "array",
        "description": "The prospects that should be assigned to the flow.",
        "items": {
          "type": "object",
          "description": "The prospect.",
          "properties": {
            "firstName": {
              "type": "string",
              "description": "The first name of the prospect. Required if the crmId is not provided."
            },
            "lastName": {
              "type": "string",
              "description": "The last name of the prospect. Required if the CRM ID is not provided."
            },
            "email": {
              "type": "string",
              "description": "The email of the prospect."
            },
            "jobTitle": {
              "type": "string",
              "description": "The job title of the prospect."
            },
            "linkedInUrl": {
              "type": "string",
              "description": "The LinkedIn URL of the prospect."
            },
            "crmId": {
              "type": "string",
              "description": "The CRM ID of the prospect."
            },
            "accountCrmId": {
              "type": "string",
              "description": "The CRM ID of the account the prospect belongs to."
            },
            "companyName": {
              "type": "string",
              "description": "The name of the company the prospect belongs to."
            }
          },
          "additionalProperties": false
        }
      }
    },
    "required": [
      "flowId",
      "flowInstanceOwnerEmail",
      "prospects"
    ],
    "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."
          },
          "id": {
            "type": "string",
            "description": "The ID of the bulk assignment."
          },
          "status": {
            "type": "string",
            "description": "The status of the bulk assignment.",
            "enum": [
              "PENDING",
              "IN_PROGRESS",
              "COMPLETED",
              "FAILED"
            ]
          },
          "totalCount": {
            "type": "integer",
            "description": "The total count of prospects to be assigned.",
            "format": "int32"
          },
          "processedCount": {
            "type": "integer",
            "description": "The count of prospects that have been processed.",
            "format": "int32"
          },
          "successCount": {
            "type": "integer",
            "description": "The count of prospects that were successfully assigned.",
            "format": "int32"
          },
          "failedCount": {
            "type": "integer",
            "description": "The count of prospects that failed to be assigned.",
            "format": "int32"
          },
          "results": {
            "type": "array",
            "description": "The bulk assignment results.",
            "items": {
              "type": "object",
              "description": "The bulk assignment results.",
              "properties": {
                "prospect": {
                  "type": "object",
                  "description": "The prospect.",
                  "properties": {
                    "firstName": {
                      "type": "string",
                      "description": "The first name of the prospect. Required if the crmId is not provided."
                    },
                    "lastName": {
                      "type": "string",
                      "description": "The last name of the prospect. Required if the CRM ID is not provided."
                    },
                    "email": {
                      "type": "string",
                      "description": "The email of the prospect."
                    },
                    "jobTitle": {
                      "type": "string",
                      "description": "The job title of the prospect."
                    },
                    "linkedInUrl": {
                      "type": "string",
                      "description": "The LinkedIn URL of the prospect."
                    },
                    "crmId": {
                      "type": "string",
                      "description": "The CRM ID of the prospect."
                    },
                    "accountCrmId": {
                      "type": "string",
                      "description": "The CRM ID of the account the prospect belongs to."
                    },
                    "companyName": {
                      "type": "string",
                      "description": "The name of the company the prospect belongs to."
                    }
                  },
                  "additionalProperties": false
                },
                "status": {
                  "type": "string",
                  "description": "The status of the flow assignment.",
                  "enum": [
                    "CRM_OPERATION_FAILED",
                    "FLOW_ASSIGNMENT_FAILED",
                    "ASSIGNED"
                  ]
                },
                "crmId": {
                  "type": "string",
                  "description": "The CRM ID of the prospect."
                },
                "flowInstanceId": {
                  "type": "string",
                  "description": "The newly created flow instance ID."
                },
                "errorCode": {
                  "type": "string",
                  "description": "Error code of a failed flow assignment."
                },
                "errorMessage": {
                  "type": "string",
                  "description": "Error message of a failed flow assignment."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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_submit_flow_prospects_bulk_assignment --payload '{
  "flowInstanceOwnerEmail": "string",
  "flowId": "string",
  "prospects": "array"
}' --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`.
