Block 1 - When chat message received
- Type / Role
- @n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
- Config choices
- Version 1.3
This workflow is provided as-is. Please review and test before using in production.
Chat Based AWS IAM Policy Generator with OpenAI Agent Chat driven workflow that lets IT and DevOps teams generate custom AWS IAM policies via AI, automatically apply them to AWS, and send an e...
@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.httprequest, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.
Original n8n.io source> Chat-driven workflow that lets IT and DevOps teams generate custom AWS IAM policies via AI, automatically apply them to AWS, and send an email notification with policy details.
This workflow is designed for:
CreatePolicyResponse, an email is sent with policy details (name, ARN, ID, timestamps, etc.) using n8n mapping.Result: The user can chat with the AI agent, create a policy, and receive an email confirmation with full details.
Chat Trigger Node
When chat message received node to connect your preferred chat channel (Slack, MS Teams, Telegram, etc.).IAM Policy Creator Agent
IAM Policy HTTP Request
POST https://iam.amazonaws.com/ Action=CreatePolicy PolicyName={{ $json.CreatePolicyResponse.CreatePolicyResult.Policy.PolicyName }} PolicyDocument={{ $json.policyDocument }} Version=2010-05-08Email for tracking
iam:CreatePolicy. Tags when creating policies in AWS. CreateDate and UpdateDate from Unix epoch to ISO datetime before sending emails. 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.
| Workflow | Generate AWS IAM policies via chat interface with GPT-4 assistant |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | DevOps, AI Chatbot |
| Author | Trung Tran |
| Published | 12 Sept 2025 |
Use the JSON export at /data/workflows/8510/8510.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Chat Based AWS IAM Policy Generator with OpenAI Agent Chat driven workflow that lets IT and DevOps teams generate custom AWS IAM policies via AI, automatically apply them to AWS, and send an e...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.