You are helping me build the following AI agent workflow. ## Goal Gamify Fitness Tracking Pirate Adventure: Turns fitness logs into a pirate adventure where an AI scores your activity and routes you to specialized agents for advice. ## Specification - What it does: Turn your fitness tracking into a pirate adventure where you earn dynamic Bounty rewards for meals, workouts, or injury reports. The system fetches your current score, analyzes your activity report to assign a rating from 0-100, and calculates your new bounty amount. It then routes you to specialized agents like Chef, Samurai, Doctor, or Navigator who provide tailored advice before saving the conversation log for progress tracking. - Trigger: Run manually (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Google Sheets: stores profile bounty and activity logs - Basic LLM Chain: evaluates health reports to assign scores - OpenRouter Chat Model: provides AI scoring and role-based responses ## Known pitfalls, handle each one explicitly in your implementation 1. Google Sheets row limits can crash the script if you process too many activities at once, add a batch size limit of ten items per run. 2. Costs will spike if the Navigator agent generates long stories for every single step, so enforce a token cap on the final summary generation. ## Reference implementation https://n8n.io/workflows/13152 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/gamify-fitness-tracking-with-ai-pirate-adventure/ via usecasesforagents.com