Add set answer
Add a set answer to the knowledge base: a question, or a few ways of asking it, and the business's exact answer. Use it for approved wording the agent must give as written, such as a support reply, a compliance line or the owner's own answer, instead of pasting that wording into the system prompt. A set answer is always kept as one passage, never split, and the quality checks never drop it. A knowledge search shows the agent its questions, never its wording; when it answers what the person asked, the agent calls give_set_answer and the platform puts the exact wording in the reply, so the model never retypes it: in a chat, an email or a message the reply is the whole answer with its links and closing line, and nothing else; on a call the words are spoken without links, a long one in parts of whole sentences, asking whether the caller would like the rest. A set answer for a different question gets an ordinary answer. An agent on the speech-to-speech call engine has no give_set_answer and is told to give the wording word for word itself. Change it with update_set_answer and remove it with delete_kb_source. The first source on an agent adds the search_knowledge_base tool. Embedding is metered like add_text_kb_source.
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/add_set_answer" \ -H "Content-Type: application/json" \ -d '{ "questions": [ "string" ], "answer": "string", "agent": "string" }'{}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}Add plugin POST
Add a PLATFORM PLUGIN as a finished HTTP tool, a paid third-party capability that runs on Vertical AI's account, not the customer's. The tool arrives fully authored: URL, headers, input schema, response handling and description are already written, and the API key resolves from a platform variable, so nothing needs setting up afterwards. Each call is metered to the workspace at the plugin's rate and itemised on the bill. Prefer this over hand-building an HTTP tool against Google Maps: a hand-built one needs a key pasted in as a secret variable and reproduces none of the tuned error handling.
Add site lookup POST
Add a live website lookup tool that reads the business's own website during a call. Describe in plain English what the agent should look up; the right endpoint for the site is authored automatically and wired as an HTTP tool. Pass `siteUrl` only the first time (when the agent has no connected website yet), after that it reuses the connected site.