Skip to main content
Loading navigation
Back to prompt library

Multi-Step Analysis and Reporting Logic

Linked challenge: AI-Powered Productivity Agent for Enterprise Cost Optimization

Prompt source

planning5 lines1 sectionsNo variables3 checklist items
Outline the Mastra AI agent's internal logic for performing a multi-step cost analysis. This should involve:
1. Using the `rag_retriever` to gather background information.
2. Using `phi3_analyzer` to process simulated raw data and identify patterns/inefficiencies.
3. Synthesizing these findings into a concise report.
Provide pseudo-code or a detailed flow diagram within the Mastra AI agent's `onMessage` or `plan` method to illustrate this process, demonstrating how the agent would chain tool calls and internal reasoning.