This article presents possible use cases and corresponding sample flows. These can be a helpful jumping off point as you plan your implementation.
A developer is building an AI coding assistant that answers questions about Wix APIs. When a user asks how to do something, the assistant searches the docs and uses the results as context to generate an accurate answer.
Your app must be authorized to call the Igor Docs Search API.
Use this flow when you want to pass search results directly to an LLM without additional processing.
"create a product".document_type:
content string directly as context to your LLM alongside the user's question.Note: Use lines_in_each_result to keep results concise and stay within your LLM's context window. The endpoint interleaves results in a method, method, article, article repeating pattern so the LLM always receives both reference and conceptual content, regardless of individual relevance scores.
Use this flow when you need programmatic control over which results to use — for example, to filter, re-rank, or display results in a UI.
results array. Each entry includes:
title — display name of the doc entrycontent — truncated or full content depending on lines_in_each_resulturl — link to the full documentation pagerelevance_score — use this to filter out low-confidence results (e.g. below 0.5)kb_name — identifies the source knowledge base (e.g. SDK_METHODS_KB_ID)relevance_score or kb_name as needed for your use case.Last updated: 12 July 2026