Skip to main content
POST
AI Summary
You are viewing the standard endpoint which returns a complete JSON response. Generate AI-powered summaries from search result documents. The AI Summary endpoint works in tandem with the Search endpoint: first execute a search, then pass the search results as sources to generate a concise summary with citations.

Workflow

Step 1: Execute a search Call the Search endpoint and extract from the response:
  • QueryId → use as the queryId parameter
  • TypedDocuments[].Fields.Id.Value → use as the id for each source
  • Source fields → prefer Title and Content when those fields are available
Step 2: Generate the summary Pass the extracted values to this endpoint along with your query and source configuration. Send no more than 5 sources.

Feature availability

answerLength and customPrompt are in limited availability. These options are currently in an early test phase and are only enabled for select customers running on specific servers. They are not active by default, so supplying these values will not change the generated output unless the features have been enabled for your account.To discuss enabling them for your setup, contact your account manager and share your customer ID and engine ID.
includeCitations controls inline citation links in the summary text. When true, the model adds numbered Markdown links (e.g. [1](https://example.com/page)) directly inside summary for each cited source. When false, the summary is plain text with no inline links. This applies to both the standard and streaming endpoints. summarySourceUrls is always returned regardless of this flag.

Tagging requests for analytics

The optional tags field labels the context a summary was requested from. Tags are stored on the analytics events for the request and do not change the summary. They work on both the standard and streaming endpoints. If you built AI Mode yourself, see Tagging AI Mode requests for the tag that makes its requests count as AI Mode.
A request is never rejected because of its tags. Instead, the tags are sanitized:
  • Each tag is lower-cased, and characters other than a–z, 0–9 and _ are removed. This also removes surrounding whitespace.
  • Each tag is cut to 32 characters.
  • Empty tags, duplicate tags and entries that are not strings are dropped.
  • Only the first 5 tags are kept.
  • A tags value that is not an array is ignored.

Authorizations

Authorization
string
header
required

SiteKey authentication. Pass the full value including the SiteKey prefix: SiteKey <base64(customerId:engineId:searchKey)>. Example: SiteKey dGVzdDoxMjM0NTY3Ojk4NzY1.

Path Parameters

customerId
integer
required

Your Cludo account ID.

engineId
integer
required

Search engine ID.

Body

application/json
query
string
required

Original user query string from search (for context and analytics).

queryId
string
required

Must equal QueryId from the search response that produced sources.

sources
object[]
required

One entry per result row to fold into the summary (typically the checked results on the SERP). Include at least three sources and no more than five.

Maximum array length: 5
Example:
language
string

ISO-639-1 or simple locale code for answer language (e.g. en, da).

answerLength
enum<string>

comprehensive for longer explanations; concise for shorter summaries. Limited availability: this feature is currently in an early test phase and is only enabled for select customers on specific servers. It is not active by default, so the value has no effect unless it has been enabled for your account. Contact your account manager (with your customer ID and engine ID) to discuss enabling it.

Available options:
comprehensive,
concise
customPrompt
string

Optional extra instructions (e.g. “focus on steps”). Limited availability: this feature is currently in an early test phase and is only enabled for select customers on specific servers. It is not active by default, so the value has no effect unless it has been enabled for your account. Contact your account manager (with your customer ID and engine ID) to discuss enabling it.

includeCitations
boolean

When true, the summary includes inline Markdown citation links (e.g. [1](url)) for each cited source, directly inside the summary text. When false (default), the summary is plain text with no inline links. Applies to both the standard and streaming endpoints. summarySourceUrls is returned either way, independent of this flag.

tags
string[]

Labels naming the context the summary was requested from, recorded on the analytics events for the request. If you built AI Mode yourself, see the AI Mode section of the AI Integration Guide for the tag to send. Tags never cause a request to be rejected. Instead they are sanitized: each tag is lower-cased, characters other than a–z, 0–9 and _ are removed, and the result is cut to 32 characters. Empty tags, duplicates and entries that are not strings are dropped, and only the first 5 tags are kept. A value that is not an array is ignored.

Maximum array length: 5
Maximum string length: 32
Example:

Response

AI Summary generated successfully.

value
object