Support agent from a website
This guide turns a website into a support agent that answers only from the site’s pages, links each claim to the page it came from, and refuses with your contact details when the site doesn’t have the answer.
The flow: verify the domain → set limits → discover pages → review → index → create the agent → keep it fresh.
1. Verify that you own the domain
Section titled “1. Verify that you own the domain”The platform crawls only domains a subscription has proved it controls. Start the website source with the start URL; Foundry UI creates a claim for the host and shows a token with three ways to prove ownership:
| Method | What to publish | Covers |
|---|---|---|
| DNS TXT record | lmfoundry-site-verification=<token> on the registrable domain | the domain and its subdomains |
| Meta tag | <meta name="lmfoundry-site-verification" content="<token>"> on https://<host>/ | that host only |
| Well-known file | the token in https://<host>/.well-known/lmfoundry-verification.txt | that host only |
Publish one, then choose Verify. A verified domain belongs to the subscription: any member can then add sources on it. Hosts are normalised (internationalised names to ASCII), and IP addresses, localhost and names without a public suffix are refused. A domain can’t be deleted while a source still uses it.
2. Set the crawl limits
Section titled “2. Set the crawl limits”| Setting | Default | Ceiling |
|---|---|---|
| Max pages | 200 | 2,000 |
| Max depth from the start URL | 3 | 10 (the crawler currently caps depth at 5) |
| Include and exclude path patterns | none | 50 |
You can also include PDF and DOCX files linked from the same site, and turn on AI extraction (higher cost) for every page instead of only as a fallback for pages whose text the rules can’t extract well. AI extraction needs an LLM endpoint configured for the crawler (see Configuration); without one, pages keep the rule-based text. A knowledge base has one website source.
The crawler always honours robots.txt, waits about one second between requests to the same host, stays on the verified hosts, and fetches each page at most 10 MB with a 15-second timeout. When a source reaches its page limit, the run stops.
3. Discover and review
Section titled “3. Discover and review”The first run only discovers: it fetches pages from the start URL and the sitemap and records what it found. When it finishes, the source waits for review.
In the review list you see each page with its extraction method and any reason it was skipped or flagged (blocked by robots.txt, filtered, failed, or too little text). Untick what you don’t want, select or deselect by pattern, then approve. Nothing is fetched again: the pages from discovery are committed to the knowledge base and indexed.
4. Create the agent
Section titled “4. Create the agent”Choose Create from website, pick the knowledge base, and set:
- the agent’s name and the site name it answers for
- a contact for questions the site doesn’t answer: a text, a URL or an email
The template creates an agent with strict grounding on and no tools.
5. What users get
Section titled “5. What users get”- Citations: each claim carries
[n], linking to the page it came from, and a deduplicated Sources list (title, host and path) follows the answer. - Refusal: when the site has no answer, the agent says so in the user’s language and points to your contact. An answer without a valid citation is treated the same way.
- Language: answers follow the user’s language; the platform is tested in English and Arabic, including Arabic pages.
6. Keep it fresh
Section titled “6. Keep it fresh”- Re-crawl now from the knowledge base’s website panel, or set a daily or weekly schedule.
- After the first approval, re-crawls apply automatically: only pages whose content changed are re-embedded.
- At the end of a run, selected pages that answered 404 or 410, were no longer reached, or failed three runs in a row are removed from the knowledge base, vectors included. A run cut short by the page limit removes nothing.
- To drop one page, exclude it from the website source; deleting it directly from the knowledge base is refused because the next crawl would bring it back.
Limits of v1
Section titled “Limits of v1”- Signed-in users only. A public chat widget for your website visitors isn’t part of this release.
- Pages that render their content only with JavaScript come through thin. AI extraction helps some of them; a browser-based renderer isn’t included.