Site AI ask
Allow AI-driven queries within a specific docs site.
Give your users a way to ask content-aware AI queries that are scoped entirely to the site’s published documents.
The response is streamed.
Authorizations
Path parameters
organizationIdstringrequired
The unique id of the organization
siteIdstringrequired
The unique id of the site
Query parameters
formatstring · enumoptionalAvailable options:
Output format for the content.
Body
questionstring · max: 512required
contextobjectoptional
You may optionally provide additional information about the context of the question. This doesn't affect the scope of the search, but GitBook may use this information to provide a better answer. Generally speaking, you should provide as much context as possible.
scopeone ofrequired
Responses
text/event-stream
cURL
JavaScript
Python
HTTP
200
Was this helpful?