Skip to main content

Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack

Workflow preview

Workflow preview
100%
Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered AWS S3 Manager with Audit Logging in n8n (Slack/ChatOps Workflow) This n8n workflow empowers users to manage AWS S3 buckets and files using natural language via Slack or chat platfo...

Best for

  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.awss3tool, n8n-nodes-base.googlesheetstool, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.

Original n8n.io source

1.1 Workflow description

Title
Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack
Workflow name
Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack

AI-Powered AWS S3 Manager with Audit Logging in n8n (Slack/ChatOps Workflow)

> 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.

👥 Who’s it for

This workflow is built for:

  • DevOps engineers who want to manage AWS S3 using natural chat commands.
  • Technical support teams interacting with AWS via Slack, Telegram, etc.
  • Automation engineers building ChatOps tools.
  • Organizations that require audit logs for every cloud operation.

Users don’t need AWS Console or CLI access — just send a message like “Copy file from dev to prod”.

⚙️ How it works / What it does

This workflow turns natural chat input into automated AWS S3 actions using an OpenAI-powered AI Agent in n8n.

🔁 Workflow Overview:

  1. Trigger: A user sends a message in Slack, Telegram, etc.
  2. AI Agent:
    • Interprets the message
    • Calls one of 6 S3 tools:
      • ListBuckets
      • ListObjects
      • CopyObject
      • DeleteObject
      • ListFolders
      • CreateFolder
  3. S3 Action: Performs the requested AWS S3 operation.
  4. Audit Log: Logs the tool call to Google Sheets using AddAuditLog:
    • Includes timestamp, tool used, parameters, prompt, reasoning, and user info.

🛠️ How to set up

Step-by-step Setup:

  1. Webhook Trigger

    • Slack, Telegram, or custom chat platform → connects to n8n.
  2. OpenAI Agent

    • Model: gpt-4 or gpt-3.5-turbo
    • Memory: Simple Memory Node
    • Prompt: Instructs agent to always follow tool calls with an AddAuditLog call.
  3. AWS S3 Nodes

    • Configure each tool with AWS credentials.
    • Tools:
      • getAll: bucket
      • getAll: file
      • copy: file
      • delete: file
      • getAll: folder
      • create: folder
  4. Google Sheets Node

    • Sheet: AWS S3 Audit Logs
    • Operation: Append or Update Row
    • Columns (must match input keys):
      • timestamp, tool, status, chat_prompt, parameters, user_name, tool_call_reasoning
  5. Agent Tool Definitions

    • Include AddAuditLog as a 7th tool.
    • Agent calls it immediately after every S3 action (except when logging itself).

✅ Requirements

  • n8n instance with AI Agent feature
  • OpenAI API Key
  • AWS IAM user with S3 access
  • Google Sheet with required columns
  • Chat integration (Slack, Telegram, etc.)

🧩 How to customize the workflow

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - AWS S3 Manager Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 4 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 5 - Get many buckets in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 6 - Get many files in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 7 - Copy a file in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 8 - Delete a file in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 9 - Get many folders in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 10 - Create a folder in AWS S3

Type / Role
n8n-nodes-base.awsS3Tool - awsS3Tool
Config choices
Version 2

Block 11 - Append or update row in sheet in Google Sheets

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack
Complexity advanced
Nodes 16
Categories AI Chatbot
Author Trung Tran
Published 15 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8586/8586.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Manage AWS S3 with GPT-4 agent and Google Sheets audit logging via Slack do?

AI Powered AWS S3 Manager with Audit Logging in n8n (Slack/ChatOps Workflow) This n8n workflow empowers users to manage AWS S3 buckets and files using natural language via Slack or chat platfo...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot use case.