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

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

Ready for 3.0

by Trung Tran ✓ · 158 views · created 2025-09-16 · DevOps, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Rarely used nodes in this template: n8n-nodes-base.awsLambdaTool

Nodes used (7)

OpenAI Chat ModelSimple MemoryAI AgentAWS LambdaHTTP RequestGoogle Sheets

What it does

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

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.