Prompt Content
Implement the 'Cloud Optimizer Agent' using the Claude Agents SDK. This agent should:
1. Accept user requests for cloud cost optimization for an AI/ML workload.
2. Use Claude Opus 4.1 to analyze a simulated cloud cost report (provide a sample in the prompt context).
3. Propose concrete cost-saving recommendations (e.g., spot instances, reserved instances, S3 lifecycle policies).
4. Include a custom tool that, when invoked, 'sends_optimization_report_via_zapier(report_summary: str)' to simulate triggering an external Zapier workflow for sending an email notification or creating a task. Implement the mock `send_optimization_report_via_zapier` function.
```python
from anthropic.agents import AnthropicAgent, Tool
def send_optimization_report_via_zapier(report_summary: str) -> str:
# Simulate Zapier webhook call or API interaction
print(f"Triggering Zapier with report: {report_summary[:50]}...")
return "Optimization report sent via Zapier."
zapier_tool = Tool(
name="send_optimization_report",
description="Sends an optimization report via a Zapier workflow.",
input_schema={"type": "object", "properties": {"report_summary": {"type": "string"}}, "required": ["report_summary"]},
function=send_optimization_report_via_zapier
)
# Your agent definition will incorporate this tool and logic for analysis.
```Try this prompt
Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.
Related Prompts
Explore similar prompts from our community
Usage Tips
Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)
Customize placeholder values with your specific requirements and context
For best results, provide clear examples and test different variations