{"uid":"cap_Hw-RvskpVk61w5FkBuF_h","slug":"habits-insights-habit-intelligence-insights-27265415","name":"habits.insights — Habit Intelligence Insights","description":"Summarised insights for agent workflows.","url":"https://api.mydev-tools.tech/agent/v1/habits/insights?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["habits"],"properties":{"habits":{"type":"array","items":{"type":"object","required":["name","completion_rate","current_streak","best_streak"],"properties":{"name":{"type":"string"},"risk_score":{"type":"number","maximum":1,"minimum":0},"best_streak":{"type":"integer","minimum":0},"average_mood":{"type":"number","maximum":10,"minimum":1},"energy_trend":{"enum":["rising","stable","falling"],"type":"string"},"current_streak":{"type":"integer","minimum":0},"completion_rate":{"type":"number","maximum":1,"minimum":0},"mood_correlation":{"type":"number","maximum":1,"minimum":-1}}},"maxItems":25,"minItems":1},"locale":{"type":"string"},"persona":{"type":"string"},"horizon_days":{"type":"integer","default":35,"maximum":180,"minimum":7}},"description":"Caller-supplied habit summaries. Stateless: no identifier of any stored human user is accepted or resolved. Batch habits into one call — the price is per request, not per habit.","additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"watchouts":["Single-habit sample: correlations are indicative, not significant."],"highlights":["Rising energy trend correlates with completion above 0.7."],"recommendations":["Add a second habit to enable cross-habit correlation."],"aggregate_summary":{"risk_level":"low","habits_tracked":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mG137ee0AJuRN_-XYAUXE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI-driven insights from user habit data, surfacing patterns, trends, and actionable intelligence about behavioral habits.","exampleAgentPrompt":"Look at my habit tracking data from the last 30 days and give me the key insights — what patterns are emerging, which habits are sticking, and where am I struggling?","exampleUseCases":[{"title":"Monthly habit review for a user","prompt":"It's end of month — pull insights from my habit log for October and tell me which habits I'm building successfully versus which ones are falling apart."},{"title":"Identifying consistency patterns","prompt":"Look at my exercise and meditation habits over the last 90 days and surface any patterns in when I'm most consistent versus when I tend to skip."},{"title":"Behavioral intelligence for a wellness coach","prompt":"I have habit data for my client who's been tracking sleep, diet, and movement for 8 weeks — generate insights that show what behavioral patterns are emerging so I can adjust their coaching plan."}],"resultDescription":"Returns AI-generated insights derived from habit data, including identified patterns, consistency trends, behavioral observations, and potentially actionable recommendations based on the submitted habit records.","failureModes":["Insufficient habit data provided — not enough records to generate meaningful insights","Malformed or missing required fields in the request body","Payment not completed or USDC balance insufficient (x402 payment required)","Habit data format not recognized or unparseable","Service temporarily unavailable or rate limit exceeded"],"whenToPreferThis":"Choose this endpoint when you need to extract meaningful intelligence and patterns from existing habit data rather than creating a plan or performing raw analysis. It is best suited for surfacing trends, behavioral summaries, and key takeaways — as opposed to habits.analyze (raw analysis) or habits.plan (plan generation). Use it when the user wants to understand what their habit history means.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:41:42.361Z","isFirstParty":false,"canonicalSlug":"habits-insights-habit-intelligence-insights-27265415"}