Hi! I’m using n8n to process incoming chat messages from Microsoft Teams.
When a user sends a message with one or more attachments, I want to catch those attachments in my AI Agent and upload them to a SharePoint folder (where I store things like customer invoices).
But I have absolutely no clue how this should look like. Right now the AI agent is only capable to see if an attachment has been added, but it’s not able to upload it in the sharepoint tool.
There are two main problems here:
- Every attachments gets its own object: ‘attachments[0]’ ‘attachments[1]’ etc.
- How to get the message attachment download and paste it to the ai agent so it can upload it to sharepoint
Any tips or example flows would be great!
*See screenshots (sorry I erased any sensitive data). The attachment input generated by the ‘Get Chat Message1’ output.
Thanks ![]()

