See llms.txt for all machine-readable content.

Back to Templates

Sync phone agent menu and hours with Decodo, Apify, DeepSeek and ElevenLabs

An AI receptionist works until the lunch price moves or you close early for a holiday. Then it quotes the old menu with confidence, and the caller finds out when the food arrives. Owners in r/restaurantowners and r/smallbusiness say so often. This rebuilds the agent's knowledge each morning from your menu, pricing and FAQ pages plus your Google Business Profile, and touches ElevenLabs only when a price or an hour changed.

Last updated: November 2026.

Quick Overview

Decodo turns each page into markdown and keeps a failed page as a placeholder. Apify reads one Google Places record (name, address, phone, website, hours, rating, review count). DeepSeek V4.1 Flash merges both sides into one document with a fingerprint built from prices and hours, compared against the newest row for that agent. When it changed, the text goes to the ElevenLabs knowledge base, the agent is patched, and you get a voice note, a summary and a spoken preview of today's hours.

How it works

  1. Daily 05:00 or Manual Sync Webhook (POST /sync-agent-knowledge) lands on Config: businessName, agentId, sourceUrls, googleMapsUrl, telegramChatId, voiceId, maxCharsPerPage, timezone, apifyActor.
  2. Split Url List sends each URL to Decodo Scrape Page, a POST to data.decodo.com/v1/scrape for universal markdown, three retries. A failed page passes an empty result.
  3. Trim Page Text keeps 6000 characters and swaps an empty page for "Page could not be loaded, ignore this source.", then Collect Pages builds one array.
  4. Google Places Lookup runs the Apify compass~crawler-google-places actor on googleMapsUrl for one place, no reviews. Keep Safe Place Fields drops the rest.
  5. Merge Sources pairs both lanes by position.
  6. Write Knowledge Doc runs DeepSeek V4.1 Flash at 0.2 temperature with Knowledge Parser: contact details, hours, parking, menu prices as stated, policies, FAQ, and what it must not promise.
  7. Get Version History reads rows for that agent_id, Only Last Version keeps one, and Knowledge Changed? compares fingerprints. A match ends at No Change Today.
  8. Upload Knowledge Text posts to the Conversational AI knowledge-base endpoint, Attach To Agent PATCHes the agent with the new knowledge_base array, and Save Version stores the fingerprint and doc id.
  9. Narrate Update, Send Update Notice and Narrate Hours Preview run together: a voice note with the change hint, a Telegram summary with the knowledge base id, and a voice note with today's hours.

Setup

  1. Header Auth credential on Decodo Scrape Page with your Web Data API key.
  2. Apify token on Google Places Lookup.
  3. ElevenLabs API key on Upload Knowledge Text, Attach To Agent and both speech nodes.
  4. Put your Conversational AI agent id in agentId. Config ships YOUR_ELEVENLABS_AGENT_ID, and nothing looks it up for you.
  5. Replace businessName, sourceUrls, googleMapsUrl (your place CID), telegramChatId, voiceId, maxCharsPerPage and timezone.
  6. Create a Data Table agent_knowledge_versions with agent_id, business_name, version_fingerprint, doc_id, changes_hint, version_date and pick it in both Data Table nodes.
  7. Telegram bot credential on the three Telegram nodes and your chat id in Config.
  8. Run the webhook once, read the summary, listen to the hours preview. Everything else is a Config edit.

Quick Answers

What about the agent's other documents?
Attach To Agent sends one item, so the PATCH replaces the whole knowledge_base list. Anything else that agent reads is lost unless you add it there too.

What if a page is down?
The scrape retries three times, then passes an empty result, so that page becomes the placeholder and the document uses the pages that answered. The Telegram notice shows the page count.

Does it rebuild the document every morning?
Only when the fingerprint changes. The Apify call still runs under its 0.5 USD cap, and unchanged prices and hours stop the run at No Change Today.

Can it answer allergen questions?
The document ends with what the agent must not promise, allergens included. DeepSeek still slips, so read a few transcripts in the first week.

Additional info

Built with n8n. Need an assessment on your business? Feel free to reach out at https://khmuhtadin.com/consultation/