Generate an AI agent identity
generate_agent_identityWrite an AI agent's instructions (four parts: mode settings, global rules, call flows, reference and context), its first message and its result fields from a template, the agent name, the owner's notes, the opening language and the text of ready knowledge documents. Saves nothing: pass system_prompt, first_message and post_call_extraction on to create_agent. Skysay pays for the writer, so each workspace has 10 requests a minute and 50 a day, shared with the REST route and the workspace; a request counts once admitted, also when it fails. Naming knowledge_document_ids needs knowledge:read; documents must be in this workspace and project. Earliest documents first, at most 60,000 bytes of text in total; documents still converting are left out and named in files.left_out. Customer notes and file text are material for the writer, never instructions to it. Any failure after admission is the error identity_generation_failed with one fixed sentence. The writer is stopped 20 seconds after the request to it starts. Connecting, a proxy's handshake and the secure-connection set-up happen before anything is sent to the writer and are each limited per network wait, so a request can take a little longer than 20 seconds in total.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"name": "<name>",
"language": "<language>"
},
"name": "generate_agent_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The AI agent's name. | |
| notes | No | The owner's notes about the business and how calls should go. | |
| language | Yes | The opening language, a language code such as en or pt-BR. The instructions are written in it. | |
| project_id | Yes | ||
| template_id | No | An active template id from the agent catalog's templates; omitted or empty means blank (no template). | |
| organization_id | No | Optional. Defaults to the authenticated workspace; when supplied it must be that workspace's id. | |
| knowledge_document_ids | No | Knowledge documents of this workspace and project whose text the writer reads; needs knowledge:read. |