Skip to main content

Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat

Workflow preview

Workflow preview
100%
Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Chat Based AWS Lambda Manager with Automated Audit Logging (GPT 4.1 mini + Google Sheet) This workflow provides a chat based AI agent to manage AWS Lambda functions. It allows users to list, i...

Best for

  • DevOps automation workflows
  • 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.chattrigger, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.awslambdatool, n8n-nodes-base.httprequesttool, n8n-nodes-base.googlesheetstool

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
Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat
Workflow name
Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat

Chat-Based AWS Lambda Manager with Automated Audit Logging (GPT-4.1 mini + Google Sheet)

> This workflow provides a chat-based AI agent to manage AWS Lambda functions. It allows users to list, invoke, get details, and delete Lambda functions, while automatically recording every action into Google Sheets for audit and compliance tracking.

Who’s it for

  • Cloud engineers and DevOps teams managing AWS Lambda functions.
  • Developers who want a simple chat interface to perform Lambda operations.
  • Compliance and operations teams needing automatic audit logs of AWS actions.

How it works / What it does

  1. A chat message triggers the AWS Lambda Manager Agent.
  2. The agent interprets user intent and calls one of the available tools:
    • Invoke Lambda Function: Runs a Lambda function with given payload.
    • List Lambda Functions: Shows all functions in the account.
    • Get Lambda Function: Retrieves details/configuration of a function.
    • Delete a Function: Removes a Lambda function permanently.
  3. After each action, the agent calls Audit Logs (Google Sheets) to record the operation type, function name, timestamp, and outcome.
  4. The agent confirms destructive actions (like delete) before execution.

How to set up

  1. Add a Chat Trigger node to start the workflow when a user sends a message.
  2. Connect it to the AWS Lambda Manager Agent node.
  3. Configure the agent with the provided system prompt to enforce rules and logging.
  4. Link the agent to the following tool nodes:
    • Invoke Lambda Function
    • List Lambda Functions
    • Get Lambda Function
    • Delete a Function
    • Audit Logs (Google Sheets with appendOrUpdate enabled)
  5. Deploy the workflow and test it with sample chat commands like “list functions” or “invoke testFunction”.

Requirements

  • AWS account with IAM credentials that have lambda:ListFunctions, lambda:InvokeFunction, lambda:GetFunction, and lambda:DeleteFunction permissions.
  • Google Sheets API connected for storing audit logs.
  • Proper region and function names configured when invoking or deleting.
  • n8n instance or automation platform that supports agent + tool integration.

How to customize the workflow

  • Add new tools: Extend with more AWS Lambda operations like Update Function Code or Publish Version.
  • Enhance logging: Include user ID, request payload, or execution results in Audit Logs.
  • Access control: Restrict delete actions to admins by adding role-based logic.
  • Multi-cloud support: Extend the agent to handle Azure/AWS/GCP serverless functions in one workflow.
  • Custom responses: Modify agent prompt to tailor tone (developer-friendly vs. business-friendly).

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 - When chat message received

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

Block 4 - Sticky Note

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

Block 5 - Sticky Note1

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

Block 6 - Sticky Note2

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

Block 7 - AWS Lambda Manager Agent

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

Block 8 - Invoke Lambda Function

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

Block 9 - List Lambda Functions

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 10 - Get Lambda Function

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 11 - Delete a Function

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 12 - Audit Logs

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

3. Summary Table

Workflow Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat
Complexity advanced
Nodes 15
Categories DevOps, AI Chatbot
Author Trung Tran
Published 16 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8623/8623.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 Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat do?

Chat Based AWS Lambda Manager with Automated Audit Logging (GPT 4.1 mini + Google Sheet) This workflow provides a chat based AI agent to manage AWS Lambda functions. It allows users to list, i...

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 DevOps, AI Chatbot use case.