Ai agent to return files via chat

Hello everyone,
I am trying to get an AI agent to return a file via chat. I have a sub-workflow that uses a webhook to respond with a file and a Content-Disposition header, which works when triggered manually in a browser. However, when I connect this webhook to an AI agent using an HTTP node, the agent interprets the file data as text in the chat response.
My goal is to create a Slack bot that returns a file attachment when a specific tool is called. Before moving to Slack, I’m testing this in the chat node. Is the chat node the right approach, or should I consider a different method?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Thanks for the advice. I was planning to test the Slack integration behavior at the end, after designing everything. But this helps me realize I should test it first instead.

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