Slack

Get Slack File Contents

Read the text of a supported Slack attachment up to 25 MB through a connected Slack account.

1 creditRuns in your Slack account

Endpoint

Parameters

NameTypeRequiredNote
identifieraccount · requiredaccountrequired—
file_idstring · requiredstringrequired

The Slack file ID to read. Bind file_ids[0] (or files[].id) from the Slack message trigger, or paste an ID from List Slack Files.

Example: F0BUNE7NS1L or {{trigger.slack_new_message.file_ids[0]}}

Response schema

{
  "type": "object",
  "required": [
    "ok",
    "file",
    "text",
    "text_chars",
    "truncated",
    "extraction"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "Whether the file contents were retrieved"
    },
    "file": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "size": {
          "type": "number"
        },
        "user": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "created": {
          "type": [
            "number",
            "null"
          ]
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filetype": {
          "type": "string"
        },
        "mimetype": {
          "type": "string"
        },
        "permalink": {
          "type": "string"
        }
      }
    },
    "text": {
      "type": "string",
      "description": "Extracted text contents"
    },
    "message": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean",
      "description": "True when text was cut at the 200,000-character cap"
    },
    "extraction": {
      "enum": [
        "utf-8",
        "pdf-parse",
        "none"
      ],
      "type": "string"
    },
    "text_chars": {
      "type": "number",
      "description": "Length of the complete extracted text"
    }
  }
}

Get started

How to use this action

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, then connect your account for this app. There’s no API key to manage.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this app’s actions when the job calls for them, along with any other tools it needs.

  3. Make it a workflow

    Add an action as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether each action runs on its own or asks first. When it asks, you see an Allow or Deny card before anything changes in the app.