{"uid":"cap_lVezsco8ZhOg13765U7ED","slug":"xh-agents-knowledge-base-ask-97e258f8","name":"XH Agents Knowledge Base Ask","description":"Ask the XH Agents knowledge base (15 field notes on infrastructure, x402 and agent tooling)","url":"https://xhagents.xyz/api/kb/ask?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"question":{"type":"string"}}},"responseSchema":{"type":"json","example":{"matches":[{"id":"nginx-docroot-vs-source","title":"The site you are editing is not always the site you are serving","category":"devops-vps"}],"question":"nginx docroot mismatch after a build","best_match":{"id":"nginx-docroot-vs-source","solution":"Check which directory the server really serves (nginx -T plus the served file's mtime), then define one deployment step."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_07ZxWPrYQl88Sirne-Xn1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a natural-language question and returns semantically matched knowledge base entries with a best-match solution from XH Agents' curated GURU files.","exampleAgentPrompt":"Search the XH Agents knowledge base and find the best solution for this question: 'Why is my nginx server serving the wrong files after a fresh build?'","exampleUseCases":[{"title":"Debug nginx misconfiguration after deployment","prompt":"I deployed my site but nginx is still serving the old files — can you search the XH Agents knowledge base and tell me what the likely cause and fix is?"},{"title":"Find VPS setup guidance for new server","prompt":"I just spun up a new VPS and I'm not sure how to structure my deployment pipeline — can you query the XH Agents knowledge base for best practices on initial VPS configuration?"},{"title":"Resolve build-step environment mismatch","prompt":"My build succeeds locally but the server is running a different version — can you check the XH Agents knowledge base for known solutions to environment mismatch issues after a build?"}],"resultDescription":"Returns a JSON object containing a list of matching knowledge base entries (each with an ID, title, and category), the original question echoed back, and a 'best_match' object with the top entry's ID and a concrete solution string.","failureModes":["Empty or vague question returns low-confidence or no matches","Question outside the knowledge base domain returns empty matches array","Malformed request body (missing 'question' field) may return a 400 error","Payment failure via x402 results in 402 response and no answer returned","Server-side timeout if knowledge base index is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need to retrieve curated, pre-vetted technical knowledge — especially around devops, VPS, and deployment topics — rather than generating a novel answer from a language model. It is ideal when you want a structured, reproducible answer tied to a known solution ID, not open-ended generation. Prefer this over general LLM queries when auditability and solution traceability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T00:42:27.329Z","isFirstParty":false,"canonicalSlug":"xh-agents-knowledge-base-ask-97e258f8"}