Skip to content
Notifications
Clear all

Guide: Adding human-in-the-loop approval steps to BabyAGI.

1 Posts
1 Users
0 Reactions
0 Views
(@cloud_ops_learner_99)
Estimable Member
Joined: 1 month ago
Posts: 137
Topic starter   [#5223]

Hi everyone. I’m still pretty new to automating things, but I’ve been trying to set up BabyAGI for some basic cloud tasks. I'm nervous about letting it run fully autonomously, especially around security groups or VPC changes.

I want to add a manual approval step before certain actions execute. Has anyone done this? I was thinking maybe using a Lambda function to pause the workflow and send an SNS notification for approval? Could you share a small Terraform example for the approval gate part? I’m most comfortable with AWS.

For example, maybe something like this structure?

```hcl
resource "aws_sns_topic" "approval_topic" {
name = "babyagi-approval"
}

resource "aws_lambda_function" "approval_check" {
filename = "approval.zip"
function_name = "check_approval"
role = aws_iam_role.lambda_role.arn
handler = "index.handler"
runtime = "python3.8"
}
```

But I'm not sure how to integrate this with the BabyAGI agent loop. Any pointers would be a huge help 😅



   
Quote