{"uid":"cap_fjoQo0AZD3R_18pocfMHH","slug":"animica-route-ai-agent-action-selector-c6e71ee4","name":"Animica Route — AI Agent Action Selector","description":"Give a goal and the actions available to you; get back the single best action, its arguments, a confidence and a reason. The chosen action is constrained by schema enum to your list, so it can never name a tool you do not have. Built for the decision an agent makes before spending a frontier-model call — including the honest answer that it should escalate. Priced per call. For high-volume use, buy prepaid credits (POST /x402/credits/buy) and send X-Animica-Credits on each request — no settlement, no gas, no per-call payment round trip. Paying in ANM on the animica:1 lane is also ~25% cheaper because we sponsor no gas there.","url":"https://animica.dev/x402/route","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"goal":{"type":"string","description":"what the agent is trying to achieve"},"actions":{"type":"array","description":"2..20 actions: {name, description, parameters?}"},"context":{"type":"string","description":"extra state the decision depends on"}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001784","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.001794/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001794","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001794","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-IIsM6jw2UkbXlqasiipg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001794","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Given a goal and a list of possible actions, uses AI to select the best action, its arguments, confidence, and reasoning for an agent to execute next.","exampleAgentPrompt":"I'm trying to achieve the goal 'book a flight for the user' and I have these 5 possible actions: search_flights, check_availability, reserve_seat, process_payment, send_confirmation — each with their descriptions and parameters. Which action should I call next, what arguments should I pass, and how confident are you?","exampleUseCases":[{"title":"Agentic task planner for customer support bot","prompt":"My support agent has the goal 'resolve user refund request' and can perform these 4 actions: lookup_order, verify_eligibility, initiate_refund, send_email — with their descriptions. Which action should it take first and what arguments should it pass?"},{"title":"Multi-step coding assistant action routing","prompt":"My coding agent is trying to 'fix a failing unit test' and has access to these actions: read_file, run_tests, edit_file, commit_changes — all described with their parameters. Tell me which action to call next, the arguments, your confidence, and your reasoning."},{"title":"E-commerce agent next-step decision","prompt":"My shopping agent's goal is 'complete the user's checkout' and the available actions are: get_cart, apply_coupon, charge_card, send_receipt. Given that the cart has already been fetched, which action should it take next and with what arguments?"}],"resultDescription":"A JSON object containing: the name of the selected action, the arguments to pass to it, a confidence score (0–1), a natural-language reason explaining the choice, a boolean escalate flag indicating whether the agent should hand off to a human, and the name of the model that made the decision.","failureModes":["Missing required 'goal' field returns a 400-style error","Fewer than 2 or more than 20 actions in the actions array may be rejected","Malformed action objects without a name or description may cause low-confidence or error responses","Payment failure (402) if the x402 USDC payment of ~$0.005452 is not included or rejected","Ambiguous goal/context may result in low confidence scores or escalate=true","Model unavailability on Animica's backend could cause 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call AI decision layer that selects among 2–20 discrete actions for an agentic workflow — especially when you don't want to manage your own LLM API key, need a fast action-routing step with confidence scoring and escalation signals, and want to pay only per inference via x402/USDC. Prefer alternatives if you need to generate free-form text, stream responses, or require a specific model provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:03.904Z","isFirstParty":false}