{"uid":"cap_TJ_TSxtp9W2FEEBIaDnuN","slug":"npc-dialogue-template-selector-d99ff2c4","name":"NPC Dialogue Template Selector","description":"Selects and fills a small declared dialogue template using a caller-supplied seed, NPC name, intent, tone, and facts. It produces a reproducible writing prompt, not model-generated prose, lore verification, localization, or a complete conversation system.","url":"https://gaming.halowerk.com/v1/npc-dialogue-gen","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":256,"minLength":1,"description":"Stable seed used only for deterministic template selection."},"tone":{"enum":["warm","formal","wary","urgent","dry"],"type":"string"},"facts":{"type":"array","items":{"type":"string","maxLength":512,"minLength":1,"description":"A fact that may be surfaced verbatim."},"maxItems":20,"minItems":1},"intent":{"enum":["greet","warn","offer_quest","trade","refuse"],"type":"string"},"npc_name":{"type":"string","maxLength":128,"minLength":1},"player_name":{"type":"string","maxLength":128,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cSMD3AbY7clpmeXBVNr7a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Selects and fills a small declared dialogue template deterministically from seed, NPC name, intent, tone, and facts to produce a reproducible writing prompt for NPC speech.","exampleAgentPrompt":"Generate a warm greeting dialogue prompt for my NPC named Elder Maren addressing the player Kael — use the seed 'village-intro-42', and include these facts: 'she has lived here 80 years' and 'the harvest was good this season'.","exampleUseCases":[{"title":"Quest giver NPC opening line","prompt":"Create an urgent quest-offer dialogue prompt for my NPC Captain Voss addressing player Aria — seed it with 'patrol-quest-07', include facts 'bandits attacked the north road' and 'three guards are missing', and use a formal tone."},{"title":"Wary guard warning dialogue","prompt":"I need a wary warning dialogue prompt for a gate guard NPC named Thorn talking to player Dex — seed 'gate-warn-19', tone should be wary, and include the facts 'strangers have been causing trouble' and 'curfew starts at dusk'."},{"title":"Dry-tone merchant trade offer","prompt":"Generate a dry-toned trade dialogue prompt for my merchant NPC called Brix speaking to player Sable — seed 'shop-offer-33', intent is trade, with facts 'rare herbs are in stock' and 'prices went up last week'."}],"resultDescription":"A reproducible, filled dialogue writing prompt string derived from a declared template, seeded for determinism. The output is a prompt scaffold — not AI-generated prose — containing the NPC name, player name, tone-appropriate phrasing, and surfaced facts, suitable for use as input to a writing or narration step.","failureModes":["Invalid or missing seed causes template selection failure","Unsupported tone or intent enum value returns a validation error","Facts array exceeding 20 items or individual fact exceeding 512 characters rejected","Missing required fields (seed, npc_name, intent, tone, facts) returns 400 error","Payment not provided or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible NPC dialogue prompts seeded for consistency across game sessions — particularly when you want to template-fill dialogue rather than invoke a full language model. Ideal for game pipelines that need lightweight, cheap, and predictable prompt scaffolding without lore verification or localization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:30:05.443Z","isFirstParty":false}