This n8n workflow empowers users to manage AWS S3 buckets and files using natural language via Slack or chat platforms. Equipped with an OpenAI-powered Agent and integrated audit logging to Google Sheets, it supports operations like listing buckets, copying/deleting files, managing folders, and automatically records every action for compliance and traceability.
This workflow is built for:
Users don’t need AWS Console or CLI access — just send a message like “Copy file from dev to prod”.
This workflow turns natural chat input into automated AWS S3 actions using an OpenAI-powered AI Agent in n8n.
ListBuckets
ListObjects
CopyObject
DeleteObject
ListFolders
CreateFolder
AddAuditLog
:
Webhook Trigger
OpenAI Agent
gpt-4
or gpt-3.5-turbo
AddAuditLog
call.AWS S3 Nodes
getAll: bucket
getAll: file
copy: file
delete: file
getAll: folder
create: folder
Google Sheets Node
AWS S3 Audit Logs
Append or Update Row
timestamp
, tool
, status
, chat_prompt
, parameters
, user_name
, tool_call_reasoning
Agent Tool Definitions
AddAuditLog
as a 7th tool.Feature | Customization Tip |
---|---|
🌎 Multi-region S3 | Let users include region in the message or agent memory |
🛡️ Restricted actions | Use memory/user ID to limit delete/copy actions |
📁 Folder filtering | Extend ListObjects with prefix/suffix filters |
📤 Upload file | Add PutObject with pre-signed URL support |
🧾 Extra logging | Add IP, latency, error trace to audit logs |
📊 Reporting | Link Google Sheet to Looker Studio for audit dashboards |
🚨 Security alerts | Notify via Slack/Email when DeleteObject is triggered |