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

# Datagma: Job Change Detection

> Check whether a known contact has changed companies. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Check whether a known contact has changed companies.

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

## 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(
  'datagma_job_change_detection',
  {
    "firstName": "Jane",
    "lastName": "Doe",
    "fullName": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute datagma_job_change_detection --input '{
  "firstName": "Jane",
  "lastName": "Doe",
  "fullName": "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": {
    "data": {
      "firstName": "Jane",
      "lastName": "Doe",
      "name": "Example"
    },
    "status": "example",
    "companyScore": 123
  }
}
```

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

## Input reference

Detect in real time if one of your contacts has changed company or if he still works in the same company.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.firstName` | `string` | No | — | The first name of the person whose status you want to check |
| `payload.lastName` | `string` | No | — | The last name of the person whose status you want to check |
| `payload.fullName` | `string` | No | — | Instead of input firstname, lastname. You can input full name here |
| `payload.companyName` | `string` | No | — | The last known company for this person |
| `payload.jobTitle` | `string` | No | — | If you think that more than one person may have the same name in this company, please do not hesitate to give us the last known job title, so that our AI can choose the right person. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Detect in real time if one of your contacts has changed company or if he still works in the same company.",
    "properties": {
      "firstName": {
        "type": "string",
        "description": "The first name of the person whose status you want to check"
      },
      "lastName": {
        "type": "string",
        "description": "The last name of the person whose status you want to check"
      },
      "fullName": {
        "type": "string",
        "description": "Instead of input firstname, lastname. You can input full name here"
      },
      "companyName": {
        "type": "string",
        "description": "The last known company for this person"
      },
      "jobTitle": {
        "type": "string",
        "description": "If you think that more than one person may have the same name in this company, please do not hesitate to give us the last known job title, so that our AI can choose the right person."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | No | — | — |
| `result.data.data.firstName` | `string` | No | — | — |
| `result.data.data.lastName` | `string` | No | — | — |
| `result.data.data.name` | `string` | No | — | — |
| `result.data.data.linkedIn` | `string` | No | — | — |
| `result.data.data.currentCompany` | `string` | No | — | — |
| `result.data.data.title` | `string` | No | — | — |
| `result.data.data.experiences` | `array` | No | — | — |
| `result.data.data.experiences[].company` | `string` | No | — | — |
| `result.data.data.experiences[].jobTitle` | `string` | No | — | — |
| `result.data.data.experiences[].duration` | `string` | No | — | — |
| `result.data.data.ableToGetPastExperience` | `boolean` | No | — | — |
| `result.data.data.ableToFindCompanyInputInProfile` | `boolean` | No | — | — |
| `result.data.data.from` | `string` | No | — | — |
| `result.data.status` | `string` | No | — | — |
| `result.data.companyScore` | `number` | No | — | Format: `float`. |
| `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": {
          "data": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string"
              },
              "lastName": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "linkedIn": {
                "type": "string"
              },
              "currentCompany": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "experiences": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "company": {
                      "type": "string"
                    },
                    "jobTitle": {
                      "type": "string"
                    },
                    "duration": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "ableToGetPastExperience": {
                "type": "boolean"
              },
              "ableToFindCompanyInputInProfile": {
                "type": "boolean"
              },
              "from": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "status": {
            "type": "string"
          },
          "companyScore": {
            "type": "number",
            "format": "float"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.14` per pricing unit.

## Related documentation

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