Como enviar conteúdo do Looker para o Slack com a integração de anexos do Slack (token da API)
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível programar entregas recorrentes ou únicas de conteúdo do Looker para serviços de terceiros integrados ao Looker usando o Looker Action Hub, que implementa a API Action do Looker e expõe integrações conhecidas, também conhecidas como ações, para todos os usuários do Looker. A integração de anexo do Slack (token de API) posta um anexo com seus dados do Looker em um canal ou mensagem direta do Slack. Ao contrário da ação Slack que é oferecida no Looker Action Hub, a integração do anexo do Slack (token de API) está disponível para implantações do Looker hospedadas pelo cliente.
A integração usa um app Slack com permissões específicas chamadas escopos de token de bot, que controlam quais partes do espaço de trabalho do Slack o app pode acessar. Antes de usar a integração do anexo do Slack (Token de API) no Looker, siga as instruções para configurar a integração no Slack, fornecidas no arquivo README do GitHub do anexo do Slack (Token de API).
Ativar a integração do anexo do Slack (token de API) no Looker
Depois que a integração for configurada no Slack, um administrador do Looker precisará ativar a ação de anexo do Slack (token de API) na lista de ações da página Ações no menu Administrador:
Role para baixo na lista de integrações e clique no botão Enable, ao lado da lista Slack Attachment (API Token) (Token de API).
Ative a opção Ativado.
Digite o Token de acesso do OAuth do usuário do botda configuração do Slack no campo Token da API do Slack.
Clique em Salvar.
A integração está configurada. A opção de anexo do Slack (Token de API) agora vai aparecer como uma opção de destino no Programador do Looker e quando você criar alertas.
Enviar conteúdo do Looker para o Slack usando o Looker Scheduler
Para enviar seu anexo de arquivo ao Slack usando a integração de anexo do Slack (token de API):
Ao configurar o programador, escolha a opção Anexo do Slack (Token de API) no campo Destino. O Looker vai mostrar opções de entrega específicas para o Slack, incluindo o tipo de canal, uma lista de canais e as opções para adicionar um comentário que será incluído na entrega e nomear o arquivo anexado.
No campo Channel Type, selecione Channels para enviar o anexo a um canal do Slack ou Users para enviar o anexo a um usuário do Slack.
No campo Share In, selecione o canal ou o usuário do Slack em que você quer postar o anexo. Esse canal ou lista de usuários é baseado nas credenciais do bot que você forneceu ao configurar o app de anexo do Slack (token de API) no Slack e pode incluir mensagens diretas e canais públicos e privados para os quais o bot foi convidado. Se você não vir um canal listado, verifique se o bot foi convidado para esse canal do Slack.
No campo Comentário, digite o texto que você quer incluir na entrega do anexo.
No campo Nome do arquivo, digite um nome para o arquivo de anexo. Não é necessário incluir a extensão do arquivo.
Para anexos do Slack, as opções avançadas de entrega disponíveis dependem do tipo de envio: painel ou Look.
Clique em Salvar para salvar as configurações da programação ou em Enviar agora para enviar o anexo imediatamente para o Slack.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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."]]