# Download files in Chat

**URL:** <https://community.n8n.io/t/download-files-in-chat/219612>\
**Category:** Questions\
**Created:** [November 11, 2025, 7:32am UTC](https://community.n8n.io/t/download-files-in-chat/219612 "2025-11-11T07:32:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Flagg](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@James\_Flagg](https://community.n8n.io/u/James_Flagg)\
**Post date:** [November 11, 2025, 7:32am UTC](https://community.n8n.io/t/download-files-in-chat/219612/1 "2025-11-11T07:32:08Z")

</div>

I have a chatbot running in n8n. It utilizes an AI agent with tools, including a tool to download binary content through an API. It can retrieve the file content with no issue, creating a binary data object which I can confirm in the execution trace. However, I need to present the user with a link or button by which they can download the content as a file, to their own PC. I’m not seeing a way to do this. If there is perhaps a function which could return a download link, which could then be included in the chat response, that should be sufficient.

---

<div class="post-metadata">

**Author:** ![achamm](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/achamm/32/143734_2.png) [@achamm](https://community.n8n.io/u/achamm)\
**Post date:** [January 19, 2026, 11:51pm UTC](https://community.n8n.io/t/download-files-in-chat/219612/2 "2026-01-19T23:51:48Z")

</div>

To provide file downloads from your chatbot, you’ll need to create a webhook endpoint that serves the file with proper download headers. Here’s the approach:

• Set up a \*\*Webhook\*\* node to receive download requests with a file ID parameter

• Use the \*\*Respond to Webhook\*\* node with these headers:

- `Content-Disposition: attachment; filename=“your-file.ext”`

- Set the response body to your binary data

• Store the binary data temporarily (in memory or database) with a unique ID

• Return a download URL in your chat response like: `[https://your-n8n-url/webhook/download?fileId=123\`](https://your-n8n-url/webhook/download?fileId=123%5C%60)

Check out this [n8n.io]( [Respond with file download to incoming HTTP request | n8n workflow template](https://n8n.io/workflows/1920-respond-with-file-download-to-incoming-http-request) ) workflow template that demonstrates exactly how to respond with file downloads. The [community.n8n.io]( [How to create download link with file name](http://community.n8n.io/t/how-to-create-download-link-with-file-name/39692) ) discussion also shows how to set dynamic filenames using the Content-Disposition header.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 27, 2026, 7:09am UTC](https://community.n8n.io/t/download-files-in-chat/219612/3 "2026-01-27T07:09:24Z")

</div>

Closed on January 27, 2026, 7:09am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
