Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Apps
  • Apps on Zapier

Extracting an attachment from Slack messages

Written by Owner

Updated at August 20th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Tables
    Work with tables Manage tables Create tables Troubleshoot Zapier Tables
  • Product updates
    Product updates: January 2023 Product updates: March 2023 Product updates: February 2023 Product updates: April 2023 Product updates: May 2023 Product updates: June 2023 Product updates: July 2023 Product updates: August 2023 Product updates: September 2023 Product updates: October 2023 Product updates: November 2023 Product updates: December 2023 Product updates: January 2024 Product updates: February 2024 Product updates: March 2024 Product updates: April 2024 Product updates: May 2024 Product updates: June 2024 Product updates: July 2024 Product updates: August 2024 Product updates: September 2024 Product updates: October 2024 Product updates: November 2024 Product updates: December 2024 Product updates: January 2025 Product updates: February 2025 Product updates: March 2025 Product updates: April 2025 Product updates: May 2025 Product updates: June 2025 Product updates: July 2025 Product updates: August 2025
  • Zaps
    Zap basics Zap history Troubleshoot Zaps Manage your Zaps Do more with Zaps
  • Your Zapier account
    Plans Billing Account profile Notifications Data privacy & security Get help User roles and permissions
  • Interfaces
    Troubleshoot Zapier Interfaces Create an interface Use interface components Manage interfaces
  • Canvas
    Create a canvas Collaborate on a canvas
  • Chatbots
    Add logic and knowledge to chatbots Troubleshoot chatbots Create chatbots Manage chatbots
  • Getting started
    Intro to Zapier Set up your Zapier account Use case templates
  • Agents
    Create agents Manage agents Troubleshoot agents
  • MCP
    Set up MCP
  • Built-in tools
    Filter & Paths Formatter Schedule & Delay Email, IMAP, SMTP, & Email Parser Webhooks & Code Storage, Digest, & RSS Sub-Zap & Looping Other built-in tools Custom Actions & API Requests Functions AI by Zapier & AI actions Copilot Human in the Loop
  • Lead Router
    Create routers
  • Apps
    Connect and manage your app connections AI apps on Zapier Apps on Zapier
+ More

Table of Contents

Extract an attachment from Slackbot messages 1. Add a Slack trigger step 2. Add a filter step Extract an attachment from Slack user messages 1. Add a Slack trigger step 2. Add a Delay step 3. Add a Slack Find Message step

You can use Slack's New Message Posted to Channel trigger to extract message attachments in public Slack channels.

Message attachments include shared links and content previews. They are preceded by an indentation from other messages.

76bb3463d1fd287e87446facaad6d342.png

miscEye icon Note
  • Zapier can only trigger on non-ephemeral attachments that appear to all users in a channel or direct message.
  • This feature is only available for trigger steps, not actions.

You can extract message attachments from:

  • Slackbot messages
  • Messages sent by Slack users
Slackbot messages Messages sent by Slack users

Extract an attachment from Slackbot messages

You can extract message attachments from Slackbot messages to use in subsequent Zap steps.

1. Add a Slack trigger step

  • In the Zap editor, click to open the Trigger step.
  • In the Choose app & event section, search for and select Slack.
  • Click the Event dropdown menu and select New Message Posted to Channel event that will trigger the Zap. 
  • In the Set up trigger section:
    • Click the Channels dropdown menu and select the channel you want to use.
    • Click the Trigger for Bot Messages? dropdown menu and select Yes.
  • Click Continue.
  • Click Test & Review. If the step is successful, you’ll see sample data from your recent Slack messages.
  • Click Continue.
miscEye icon Note

If your bot doesn't post any text with the attachment, the first attachment's text will become that message's text. We'll include attachment details in the response as well.

2. Add a filter step

Add a filter step, so the Zap only continues if a Slackbot message triggers the Zap.

  • In the Zap editor, click to open the filter step.
  • In the Filter setup & testing section:
      • In the Choose field, select the Slack User Name field.
      • In the Choose condition dropdown, select (Text) Exactly matches. 
      • In the Enter text or insert data, write the name of the Slack Bot.
  • Click Continue. Based on the selected trigger sample, you can test if your Zap would have continued under your filter conditions.
  • Click Continue to finish setting up your Zap.

Now, you can map your Slack attachment fields in your remaining action steps. Learn more about using Slack in the Zapier Community.

Extract an attachment from Slack user messages

You can extract message attachments from messages sent by other Slack users in your workspace to use in subsequent Zap steps.

1. Add a Slack trigger step

  • In the Zap editor, click to open the Trigger step.
  • In the Choose app & event section, search for and select Slack.
  • Click the Event dropdown menu and select New Message Posted to Channel. 
  • In the Set up trigger section:
    • Click the Channels dropdown menu and select the channel you want to trigger from.
    • Click the Trigger for Bot Messages? dropdown menu and select No.
  • Click Continue.
  • Click Test & Review. If the step is successful, you’ll see sample data from your recent Slack messages.
  • Click Continue.
miscEye icon Note

If you select No from the Trigger for Bot Messages? dropdown menu, you won’t see info about the message attachment.

2. Add a Delay step

You must add a 1 minute delay to your Zap. This allows enough time to extract all message attachment info.  

  • In the Zap editor, click to open the Action step.
  • In the Choose app & event section, search for and select the Delay app that will trigger the Zap.
  • Click the Event dropdown menu and select Delay For.
  • Click Continue.
  • In the Set up action section:
    • Time Delayed For (value): 1
    • Time Delayed For (unit):Select minutes.
  • Click Continue.
  • Click Test action.

3. Add a Slack Find Message step

  • In the Zap editor, click to open the Action step.
  • In the Choose app & event section, search for and select Slack.
  • Click the Event dropdown menu and select Find Message.
  • Click Continue.
  • In the Search Query field, map the permalink field from step 1. This field identifies your Slack message.
  • Click Continue.
  • Click Test action. If the step is successful, you’ll see sample data from your Slack message in Step 1. If the message contains attachments, the sample data will include an attachments field. 
  • Click Continue to finish setting up your Zap.

 

miscEye icon Note

  • Info from the attachment field will vary. Learn more about when Slack previews won't display.
  • If your bot doesn't post any text with the attachment, the first attachment's text will become that message's text. We'll include attachment details in the response as well.

 

Now, you can map your Slack attachment fields in your remaining action steps. Learn more about using Slack in the Zapier Community.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How to get started with Skool on Zapier
  • How to get started with Zoho Show on Zapier
  • How to use Stripe Payment Links with Zapier
  • How to get started with Feathery on Zapier
  • How to get started with Front on Zapier

Copyright 2025 – OBZ-Zapier.

Knowledge Base Software powered by Helpjuice

Expand