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

# Intercom Set Away Admin: Inputs, Cost & CLI Example

> Set an admin to away. Intercom Intercom Set Away Admin docs include request fields, response shape, pricing notes, 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=intercom_set_away_admin:{"admin_id":"{{admin_id}}","away_mode_enabled":"{{away_mode_enabled}}","away_mode_reassign":"{{away_mode_reassign}}"}' --json
```

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

## Input Schema

| Name                            | Type      | Required | Default | Description                                                                 |
| ------------------------------- | --------- | -------- | ------- | --------------------------------------------------------------------------- |
| `payload.admin_id`              | `integer` | Yes      |         | The unique identifier of a given admin                                      |
| `payload.away_mode_enabled`     | `boolean` | Yes      | `true`  | Set to "true" to change the status of the admin to away.                    |
| `payload.away_mode_reassign`    | `boolean` | Yes      | `false` | Set to "true" to assign any new conversation replies to your default inbox. |
| `payload.away_status_reason_id` | `integer` | No       |         | The unique identifier of the away status reason                             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "You can set an Admin as away for the Inbox.",
    "properties": {
      "admin_id": {
        "type": "integer",
        "description": "The unique identifier of a given admin"
      },
      "away_mode_enabled": {
        "type": "boolean",
        "description": "Set to \"true\" to change the status of the admin to away.",
        "default": true
      },
      "away_mode_reassign": {
        "type": "boolean",
        "description": "Set to \"true\" to assign any new conversation replies to your default inbox.",
        "default": false
      },
      "away_status_reason_id": {
        "type": "integer",
        "description": "The unique identifier of the away status reason"
      }
    },
    "required": [
      "admin_id",
      "away_mode_enabled",
      "away_mode_reassign"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                                   |
| ------------- | -------- | -------- | ------- | ------------------------------------------------------------- |
| `result.data` | `object` | Yes      |         | Admins are teammate accounts that have access to a workspace. |
| `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",
          "null"
        ],
        "description": "Admins are teammate accounts that have access to a workspace.",
        "properties": {
          "type": {
            "type": "string",
            "description": "String representing the object's type. Always has the value `admin`."
          },
          "id": {
            "type": "string",
            "description": "The id representing the admin."
          },
          "name": {
            "type": "string",
            "description": "The name of the admin."
          },
          "email": {
            "type": "string",
            "description": "The email of the admin."
          },
          "job_title": {
            "type": "string",
            "description": "The job title of the admin."
          },
          "away_mode_enabled": {
            "type": "boolean",
            "description": "Identifies if this admin is currently set in away mode."
          },
          "away_mode_reassign": {
            "type": "boolean",
            "description": "Identifies if this admin is set to automatically reassign new conversations to the apps default inbox."
          },
          "away_status_reason_id": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The unique identifier of the away status reason"
          },
          "has_inbox_seat": {
            "type": "boolean",
            "description": "Identifies if this admin has a paid inbox seat to restrict/allow features that require them."
          },
          "team_ids": {
            "type": "array",
            "description": "This object represents the avatar associated with the admin.",
            "items": {
              "type": "integer"
            }
          },
          "avatar": {
            "type": [
              "string",
              "null"
            ],
            "description": "Image for the associated team or teammate",
            "format": "uri"
          },
          "team_priority_level": {
            "type": [
              "object",
              "null"
            ],
            "description": "Admin priority levels for teams",
            "properties": {
              "primary_team_ids": {
                "type": [
                  "array",
                  "null"
                ],
                "description": "The primary team ids for the team",
                "items": {
                  "type": "integer"
                }
              },
              "secondary_team_ids": {
                "type": [
                  "array",
                  "null"
                ],
                "description": "The secondary team ids for the team",
                "items": {
                  "type": "integer"
                }
              }
            },
            "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 intercom_set_away_admin --payload '{
  "admin_id": "integer",
  "away_mode_enabled": true,
  "away_mode_reassign": false
}' --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`.
