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

# Sybill: Get Deal

> Get one Sybill deal by its CRM dealId with its AI summary, suggested CRM field values, contacts, stage and amount. Includes SDK V2 examples, schemas, and cost.

Get one Sybill deal by its CRM dealId with its AI summary, suggested CRM field values, contacts, stage and amount.

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

## 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(
  'sybill_get_deal',
  {
    "dealId": "deal_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_get_deal --input '{
  "dealId": "deal_123"
}'
```

## 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": {
    "dealId": "deal_123"
  }
}
```

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

## Input reference

Return the available details for one CRM deal. Includes its AI-generated summary, CRM autofill suggestions, and contacts when present. Requires the **Export** permission (`read` scope).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.dealId` | `string` | Yes | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Return the available details for one CRM deal. Includes its AI-generated summary, CRM autofill suggestions, and contacts when present. Requires the **Export** permission (`read` scope).",
    "properties": {
      "dealId": {
        "type": "string"
      }
    },
    "required": [
      "dealId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.dealId` | `string` | Yes | — | — |
| `result.data.name` | `string \| null` | No | — | — |
| `result.data.accountName` | `string \| null` | No | — | — |
| `result.data.stage` | `string \| null` | No | — | — |
| `result.data.pipeline` | `string \| null` | No | — | — |
| `result.data.amount` | `number \| null` | No | — | — |
| `result.data.closeDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.closed` | `boolean \| null` | No | — | — |
| `result.data.createdDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.lastActivityDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.owner` | `object \| null` | No | — | — |
| `result.data.owner.name` | `string \| null` | No | — | — |
| `result.data.owner.email` | `string \| null` | No | — | — |
| `result.data.summary` | `object \| null` | No | — | — |
| `result.data.crmAutofill` | `object \| null` | No | — | — |
| `result.data.contacts` | `array` | No | — | — |
| `result.data.contacts[].name` | `string \| null` | No | — | — |
| `result.data.contacts[].email` | `string \| null` | No | — | — |
| `result.data.contacts[].title` | `string \| null` | No | — | — |
| `result.data.contacts[].phone` | `string \| null` | No | — | — |
| `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": {
          "dealId": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "accountName": {
            "type": [
              "string",
              "null"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ]
          },
          "pipeline": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "closeDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "createdDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastActivityDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "owner": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": true
                }
              ]
            }
          },
          "crmAutofill": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {}
                },
                {
                  "type": "object",
                  "additionalProperties": true
                }
              ]
            }
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phone": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [
          "dealId"
        ],
        "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

* [Connect integrations](https://deepline.com/docs/integrations.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.