feat(slack): add file attachment support to slack webhook trigger#3151
Merged
waleedlatif1 merged 4 commits intostagingfrom Feb 6, 2026
Merged
feat(slack): add file attachment support to slack webhook trigger#3151waleedlatif1 merged 4 commits intostagingfrom
waleedlatif1 merged 4 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryAdded file attachment support to Slack webhook trigger, matching the established pattern from Gmail trigger. Slack events now extract Key changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Slack as Slack API
participant Webhook as Webhook Handler
participant Utils as formatWebhookInput
participant Download as downloadSlackFiles
participant Security as validateUrlWithDNS
participant Fetch as secureFetchWithPinnedIP
participant Processor as processTriggerFileOutputs
participant Attachment as WebhookAttachmentProcessor
participant Storage as uploadFileFromRawData
participant Workflow as Workflow Execution
Slack->>Webhook: POST /webhook (event with files)
Webhook->>Utils: formatWebhookInput(webhook, workflow, body)
alt Has files && includeFiles && botToken
Utils->>Download: downloadSlackFiles(rawFiles, botToken)
loop For each file (max 10)
Download->>Download: Validate file.url_private host
Download->>Download: Check file size <= 50MB
Download->>Security: validateUrlWithDNS(url_private)
Security-->>Download: resolvedIP
Download->>Fetch: secureFetchWithPinnedIP(url, resolvedIP, botToken)
Fetch-->>Download: file arrayBuffer
Download->>Download: Verify downloaded size
Download->>Download: Convert to base64 string
end
Download-->>Utils: files array [{name, data: base64, mimeType, size}]
end
Utils-->>Webhook: {event: {files, hasFiles, ...}}
Webhook->>Processor: processTriggerFileOutputs(input, outputSchema)
Processor->>Processor: Detect outputs.event.properties.files (type: file[])
Processor->>Attachment: processAttachments(files)
loop For each file
Attachment->>Storage: uploadFileFromRawData({name, data, mimeType})
Storage->>Storage: Convert base64 to Buffer
Storage->>Storage: Upload to execution storage
Storage-->>Attachment: UserFile
end
Attachment-->>Processor: UserFile[]
Processor-->>Webhook: Processed trigger input
Webhook->>Workflow: Execute with file attachments as UserFile[]
|
6fe1d1c to
bce7d5a
Compare
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@cursor review |
waleedlatif1
added a commit
that referenced
this pull request
Feb 6, 2026
* feat(skills): added skills to agent block * improvement(skills): audit fixes, docs, icon, and UX polish * fix(skills): consolidate redundant permission checks in POST and DELETE * more friendly error for duplicate skills in the same workspace * fix(executor): loop sentinel-end wrongly queued (#3148) * fix(executor): loop sentinel-end wrongly queued * fix nested subflow error highlighting * fix(linear): align tool outputs, queries, and pagination with API (#3150) * fix(linear): align tool outputs, queries, and pagination with API * fix(linear): coerce first param to number, remove duplicate conditions, add null guard * fix(resolver): response format and evaluator metrics in deactivated branch (#3152) * fix(resolver): response format in deactivated branch * add evaluator metrics too * add child workflow id to the workflow block outputs * cleanup typing * feat(slack): add file attachment support to slack webhook trigger (#3151) * feat(slack): add file attachment support to slack webhook trigger * additional file handling * lint * ack comment * fix(skills): hide skill selection when disabled, remove dead code --------- Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
event.filesmetadata and optionally download file contentbotTokenandincludeFilesfields to trigger config for authenticated file downloadsWebhookAttachmentProcessorpipeline →UserFile[]objects available to downstream blocksType of Change
Testing
Tested manually
Checklist