How to give an AI agent current data about a place: open or closed, hours, phone

2026-12-05来源 dev.toEnglish

AI agents often answer place questions from stale data: hours that changed, a phone number that's gone, a café that closed months ago. Here's how to give an agent current facts about a business with one API call, and how to read the answer. The output below is a real run from 5 December 2026.

The call

curl -X POST https://api.voygr.tech/v1/enrich \ -H "X-API-Key: $VOYGR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"poi_name": "Tartine Bakery", "address": "600 Guerrero St, San Francisco, CA 94110", "attributes": ["open_closed", "opening_hours", "phone", "website"]}' 

The answer

"operational_status": {"status": "open", "closure_reason": null}, "status": {"existence_confidence": 0.9985}, "attributes": { "opening_hours": {"value": {"days": {"monday": [{"open": "07:30", "close": "18:00"}], "...": "..."}}, "confidence": "high"}, "phone": {"value": {"number": "+14154872600"}, "confidence": "high"}, "website": {"value": {"url": "https://tartinebakery.com"}, "confidence": "medium"} } 

How an agent should read it

  • operational_status.status comes first. It's open, closed, unknown or not_exists. If it's closed, the agent should say so instead of giving hours or booking anything. closure_reason tells you why (for example permanent or relocated).
  • existence_confidence is the score that a business with this name existed at this address at all. Below 0.5, treat the name and address as not matching.
  • Every attribute has a confidence (high, medium or low). An agent can use high-confidence values directly and say "please double-check" for the rest.
  • No guesses. When VOYGR can't verify a value, it returns null with an abstain_reason such as not_found, so the agent knows to say "I couldn't find the hours" instead of making them up.

Use it from an agent

  • Any agent with HTTP: the call above. Standard attributes (open_closed, opening_hours, phone, website, socials) cost one credit per place, however many you ask for.
  • Lists: send a list of places as pois and get a rows-by-attributes table back. Batch jobs take up to 10,000 places.
  • Anything else you'd want to know about a place (a menu item, whether it takes walk-ins) can be asked as a custom research field in plain English.

The API docs have the full reference, and a free API key is enough to try it.

原文:https://www.a8q9.cn/en/article/how-to-give-an-ai-agent-current-data-about-a-place-open-or-closed-hours-phone-634ca2.html

相关文章