Create managed sitemap
POST
Create managed sitemap

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

markdownConversion
object

When enabled, HTML is automatically converted to markdown to generate better chunks.

llmBasedChunks
object

When enabled, an LLM groups the content into logical sections by topic instead of splitting it on a fixed size. Best for complex documents covering varied topics.

llmGeneratedQ
object

When enabled, an LLM will be used to generate a question based on the document context and specific chunk, then prepend it to the chunk. This enhances retrieval by aligning chunks with potential user queries.

llmContentSummarization
object

When enabled, an LLM summarizes and rewrites the content, removing unnecessary information and focusing on important parts to optimize for retrieval. Limited to 15 rows per table upload.

llmPrependContext
object

When enabled, an LLM generates a context summary based on the document and chunk context, and prepends it to each chunk. This improves retrieval by providing additional context to each chunk. Note: If both llmGeneratedQ and llmPrependContext are set to true, llmGeneratedQ takes precedence, and the context summarization will not be applied.

singleChunk
object

When enabled, the whole document is stored as a single chunk, so retrieval returns it in full. Documents above the embedding model input limit (about 30,000 characters) are split into chunks as usual. Takes precedence over llmBasedChunks.

Body

sitemapURL
string
required

The HTTPS URL of the sitemap to read. A bare site URL works too — when it does not end in .xml, /sitemap.xml, /sitemap_index.xml and /sitemap/sitemap.xml are probed in turn.

patterns
object

Which of the pages the sitemap lists it keeps. Matching is case-insensitive and unanchored: a pattern with no * matches any URL containing it as a substring (/blog/), while * matches any run of characters (*/tag/*, *.pdf).

refreshRate
enum<string>
default:"never"

How often the sitemap is re-read to add the pages it newly lists and remove the ones it no longer does. Its pages are re-crawled on the same schedule.

Available options: daily, weekly, monthly, never
metadata
object[]

Metadata tags attached to the sitemap and to every page it imports, used to filter knowledge base retrieval at runtime.

folderID
string

The ID of the Knowledge Base folder to file the sitemap and the pages it imports under. Omit to create them at the top level.

Response

202 - application/json

Returns the sitemap document with status PENDING; its pages are imported after the response, so fetch the document by ID to read its final status.

document
object
required

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.