Looker-Inhalte mit der Integration „Slack-Anhang (API-Token)“ an Slack senden
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Über den Looker Action Hub können Sie wiederkehrende oder einmalige Lieferungen von Looker-Inhalten an in Looker eingebundene Drittanbieterdienste planen. Der Looker Action Hub implementiert die Action API von Looker und stellt gängige Integrationen – auch Aktionen genannt – für alle Looker-Nutzer bereit. Die Integration eines Slack-Anhangs (API-Token) sendet einen Anhang mit Ihren Looker-Daten an einen Slack-Kanal oder eine Direktnachricht (DM). Im Gegensatz zur Aktion Slack, die im Looker Action Hub angeboten wird, ist die Einbindung von Slack-Anhängen (API-Token) für vom Kunden gehostete Looker-Bereitstellungen verfügbar.
Für die Integration wird eine Slack-App mit spezifischen Berechtigungen verwendet, die als Bot-Token-Bereiche bezeichnet werden. Diese legen fest, auf welche Teile Ihres Slack-Arbeitsbereichs Ihre App zugreifen kann. Bevor Sie die Integration des Slack-Anhangs (API-Token) in Looker verwenden können, müssen Sie der Einrichtungsanleitung zum Konfigurieren der Integration auf der Slack-Seite folgen, die in der README-Datei des GitHub-Repositorys für Slack-Anhänge (API-Token) bereitgestellt wird.
Integration von Slack-Anhängen (API-Token) in Looker aktivieren
Nachdem die Integration auf der Slack-Seite eingerichtet wurde, muss ein Looker-Administrator die Aktion „Slack-Anhang“ (API-Token) in der Liste der Aktionen auf der Seite Aktionen im Menü Verwaltung aktivieren:
Scrollen Sie in der Liste der Integrationen nach unten und klicken Sie neben der Liste „Slack-Anhang (API-Token)“ auf Aktivieren.
Aktivieren Sie die Ein/Aus-Schaltfläche Aktiviert.
Geben Sie das OAuth-Zugriffstoken des Bot-Nutzersaus der Slack-Einrichtung in das Feld Slack API-Token ein.
Klicken Sie auf Speichern.
Die Integration ist jetzt konfiguriert. Die Option „Slack-Anhang“ (API-Token) wird jetzt als Zieloption im Looker-Planer und beim Erstellen von Benachrichtigungen angezeigt.
Looker-Inhalte mit dem Looker-Planer an Slack liefern
So senden Sie Ihren Dateianhang mithilfe der Integration von Slack-Anhang (API-Token) an Slack:
Wählen Sie bei der Konfiguration des Planers im Feld Ziel die Option Slack-Anhang (API-Token) aus. Looker zeigt für Slack spezifische Lieferoptionen an, einschließlich des Kanaltyps, einer Liste von Kanälen sowie Optionen zum Hinzufügen eines Kommentars, der bei der Lieferung enthalten ist, und zum Benennen des Dateianhangs.
Wählen Sie im Feld Channel-Typ die Option Channels aus, um den Anhang an einen Slack-Kanal zu senden, oder Nutzer, um den Anhang an einen Slack-Nutzer zu senden.
Wählen Sie im Feld Share In (Freigeben für) den Slack-Kanal oder den Nutzer aus, an den Sie den Anhang posten möchten. Dieser Kanal oder diese Nutzerliste basiert auf den Bot-Anmeldedaten, die Sie beim Einrichten der Slack-Anhangs-App (API-Token) auf der Slack-Seite angegeben haben. Sie kann öffentliche und private Kanäle sowie DNs enthalten, zu denen der Bot eingeladen wurde. Wenn ein Kanal nicht aufgeführt ist, prüfen Sie, ob der Bot zu diesem Slack-Kanal eingeladen wurde.
Geben Sie im Feld Kommentar beliebigen Text ein, der beim Senden des Anhangs enthalten sein soll.
Geben Sie in das Feld Dateiname einen Dateinamen für die Anhangsdatei ein. Die Dateiendung ist nicht erforderlich.
Bei Slack-Anhängen hängen die verfügbaren erweiterten Zustellungsoptionen davon ab, ob Sie ein Dashboard oder einen Look senden.
Klicken Sie auf Speichern, um die Einstellungen des Zeitplans zu speichern, oder auf Jetzt senden, um den Anhang sofort an Slack zu senden.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-25 (UTC)."],[],[],null,["# Sending Looker content to Slack with the Slack Attachment (API Token) integration\n\nYou can schedule recurring or one-off deliveries of Looker content to [third-party services that are integrated with Looker](/looker/docs/admin-panel-platform-actions#list_of_integrated_services) through the Looker Action Hub, which implements Looker's Action API and exposes popular integrations --- also known as *actions* --- for all Looker users. The Slack Attachment (API Token) integration posts an attachment with your Looker data to a Slack channel or direct message (DM). Unlike the [Slack](/looker/docs/scheduling-slack) action that is offered in the Looker Action Hub, the Slack Attachment (API Token) integration is available for customer-hosted Looker deployments.\n\n\nYou can also send Looker content to Slack when [specified thresholds in your data have been met or exceeded](/looker/docs/alerts-overview#sending_alerts_to_the_slack_attachment_(api_token)_integration).\n\n\nThe integration uses a Slack app with specific permissions called *bot token scopes* , which govern what parts of your Slack workspace your app can access. Before you can use the Slack Attachment (API Token) integration in Looker, you must follow the setup instructions for configuring the integration on the Slack side, provided in the [Slack Attachment (API Token) GitHub repo README file](https://github.com/looker-open-source/actions/blob/master/src/actions/slack/legacy_slack/README.md).\n| **Note:** If you have a permission that provides access to only select pages in the Admin panel, such as [`manage_schedules`](/looker/docs/admin-panel-users-roles#manage_schedules), [`manage_themes`](/looker/docs/admin-panel-users-roles#manage_themes), or [`see_admin`](/looker/docs/admin-panel-users-roles#see_admin), but you don't have the [Admin role](/looker/docs/admin-panel-users-roles#default_roles), the page or pages that are described here may not be visible to you in the Admin panel.\n\nEnabling the Slack Attachment (API Token) integration in Looker\n---------------------------------------------------------------\n\n\nAfter the integration is set up on the Slack side, a Looker admin must must enable the Slack Attachment (API Token) action in the list of actions on the [**Actions**](/looker/docs/admin-panel-platform-actions) page in the **Admin** menu:\n\n1. Scroll down the list of integrations and click the **Enable** button next to the Slack Attachment (API Token) listing.\n2. Enable the **Enabled** toggle.\n3. Enter the **Bot User OAuth Access Token** [from the Slack side setup](https://github.com/looker-open-source/actions/blob/master/src/actions/slack/legacy_slack/README.md) in the **Slack API Token** field.\n4. Click **Save**.\n\n\nThe integration is now configured. The Slack Attachment (API Token) option will now appear as a destination option in the Looker Scheduler and when you create [alerts](/looker/docs/creating-alerts#sending_alerts_to_the_slack_attachment_api_token_integration).\n\nDelivering Looker content to Slack using the Looker Scheduler\n-------------------------------------------------------------\n\n\nTo deliver your file attachment to Slack using the Slack Attachment (API Token) integration:\n\n1. Navigate to your Looker content, and then [schedule a content delivery](/looker/docs/scheduling).\n2. When configuring the Scheduler, choose the **Slack Attachment (API Token)** option in the **Destination** field. Looker will display delivery options that are specific to Slack, including channel type, a list of channels, and options to add a comment that will be included with your delivery and to name the file attachment.\n - In the **Channel Type** field, select **Channels** to send the attachment to a Slack channel or **Users** to send the attachment to a Slack user.\n - In the **Share In** field, select the Slack channel or user where you want to post your attachment. This channel or user list is based on the [bot credentials that you provided when you set up the Slack Attachment (API Token) app](https://github.com/looker-open-source/actions/blob/master/src/actions/slack/legacy_slack/README.md) on the Slack side, and it may include public and private channels and DMs to which the bot has been invited. If you do not see a channel listed, verify that the bot has been invited to that Slack channel.\n - In the **Comment** field, enter any text you want to include with the attachment delivery.\n - In the **Filename** field, enter a filename for the attachment file. You do not need to include the file extension.\n\u003e For Slack attachments, the advanced delivery options available depend on whether you are delivering a [dashboard](/looker/docs/scheduling-and-sending-dashboards#advanced_options) or a [Look](/looker/docs/delivering-looks-explores#applying_advanced_delivery_options).\n3. Click **Save** to save your schedule's settings, or click **Send now** to immediately send your attachment to Slack."]]