Site AI
Build conversational AI agents for your docs site.
Last updated
Was this helpful?
Build conversational AI agents for your docs site.
Last updated
Was this helpful?
Was this helpful?
Build advanced conversational AI experiences within your docs site that go beyond basic Q&A.
The ID of the previous response to continue from
OK
{
"type": "response_start",
"messageId": "text",
"task": {
"type": "respond_to_comment",
"spaceId": "text",
"changeRequestId": "text",
"commentId": "text"
}
}POST /v1/orgs/{organizationId}/sites/{siteId}/ai/response HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 440
{
"previousResponseId": "text",
"input": [
{
"role": "user",
"content": "text",
"context": {
"location": {
"spaceId": "text",
"pageId": "text"
}
}
}
],
"model": "fast",
"tools": [
{
"name": "text",
"description": "text",
"inputSchema": {
"type": "object",
"properties": {
"ANY_ADDITIONAL_PROPERTY": {
"type": "string",
"description": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}
}
],
"toolCall": {
"tool": "text",
"toolCallId": "text",
"output": {},
"summary": {
"icon": "gear",
"text": "text"
}
}
}