File-level comment for ondewo/nlu/agent.proto.
This file contains a single service Agents.
The most important messages is Agent and its most complicated field is configs.
Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way.
After you create an agent, you can add Intents, Contexts, Entity Types, Webhooks, and so on to manage the flow of a conversation and match user input to predefined intents and actions.
You can create an agent using both Dialogflow Standard Edition and Dialogflow Enterprise Edition. For details, see Dialogflow Editions.
You can save your agent for backup or versioning by exporting the agent by using the ExportAgent method. You can import a saved agent by using the ImportAgent method.
Dialogflow provides several prebuilt agents for common conversation scenarios such as determining a date and time, converting currency, and so on.
For more information about agents, see the Dialogflow documentation.
rpc CreateAgent (CreateAgentRequest) returns (Agent)Creates the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot", "default_language_code": "en", "supported_language_codes": [ "en" ], "time_zone": "Europe/Vienna", "nlu_platform": "ONDEWO", "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }' -d '{ "agent": { "display_name": "My Pizza Bot", "default_language_code": "en", "supported_language_codes": ["en"], "time_zone": "Europe/Vienna", "nlu_platform": "ONDEWO" } }' localhost:50055 ondewo.nlu.Agents.CreateAgent
rpc UpdateAgent (UpdateAgentRequest) returns (Agent)Updates the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "default_language_code": "en", "supported_language_codes": [ "en", "de" ], "time_zone": "Europe/Vienna", "nlu_platform": "ONDEWO", "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }' -d '{ "agent": { "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "supported_language_codes": ["en", "de"] }, "update_mask": { "paths": [ "agent.display_name", "agent.supported_language_codes" ] } }' localhost:50055 ondewo.nlu.Agents.UpdateAgent
rpc GetAgent (GetAgentRequest) returns (Agent)Retrieves the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "default_language_code": "en", "supported_language_codes": [ "en", "de" ], "time_zone": "Europe/Vienna", "nlu_platform": "ONDEWO", "configs": {...}, "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }' -d '{ "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent" }' localhost:50055 ondewo.nlu.Agents.GetAgent
rpc DeleteAgent (DeleteAgentRequest) returns (.google.protobuf.Empty)Deletes the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer{}' -d '{ "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent" }' localhost:50055 ondewo.nlu.Agents.DeleteAgent
rpc DeleteAllAgents (.google.protobuf.Empty) returns (.google.protobuf.Empty)Deletes all agents in the server (for development purposes only). Examples:
grpcurl -plaintext -H 'Authorization: Bearer{}' localhost:50055 ondewo.nlu.Agents.DeleteAllAgents
rpc ListAgents (ListAgentsRequest) returns (ListAgentsResponse)Lists agents in the server associated to the current user Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "agents_with_owners": [ { "agent": { "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }, "owner": { "user_id": "5aac51b8-668f-49dd-913f-cc683e56af34", "display_name": "admin", "server_role_id": 3, "user_email": "admin@ondewo.com" } } ], "next_page_token": "current_index-1" }' localhost:50055 ondewo.nlu.Agents.ListAgents
rpc ListAgentsOfUser (ListAgentsRequest) returns (ListAgentsOfUserResponse)Lists agents in the server associated to the given user Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "agents_of_user_with_owners": [ { "agent_with_owner": { "agent": { "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }, "owner": { "user_id": "5aac51b8-668f-49dd-913f-cc683e56af34", "display_name": "admin", "server_role_id": 3, "user_email": "admin@ondewo.com" } }, "project_role": { "role_id": 4, "name": "ADMIN" } } ], "next_page_token": "current_index-1" }' localhost:50055 ondewo.nlu.Agents.ListAgentsOfUser
rpc ListAllAgents (ListAgentsRequest) returns (ListAgentsResponse)Lists all agents in the server Examples:
grpcurl -plaintext -H 'Authorization: Bearer{ "agents_with_owners": [ { "agent": { "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent", "display_name": "Pizza Bot 2", "owner_id": "5aac51b8-668f-49dd-913f-cc683e56af34" }, "owner": { "user_id": "5aac51b8-668f-49dd-913f-cc683e56af34", "display_name": "admin", "server_role_id": 3, "user_email": "admin@ondewo.com" } } ], "next_page_token": "current_index-1" }' localhost:50055 ondewo.nlu.Agents.ListAllAgents
rpc AddUserToProject (AddUserToProjectRequest) returns (.google.protobuf.Empty)Adds a user with specified id to the project (agent)
rpc RemoveUserFromProject (RemoveUserFromProjectRequest) returns (.google.protobuf.Empty)Removes a user with specified id from the project (agent)
rpc ListUsersInProject (ListUsersInProjectRequest) returns (ListUsersInProjectResponse)Lists users in the project (agent)
rpc GetPlatformInfo (.google.protobuf.Empty) returns (GetPlatformInfoResponse)Gets information from the platform
rpc ListProjectPermissions (ListProjectPermissionsRequest) returns (ListProjectPermissionsResponse)List permissions from the project (agent)
rpc TrainAgent (TrainAgentRequest) returns (Operation)Trains the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>
rpc BuildCache (BuildCacheRequest) returns (Operation)Builds cache for the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>
rpc ExportAgent (ExportAgentRequest) returns (Operation)Exports the specified agent to a ZIP file.
rpc ExportBenchmarkAgent (ExportBenchmarkAgentRequest) returns (Operation)Exports the specified train agent to a ZIP file after train-test split, returns the test TrainingPhrase list.
rpc ImportAgent (ImportAgentRequest) returns (Operation)Imports the specified agent from a ZIP file.
rpc MigrateAgent (MigrateAgentRequest) returns (Operation)
rpc OptimizeRankingMatch (OptimizeRankingMatchRequest) returns (Operation)
rpc RestoreAgent (RestoreAgentRequest) returns (Operation)Restores the specified agent from a ZIP file.
rpc GetAgentStatistics (GetAgentStatisticsRequest) returns (GetAgentStatisticsResponse)Gets statistics for the agent
rpc GetSessionsStatistics (GetSessionsStatisticsRequest) returns (GetSessionsStatisticsResponse)
rpc GetSessionsStatisticsTimeSeries (GetSessionsStatisticsTimeSeriesRequest) returns (GetSessionsStatisticsTimeSeriesResponse)Gets LLM telemetry statistics for sessions bucketed over time (time series). Supports LLM-typed report types (SESSION_LLM_*) only.
rpc SetAgentStatus (SetAgentStatusRequest) returns (Agent)Sets status for the agent
rpc SetResources (SetResourcesRequest) returns (.google.protobuf.Empty)Sets resources
rpc DeleteResources (DeleteResourcesRequest) returns (.google.protobuf.Empty)Deletes resources
rpc ExportResources (ExportResourcesRequest) returns (ExportResourcesResponse)Exports resources
rpc GetModelStatuses (GetModelStatusesRequest) returns (GetModelStatusesResponse)Get statuses of models related to project
rpc GetPlatformMapping (GetPlatformMappingRequest) returns (PlatformMapping)Get all set platform name mappings for an Agent
rpc SetPlatformMapping (PlatformMapping) returns (PlatformMapping)Set platform name mappings for an Agent
rpc GetFullTextSearchEntityType (FullTextSearchRequest) returns (FullTextSearchResponseEntityType)Full text search endpoint in entity types
rpc GetFullTextSearchEntity (FullTextSearchRequest) returns (FullTextSearchResponseEntity)Full text search endpoint in entities
rpc GetFullTextSearchEntitySynonym (FullTextSearchRequest) returns (FullTextSearchResponseEntitySynonym)Full text search endpoint in entity synonyms
rpc GetFullTextSearchIntent (FullTextSearchRequest) returns (FullTextSearchResponseIntent)Full text search endpoint in intents
rpc GetFullTextSearchIntentContextIn (FullTextSearchRequest) returns (FullTextSearchResponseIntentContextIn)Full text search endpoint in context ins of intents
rpc GetFullTextSearchIntentContextOut (FullTextSearchRequest) returns (FullTextSearchResponseIntentContextOut)Full text search endpoint in context outs of intents
rpc GetFullTextSearchIntentUsersays (FullTextSearchRequest) returns (FullTextSearchResponseIntentUsersays)Full text search endpoint in user says of intents
rpc GetFullTextSearchIntentTags (FullTextSearchRequest) returns (FullTextSearchResponseIntentTags)Full text search endpoint in tags of intents
rpc GetFullTextSearchIntentResponse (FullTextSearchRequest) returns (FullTextSearchResponseIntentResponse)Full text search endpoint in responses of intents
rpc GetFullTextSearchIntentParameters (FullTextSearchRequest) returns (FullTextSearchResponseIntentParameters)Full text search endpoint in parameters of intents
rpc ReindexAgent (ReindexAgentRequest) returns (Operation)Force reindexing Intent and Entity data of Agent
rpc CreateProjectTechnicalUser (CreateProjectTechnicalUserRequest) returns (CreateProjectTechnicalUserResponse)Creates a project-scoped technical user (a normal, 2FA-exempt account holding PROJECT_EXECUTOR on this one project) for headless/machine access (e.g. ondewo-sip/csi/vtsi) via the ROPC login bridge. The generated password is returned ONCE in the response and is not retrievable afterwards.
rpc ListProjectTechnicalUsers (ListProjectTechnicalUsersRequest) returns (ListProjectTechnicalUsersResponse)Lists the project-scoped technical users of the project (agent).
rpc DeleteProjectTechnicalUser (DeleteProjectTechnicalUserRequest) returns (.google.protobuf.Empty)Deletes a project-scoped technical user (removes the Keycloak user and the project membership/projection rows).
rpc RotateProjectTechnicalUserPassword (RotateProjectTechnicalUserPasswordRequest) returns (RotateProjectTechnicalUserPasswordResponse)Rotates the password of a project-scoped technical user. Invalidates the old password and returns the new generated password ONCE in the response.
| Method Name | Method | Pattern | Body |
| CreateAgent | POST | /v2/projects | * |
| UpdateAgent | PATCH | /v2/{agent.parent=projects/*/agent} | * |
| GetAgent | GET | /v2/{parent=projects/*/agent} | |
| DeleteAgent | DELETE | /v2/{parent=projects/*/agent} | |
| DeleteAllAgents | DELETE | /v2/projects | |
| ListAgents | GET | /v2/projects | |
| ListAgentsOfUser | GET | /v2/projects | |
| ListAllAgents | GET | /v2/projects:all | |
| AddUserToProject | POST | /v2/{parent=projects/*/agent}/users/{user_id=*} | * |
| RemoveUserFromProject | DELETE | /v2/{parent=projects/*/agent}/users/{user_id=*} | |
| ListUsersInProject | GET | /v2/{parent=projects/*/agent}/users | |
| GetPlatformInfo | GET | /v2/version | |
| ListProjectPermissions | GET | /v2/project_permissions | |
| TrainAgent | POST | /v2/{parent=projects/*/agent}:train | * |
| BuildCache | POST | /v2/{parent=projects/*/agent}:build_cache | * |
| ExportAgent | POST | /v2/{parent=projects/*/agent}:export | * |
| ExportBenchmarkAgent | POST | /v2/{parent=projects/*/agent}:export_benchmark | * |
| ImportAgent | POST | /v2/{parent=projects/*/agent}:import | * |
| MigrateAgent | POST | /v2/{parent=projects/*/agent}:migrate | * |
| OptimizeRankingMatch | POST | /v2/{parent=projects/*/agent}:optimize_ranking_match | * |
| RestoreAgent | POST | /v2/{parent=projects/*/agent}:restore | * |
| GetAgentStatistics | GET | /v2/{parent=projects/*/agent}:statistics | |
| GetSessionsStatistics | GET | /v2/{parent=projects/*/agent}:session_statistics | |
| GetSessionsStatisticsTimeSeries | GET | /v2/{parent=projects/*/agent}:session_statistics_time_series | |
| SetAgentStatus | POST | /v2/{parent=projects/*/agent}:status | * |
| SetResources | POST | /v2/{parent=projects/*/agent}:resources | * |
| DeleteResources | DELETE | /v2/{parent=projects/*/agent}:resources | |
| ExportResources | POST | /v2/{parent=projects/*/agent}:resources | * |
| CreateProjectTechnicalUser | POST | /v2/{parent=projects/*/agent}/technical_users | * |
| ListProjectTechnicalUsers | GET | /v2/{parent=projects/*/agent}/technical_users | |
| DeleteProjectTechnicalUser | DELETE | /v2/{parent=projects/*/agent}/technical_users/{user_id=*} | |
| RotateProjectTechnicalUserPassword | POST | /v2/{parent=projects/*/agent}/technical_users/{user_id=*}:rotatePassword | * |
Request to add user to project.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| user_id | string | id of the user |
|
| project_role_id | uint32 | ID of the project role of the user |
Project/Agent messages
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format:
Read-only in the Agent message |
|
| display_name | string | Required. The name of this agent. |
|
| default_language_code | string | Required. The default language of the agent as a language tag. See
Language Support for a
list of the currently supported language codes.
This field cannot be set by the |
|
| supported_language_codes | string | repeated | Optional. The list of all languages supported by this agent (except for the
|
| time_zone | string | Required. The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris. |
|
| nlu_platform | string | Required. Specifies the format of the agent data. |
|
| configs | google.protobuf.Struct | Optional. Agent configuration as OndewoConfig converted to Struct format. |
|
| owner_id | string | Optional. User id of the project owner. If empty, in CreateAgent call it is set to user id in the call metadata. Read-only in the Agent message |
|
| status | AgentStatus | Optional. Status of the agent Read-only in the Agent message |
|
| description | string | Optional. Description of the agent. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| warm_transfer_settings | WarmTransferAgentSettings | Optional. The agent's settings of warm transfer intros ( |
This message contains the agent of user with owner
| Field | Type | Label | Description |
| agent_with_owner | AgentWithOwner | Required. Agent message and User message of its owner. |
|
| project_role | ProjectRole | Required. The role of the user in the project in SHALLOW view (only ID and name fields are populated) |
Sorting order of agent
| Field | Type | Label | Description |
| sorting_field | AgentSorting.AgentSortingField | sorting field for agent sorting |
|
| sorting_mode | SortingMode | Sorting mode |
This message contains the agent with owner
| Field | Type | Label | Description |
| agent | Agent | The agent |
|
| owner | User | User who created the agent |
The request message for Agents.TrainAgentBuildCache.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to build cache is associated with. Format: |
|
| branch | string | Name of the branch of the agent for versioning. The default branch name is |
Request to create an agent
| Field | Type | Label | Description |
| agent | Agent | The agent |
|
| agent_view | AgentView | Optional. Specify the view of the returned agent (sparse view by default) |
Request to create a project-scoped technical user (PROJECT_EXECUTOR, 2FA-exempt).
| Field | Type | Label | Description |
| parent | string | Required. The project (agent) that the technical user is scoped to. Format: |
|
| name | string | Optional. A human-readable name used to derive the technical user's Keycloak username/email (e.g. ondewo-nlu-cai-tech-<project>-<name>). If empty, the server generates one. |
Response with the freshly minted technical user's credentials.
The password is returned ONCE and cannot be retrieved later.
| Field | Type | Label | Description |
| user_id | string | The technical user's id (Keycloak sub / UUID). |
|
| username | string | The technical user's login username / email. |
|
| password | string | The generated password. Shown ONCE; not retrievable afterwards. |
This message contains the information of custom platform
| Field | Type | Label | Description |
| platform | Intent.Message.Platform | Required. ID of the Platform. Custom Intent.Message.Platform placeholder. Note: it will not work with non-placeholders values |
|
| display_name | string | Required. Name to be displayed. |
|
| position | uint32 | Optional. Sorting position of the GetPlatformMappingRequest. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Request to delete the agent
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
Request to delete a project-scoped technical user.
| Field | Type | Label | Description |
| parent | string | Required. The project (agent) that the technical user is scoped to. Format: |
|
| user_id | string | Required. The id of the technical user to delete. |
Request to delete resources
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| name | string | Required. Name of the resource to delete. |
|
| type | string | Required. Type of the resource (e.g., "audio", "image", "file"). |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
The request message for Agents.ExportAgent.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to export is associated with. Format: |
|
| agent_uri | string | Optional. The Google Cloud Storage URI to export the agent to. Note: The URI must start with "gs://". If left unspecified, the serialized agent is returned inline. |
|
| compression_level | int32 | Optional. The compression level of the zip file created. Valid range 1-9; the grpc-default value 0 will be mapped to 1, other values cause an error in the request validation handler. |
The response message for Agents.ExportAgent.
| Field | Type | Label | Description |
| agent_uri | string | The URI to a file containing the exported agent. This field is populated
only if |
|
| agent_content | bytes | The exported agent.
Example for how to export an agent to a zip file via a command line:
|
Request to export benchmark agent
| Field | Type | Label | Description |
| parent | string | Agent related info Required. The project that the agent to export is associated with. Format: |
|
| compression_level | int32 | Optional. The compression level of the zip file created. Valid range 1-9; the grpc-default value 0 will be mapped to 1, other values cause an error in the request validation handler. |
|
| test_size | float | Train-test split related parameters, for further info, check https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html default values come from API definition above Optional: bigger than zero |
|
| train_size | float | Optional: bigger than zero |
|
| random_state | int32 | Optional: random seed |
Response to export benchmark agent
| Field | Type | Label | Description |
| agent_content | bytes | Agent responses as zip file |
|
| training_phrases | ExportBenchmarkAgentResponse.TrainingPhrasesEntry | repeated | Key is the language code, value is the corresponding ListTrainingPhrasesResponse |
| Field | Type | Label | Description |
| key | string |
|
|
| value | ListTrainingPhrasesResponse |
|
Request to export resources
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| name | string | Required. Name of the resource to export. |
|
| type | string | Required. Type of the resource (e.g., "audio", "image", "file"). |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
Response to export resources
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| name | string | Required. Name of the exported resource. |
|
| type | string | Required. Type of the resource (e.g., "audio", "image", "file"). |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| resource_file | bytes | Required. The exported resource file content as bytes. |
This message is a request to run full text search
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| term | string | What to search for in the elastic server |
|
| page_token | string | Composite string: current_index-0--page_size-10 The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
This message is a response of full text search of entity
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| entity_results | FullTextSearchResponseEntity.EntitySearchResult | repeated | List of entity search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an entity
| Field | Type | Label | Description |
| name | string | Name of the entity |
|
| display_name | string | Display name of the entity |
|
| entity_type_name | string | Name of the entity type this entity belongs to |
|
| entity_type_display_name | string | Display name of the entity type |
|
| language | string | Language code of the entity |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of synonym entity
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| entity_synonym_results | FullTextSearchResponseEntitySynonym.EntitySynonymSearchResult | repeated | List of entity synonym search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an entity synonym
| Field | Type | Label | Description |
| name | string | Name of the entity synonym |
|
| display_name | string | Display name of the entity synonym |
|
| entity_type_name | string | Name of the entity type |
|
| entity_type_display_name | string | Display name of the entity type |
|
| entity_name | string | Name of the entity this synonym belongs to |
|
| entity_display_name | string | Display name of the entity |
|
| language | string | Language code of the entity synonym |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of entity type
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| entity_type_results | FullTextSearchResponseEntityType.EntityTypeSearchResult | repeated | List of entity type search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an entity type
| Field | Type | Label | Description |
| name | string | Name of the entity type |
|
| display_name | string | Display name of the entity type |
|
| language | string | Language code of the entity type |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_results | FullTextSearchResponseIntent.IntentSearchResult | repeated | List of intent search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent
| Field | Type | Label | Description |
| name | string | Name of the intent |
|
| display_name | string | Display name of the intent |
|
| domain_name | string | Domain name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the intent |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent with context in
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_context_in_results | FullTextSearchResponseIntentContextIn.IntentContextInSearchResult | repeated | List of intent input context search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent input context
| Field | Type | Label | Description |
| name | string | Name of the input context |
|
| intent_name | string | Name of the intent this context belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the context |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent with context out
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_context_out_results | FullTextSearchResponseIntentContextOut.IntentContextOutSearchResult | repeated | List of intent output context search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent output context
| Field | Type | Label | Description |
| name | string | Name of the output context |
|
| intent_name | string | Name of the intent this context belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the context |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent with parameters
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_parameters_results | FullTextSearchResponseIntentParameters.IntentParametersSearchResult | repeated | List of intent parameter search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent parameter
| Field | Type | Label | Description |
| parameter_name | string | Name of the parameter |
|
| parameter_display_name | string | Display name of the parameter |
|
| intent_name | string | Name of the intent this parameter belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the parameter |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent response
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_response_results | FullTextSearchResponseIntentResponse.IntentResponseSearchResult | repeated | List of intent response search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
Search result for an intent response
| Field | Type | Label | Description |
| text | string | Text content of the response |
|
| platform | string | Platform for which this response is intended |
|
| response_type | string | Type of the response |
|
| intent_name | string | Name of the intent this response belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the response |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent with tags
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_tags_results | FullTextSearchResponseIntentTags.IntentTagsSearchResult | repeated | List of intent tag search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent tag
| Field | Type | Label | Description |
| name | string | Name of the tag |
|
| text | string | Text content of the tag |
|
| intent_name | string | Name of the intent this tag belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the tag |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a response of full text search of intent with sentence
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| intent_usersays_results | FullTextSearchResponseIntentUsersays.IntentUsersaysSearchResult | repeated | List of intent training phrase search results |
| term | string | Search term used in the query |
|
| elastic_query | string | Elasticsearch query that was executed |
|
| time | float | Time taken to execute the query in seconds |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Search result for an intent training phrase (user says)
| Field | Type | Label | Description |
| name | string | Name of the training phrase |
|
| text | string | Text of the training phrase |
|
| text_as_entity_types | string | Text with entity types annotated |
|
| text_as_entity_values | string | Text with entity values annotated |
|
| type | string | Type of the training phrase part |
|
| intent_name | string | Name of the intent this training phrase belongs to |
|
| intent_display_name | string | Display name of the intent |
|
| tags | string | repeated | Tags associated with the intent |
| language | string | Language code of the training phrase |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
The request message for Agents.GetAgent.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| agent_view | AgentView | Optional. Specify the view of the returned agent (full view by default) |
|
| field_mask | google.protobuf.FieldMask | Optional. A mask to control which fields are returned in the response. |
Request statistics of the agent
| Field | Type | Label | Description |
| parent | string | Required. The project to get statistics from. Format: |
|
| format | ReportFormat | File formats for reports |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. the language to calculate statistics about |
|
| type | ReportType | Type of reports about the domain of the agent |
|
| llm_model_filter | string | repeated | Optional. Restrict LLM aggregations to specific models (e.g.
|
| llm_provider_filter | string | repeated | Optional. Restrict LLM aggregations to specific providers
(e.g. |
| llm_agent_name_filter | string | repeated | Optional. Restrict LLM aggregations to specific intent-agent names. |
| llm_group_bys | string | repeated | Optional. Group LLM aggregations by named dimensions (e.g.
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the response (e.g. paths=["llm_telemetry_report"]). |
|
| llm_ccai_service_provider_filter | CcaiServiceProvider | repeated | Optional. Restrict LLM aggregations to specific CCAI service providers. Empty = all. |
| llm_base_url_filter | string | repeated | Optional. Restrict LLM-typed reports to calls made through specific base URLs (the
|
Response to get statistics of the agent
| Field | Type | Label | Description |
| reports | bytes | Statistic info. |
|
| format | ReportFormat | File formats for reports |
|
| type | ReportType | Type of reports about the domain of the agent |
|
| llm_telemetry_report | LlmTelemetryReport | Optional aggregate LLM telemetry across all sessions / steps in scope
(subject to the LLM filters in the request). Populated only when the
request field_mask includes |
Request to get model statuses
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| cache_version | int32 | Optional. Cache version to filter model statuses. If not specified, returns statuses for all cache versions. |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| model_name | string | Optional. Model name to filter model statuses. If not specified, returns statuses for all models. |
Response to get model statuses
| Field | Type | Label | Description |
| model_statuses | ModelStatus | repeated | List of model statuses matching the request filters. |
GIT information about the version of the server
| Field | Type | Label | Description |
| version | string | version of the server build |
|
| commit_hash | string | git commit hash of the server build |
Request to get platform mapping
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent is associated with. Format: |
Request of the report of the statistics about sessions
| Field | Type | Label | Description |
| parent | string | Required. The project to get statistics from. Format: |
|
| format | ReportFormat | File formats for reports |
|
| type | SessionsReportType | Type of reports about the domain of the agent |
|
| session_filter | SessionFilter | Optional. A filter to narrow reports based on sessions |
|
| context_filters | ContextFilter | repeated | Optional. A filter to narrow reports based on contextual information (Coming soon! Not yet implemented) |
| limit | int32 | Optional. limit the returned number of results |
|
| group_bys | string | repeated | Optional. Grouping based on named properties |
| order_bys | string | repeated | Optional. Order based on named properties |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which data fields will be added to the returned data.
|
|
| sql_query | string | SQL Query - only usable with specific SessionsReportType such as SessionsReportType.SESSION_SQL_QUERY |
|
| llm_model_filter | string | repeated | Optional. Restrict LLM-typed reports to specific models. Empty = all models. |
| llm_provider_filter | string | repeated | Optional. Restrict LLM-typed reports to specific providers. Empty = all providers. |
| llm_agent_name_filter | string | repeated | Optional. Restrict LLM-typed reports to specific intent-agent names. Empty = all. |
| llm_tool_name_filter | string | repeated | Optional. Restrict LLM-typed reports to specific tool names. Empty = all. |
| llm_ccai_service_provider_filter | CcaiServiceProvider | repeated | Optional. Restrict LLM-typed reports to specific CCAI service providers. Empty = all. |
| llm_base_url_filter | string | repeated | Optional. Restrict LLM-typed reports to calls made through specific base URLs (the
|
Report of the statistics about sessions
| Field | Type | Label | Description |
| reports | bytes | Statistic info. |
|
| format | ReportFormat | File formats for reports |
|
| type | SessionsReportType | Type of reports about the domain of the agent |
|
| llm_telemetry_report | LlmTelemetryReport | Optional aggregate LLM telemetry summarizing the report (tokens, tool calls, thinking) across all sessions matched by the request. Populated only for LLM-typed report types (SESSION_LLM_*). |
Request for time-bucketed LLM telemetry statistics about sessions.
| Field | Type | Label | Description |
| parent | string | Required. The project to get statistics from. Format: |
|
| type | SessionsReportType | Type of report. Only LLM-typed report types (SESSION_LLM_*) are supported. |
|
| session_filter | SessionFilter | Required. A filter narrowing the sessions; |
|
| bucket_width_seconds | int32 | Optional. Width of one bucket in seconds. 0 = the server picks
(time range divided by |
|
| max_buckets | int32 | Optional. Maximum number of buckets (default 50, server-side cap 200). |
|
| llm_model_filter | string | repeated | Optional. Restrict to specific models. Empty = all models. |
| llm_provider_filter | string | repeated | Optional. Restrict to specific providers. Empty = all providers. |
| llm_agent_name_filter | string | repeated | Optional. Restrict to specific intent-agent names. Empty = all. |
| llm_tool_name_filter | string | repeated | Optional. Restrict to specific tool names. Empty = all. |
| llm_ccai_service_provider_filter | CcaiServiceProvider | repeated | Optional. Restrict to specific CCAI service providers. Empty = all. |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which data fields will be added to the returned data (e.g. paths=["llm_telemetry_time_series_buckets.llm_telemetry_report.llm_token_usage"]). |
|
| llm_base_url_filter | string | repeated | Optional. Restrict LLM-typed reports to calls made through specific base URLs (the
|
Response with time-bucketed LLM telemetry statistics.
| Field | Type | Label | Description |
| llm_telemetry_time_series_buckets | LlmTelemetryTimeSeriesBucket | repeated | Buckets in ascending time order. Buckets without any matching telemetry carry an empty report (llm_call_count == 0). |
| bucket_width_seconds | int32 | Effective bucket width in seconds the server used. |
The request message for Agents.ImportAgent.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to import is associated with. Format: |
|
| agent_uri | string | The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with "gs://". |
|
| agent_content | bytes | The agent to import.
|
Get list of agents of user
| Field | Type | Label | Description |
| agents_of_user_with_owners | AgentOfUserWithOwner | repeated | The list of agents with their owners of the given user. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request to get the list of agents
| Field | Type | Label | Description |
| agent_view | AgentView | Optional. Specify the view of the returned agent (full view by default) |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. |
|
| sort_by_field | AgentSorting | Optional. Defines the sorting of the list. Default, no sorting. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Get list of agents
| Field | Type | Label | Description |
| agents_with_owners | AgentWithOwner | repeated | The list of agent and their owners. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Project permissions
| Field | Type | Label | Description |
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
List project permissions
| Field | Type | Label | Description |
| permissions | string | repeated | The list of project permissions. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request to list the project-scoped technical users of a project (agent).
| Field | Type | Label | Description |
| parent | string | Required. The project (agent) whose technical users are listed. Format: |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. |
Response listing the project-scoped technical users of a project (agent).
| Field | Type | Label | Description |
| technical_users | ProjectTechnicalUser | repeated | The technical users scoped to the project. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result. |
Request to list users in the project
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned.
|
List the users in a project
| Field | Type | Label | Description |
| users | UserInProject | repeated | The list of users in a project. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
One time bucket of aggregated LLM telemetry.
| Field | Type | Label | Description |
| bucket_start | google.protobuf.Timestamp | Inclusive start of the bucket. |
|
| bucket_end | google.protobuf.Timestamp | Exclusive end of the bucket. |
|
| llm_telemetry_report | LlmTelemetryReport | Aggregated LLM telemetry of all matched sessions inside the bucket. |
Request to migrate an agent
| Field | Type | Label | Description |
| agent_content | bytes | The agent to migrate as zip file |
Status of model
| Field | Type | Label | Description |
| cache_version | int32 | Cache version that contains the correspondent model |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| model_name | string | The model name |
|
| status_set_time | google.protobuf.Timestamp | Timestamp when the status was set. Read-only field. |
|
| config | string | Configuration of the model as a string. |
|
| status | ModelStatus.StatusName | Current status of the model. |
This message is a request to run Optimize Ranking Match
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| language_codes | string | repeated | languages that should be optimized |
| optimization_configs | RankingMatchOptimizationConfig | repeated | optimization config will contain all possible optimizations, with which we will come up in the future |
| in_place | bool | if in_place is true then the config of the agent on the server will be updated, if False then config with optimized thresholds will be returned but not updated on the server |
This message is a response of Optimize Ranking Match
| Field | Type | Label | Description |
| optimization_info | google.protobuf.Struct | info about optimization
|
|
| optimized_ondewo_config | google.protobuf.Struct | the optimized configuration of the ondewo agent e.g., optimized parameters
|
This message contains the mapping of platform
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent is associated with. Format: |
|
| platform_info | CustomPlatformInfo | repeated | Required. If not set, it will set it empty. |
A single project-scoped technical user entry.
| Field | Type | Label | Description |
| user_id | string | The technical user's id (Keycloak sub / UUID). |
|
| username | string | The technical user's login username / email. |
|
| created_at | google.protobuf.Timestamp | The time the technical user was created (Keycloak createdTimestamp). |
|
| created_by | string | The id of the user that created this technical user. |
This message contains the configuration to run Optimize Ranking Match
| Field | Type | Label | Description |
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| n_splits | int32 | number of splits for optimization |
|
| random_seed | int32 | random seed number for defining the split of train and test of training phrases for optimization |
|
| initial_thresholds | google.protobuf.Struct | initial thresholds are optional, if not given will be taken from the current config
|
This message is a request to reindex agent
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| branch_name | string | Optional, useful for versioning reasons of the agent data |
|
| index_types | FullTextSearchRequest.QueryType | repeated | Optional, useful for reindexing specific indices in the future |
Request to remove user from the project.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| user_id | string | id of the user |
The request message for Agents.RestoreAgent.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to restore is associated with. Format: |
|
| agent_uri | string | The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with "gs://". |
|
| agent_content | bytes | The agent to restore.
|
Request to rotate the password of a project-scoped technical user.
| Field | Type | Label | Description |
| parent | string | Required. The project (agent) that the technical user is scoped to. Format: |
|
| user_id | string | Required. The id of the technical user whose password is rotated. |
Response with the rotated password.
The password is returned ONCE and cannot be retrieved later.
| Field | Type | Label | Description |
| user_id | string | The technical user's id (Keycloak sub / UUID). |
|
| username | string | The technical user's login username / email. |
|
| password | string | The new generated password. Shown ONCE; not retrievable afterwards. |
Request to set status of the agent
| Field | Type | Label | Description |
| parent | string | Required. The project of which to set the status. Format: |
|
| status | AgentStatus | Required. Status of the agent |
|
| agent_view | AgentView | Optional. View of the returned agent |
Request to set resources
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| name | string | Required. Name of the resource. |
|
| type | string | Required. Type of the resource (e.g., "audio", "image", "file"). |
|
| resource_file | bytes | Required. The resource file content as bytes. |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
The request message for Agents.TrainAgent.
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| branch | string | Name of the branch of the agent for versioning. The default branch name is |
|
| initiation_protocol | InitiationProtocol | Defines when to initiate newly created agent when training started |
Request to update the agent
| Field | Type | Label | Description |
| agent | Agent | The agent |
|
| agent_view | AgentView | Optional. Specify the view of the returned agent (sparse view by default) |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
Request to get user in project
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to train is associated with. Format: |
|
| user | User | User object |
|
| role_id | uint32 | ID of the project role of the user |
Additional entries of the closed decision lexicon of warm transfer intros in one language, matched before an LLM
classifies an answer. At most 50 entries in accept_phrases and decline_phrases
together.
| Field | Type | Label | Description |
| accept_phrases | string | repeated | Words and phrases that accept the call (and confirm the ready question), e.g. "übernehme". |
| decline_phrases | string | repeated | Words and phrases that decline the call, e.g. "bin im Termin". |
The agent's settings of warm transfer intros. A text a WarmTransferIntroConfig leaves empty falls back
to the agent's text for the intro's language, then to the built-in default.
| Field | Type | Label | Description |
| enabled | bool | optional | Whether warm transfer intros are enabled for the agent. Unset = enabled while the server's warm transfer
feature is switched on. False = |
| llm_ccai_service_name | string | The |
|
| default_texts | WarmTransferAgentSettings.DefaultTextsEntry | repeated | The default texts, keyed by language code (e.g. |
| extra_lexicon | WarmTransferAgentSettings.ExtraLexiconEntry | repeated | Additional words and phrases of the decision lexicon, keyed by language code (e.g. |
| Field | Type | Label | Description |
| key | string |
|
|
| value | WarmTransferAgentTexts |
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | WarmTransferAgentLexicon |
|
The default texts of warm transfer intros in one language. An empty text = the built-in default. The fields and
placeholders are those of the same-named fields of WarmTransferIntroConfig.
| Field | Type | Label | Description |
| ready_question | string | The first question to the target (placeholder |
|
| accept_question | string | The question after the intro. |
|
| decline_reason_question | string | optional | The question after a decline. Unset = the built-in default; set to "" = the reason is not asked for. |
| caller_declined_message | string | The message the caller hears after a decline (placeholders |
|
| caller_unreachable_message | string | The message the caller hears when the target could not be reached or gave no decision (placeholder
|
Sorting field
| Name | Number | Description |
| NO_AGENT_SORTING | 0 | no sorting |
| SORT_AGENT_BY_NAME | 1 | sorting by name |
| SORT_AGENT_BY_CREATION_DATE | 2 | sorting by creation date |
| SORT_AGENT_BY_LAST_UPDATED | 3 | sorting by last updated date |
| SORT_AGENT_BY_OWNER_NAME | 4 | sorting by owner, i.e. user who owns the agent which is usually the creator of the agent |
Type of Agent / Project status
| Name | Number | Description |
| ACTIVE | 0 | If project is active, all its endpoints are active |
| INACTIVE | 1 | If project is inactive:
|
Structure of agent view
| Name | Number | Description |
| AGENT_VIEW_UNSPECIFIED | 0 | Unspecified agent view: the view is defined by the call:
|
| AGENT_VIEW_FULL | 1 | Full agent view: populate all the fields of the Agent message including configs. |
| AGENT_VIEW_SHALLOW | 2 | Shallow agent view: populates all the fields except configs. |
| AGENT_VIEW_MINIMUM | 3 | Minimum view including only agent UUID and agent display name |
Type of query
| Name | Number | Description |
| ALL | 0 | Placeholder value, has to start with zero |
| OndewoEntityQuery | 1 | Query for entities |
| OndewoEntityTypeQuery | 2 | Query for entity types |
| OndewoEntitySynonymQuery | 3 | Query for entity synonyms |
| OndewoIntentQuery | 4 | Query for intents |
| OndewoIntentContextInQuery | 5 | Query for intent input contexts |
| OndewoIntentContextOutQuery | 6 | Query for intent output contexts |
| OndewoIntentUsersaysQuery | 7 | Query for intent training phrases (user says) |
| OndewoIntentTagsQuery | 8 | Query for intent tags |
| OndewoIntentParametersQuery | 9 | Query for intent parameters |
| OndewoIntentResponseQuery | 10 | Query for intent responses |
Defines when to initiate newly created agent when training started
| Name | Number | Description |
| AS_SOON_AS_POSSIBLE | 0 | after cache successfully built and after each model trained the agent will be updated |
| WHEN_TRAINED | 1 | after cache successfully built and all the active models successfully trained |
| NEVER | 2 | do not initiate |
Status name of the model.
| Name | Number | Description |
| UNKNOWN | 0 | Unknown status |
| INITIALIZING | 1 | Model is initializing |
| INITIALIZED | 2 | Model has been initialized |
| LOADING_DATA | 3 | Model is loading data |
| TRAINING | 4 | Model is training |
| TESTING | 5 | Model is being tested |
| TRAINED | 6 | Model training is complete |
File formats for reports
| Name | Number | Description |
| CSV | 0 | CSV (comma separated values) file format |
| HTML | 1 | HTML file format |
| JSON | 2 | JSON file format |
Type of reports about the domain of the agent
| Name | Number | Description |
| ALL | 0 | will return all reports as files of specified format compressed into a single zipfile |
| INTENT_PER_LANGUAGE | 1 | statistics of the language specific part of the intent database |
| ENTITY_PER_LANGUAGE | 2 | statistics of the language specific part of the entity database |
| ENTITY_COLLISION | 3 | report on collision of the entity synonyms |
| INTENT_GENERAL | 4 | report of statistics of the general (relevant to all supported languages) part of intent database |
| AGENT_LLM_TOKEN_USAGE | 5 | Aggregate LLM token usage (input / output / cache) over the agent domain. |
| AGENT_LLM_MODELS_USED | 6 | Per-model usage rollup (calls, tokens, latency) over the agent domain. |
| AGENT_LLM_PROVIDERS_USED | 7 | Per-provider usage rollup over the agent domain. |
| AGENT_LLM_CCAI_SERVICES_USED | 8 | Per-CCAI-service usage rollup (keyed by CcaiServiceProvider) over the agent domain. |
| AGENT_LLM_AGENTS_USED | 9 | Per-intent-agent usage rollup over the agent domain. |
| AGENT_LLM_ERRORS | 10 | LLM error breakdown (counts and rate per error_class) over the agent domain. |
| AGENT_LLM_CACHE_EFFICIENCY | 11 | Prompt-cache efficiency over the agent domain. |
| AGENT_LLM_REASONING_EFFORT | 12 | Reasoning-effort distribution (keyed by ReasoningEffort) over the agent domain. |
| AGENT_LLM_TOP_X_TOOLS | 13 | Top X most-invoked tools over the agent domain. |
| AGENT_LLM_LEAST_X_TOOLS | 14 | Least X invoked tools over the agent domain. |
| AGENT_LLM_LATENCY | 15 | LLM latency aggregates (p50 / p95 / p99, time-to-first-token) over the agent domain. |
| AGENT_LLM_FINISH_REASONS | 16 | Finish-reason distribution over the agent domain. |
| AGENT_LLM_TOTAL_STATISTICS | 17 | Single rolled-up LLM statistics summary (totals + all breakdowns) over the agent domain. |
| AGENT_LLM_INPUT_TOKEN_USAGE | 18 | Aggregate LLM input / prompt token usage over the agent domain. |
| AGENT_LLM_OUTPUT_TOKEN_USAGE | 19 | Aggregate LLM output / completion token usage over the agent domain. |
| AGENT_LLM_THINKING_TOKEN_USAGE | 20 | Aggregate LLM thinking / reasoning token usage over the agent domain. |
| AGENT_LLM_TOOL_CALL_TOKEN_USAGE | 21 | Aggregate LLM tool-call token usage over the agent domain. |
| AGENT_LLM_TOP_X_MODELS | 22 | Top X most-used models (by calls / tokens) over the agent domain. |
| AGENT_LLM_TOP_X_CCAI_SERVICE_PROVIDERS | 23 | Top X most-used CCAI service providers over the agent domain. |
| AGENT_LLM_TOP_X_AGENT_NAMES | 24 | Top X most-used agent name of agentic AI team |
| AGENT_LLM_SAFETY | 25 | Native-safety breakdown (flagged counts / rates per category, mean safety score) over the agent domain. |
Type of reports about the domain of the agent
| Name | Number | Description |
| SESSIONS | 0 | report on sessions. Supports SessionFilter to filter |
| SESSION_STEPS | 1 | report on session steps. Supports SessionFilter to filter |
| SESSION_TOP_X_INTENTS | 2 | report top x detected intents in session. Supports SessionFilter to filter |
| SESSION_TOP_X_ENTITY_TYPES | 3 | report top x detected entity types. Supports SessionFilter to filter |
| SESSION_TOP_X_ENTITY_VALUES | 4 | report top x detected entity values Supports SessionFilter to filter |
| SESSION_TOP_X_USERS | 5 | report top x users. Supports SessionFilter to filter (Coming soon! Not yet implemented) |
| SESSION_TOP_X_LABELS | 6 | report top x labels. Supports SessionFilter to filter |
| SESSION_TOP_X_TAGS | 7 | report top x tags. Supports SessionFilter to filter |
| SESSION_TOP_X_PHONE_NUMBERS | 8 | report top x phone_numbers. Supports SessionFilter to filter (Coming soon! Not yet implemented) |
| SESSION_HUMAN_HANDOVERS | 9 | report on human handovers. Supports SessionFilter to filter (Coming soon! Not yet implemented) |
| SESSION_SQL_QUERY | 10 | report based on a query issued tables with session information.
Requires to define
|
| SESSION_LEAST_X_INTENTS | 11 | report least x detected intents in session. Supports SessionFilter to filter |
| SESSION_LEAST_X_ENTITY_TYPES | 12 | report least x detected entity types. Supports SessionFilter to filter |
| SESSION_LEAST_X_ENTITY_VALUES | 13 | report least x detected entity values Supports SessionFilter to filter |
| SESSION_LEAST_X_USERS | 14 | report least x users. Supports SessionFilter to filter (Coming soon! Not yet implemented) |
| SESSION_LEAST_X_LABELS | 15 | report least x labels. Supports SessionFilter to filter |
| SESSION_LEAST_X_TAGS | 16 | report least x tags. Supports SessionFilter to filter |
| TOTAL_STATISTICS | 17 | report total numbers of e.g. sessions, session steps, etc. |
| SESSION_LLM_TOKEN_USAGE | 18 | Aggregate LLM token usage (input / output / cache) across sessions in scope.
Supports SessionFilter to filter and the request's |
| SESSION_LLM_TOOL_CALLS | 19 | Tool-call breakdown across sessions in scope (counts, durations, error rate). |
| SESSION_LLM_THINKING | 20 | Thinking-token / duration aggregates across sessions in scope (where the provider surfaces extended thinking). |
| SESSION_LLM_FINISH_REASONS | 21 | Finish-reason distribution across sessions in scope ( |
| SESSION_LLM_LATENCY | 22 | LLM call latency aggregates (p50 / p95 / p99, time-to-first-token). |
| SESSION_LLM_RAG_METRICS | 23 | RAG-specific metrics (retrieval hit-rate, context precision, citation overlap) aggregated across sessions in scope. |
| SESSION_LLM_MODELS_USED | 24 | Per-model usage rollup (calls, tokens, latency) across sessions in scope. |
| SESSION_LLM_PROVIDERS_USED | 25 | Per-provider usage rollup across sessions in scope. |
| SESSION_LLM_CCAI_SERVICES_USED | 26 | Per-CCAI-service usage rollup (keyed by CcaiServiceProvider) across sessions in scope. |
| SESSION_LLM_AGENTS_USED | 27 | Per-intent-agent usage rollup across sessions in scope. |
| SESSION_LLM_ERRORS | 28 | LLM error breakdown (counts and rate per error_class) across sessions in scope. |
| SESSION_LLM_CACHE_EFFICIENCY | 29 | Prompt-cache efficiency (cache read / creation tokens, hit-rate, savings). |
| SESSION_LLM_REASONING_EFFORT | 30 | Reasoning-effort distribution (keyed by ReasoningEffort) across sessions in scope. |
| SESSION_LLM_TOP_X_TOOLS | 31 | Top X most-invoked tools (count, duration, error-rate) across sessions in scope. |
| SESSION_LLM_LEAST_X_TOOLS | 32 | Least X invoked tools across sessions in scope. |
| SESSION_LLM_TOTAL_STATISTICS | 33 | Single rolled-up LLM statistics summary (totals + all breakdowns) across sessions in scope. |
| SESSION_LLM_INPUT_TOKEN_USAGE | 34 | Aggregate LLM input / prompt token usage across sessions in scope. |
| SESSION_LLM_OUTPUT_TOKEN_USAGE | 35 | Aggregate LLM output / completion token usage across sessions in scope. |
| SESSION_LLM_THINKING_TOKEN_USAGE | 36 | Aggregate LLM thinking / reasoning token usage across sessions in scope. |
| SESSION_LLM_TOOL_CALL_TOKEN_USAGE | 37 | Aggregate LLM tool-call token usage across sessions in scope. |
| SESSION_LLM_TOP_X_MODELS | 38 | Top X most-used models (by calls / tokens) across sessions in scope. |
| SESSION_LLM_TOP_X_CCAI_SERVICE_PROVIDERS | 39 | Top X most-used CCAI service providers across sessions in scope. |
| SESSION_LLM_TOP_X_AGENT_NAMES | 40 | Top X most-used agent name of agentic AI team |
| SESSION_LLM_SAFETY | 41 | Native-safety breakdown (flagged counts / rates per category, mean safety score) across sessions in scope. |
The Central class defining the ondewo ai services
rpc ExtractEntities (ExtractEntitiesRequest) returns (ExtractEntitiesResponse)Processes a natural language query and returns detected entities
rpc GenerateUserSays (GenerateUserSaysRequest) returns (GenerateUserSaysResponse)Generates a list of training phrases
rpc GenerateResponses (GenerateResponsesRequest) returns (GenerateResponsesResponse)Generate responses from all intents using synonyms
rpc GetAlternativeSentences (GetAlternativeSentencesRequest) returns (GetAlternativeSentencesResponse)Generates alternative phrase based on original phrase
rpc GetAlternativeTrainingPhrases (GetAlternativeTrainingPhrasesRequest) returns (GetAlternativeTrainingPhrasesResponse)Generates alternative training phrase based on original training phrase
rpc GetSynonyms (GetSynonymsRequest) returns (GetSynonymsResponse)Generates synonyms for a certain word
rpc ClassifyIntents (ClassifyIntentsRequest) returns (ClassifyIntentsResponse)Preprocess text and detects intents in a sentence
rpc ExtractEntitiesFuzzy (ExtractEntitiesFuzzyRequest) returns (ExtractEntitiesResponse)Processes a natural language query and returns detected entities
rpc LlmGenerate (LlmGenerateRequest) returns (LlmGenerateResponse)Generates a single response from a Large Language Model (LLM). This RPC method allows a client to make a request to the LLM and receive a single complete response based on the input parameters provided.
rpc StreamingLlmGenerate (LlmGenerateRequest) returns (stream StreamingLlmGenerateResponse)Generates a response from the LLM in a streaming format. This RPC allows continuous streaming of responses from the model, which is useful for real-time applications or large outputs.
rpc ListLlmModels (ListLlmModelsRequest) returns (ListLlmModelsResponse)Lists available Large Language Models (LLMs) for a specified CCAI service. This RPC method allows clients to retrieve metadata about all LLM models associated with a particular service within a project, including model names, descriptions, and providers.
| Method Name | Method | Pattern | Body |
| ExtractEntities | POST | /v2/{parent=projects/*/agent}/entities:extract | * |
| GenerateUserSays | POST | /v2/{parent=projects/*/agent}/generate_user_says | * |
| GenerateResponses | POST | /v2/{parent=projects/*/agent}/generate_responses | * |
| GetAlternativeSentences | POST | /v2/{parent=projects/*/agent}/get_alternative:sentence | * |
| GetAlternativeTrainingPhrases | POST | /v2/{parent=projects/*/agent}/get_alternative:training_phrases | * |
| GetSynonyms | POST | /v2/{parent=projects/*/agent}/get_synonyms | * |
| ClassifyIntents | POST | /v2/{parent=projects/*/agent}/classify_intent | * |
| LlmGenerate | POST | /v2/{parent=projects/*/agent}/llm_generate | * |
| ListLlmModels | POST | /v2/{parent=projects/*/agent}/list_llm_models | * |
This message contains an alternative sentence
| Field | Type | Label | Description |
| sentence | string | Alternative sentence |
|
| score | float | Score associated to the alternative sentence resulted |
This message contains an alternative training phrase
| Field | Type | Label | Description |
| training_phrase | Intent.TrainingPhrase | Alternative training phrase |
|
| score | float | Score associated to training_phrase |
Configuration for BERT augmenter enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
The request for intent classification.
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| text | string | the input text |
|
| language_code | string | the input language |
|
| active_contexts | bool | Optional: if restrict classification result with input contexts listed in the field |
|
| context_names | string | repeated | Optional: names of the input contexts to restrict the classification result with. Intents can only be classified if the intent's input context set is the subset of the given context set. |
| mode | Mode | Optional: Which mode to use:
|
|
| algorithms | IntentAlgorithms | repeated | Optional: Algorithm list |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing the intents classified in a sentence
| Field | Type | Label | Description |
| intents_classified | IntentClassified | repeated | A list of intents detected |
| text | string | The text containing from which the intents were detected |
|
| active_contexts | bool | Flag that enables the context through the conversation |
|
| context_names | string | repeated | The context tags associated to the intents |
This message contains the configuration of data enrichment
| Field | Type | Label | Description |
| entity_enrichment | EntityEnrichmentConfig | Entity augmenter configuration |
|
| thesaurus_enrichment | ThesaurusEnrichmentConfig | Thesaurus augmenter configuration |
|
| word2vec_enrichment | Word2VecEnrichmentConfig | Word2Vec augmenter configuration |
|
| word_net_enrichment | WordNetAugEnrichmentConfig | WordNet augmenter configuration |
|
| gpt2_enrichment | GPT2EnrichmentConfig | GPT2 augmenter configuration |
|
| glove_enrichment | GloVeEnrichmentConfig | GloVe augmenter configuration |
|
| bert_enrichment | BertAugEnrichmentConfig | BERT augmenter configuration |
|
| xlnet_enrichment | XLNetAugEnrichmentConfig | XLNet augmenter configuration |
|
| llm_enrichment | LlmEnrichmentConfig | Large language model (LLM) augmenter configuration |
This message contains the entity detected
| Field | Type | Label | Description |
| entity | Intent.TrainingPhrase.Entity | The entity name that is detected |
|
| extraction_method | string | The extractor name, e.g. SpacyNer |
|
| score | float | The confidence score of the detected entity |
Configuration for Entity enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Configuration for Fuzzy Entity Recognizer
| Field | Type | Label | Description |
| entity_type | EntityType | The Entity Type |
|
| minimal_score | float | Optional. Overrides the minimal score in ExtractEntitiesFuzzyRequest. |
|
| entity_values | string | repeated | Optional. If defined, only entity value from this list are considered. |
| algorithm | EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm | Optional. Specify the Fuzzy Ner algorithm |
|
| allow_overlaps | bool | Should not use allow_overlaps here, since its default value is False |
This message is a request to extract entities with Fuzzy Entity Recognizer
| Field | Type | Label | Description |
| parent | string | the parent of the request Format: |
|
| text | string | The text to be analyzed |
|
| potential_entities | EntityTypeFuzzyNerConfig | repeated | Potential entities to be extracted from the text with entity-specific configs |
| minimal_score | float | Minimal similarity score to consider entity as "matched" |
|
| allow_overlaps | bool | Optional. Whether or not entities are allowed to overlap. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
The request to detect parameters.
| Field | Type | Label | Description |
| parent | string | the parent of the request Format: |
|
| text | string | the input text |
|
| language_code | string | the input language |
|
| intent_name | string | Optional. The name of the relevant intent. Used to establish preference hierarchy for entities that correspond to intent parameters Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of extracting entities
| Field | Type | Label | Description |
| entities_detected | EntityDetected | repeated | A list of entities detected |
| text | string | The text containing the entities detected |
Configuration for GPT2 enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Request to generate responses
| Field | Type | Label | Description |
| language_code | string | language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| parent | string | the parent of the request Format: |
|
| n_repeat_synonym | int32 | The number of synonyms desired |
|
| branch | string | Git branch |
|
| drop_unknown_parameters | bool | Optional. Whether to drop unknown parameters from the generated responses |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing responses
| Field | Type | Label | Description |
| responses | string | repeated | A list of responses |
Request to generate user sentences
| Field | Type | Label | Description |
| language_code | string | language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| parent | string | the parent of the request Format: |
|
| n_repeat_synonym | int32 | The number of synonyms desired |
|
| branch | string | Git branch |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing user sentences
| Field | Type | Label | Description |
| user_says | string | repeated | A list of sampled sentences |
Request to get alternative sentences
| Field | Type | Label | Description |
| config | DataEnrichmentConfig | Configuration type of the enricher |
|
| sentence | string | The sentence from which it is desired to get alternative sentences |
|
| language_code | string | Language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| parent | string | the parent of the request Format: |
|
| protected_words | string | repeated | Protected words in the augmentation process |
| words_to_change | string | repeated | Words to be changed in the augmentation process |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing alternative sentences
| Field | Type | Label | Description |
| alternative_sentences | AltSentence | repeated | A list of alternative sentences |
Request to get alternative training phrases
| Field | Type | Label | Description |
| config | DataEnrichmentConfig | Configuration of the enricher |
|
| training_phrase | Intent.TrainingPhrase | Training phrase from which an alternative one is got |
|
| intent_name | string | The intent tag attached to the training phrase |
|
| language_code | string | language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| parent | string | the parent of the request Format: |
|
| detect_entities | bool | Flag to determine whether entities must or not be detected |
|
| similarity_threshold | float | similarity threshold defines how similar sentences should be to drop generated training phrase as duplicate. Meaningful values of similarity_threshold are between 0.95 and 1.0 |
|
| protected_words | string | repeated | Protected words in the augmentation process |
| words_to_change | string | repeated | Words to be changed in the augmentation process |
| branch | string | Git branch |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing alternative training phrases
| Field | Type | Label | Description |
| alternative_training_phrases | AltTrainingPhrase | repeated | A list of alternative training phrases |
Request to get synonyms
| Field | Type | Label | Description |
| config | DataEnrichmentConfig | Configuration of the enricher |
|
| word | string | Word from which a synonym is got |
|
| language_code | string | language code specifies the language of the request in IETF BCP 47 language tag format, e.g. de-DE, en-US, etc. |
|
| parent | string | the parent of the request Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing synonyms
| Field | Type | Label | Description |
| synonyms | Synonym | repeated | A list of synonyms |
Configuration for GloVe enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Intent classified by a certain intent classifier
| Field | Type | Label | Description |
| intent_name | string | The unique identifier of this intent. Format: |
|
| intent_display_name | string | The name of the intent. |
|
| classifier | string | The name of the classifier that detected the intent |
|
| score | float | Score associated to the detection of the intent by the classifier |
The request message to list available LLM models for a specified CCAI service.
| Field | Type | Label | Description |
| ccai_service_name | string | The CCAI service for which to list models. Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
The response message containing a list of available LLM models.
| Field | Type | Label | Description |
| llm_models | LlmModel | repeated | A list of LLM models associated with the specified CCAI service.
|
Configuration for large language model (LLM) enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
|
| ccai_service_name | string | The CCAI service to be used to enrich This specifies which large language model provider and model settings will handle the request. Format: |
The request message to generate a response from a Large Language Model (LLM).
| Field | Type | Label | Description |
| llm_generation_request | google.protobuf.Struct | The request payload for the LLM, structured according to the specific
requirements of the large language model provider.
|
|
| ccai_service_name | string | The CCAI service to be used for processing the request. This specifies which large language model provider and model settings will handle the request. Format: |
|
| file_resources | FileResource | repeated | Files as input for the generation request |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
The response message containing the generated output from a Large Language Model (LLM).
| Field | Type | Label | Description |
| llm_generation_response | google.protobuf.Struct | The response data from the LLM, returned as a structured payload.
|
|
| file_resources | FileResource | repeated | Files as input for the generation request, e.g., generated pictures, audio or video |
Represents an individual LLM model available within a CCAI service.
| Field | Type | Label | Description |
| name | string | The resource name of the model. Format:
This is a unique identifier for the model, specifying its project, service, and model ID. |
|
| display_name | string | The display name of the model. This is a human-readable name used for identifying the model in other requests, such as and |
|
| description | string | The description of the model. Provides additional details about the model, such as its purpose, architecture, or any other relevant information. |
|
| ccai_service_name | string | The resource name of the CCAI service to which the model belongs. This field links the model to its service context, helping clients understand which service hosts the model. |
|
| ccai_service_provider | CcaiServiceProvider | The provider of the CCAI service that offers this model. Specifies the LLM provider (e.g., Ollama, OpenAI, Google, etc.), indicating the origin or vendor of the model. |
The response message for streaming generation from a Large Language Model (LLM).
| Field | Type | Label | Description |
| llm_generation_stream_response | google.protobuf.Struct | The response data from the LLM in a streaming format, returned as a structured payload.
|
This message contains a Synonym
| Field | Type | Label | Description |
| synonym | string | Synonym word |
|
| score | int32 | Score associated to the synonym resulted |
Configuration for Thesaurus enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Configuration for Word2Vec enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Configuration for WordNet augmenter enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Configuration for XLNet enrichment
| Field | Type | Label | Description |
| is_active | bool | Activation flag |
|
| enrichment_factor | int32 | Factor of enrichment |
|
| execution_order | int32 | Order of augmenter execution |
Enum of fuzzy ner algorithms
| Name | Number | Description |
| PREFILTER_LEVENSHTEIN | 0 | Levenshtein algorithm for fuzzy ner matching |
| LOCAL_MAXIMUM | 1 | local maximum |
Type of Intent algorithm.
| Name | Number | Description |
| OndewoIntentExactContextDetector | 0 | By enabling this, a specific intent is triggered if the context and the intent name in the user says is matched. This can be used for directly triggering 'quick reply' button clicks confidence is always '1.0'. |
| OndewoIntentExactMatch | 1 | exact matching' of user input to user says is used to detect the intent. Confidence is always '1.0' if an 'exact match' is found. |
| OndewoIntentNamedExactMatch | 2 | the entity synonym in the user says text is replaced by the entity and 'exact matching' of user says text is performed. Confidence is always '1.0'. |
| OndewoIntentSimilarityMatch | 3 | the algorithm computes the similarity of the user input to all user says of all intents. |
| OndewoIntentNamedSimilarityMatch | 4 | the entity synonyms in the user says are replaced by their Entity. Text similarity algorithms are then used to detect the intent. |
| OndewoIntentBertClassifier | 7 | new language representation model called BERT, which stands for Bidirectional Encoder Representations from Transformers.BERT is designed to pre-train deep bidirectional representations by jointly conditioning on both left and right context in all layers. As a result, the pre-trained BERT representations can be fine-tuned for multi-class intent detection. For details see https://arxiv.org/abs/1810.04805 |
| OndewoIntentMetaClassifier | 8 | Meta classifier that combines multiple intent classification algorithms to improve accuracy |
| IntentExitDetector | 10 | Maximum number of repeated fallbacks before this algorithm exists the conversation and resets contexts |
| OndewoIntentRankingMatch | 11 | Algorithm to improve the interplay of the other algorithms |
| OndewoWeightedEnsemble | 13 | Ensemble calculation of used algorithms |
| OndewoIntentExitDetector | 14 | Maximum number of repeated fallbacks before this algorithm exists the conversation and resets contexts |
| OndewoIntentParameterMatch | 15 | Matches the intent based on the parameter constellation and the current user context |
Type of mode
| Name | Number | Description |
| UNSPECIFIED | 0 | default mode, described in agent config |
| EXCLUSIVE | 1 | skip algorithms listed in |
| INCLUSIVE | 2 | run ONLY algorithms listed in |
Service to manage Call Center AI (CCAI service) Projects.
rpc GetCcaiProject (GetCcaiProjectRequest) returns (CcaiProject)Retrieves information about a specific CCAI service project.
rpc CreateCcaiProject (CreateCcaiProjectRequest) returns (CreateCcaiProjectResponse)Creates a new CCAI service project based on the provided request.
rpc DeleteCcaiProject (DeleteCcaiProjectRequest) returns (DeleteCcaiProjectResponse)Deletes a CCAI service project identified by the provided request.
rpc ListCcaiProjects (ListCcaiProjectsRequest) returns (ListCcaiProjectsResponse)Lists all CCAI service projects based on the provided request.
rpc UpdateCcaiProject (UpdateCcaiProjectRequest) returns (UpdateCcaiProjectResponse)Updates the information of an existing CCAI service project.
rpc GetCcaiService (GetCcaiServiceRequest) returns (CcaiService)Retrieves information about a specific CCAI service.
Message representing a CCAI service project
| Field | Type | Label | Description |
| name | string | Resource name of the CCAI service project |
|
| display_name | string | Required. The display name of this ccai project. |
|
| owner_name | string | Optional. Resource name of the user who is the owner of the project. |
|
| ccai_services_map | CcaiProject.CcaiServicesMapEntry | repeated | Map of two letter language codes to lists of CcaiServiceList Two-letter language codes following ISO 639-1 (see https://en.wikipedia.org/wiki/ISO_639-1) |
| ccai_project_status | CcaiProjectStatus | The status of the ccai project. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in the form of a valid UUID. |
|
| modified_by | string | User id in the form of a valid UUID. |
|
| nlu_project_name | string | Required. Associated NLU agent Format: |
| Field | Type | Label | Description |
| key | string |
|
|
| value | CcaiServiceList |
|
This protobuf message defines the sorting order for CCAI service (VOIP Telephone System Integration) projects.
| Field | Type | Label | Description |
| sorting_field | CcaiProjectSorting.CcaiProjectSortingField | sorting field for ccai projects sorting |
|
| sorting_mode | SortingMode | Sorting mode |
Definition of a Call Center AI (CCAI service) Service.
| Field | Type | Label | Description |
| name | string | Resource name of the service. Must be unique. |
|
| display_name | string | Display name for better identification. |
|
| language_code | string | Language code representing the service language Format (e.g., "en" for English, "de" for German). |
|
| grpc_host | string | gRPC host for communication with the specified port. |
|
| grpc_port | int32 | Port for gRPC communication. |
|
| webgrpc_host | string | Web gRPC host for web-based communication with the specified port. |
|
| webgrpc_port | int32 | Port for web gRPC communication. |
|
| grpc_cert | string | Path to the gRPC certificate for secure communication. |
|
| host | string | Additional host for communication, if needed. |
|
| port | int32 | Port for additional communication. |
|
| port2 | int32 | Another additional port for communication if required. |
|
| http_basic_auth_token | string | Http basic auth token |
|
| account_name | string | Account name for authentication. |
|
| account_password | string | Password for the specified account for authentication. |
|
| api_key | string | API key for accessing the service, if applicable. |
|
| ccai_service_type | CcaiServiceType | Type of CCAI service service (e.g., TEXT_TO_SPEECH, SPEECH_TO_TEXT). |
|
| ccai_project_name | string | Resource name of the ccai_project the ccai_service belongs to |
|
| ccai_service_config | google.protobuf.Struct | Detailed configuration of the CcaiService |
|
| created_at | google.protobuf.Timestamp | Creation date and time of the service. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time of the service. Read-only field. |
|
| created_by | string | User ID of the creator in the form of a valid UUID. Read-only field. |
|
| modified_by | string | User ID of the last modifier in the form of a valid UUID. Read-only field. |
|
| headers | google.protobuf.Struct | Optional. The headers of the request message |
|
| ccai_service_provider | CcaiServiceProvider | Provider of the ccai service |
|
| service_hierarchy | string | Index indicating the hierarchical position of a service within the service hierarchy. The index follows a tree-like structure, where each level of depth is separated by a "_". For example:
|
Filter which services should be included in the returned CcaiProject
| Field | Type | Label | Description |
| language_codes | string | repeated | Language codes of the projects for which services are filtered. |
| ccai_service_types | CcaiServiceType | repeated | Type of CCAI service service |
| ccai_service_providers | CcaiServiceProvider | repeated | Type of CCAI service providers |
Message representing a list of CCAI service services
| Field | Type | Label | Description |
| ccai_services | CcaiService | repeated | CCAI service services |
Request to create a Call Center AI (CCAI service) project.
| Field | Type | Label | Description |
| ccai_project | CcaiProject | The CCAI service project to be created. |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
Response after attempting to create a Call Center AI (CCAI service) project.
| Field | Type | Label | Description |
| ccai_project | CcaiProject | The created CCAI service project. |
|
| error_message | string | Error message if the creation is unsuccessful. |
Request to delete a CCAI service project
If a deployed CCAI service project was deleted then it was undeployed beforehand automatically
| Field | Type | Label | Description |
| name | string | CCAI service project name with which to perform the call of the form |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
Response to delete a CCAI service project
If a deployed CCAI service project was deleted then it was undeployed beforehand automatically
| Field | Type | Label | Description |
| name | string | CCAI service project name with which to perform the call of the form |
|
| error_message | string | error message if there are any. |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
Request to retrieve a CCAI service project
| Field | Type | Label | Description |
| name | string | CCAI service project name with which to perform the call of the form |
|
| ccai_project_view | CcaiProjectView | Optional. Specify the view of the returned CcaiProject (full view by default) |
|
| ccai_service_filter | CcaiServiceFilter | Filter which services should be included in the returned CcaiProject |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Request to retrieve a CCAI service project
| Field | Type | Label | Description |
| name | string | CCAI service project name with which to perform the call of the form |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Request to get the list of agents
| Field | Type | Label | Description |
| ccai_project_view | CcaiProjectView | Optional. Specify the view of the returned CcaiProject (full view by default) |
|
| ccai_service_filter | CcaiServiceFilter | Filter which services should be included in the CcaiProject |
|
| ccai_project_sorting | CcaiProjectSorting | Optional. Field to define the sorting of the list of CCAI service projects in the response. If not specified, the default behavior is to have no sorting. |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. Example: "current_index-1--page_size-20" The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This is a protobuf message definition for the response of getting a list of CCAI service projects.
| Field | Type | Label | Description |
| ccai_projects | CcaiProject | repeated | The list of CCAI service projects returned in the response. Use the 'repeated' keyword to indicate that this field can contain multiple instances of CcaiProject. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request to updated CCAI service project
| Field | Type | Label | Description |
| ccai_project | CcaiProject | The CcaiProject that should be updated |
|
| ccai_service_filter | CcaiServiceFilter | Filter which services should be updated in the CcaiProject |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
|
| nlu_project_name | string | Required. The nlu agent project of this CcaiProject. Format: |
Request to updated CCAI service project
| Field | Type | Label | Description |
| name | string | CCAI service project name with which to perform the call of the form |
|
| error_message | string | error message if there are any. |
Enum to specify the sorting field for CCAI service projects.
| Name | Number | Description |
| NO_CCAI_PROJECT_SORTING | 0 | No sorting |
| SORT_CCAI_PROJECT_BY_NAME | 1 | Sort by project name such as |
| SORT_CCAI_PROJECT_BY_DISPLAY_NAME | 2 | Sort by display name |
| SORT_CCAI_PROJECT_BY_CREATION_DATE | 3 | Sort by creation date |
| SORT_CCAI_PROJECT_BY_LAST_MODIFIED | 4 | Sort by last modified date |
Status of a Call Center AI (CCAI service) Project.
| Name | Number | Description |
| CCAI_PROJECT_STATUS_UNSPECIFIED | 0 | No status specified |
| CCAI_PROJECT_STATUS_UNDEPLOYED | 1 | Project successfully created and undeployed |
| CCAI_PROJECT_STATUS_UPDATING | 2 | Project configuration is updating |
| CCAI_PROJECT_STATUS_DEPLOYING | 3 | Project is deploying |
| CCAI_PROJECT_STATUS_DEPLOYED | 4 | Project is deployed |
| CCAI_PROJECT_STATUS_UNDEPLOYING | 5 | Project is un-deploying |
| CCAI_PROJECT_STATUS_DELETING | 6 | Project is currently deleting |
| CCAI_PROJECT_STATUS_DELETED | 7 | Project is deleted |
CcaiProjectView defines what the CcaiProject message contains
| Name | Number | Description |
| CCAI_PROJECT_VIEW_UNSPECIFIED | 0 | Unspecified CCAI_PROJECT view: the view is defined by the call: |
| CCAI_PROJECT_VIEW_FULL | 1 | Full CCAI_PROJECT view: populate all the fields of the CCAI_PROJECT message including configs. |
| CCAI_PROJECT_VIEW_SHALLOW | 2 | Shallow CCAI_PROJECT view: populates all the fields except configs. |
| CCAI_PROJECT_VIEW_MINIMUM | 3 | Minimum view including only CCAI_PROJECT UUID and CCAI_PROJECT display name |
| Name | Number | Description |
| NO_CCAI_SERVICE_PROVIDER | 0 | No specified provider or placeholder |
| CCAI_SERVICE_PROVIDER_ONDEWO | 1 | ONDEWO provider for CCAI service services ONDEWO |
| CCAI_SERVICE_PROVIDER_GOOGLE_GEMINI | 2 | Google as the CCAI service provider, utilizing Google's conversational AI capabilities Google Gemini |
| CCAI_SERVICE_PROVIDER_MICROSOFT_AZURE_OPENAI | 3 | Microsoft Azure as the CCAI service provider, using Microsoft's Azure cognitive services Azure OpenAI |
| CCAI_SERVICE_PROVIDER_MICROSOFT_AUTOGEN | 4 | Deprecated: Microsoft AutoGen as the CCAI service provider AutoGen. The server no longer runs AutoGen and refuses to create services with this provider; stored AutoGen services are migrated to AI Teams v2 (LangChain / LangGraph). The value is kept for wire compatibility and may still appear on data written before the migration. |
| CCAI_SERVICE_PROVIDER_OLLAMA | 5 | Ollama as the CCAI service provider, typically associated with specific OLLAMA AI tools Ollama |
| CCAI_SERVICE_PROVIDER_OPENAI | 6 | OpenAI as the CCAI service provider, commonly used for models such as GPT OpenAI |
| CCAI_SERVICE_PROVIDER_ANTHROPIC | 7 | Anthropic as the CCAI service provider, used with AI models from Anthropic Anthropic |
| CCAI_SERVICE_PROVIDER_HUGGINGFACE | 8 | Hugging Face as the CCAI service provider, often used for open-source NLP models Hugging Face |
| CCAI_SERVICE_PROVIDER_IBM | 9 | IBM as the CCAI service provider, such as IBM Watson for conversational AI IBM Watson |
| CCAI_SERVICE_PROVIDER_HAYSTACK | 10 | Haystack as the CCAI service provider, e.g., for question answering and conversations Haystack |
| CCAI_SERVICE_PROVIDER_LANGCHAIN | 11 | LangChain as the CCAI service provider LangChain |
| CCAI_SERVICE_PROVIDER_AMAZON | 12 | Amazon AWS as the CCAI service provider, using Amazon's AI/ML services AWS AI Services |
| CCAI_SERVICE_PROVIDER_MISTRAL | 13 | Mistral as the CCAI service provider, using Mistral's services Mistral |
| CCAI_SERVICE_PROVIDER_DUCKDUCKGO | 14 | DuckDuckGo Websearch API DuckDuckGo API |
| CCAI_SERVICE_PROVIDER_GOOGLE_PSE | 15 | Google PSE Websearch API Google Programmable Search Engine |
| CCAI_SERVICE_PROVIDER_JINA | 16 | Jina Websearch API Jina AI |
| CCAI_SERVICE_PROVIDER_TAVILY | 17 | Tavily Websearch API Tavily API |
| CCAI_SERVICE_PROVIDER_ELASTICSEARCH | 18 | ElasticSearch vector database service ElasticSearch |
| CCAI_SERVICE_PROVIDER_MILVUS | 19 | Milvus vector database service Milvus |
| CCAI_SERVICE_PROVIDER_QDRANT | 20 | Qdrant vector database service Qdrant |
| CCAI_SERVICE_PROVIDER_CHROMA | 21 | Chroma vector database service ChromaDB |
| CCAI_SERVICE_PROVIDER_GOOGLE | 22 | Google CCAI service provider Google Cloud AI |
| CCAI_SERVICE_PROVIDER_MICROSOFT | 23 | Microsoft CCAI service provider Microsoft AI |
| CCAI_SERVICE_PROVIDER_DEEPGRAM | 24 | Deepgram as the CCAI service provider for speech processing Deepgram |
| CCAI_SERVICE_PROVIDER_ELEVENLABS | 25 | ElevenLabs as the CCAI service provider for voice synthesis ElevenLabs |
| CCAI_SERVICE_PROVIDER_HUGGINGFACE_TGI | 26 | Hugging Face Text Generation Inference (TGI) as the CCAI service provider Text Generation Inference |
| CCAI_SERVICE_PROVIDER_HUGGINGFACE_TGE | 27 | Hugging Face Text Embedding Inference (TGE) as the CCAI service provider Text Embeddings Inference |
| CCAI_SERVICE_PROVIDER_HUGGINGFACE_SMOLAGENTS | 28 | Hugging Face SmolAgents as the CCAI service provider SmolAgents |
| CCAI_SERVICE_PROVIDER_GOOGLE_AGENT_DEVELOPMENT_KIT | 29 | Google Agent Development Kit (ADK) as the CCAI service provider Google Agent Development Kit (ADK) |
| CCAI_SERVICE_PROVIDER_MODEL_CONTEXT_PROTOCOL | 30 | Model Context Protocol as the CCAI service provider, enabling integration with services following the Model Context Protocol standard. MCP |
| CCAI_SERVICE_PROVIDER_OPENSEARCH | 31 | Opensearch as the CCAI service provider, enabling integration with Opensearch vector database and search services Opensearch |
| CCAI_SERVICE_PROVIDER_GROK | 32 | Grok as the CCAI service provider, commonly used for models such as Grok-1 Grok |
| CCAI_SERVICE_PROVIDER_POSTGRES | 33 | PostgreSQL as the CCAI service provider, enabling integration with PostgreSQL databases PostgreSQL |
| CCAI_SERVICE_PROVIDER_MICROSOFT_AGENT_FRAMEWORK | 34 | Microsoft Agent Framework as the CCAI service provider Microsoft Agent Framework |
Defines the types of CCAI (Call Center AI) services available in the system.
Each service type represents a specific capability or module within the ONDEWO platform
that enables comprehensive call center and customer interaction management. Services can be
composed in workflows and are identified by their type, language code, and provider configuration.
| Name | Number | Description |
| CCAI_SERVICE_TYPE_UNSPECIFIED | 0 | No service type specified or unknown type |
| CCAI_SERVICE_TYPE_ONDEWO_AIM | 1 | ONDEWO Agent Interaction Manager (AIM) Orchestrates multi-channel agent interactions, conversation routing, and workforce management. Handles inbound/outbound call distribution, chat routing, and agent state management. |
| CCAI_SERVICE_TYPE_ONDEWO_BPI | 2 | ONDEWO Business Process Intelligence (BPI) Analyzes call center processes, identifies optimization opportunities, and monitors compliance. Enables workflow automation, process mining, and performance benchmarking. |
| CCAI_SERVICE_TYPE_ONDEWO_CSI | 3 | ONDEWO Customer Service Intelligence (CSI) Provides customer service analytics, sentiment analysis, and interaction quality scoring. Generates insights from call recordings, transcripts, and customer feedback. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU | 4 | ONDEWO Natural Language Understanding (NLU) Core natural language processing service for intent recognition, entity extraction, and dialogue management. Essential for conversational AI and automated customer interactions. |
| CCAI_SERVICE_TYPE_ONDEWO_S2T | 5 | ONDEWO Speech-to-Text (S2T) Converts audio speech to written text with high accuracy and multi-language support. Integrates with voice channels for real-time transcription during calls. |
| CCAI_SERVICE_TYPE_ONDEWO_SIP | 6 | ONDEWO Session Initiation Protocol (SIP) Manages VoIP signaling, call establishment, call control, and telephony infrastructure. Handles SIP trunk integration, PBX connectivity, and call routing logic. |
| CCAI_SERVICE_TYPE_ONDEWO_T2S | 7 | ONDEWO Text-to-Speech (T2S) Converts written text to natural-sounding audio speech with multiple voice options. Enables voice-based responses, IVR prompts, and notification delivery. |
| CCAI_SERVICE_TYPE_ONDEWO_VTSI | 8 | ONDEWO VOIP Telephone System Integration (VTSI) Provides virtual telephony infrastructure for testing, simulation, and call management. Enables stress testing, scenario simulation, and quality assurance for voice applications. |
| CCAI_SERVICE_TYPE_ONDEWO_VTSI_RABBITMQ | 9 | ONDEWO VOIP Telephone System Integration (VTSI) with RabbitMQ Extended VTSI service with RabbitMQ message queue integration for asynchronous processing. Enables decoupled, scalable call handling and event streaming. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_QA | 10 | ONDEWO NLU Question Answering (QA) Provides intelligent question-answering capabilities for knowledge base queries. Enables automated FAQ handling and self-service customer support. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_WEBHOOK | 11 | ONDEWO NLU Webhook Enables webhook-based event integration for NLU events and external notifications. Allows real-time integration with third-party systems and custom workflows. |
| CCAI_SERVICE_TYPE_ONDEWO_SURVEY | 12 | ONDEWO Survey Manages survey campaigns, customer feedback collection, and satisfaction measurements. Supports post-call surveys and voice-based survey delivery. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_LLM | 13 | ONDEWO NLU Large Language Model (LLM) Integrates large language models for advanced NLP tasks and generative AI capabilities. Enables contextual responses, content generation, and semantic understanding. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_WEBSEARCH | 14 | ONDEWO NLU Web Search Performs real-time internet search queries and retrieves current information. Enables agents to access live data during customer interactions. |
| CCAI_SERVICE_TYPE_ONDEWO_AIM_WEBCHAT | 15 | ONDEWO Agent Interaction Manager (AIM) WebChat Enables live chat interactions via web browsers for customer support. Manages web-based messaging channels with agent assignment and routing. |
| CCAI_SERVICE_TYPE_ONDEWO_AIM_WEBPHONE | 16 | ONDEWO Agent Interaction Manager (AIM) WebPhone Enables VoIP phone interactions directly through web browsers without additional software. Supports WebRTC-based calling for modern browser environments. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_VECTORSTORE | 17 | ONDEWO NLU Vector Store Manages vector embeddings and semantic search capabilities for knowledge retrieval. Enables similarity matching and context-aware information lookup. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_LLM_AGENT | 18 | ONDEWO NLU LLM Agent Autonomous agent powered by large language models with tool-calling capabilities. Enables complex, multi-step tasks and dynamic decision-making in customer interactions. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_LLM_MCP | 19 | ONDEWO NLU LLM Model Context Protocol (MCP) Integrates large language models with the Model Context Protocol standard for tool usage. Enables standardized integration with external tools and data sources. |
| CCAI_SERVICE_TYPE_ONDEWO_NLU_LLM_RAG | 20 | ONDEWO NLU LLM Retrieval-Augmented Generation (RAG) Enhances large language model responses with document and knowledge base retrieval. Enables grounded, factual responses backed by organizational knowledge. |
| CCAI_SERVICE_TYPE_ONDEWO_ANALYTICS | 21 | ONDEWO Analytics Provides comprehensive analytics and metrics for call center operations and KPI tracking. Enables real-time dashboards, historical analysis, and predictive insights. |
| CCAI_SERVICE_TYPE_ONDEWO_ANALYTICS_DASHBOARD | 22 | ONDEWO Analytics Dashboard Visual dashboard for displaying analytics, KPIs, and performance metrics. Provides interactive reports for supervisors, managers, and executives. |
| CCAI_SERVICE_TYPE_ONDEWO_VTSI_OUTBOUND_CAMPAIGN | 23 | ONDEWO VOIP Telephone System Integration (VTSI) Outbound Calling Handles outbound call campaigns and call management. Enables sales outreach, follow-ups, and proactive customer communication. |
| CCAI_SERVICE_TYPE_ONDEWO_VTSI_INBOUND_CAMPAIGN | 24 | ONDEWO VOIP Telephone System Integration (VTSI) Inbound Campaign Manages inbound call campaigns and call routing for marketing or support purposes. Enables targeted call handling and customer engagement strategies. |
Message for adding notifications in a batch.
| Field | Type | Label | Description |
| notifications | Notification | repeated | List of notifications to be added. |
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields of the returned notifications are filled with data. |
Message containing the response to adding notifications.
| Field | Type | Label | Description |
| notifications | Notification | repeated | List of notifications that have been added. |
Comment message
| Field | Type | Label | Description |
| name | string | resource name of the comment |
|
| text | string | text of the comment |
|
| user_id | string | User id as resource name. Format: |
|
| comment_about_name | string | name of the resource for which the comment is about. Format: |
|
| parent_comment_name | string | The resource name of the parent comment. A parent comment is a reply to a certain comment. Format: |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| is_resolved | bool | optional | Whether the comment has been resolved. Defaults to false. Declared `optional` so field presence is tracked: on UpdateSessionComments an unset value leaves the stored resolved status unchanged, so editing a comment's text never clobbers its resolved flag. |
Message for deleting one or more notifications by their resource names.
| Field | Type | Label | Description |
| notification_names | string | repeated | Resource names of the notifications to delete. |
Message for retrieving a single notification by its resource name.
| Field | Type | Label | Description |
| name | string | Resource name of the notification to retrieve. |
|
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields of the notification are returned. |
Key-Value pair message, where the value can be one of various types (int, float, double, string, etc.).
| Field | Type | Label | Description |
| key | string | The key of the key-value pair. |
|
| int_value | int32 | The integer value (if applicable). |
|
| float_value | float | The float value (if applicable). |
|
| double_value | double | The double value (if applicable). |
|
| string_value | string | The string value (if applicable). |
|
| created_at | google.protobuf.Timestamp | The timestamp value (if applicable). |
Message for listing notifications based on certain criteria.
| Field | Type | Label | Description |
| notification_filter | NotificationFilter | Optional filter to narrow the response down to specific notifications. |
|
| page_token | string | Optional. Token for pagination, obtained from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields will be filled with data.
|
Message containing the response to a list request for notifications.
| Field | Type | Label | Description |
| notifications | Notification | repeated | List of notifications that meet the specified criteria. |
A generic log entry structure.
| Field | Type | Label | Description |
| name | string | Resource name of the log entry. Format: |
|
| log_entry_sequence_index | int32 | Sequence index within the run. |
|
| display_name | string | Name of the log. |
|
| log_entry_timestamp | google.protobuf.Timestamp | Timestamp of the log. |
|
| log_entry_receive_timestamp | google.protobuf.Timestamp | Output only. Timestamp when the log was received. |
|
| log_entry_severity | LogSeverity | Severity of the log. |
|
| log_entry_phase | string | Execution phase (e.g. "discovery", "extraction"). |
|
| log_entry_operation_name | string | Name of the operation. |
|
| log_entry_details | google.protobuf.Struct | Raw details in Struct format. |
|
| log_entry_context | google.protobuf.Struct | Domain-specific metadata in Struct format. |
Notification message
| Field | Type | Label | Description |
| name | string | resource name of the notification |
|
| user_name | string | User id as resource name. Format: |
|
| title | string | User id as resource name. Format: |
|
| description_short | string | A short notification text is displayed directly with max. 50 chars which is a truncated version of the long message |
|
| description_long | string | A long notification text |
|
| notification_flagged_status | NotificationFlaggedStatus | Has a notification been flagged by a specific user |
|
| notification_flagged_timestamp | google.protobuf.Timestamp | When the user marked the notification as read |
|
| notification_read_status | NotificationReadStatus | Has a notification been read by a specific user |
|
| notification_read_timestamp | google.protobuf.Timestamp | When the user marked the notification as read, i.e. read the notification |
|
| notification_origin | NotificationOrigin | The origin of a notification. A Notification origin can be from a product (service), e.g. ondewo-nlu, ondewo-s2t, ondewo-t2s, etc. |
|
| origin_name | string | The name of resource of where the notification originated |
|
| origin_language | string | language of the origin resource e.g. language of the nlu agent or language of the speech-to-text service |
|
| notification_type | NotificationType | The type of notification |
|
| notification_visibility | NotificationVisibility | The visibility level of the notification |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| link | string | Optional deep-link / route target the notification navigates to when clicked, e.g. a relative AIM route to the referenced intent or entity. Empty when the notification is not clickable. |
Message for filtering notifications based on various criteria.
| Field | Type | Label | Description |
| language_codes | string | repeated | Language codes of the projects for which notifications are filtered. |
| notification_origins | NotificationOrigin | repeated | Origins of the notifications to filter. |
| notification_visibilities | NotificationVisibility | repeated | Visibilities of the notifications to filter. |
| notification_flagged_status | NotificationFlaggedStatus | repeated | Flagged status of the notifications to filter. |
| notification_read_status | NotificationReadStatus | repeated | Read status of the notifications to filter. |
| earliest | google.protobuf.Timestamp | Filter notifications with a time range starting from the specified earliest time. |
|
| latest | google.protobuf.Timestamp | Filter notifications with a time range ending at the specified latest time. |
|
| user_names | string | repeated | Resource names of users to filter notifications for. |
| origin_names | string | repeated | Resource names of the origin of the notification to filter notifications. |
| notification_types | NotificationType | repeated | Types of the notifications to filter. |
Message for setting the flagged status of notifications.
| Field | Type | Label | Description |
| notification_names | string | repeated | Names of notifications to set the flagged status for. |
| flagged | bool | repeated | Flagged status to set for the specified notifications. |
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields of the returned notifications are filled with data. |
Message for setting the read status of notifications.
| Field | Type | Label | Description |
| notification_names | string | repeated | Names of notifications to set the read status for. |
| flagged | bool | repeated | Read status to set for the specified notifications. |
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields of the returned notifications are filled with data. |
statistic response
| Field | Type | Label | Description |
| value | uint32 | Response wrapper for the "Get<Stat>" endpoints |
Message for streaming notifications in real time via
| Field | Type | Label | Description |
| notification_filter | NotificationFilter | Optional filter to narrow the stream down to specific notifications (same semantics as NotificationFilter used by ListNotifications). The caller is always additionally scoped to their own notifications server-side. |
|
| include_existing | bool | When true, the currently-stored matching notifications are replayed first (oldest first) before the stream switches to pushing only newly-created notifications. When false (the default) only notifications created after the stream opened are pushed. |
Message for updating a single notification.
| Field | Type | Label | Description |
| notification | Notification | The notification to update, identified by its resource name. |
|
| update_mask | google.protobuf.FieldMask | Mask controlling which fields of the notification are updated. |
|
| field_mask | google.protobuf.FieldMask | Optional. Mask to control which fields of the returned notification are filled with data. |
Log levels for various system operations based on Loguru log levels.
| Name | Number | Description |
| LOG_SEVERITY_UNSPECIFIED | 0 | Unspecified log level. |
| LOG_SEVERITY_TRACE | 1 | Trace level - lowest level, most detailed. |
| LOG_SEVERITY_DEBUG | 2 | Debug level - detailed information for troubleshooting. |
| LOG_SEVERITY_INFO | 3 | Info level - general operational messages. |
| LOG_SEVERITY_SUCCESS | 4 | Success level - successful completion of an operation. |
| LOG_SEVERITY_WARNING | 5 | Warning level - potential issues that don't stop execution. |
| LOG_SEVERITY_ERROR | 6 | Error level - serious issues that might affect results. |
| LOG_SEVERITY_CRITICAL | 7 | Critical level - critical failures that stop the process. |
Enumerates the possible flagged statuses for a notification.
| Name | Number | Description |
| NOTIFICATION_FLAGGED_STATUS_UNSPECIFIED | 0 | Unspecified flagged status |
| NOTIFICATION_FLAGGED_STATUS_FLAGGED | 1 | Notification is flagged |
| NOTIFICATION_FLAGGED_STATUS_UNFLAGGED | 2 | Notification is unflagged |
Enumerates the possible origins for a notification.
| Name | Number | Description |
| NOTIFICATION_ORIGIN_UNSPECIFIED | 0 | unspecified |
| NOTIFICATION_ORIGIN_ONDEWO_AIM | 1 | ondewo-aim service |
| NOTIFICATION_ORIGIN_ONDEWO_BPI | 2 | ondewo-bpi service |
| NOTIFICATION_ORIGIN_ONDEWO_CSI | 3 | ondewo-csi service |
| NOTIFICATION_ORIGIN_ONDEWO_NLU | 4 | ondewo-nlu service |
| NOTIFICATION_ORIGIN_ONDEWO_S2T | 5 | ondewo-s2t service |
| NOTIFICATION_ORIGIN_ONDEWO_SIP | 6 | ondewo-sip service |
| NOTIFICATION_ORIGIN_ONDEWO_T2S | 7 | ondewo-t2s service |
| NOTIFICATION_ORIGIN_ONDEWO_VTSI | 8 | ondewo-vtsi service |
| NOTIFICATION_ORIGIN_ONDEWO_VTSI_RABBITMQ | 9 | ondewo-vtsi-rabbitmq service |
| NOTIFICATION_ORIGIN_ONDEWO_SURVEY | 10 | ondewo-survey service |
Enumerates the possible read statuses for a notification.
| Name | Number | Description |
| NOTIFICATION_READ_STATUS_UNSPECIFIED | 0 | Unspecified read status |
| NOTIFICATION_READ_STATUS_READ | 1 | Notification is marked as read |
| NOTIFICATION_READ_STATUS_UNREAD | 2 | Notification is marked as unread |
Enumerates the possible types for a notification.
| Name | Number | Description |
| NOTIFICATION_TYPE_UNSPECIFIED | 0 | Unspecified notification type |
| NOTIFICATION_TYPE_DEBUG | 1 | Debug notification type |
| NOTIFICATION_TYPE_WARNING | 2 | Warning notification type |
| NOTIFICATION_TYPE_INFO | 3 | Informational notification type |
| NOTIFICATION_TYPE_ERROR | 4 | Error notification type |
| NOTIFICATION_TYPE_NEWS | 5 | News notification type |
Enum for notification type
| Name | Number | Description |
| NOTIFICATION_VISIBILITY_UNSPECIFIED | 0 | unspecified |
| NOTIFICATION_VISIBILITY_USER | 1 | only user sees the notification - usually a notification of the user interface |
| NOTIFICATION_VISIBILITY_PROJECT | 2 | all members of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_OWNER | 3 | all admins of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_ADMIN | 4 | all admins of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_DEVELOPER | 5 | all admins of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_USER | 6 | all users of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_EXECUTOR | 7 | all users of a project see this notification |
| NOTIFICATION_VISIBILITY_PROJECT_INACTIVE | 8 | all users of a project see this notification |
| NOTIFICATION_VISIBILITY_SERVER_ADMIN | 9 | all admins of the server |
| NOTIFICATION_VISIBILITY_SERVER_MANAGER | 10 | all admins of the server |
| NOTIFICATION_VISIBILITY_SERVER_USER | 11 | all admins of the server |
| NOTIFICATION_VISIBILITY_SERVER_INACTIVE | 12 | all admins of the server |
Sorting mode
| Name | Number | Description |
| ASCENDING | 0 | ascending sorting |
| DESCENDING | 1 | descending sorting |
A context represents additional information included with user input or with an intent returned by the Dialogflow API. Contexts are helpful for differentiating user input which may be vague or have a different meaning depending on additional details from your application such as user setting and preferences, previous user input, where the user is in your application, geographic location, and so on.
You can include contexts as input parameters of a DetectIntent (or StreamingDetectIntent) request, or as output contexts included in the returned intent.
Contexts expire when an intent is matched, after the number of DetectIntent requests specified by the lifespan_count parameter, or after 10 minutes if no intents are matched for a DetectIntent request.
For more information about contexts, see the Dialogflow documentation.
rpc ListContexts (ListContextsRequest) returns (ListContextsResponse)Returns the list of all contexts in the specified session.
rpc GetContext (GetContextRequest) returns (Context)Retrieves the specified context.
rpc CreateContext (CreateContextRequest) returns (Context)Creates a context.
rpc UpdateContext (UpdateContextRequest) returns (Context)Updates the specified context.
rpc DeleteContext (DeleteContextRequest) returns (.google.protobuf.Empty)Deletes the specified context.
rpc DeleteAllContexts (DeleteAllContextsRequest) returns (.google.protobuf.Empty)Deletes all active contexts in the specified session.
| Method Name | Method | Pattern | Body |
| ListContexts | GET | /v2/{parent=projects/*/agent/sessions/*}/contexts | |
| GetContext | GET | /v2/{name=projects/*/agent/sessions/*/contexts/*} | |
| CreateContext | POST | /v2/{parent=projects/*/agent/sessions/*}/contexts | context |
| UpdateContext | PATCH | /v2/{context.name=projects/*/agent/sessions/*/contexts/*} | context |
| DeleteContext | DELETE | /v2/{name=projects/*/agent/sessions/*/contexts/*} | |
| DeleteAllContexts | DELETE | /v2/{parent=projects/*/agent/sessions/*}/contexts |
Represents a context.
| Field | Type | Label | Description |
| name | string | Required. The display name of the context (must be unique per session).
Note: we are deviating from the dialogflow format
|
|
| lifespan_count | int32 | Optional. The number of conversational query requests after which the
context expires. If set to |
|
| parameters | Context.ParametersEntry | repeated | Optional. The collection of parameters associated with this context. Refer to this doc for syntax. Keys are the display names of context parameters. |
| lifespan_time | float | optional | Optional. The time span in seconds after which the context expires. By default it does not expire. |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents a parameter associated with a context
| Field | Type | Label | Description |
| name | string | The name of the context parameter. |
|
| display_name | string | The display name of the context parameter. |
|
| value | string | The value(s) of the context parameter. |
|
| value_original | string | The original value(s) of the context parameter. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
| Field | Type | Label | Description |
| key | string |
|
|
| value | Context.Parameter |
|
The request message for Contexts.CreateContext.
| Field | Type | Label | Description |
| session_id | string | Required. The session to create a context for. Format: |
|
| context | Context | Required. The context to create. |
The request message for Contexts.DeleteAllContexts.
| Field | Type | Label | Description |
| session_id | string | Required. The name of the session to delete all contexts from. Format: |
The request message for Contexts.DeleteContext.
| Field | Type | Label | Description |
| name | string | Required. The name of the context to delete. Format:
|
The request message for Contexts.GetContext.
| Field | Type | Label | Description |
| name | string | Required. The name of the context. Format:
|
The request message for Contexts.ListContexts.
| Field | Type | Label | Description |
| session_id | string | Required. The session to list all contexts from. Format: |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
The response message for Contexts.ListContexts.
| Field | Type | Label | Description |
| contexts | Context | repeated | The list of contexts. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
The request message for Contexts.UpdateContext.
| Field | Type | Label | Description |
| context | Context | Required. The context to update. |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
Entities are extracted from user input and represent parameters that are meaningful to your application. For example, a date range, a proper name such as a geographic location or landmark, and so on. Entities represent actionable data for your application.
When you define an entity, you can also include synonyms that all map to that entity. For example, "soft drink", "soda", "pop", and so on.
There are three types of entities:
EntityType type.pizza.sauce entity for red or white pizza sauce, a pizza.cheese entity for the different types of cheese on a pizza, a pizza.topping entity for different toppings, and so on. A developer entity is represented by the EntityType type.For more information about entity types, see the Dialogflow documentation.
rpc ListEntityTypes (ListEntityTypesRequest) returns (ListEntityTypesResponse)Returns the list of all entity types in the specified agent.
rpc GetEntityType (GetEntityTypeRequest) returns (EntityType)Retrieves the specified entity type.
rpc CreateEntityType (CreateEntityTypeRequest) returns (EntityType)Creates an entity type in the specified agent.
rpc UpdateEntityType (UpdateEntityTypeRequest) returns (EntityType)Updates the specified entity type.
rpc DeleteEntityType (DeleteEntityTypeRequest) returns (.google.protobuf.Empty)Deletes the specified entity type.
rpc BatchUpdateEntityTypes (BatchUpdateEntityTypesRequest) returns (Operation)Updates/Creates multiple entity types in the specified agent. Operation <response: BatchUpdateEntityTypesResponse, metadata: google.protobuf.Struct>
rpc BatchDeleteEntityTypes (BatchDeleteEntityTypesRequest) returns (Operation)Deletes entity types in the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>
rpc GetEntity (GetEntityRequest) returns (EntityType.Entity)Retrieves the specified entity .
rpc CreateEntity (CreateEntityRequest) returns (EntityType.Entity)Creates an entity in the specified agent.
rpc UpdateEntity (UpdateEntityRequest) returns (EntityType.Entity)Updates the specified entity .
rpc DeleteEntity (DeleteEntityRequest) returns (DeleteEntityStatus)Deletes the specified entity .
rpc BatchCreateEntities (BatchCreateEntitiesRequest) returns (BatchEntitiesResponse)Creates an entity value in an entity type.
rpc BatchUpdateEntities (BatchUpdateEntitiesRequest) returns (BatchEntitiesResponse)Updates a specific entity value.
rpc BatchGetEntities (BatchGetEntitiesRequest) returns (BatchEntitiesResponse)Gets a specific entity value.
rpc BatchDeleteEntities (BatchDeleteEntitiesRequest) returns (BatchDeleteEntitiesResponse)Deletes the specified entity value.
rpc ListEntities (ListEntitiesRequest) returns (ListEntitiesResponse)List entities of an entity type
| Method Name | Method | Pattern | Body |
| ListEntityTypes | GET | /v2/{parent=projects/*/agent}/entityTypes | |
| GetEntityType | GET | /v2/{name=projects/*/agent/entityTypes/*} | |
| CreateEntityType | POST | /v2/{parent=projects/*/agent}/entityTypes | * |
| UpdateEntityType | PATCH | /v2/{entity_type.name=projects/*/agent/entityTypes/*} | * |
| DeleteEntityType | DELETE | /v2/{name=projects/*/agent/entityTypes/*} | |
| BatchUpdateEntityTypes | POST | /v2/{parent=projects/*/agent}/entityTypes:batchUpdate | * |
| BatchDeleteEntityTypes | POST | /v2/{parent=projects/*/agent}/entityTypes:batchDelete | * |
| GetEntity | GET | /v2/{name=projects/*/agent/entityTypes/*/entities/*} | |
| CreateEntity | POST | /v2/{parent=projects/*/agent}/entityTypes/*/entities/ | * |
| UpdateEntity | PATCH | /v2/{entity_.name=projects/*/agent/entityTypes/*/entities/*} | * |
| DeleteEntity | DELETE | /v2/{name=projects/*/agent/entityTypes/*/entities/*} |
This message is a request to create a batch entities
| Field | Type | Label | Description |
| create_entity_requests | CreateEntityRequest | repeated | The create entity requests in a batch |
This message is a request to delete a batch of entities
| Field | Type | Label | Description |
| names | string | repeated | The unique identifiers of the entities. Format:
|
This message is a response of deletion of a batch of entities
| Field | Type | Label | Description |
| delete_statuses | DeleteEntityStatus | repeated | status of an entity deletion |
| has_errors | bool | error messages |
The request message for EntityTypes.BatchDeleteEntityTypes.
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to delete all entities types for. Format:
|
|
| entity_type_names | string | repeated | Required. The names entity types to delete. All names must point to the same agent as `parent`. |
This message is a response of batch entities
| Field | Type | Label | Description |
| entity_statuses | EntityStatus | repeated | A list of entity statuses |
| has_errors | bool | indicates if statuses of some of the training phrases have errors |
This message is a request to get a batch of entities
| Field | Type | Label | Description |
| names | string | repeated | The unique identifiers of the entities. Format:
|
This message is a request to update a batch of entities
| Field | Type | Label | Description |
| entities | EntityType.Entity | repeated | The entities to update |
The request message for EntityTypes.BatchUpdateEntityTypes.
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to update or create entity types in. Format: |
|
| entity_type_batch_uri | string | The URI to a Google Cloud Storage file containing entity types to update or create. The file format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI must start with "gs://". |
|
| entity_type_batch_inline | EntityTypeBatch | The collection of entity type to update or create. |
|
| language_code | string | Optional. The language of entity synonyms defined in |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
The response message for EntityTypes.BatchUpdateEntityTypes.
| Field | Type | Label | Description |
| entity_types | EntityType | repeated | The collection of updated or created entity types. |
| Field | Type | Label | Description |
| entity_type_name | string | Required. Name of the entity type in which to create the entity value. Format:
|
|
| entity | EntityType.Entity | The entity value to create |
The request message for EntityTypes.CreateEntityType.
| Field | Type | Label | Description |
| parent | string | Required. The agent to create a entity type for. Format: |
|
| entity_type | EntityType | Required. The entity type to create. |
|
| language_code | string | Optional. The language of entity synonyms defined in |
|
| entity_type_view | EntityTypeView | Optional. The resource view to apply to the returned Entity Type |
This message is a request to delete a batch of entities
| Field | Type | Label | Description |
| name | string | The unique identifiers of the entities. Format:
|
This message contains the status of an entity deletion
| Field | Type | Label | Description |
| successfully_deleted | google.protobuf.Empty | Set when the entity was successfully deleted |
|
| error_message | string | The error message when deleting the entity failed |
The request message for EntityTypes.DeleteEntityType.
| Field | Type | Label | Description |
| name | string | Required. The name of the entity type to delete. Format: |
This message is for the entity status
| Field | Type | Label | Description |
| entity | EntityType.Entity | The entity |
|
| error_message | string | Error message |
Represents an entity type.
Entity types serve as a tool for extracting parameter values from natural
language queries.
| Field | Type | Label | Description |
| name | string | Required for all methods except |
|
| display_name | string | Required. The name of the entity type. |
|
| kind | EntityType.Kind | Required. Indicates the kind of entity type. |
|
| auto_expansion_mode | EntityType.AutoExpansionMode | Optional. Indicates whether the entity type can be automatically expanded. |
|
| entities | EntityType.Entity | repeated | Optional. The collection of entities associated with the entity type. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
|
| entity_count | int32 | Read-Only field. Total count of entity values of the entity type |
|
| status | EntityType.EntityTypeStatus | Indicates whether the entity type is active or not |
|
| synonym_count | int32 | Read-Only field. Total count of entity synonyms of the entity type |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents an entity value within an entity type
| Field | Type | Label | Description |
| value | string | Required.
For
Values can also be described as regexes with one or more postprocessing options such as one postprocessing
option to remove all whitespaces regex('<#RW#>\\1') or by a combination of several
postprocessing options such as remove all whitespaces and lower casing
regex('<#RW#><#LC#>\\1').
All processing options are:
|
|
| synonyms | string | repeated | Required. A collection of synonyms. For |
| name | string | The unique identifier of the entity. Format:
|
|
| display_name | string | The name of the entity. |
|
| synonym_count | int32 | Optional. Total count of entity synonyms |
|
| language_code | string | Required. The language to list entity synonyms for. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a wrapper around a collection of entity types.
| Field | Type | Label | Description |
| entity_types | EntityType | repeated | A collection of entity types. |
This message contains Entity type sorting
| Field | Type | Label | Description |
| sorting_field | EntityTypeSorting.EntityTypeSortingField | The field to sort the entity types by |
|
| sorting_mode | SortingMode | The sorting mode: ascending or descending |
This message contains entity value sorting
| Field | Type | Label | Description |
| sorting_field | EntityValueSorting.EntityValueSortingField | The field to sort the entity values by |
|
| sorting_mode | SortingMode | The sorting mode: ascending or descending |
This message is a request to get a an entity
| Field | Type | Label | Description |
| name | string | The unique identifiers of the entities. Format:
|
The request message for EntityTypes.GetEntityType.
| Field | Type | Label | Description |
| name | string | Required. The name of the entity type. Format: |
|
| language_code | string | Optional. The language to retrieve entity synonyms for. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used. |
|
| page_token | string | The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| entity_type_view | EntityTypeView | Optional. The resource view to apply to the returned Entity Type |
This message is a request to get a list of entities
| Field | Type | Label | Description |
| entity_type_name | string | The unique identifier of the entity type. Format:
|
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| sort_by_field | EntityValueSorting | Optional. Defines the sorting of the list. Default, no sorting. |
|
| search_by_pattern | string | Optional. Defines a pattern to search for in the entity type "values" and "synonyms" Example: |
This message is a response of listing entities
| Field | Type | Label | Description |
| entities | EntityType.Entity | repeated | The list of entities |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
The request message for EntityTypes.ListEntityTypes.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all entity types from. Format: |
|
| language_code | string | Optional. The language to list entity synonyms for. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used. |
|
| page_token | string | Optional. The next_page_token value returned from a previous list request. The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| entity_type_view | EntityTypeView | Optional. The resource view to apply to the returned entity type. |
|
| filter_by_category | EntityTypeCategory | Optional. Applies a filter to the list. Default, no filter. |
|
| sort_by_field | EntityTypeSorting | Optional. Defines the sorting of the list. Default, no sorting. |
The response message for EntityTypes.ListEntityTypes.
| Field | Type | Label | Description |
| entity_types | EntityType | repeated | The list of agent entity types. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
This message is a request to update an entity
| Field | Type | Label | Description |
| entity | EntityType.Entity | The entity to update |
The request message for EntityTypes.UpdateEntityType.
| Field | Type | Label | Description |
| entity_type | EntityType | Required. The entity type to update. Format: |
|
| language_code | string | Optional. The language of entity synonyms defined in |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
|
| entity_type_view | EntityTypeView | Optional. The resource view to apply to the returned Entity Type |
Represents different entity type expansion modes. Automated expansion
allows an agent to recognize values that have not been explicitly listed in
the entity (for example, new kinds of shopping list items).
| Name | Number | Description |
| AUTO_EXPANSION_MODE_UNSPECIFIED | 0 | Auto expansion disabled for the entity. |
| AUTO_EXPANSION_MODE_DEFAULT | 1 | Allows an agent to recognize values that have not been explicitly listed in the entity. |
| Name | Number | Description |
| ACTIVE | 0 | Entity type is active |
| INACTIVE | 1 | Entity type is inactive |
Represents kinds of entities.
| Name | Number | Description |
| KIND_UNSPECIFIED | 0 | Not specified. This value should be never used. |
| KIND_MAP | 1 | Map entity types allow mapping of a group of synonyms to a canonical value. |
| KIND_LIST | 2 | List entity types contain a set of entries that do not map to canonical values. However, list entity types can contain references to other entity types (with or without aliases). |
Represents the category of entity types to filter by in the "List Entity Types" request
| Name | Number | Description |
| ALL_ENTITY_TYPES | 0 | represent all entity types |
| DEFAULT_ENTITY_TYPES | 1 | represent the default entity types |
| USER_DEFINED_ENTITY_TYPES | 2 | represent the user defined (custom) entity types |
Structure of Entity type sorting field
| Name | Number | Description |
| NO_ENTITY_TYPE_SORTING | 0 | No sorting applied |
| SORT_ENTITY_TYPE_BY_NAME | 1 | Sort by entity type name |
| SORT_ENTITY_TYPE_BY_CREATION_DATE | 2 | Sort by creation date |
| SORT_ENTITY_TYPE_BY_LAST_UPDATED | 3 | Sort by last updated date |
| SORT_ENTITY_TYPE_BY_ENTITY_VALUE_COUNT | 4 | Sort by entity value count |
| SORT_ENTITY_TYPE_BY_SYNONYM_COUNT | 5 | Sort by synonym count |
Represents the options for views of an entity type.
An entity type can be a sizable object. Therefore, we provide a resource view that
does not return all values and synonyms besides the full view that is set by default.
| Name | Number | Description |
| ENTITY_TYPE_VIEW_UNSPECIFIED | 0 | Same as ENTITY_TYPE_VIEW_FULL |
| ENTITY_TYPE_VIEW_FULL | 1 | All fields are populated. |
| ENTITY_TYPE_VIEW_PARTIAL | 2 | The amount of entity values and synonyms is limited |
| ENTITY_TYPE_VIEW_SHALLOW | 3 | No entity synonyms are returned, only entity values |
| ENTITY_TYPE_VIEW_MINIMUM | 4 | Minimum view including only entity type UUID and entity type display name |
Structure of Entity value sorting field
| Name | Number | Description |
| NO_ENTITY_VALUE_SORTING | 0 | Default behaviour: Sorts by value |
| SORT_ENTITY_VALUE_BY_DISPLAY_NAME | 1 | Sort by display name |
| SORT_ENTITY_VALUE_BY_VALUE | 2 | Sort by value |
| SORT_ENTITY_VALUE_BY_SYNONYM_COUNT | 3 | Sort by synonym count |
An intent represents a mapping between input from a user and an action to be taken by your application. When you pass user input to the DetectIntent (or StreamingDetectIntent) method, the Dialogflow API analyzes the input and searches for a matching intent. If no match is found, the Dialogflow API returns a fallback intent (is_fallback = true).
You can provide additional information for the Dialogflow API to use to match user input to an intent by adding the following to your intent.
For more information about intents, see the Dialogflow documentation.
rpc ListIntents (ListIntentsRequest) returns (ListIntentsResponse)Returns the list of all intents in the specified agent.
rpc GetIntent (GetIntentRequest) returns (Intent)Retrieves the specified intent.
rpc CreateIntent (CreateIntentRequest) returns (Intent)Creates an intent in the specified agent.
rpc UpdateIntent (UpdateIntentRequest) returns (Intent)Updates the specified intent.
rpc DeleteIntent (DeleteIntentRequest) returns (.google.protobuf.Empty)Deletes the specified intent.
rpc BatchUpdateIntents (BatchUpdateIntentsRequest) returns (BatchUpdateIntentsResponse)Updates/Creates multiple intents in the specified agent. Operation <response: BatchUpdateIntentsResponse>
rpc BatchDeleteIntents (BatchDeleteIntentsRequest) returns (Operation)Deletes intents in the specified agent.
rpc TagIntent (IntentTagRequest) returns (.google.protobuf.Empty)Tags a specific intent with tag(s)
rpc DeleteIntentTag (IntentTagRequest) returns (.google.protobuf.Empty)Deletes tag(s) for a specific intent
rpc GetIntentTags (GetIntentTagsRequest) returns (GetIntentTagsResponse)Gets all the tags for a specific intent
rpc GetAllIntentTags (GetAllIntentTagsRequest) returns (GetIntentTagsResponse)Gets all the tags for all the intents
rpc BatchCreateTrainingPhrases (BatchCreateTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)Creates batch of training phrases
rpc BatchGetTrainingPhrases (BatchGetTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)Retrieve a training phrases batch of the specified names.
rpc BatchUpdateTrainingPhrases (BatchUpdateTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)Updates batch of training phrases
rpc BatchDeleteTrainingPhrases (BatchDeleteTrainingPhrasesRequest) returns (BatchDeleteTrainingPhrasesResponse)Delete a training phrases batch of the specified names.
rpc ListTrainingPhrases (ListTrainingPhrasesRequest) returns (ListTrainingPhrasesResponse)List training phrases (of a specific intent).
rpc BatchCreateResponseMessages (BatchCreateResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)Creates batch of intent messages
rpc BatchGetResponseMessages (BatchGetResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)Retrieve a intent messages batch of the specified names.
rpc BatchUpdateResponseMessages (BatchUpdateResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)Updates batch of intent messages
rpc BatchDeleteResponseMessages (BatchDeleteResponseMessagesRequest) returns (BatchDeleteResponseMessagesResponse)Delete a intent messages batch of the specified names.
rpc ListResponseMessages (ListResponseMessagesRequest) returns (ListResponseMessagesResponse)List messages (of a specific intent).
rpc BatchCreateParameters (BatchCreateParametersRequest) returns (BatchParametersStatusResponse)Creates batch of intent messages
rpc BatchGetParameters (BatchGetParametersRequest) returns (BatchParametersStatusResponse)Retrieve a intent messages batch of the specified names.
rpc BatchUpdateParameters (BatchUpdateParametersRequest) returns (BatchParametersStatusResponse)Updates batch of intent messages
rpc BatchDeleteParameters (BatchDeleteParametersRequest) returns (BatchDeleteParametersResponse)Delete a intent messages batch of the specified names.
rpc ListParameters (ListParametersRequest) returns (ListParametersResponse)List messages (of a specific intent).
rpc ListTrainingPhrasesofIntentsWithEnrichment (ListTrainingPhrasesofIntentsWithEnrichmentRequest) returns (ListTrainingPhrasesofIntentsWithEnrichmentResponse)List Training phrases (of a specific intent).
| Method Name | Method | Pattern | Body |
| ListIntents | GET | /v2/{parent=projects/*/agent}/intents | |
| GetIntent | GET | /v2/{name=projects/*/agent/intents/*} | |
| CreateIntent | POST | /v2/{parent=projects/*/agent}/intents | * |
| UpdateIntent | PATCH | /v2/{intent.name=projects/*/agent/intents/*} | * |
| DeleteIntent | DELETE | /v2/{name=projects/*/agent/intents/*} | |
| BatchUpdateIntents | POST | /v2/{parent=projects/*/agent}/intents:batchUpdate | * |
| BatchDeleteIntents | POST | /v2/{parent=projects/*/agent}/intents:batchDelete | * |
| TagIntent | POST | /v2/{parent=projects/*/agent}/intents:tagIntent | * |
| DeleteIntentTag | POST | /v2/{parent=projects/*/agent}/intents:deleteIntentTag | * |
Request to create a batch of parameters in the specified intent
| Field | Type | Label | Description |
| parameter_requests | BatchCreateParametersRequest.CreateParameterRequest | repeated | List of parameters to create |
Request to create a single parameter
| Field | Type | Label | Description |
| intent_name | string | Required. The name of the intent for which to create a training phrase for. |
|
| parameter | Intent.Parameter | Required. The response message. |
Request to create a list of new response messages and adds it to an intent
| Field | Type | Label | Description |
| response_message_requests | BatchCreateResponseMessagesRequest.CreateResponseMessageRequest | repeated | The list of response messages to create |
Request to create a single response message
| Field | Type | Label | Description |
| intent_name | string | Required. The name of the intent for which to create a response message for. |
|
| response_message | Intent.Message | Required. The response message. |
This message is a request of a creation of a batch of training phrases
| Field | Type | Label | Description |
| training_phrase_requests | BatchCreateTrainingPhrasesRequest.CreateTrainingPhraseRequest | repeated | The list of training phrases to create |
Request to create a single training phrase
| Field | Type | Label | Description |
| intent_name | string | Required. The name of the intent for which to create a training phrase for. |
|
| training_phrase | Intent.TrainingPhrase | Required. The training phrase to create. |
The request message for Intents.BatchDeleteIntents.
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to delete all entities types for. Format:
|
|
| intents | Intent | repeated | Required. The collection of intents to delete. Only intent |
Request to delete parameters specified by their names.
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the response messages. Format: |
This message contains response of deleted parameters
| Field | Type | Label | Description |
| delete_statuses | BatchDeleteParametersResponse.DeleteParameterStatus | repeated | The deletion status for each requested parameter |
| has_errors | bool | Indicates if some of the parameter deletions have errors |
Status of a parameter deletion operation
| Field | Type | Label | Description |
| successfully_deleted | google.protobuf.Empty | Set when the parameter was successfully deleted |
|
| error_message | string | The error message when deleting this parameter failed |
Request to delete response messages specified by their names
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the response messages. Format: |
Response containing list with deleted response messages
| Field | Type | Label | Description |
| delete_statuses | BatchDeleteResponseMessagesResponse.DeleteResponseMessageStatus | repeated | The deletion status for each requested response message |
| has_errors | bool | Indicates if some of the response message deletions have errors |
Status of a response message deletion operation
| Field | Type | Label | Description |
| successfully_deleted | google.protobuf.Empty | Set when the response message was successfully deleted |
|
| error_message | string | The error message when deleting this response message failed |
This message is a request to delete a batch of training phrases
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the training phrases. Format: |
This message is a response of deleting a batch of training phrases
| Field | Type | Label | Description |
| delete_statuses | BatchDeleteTrainingPhrasesResponse.DeleteTrainingPhraseStatus | repeated | The deletion status for each requested training phrase |
| has_errors | bool | Indicates if some of the training phrase deletions have errors |
Status of a training phrase deletion operation
| Field | Type | Label | Description |
| successfully_deleted | google.protobuf.Empty | Set when the training phrase was successfully deleted |
|
| error_message | string | The error message when deleting this training phrase failed |
Request to get batch of parameters in a specified intent
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the response messages. Format: |
Request to retrieve a response messages
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the response messages. Format: |
This message is a request to get a batch training phrases
| Field | Type | Label | Description |
| names | string | repeated | Required. The names of the training phrases. Format: |
Response containing a batch of parameters in the specified intent
| Field | Type | Label | Description |
| parameter_statuses | BatchParametersStatusResponse.ParameterStatus | repeated | The status for each parameter in the batch |
| has_errors | bool | indicates if statuses of some of the parameters have errors |
Status of a parameter operation
| Field | Type | Label | Description |
| parameter | Intent.Parameter | The successfully processed parameter |
|
| error_message | string | The error message when processing this parameter failed |
This message is a response of a batch responses of message status
| Field | Type | Label | Description |
| response_message_statuses | BatchResponseMessagesStatusResponse.ResponseMessageStatus | repeated | The status for each response message in the batch |
| has_errors | bool | indicates if statuses of some of the response messages have errors |
Status of a response message operation
| Field | Type | Label | Description |
| response_message | Intent.Message | The successfully processed response message |
|
| error_message | string | The error message when processing this response message failed |
This message is a response of the status of a batch of training phrases
| Field | Type | Label | Description |
| training_phrase_statuses | TrainingPhraseStatus | repeated | A list of training phrase statuses |
| has_errors | bool | indicates if statuses of some of the training phrases have errors |
The request message for Intents.BatchUpdateIntents.
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to update or create intents in. Format: |
|
| intent_batch_uri | string | The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
|
| intent_batch_inline | IntentBatch | The collection of intents to update or create. |
|
| language_code | string | Optional. The language of training phrases, parameters and rich messages
defined in |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
|
| intent_view | IntentView | Optional. The resource view to apply to the returned intent. |
The response message for Intents.BatchUpdateIntents.
| Field | Type | Label | Description |
| intents | Intent | repeated | The collection of updated or created intents. |
Request to update parameters and adds them to an intent
| Field | Type | Label | Description |
| parameters | Intent.Parameter | repeated | The response messages to update |
Request to update a response message in the specified intent
| Field | Type | Label | Description |
| response_messages | Intent.Message | repeated | The response messages to update |
This message is a request to update a batch of training phrases
| Field | Type | Label | Description |
| training_phrases | Intent.TrainingPhrase | repeated | A list of training phrases |
The request message for Intents.CreateIntent.
| Field | Type | Label | Description |
| parent | string | Required. The agent to create a intent for. Format: |
|
| intent | Intent | Required. The intent to create. |
|
| language_code | string | Optional. The language of training phrases, parameters and rich messages
defined in |
|
| intent_view | IntentView | Optional. The resource view to apply to the returned intent. |
The request message for Intents.DeleteIntent.
| Field | Type | Label | Description |
| name | string | Required. The name of the intent to delete. Format: |
This message is a request to get all intent tags
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to delete all entities types for. Format:
|
The request message for Intents.GetIntent.
| Field | Type | Label | Description |
| name | string | Required. The name of the intent. Format: |
|
| language_code | string | Optional. The language to retrieve training phrases, parameters and rich messages for. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used. |
|
| intent_view | IntentView | Optional. The resource view to apply to the returned intent. |
|
| page_token | string | The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
This message is a request to get intent tags
| Field | Type | Label | Description |
| intent_name | string | The path of the intent. Format: |
This message is a response of getting intent tags
| Field | Type | Label | Description |
| intent_tags | string | repeated | All the distinct intent tags sorted |
Represents an intent.
Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.
| Field | Type | Label | Description |
| name | string | Required for all methods except |
|
| display_name | string | Required. The name of this intent. |
|
| webhook_state | Intent.WebhookState | Required. Indicates whether webhooks are enabled for the intent. |
|
| priority | int32 | Optional. The priority of this intent. Higher numbers represent higher priorities. Zero or negative numbers mean that the intent is disabled. |
|
| is_fallback | bool | Optional. Indicates whether this is a fallback intent. |
|
| ml_disabled | bool | Optional. Indicates whether Machine Learning is disabled for the intent.
Note: If |
|
| input_context_names | string | repeated | Optional. The list of context names required for this intent to be triggered. Format: |
| events | string | repeated | Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. |
| training_phrases | Intent.TrainingPhrase | repeated | Optional. The collection of examples/templates that the agent is trained on. |
| action | string | Optional. The name of the action associated with the intent. |
|
| output_contexts | Context | repeated | Optional. The collection of contexts that are activated when the intent
is matched. Context messages in this collection should not set the
parameters field. Setting the |
| reset_contexts | bool | Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
|
| parameters | Intent.Parameter | repeated | Optional. The collection of parameters associated with the intent. |
| messages | Intent.Message | repeated | Optional. The collection of rich messages corresponding to the
|
| default_response_platforms | Intent.Message.Platform | repeated | Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM. |
| root_followup_intent_name | string | The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: |
|
| parent_followup_intent_name | string | The unique identifier of the parent intent in the chain of followup intents. It identifies the parent followup intent. Format: |
|
| followup_intent_info | Intent.FollowupIntentInfo | repeated | Optional. Collection of information about all followup intents that have name of this intent as a root_name. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
|
| domain_name | string | Optional. Domain to which the intent belongs |
|
| is_start_of_deviation | bool | Optional. Indicates whether the intent starts a deviation in conversation flow |
|
| is_end_of_deviation | bool | Optional. Indicates whether the intent ends a deviation in conversation flow |
|
| training_phrase_count | int32 | Optional. Total count of training phrases associated to the intent. |
|
| status | Intent.IntentStatus | Indicates whether the intent is active or not |
|
| start_date | google.protobuf.Timestamp | Optional. Provides information that can be used in custom scripts |
|
| end_date | google.protobuf.Timestamp | Optional. Provides information that can be used in custom scripts |
|
| tags | string | repeated | Optional. Adds arbitrary "categories" for which one could filter the intents |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents a single followup intent in the chain.
| Field | Type | Label | Description |
| followup_intent_name | string | The unique identifier of the followup intent. Format: |
|
| parent_followup_intent_name | string | The unique identifier of the followup intent parent. Format: |
Corresponds to the Response field in the Dialogflow console.
| Field | Type | Label | Description |
| name | string | Required. The name of the return message. Format: |
|
| language_code | string | Required. The language of the return message. |
|
| text | Intent.Message.Text | The text response. |
|
| image | Intent.Message.Image | The image response. |
|
| quick_replies | Intent.Message.QuickReplies | The quick replies response. |
|
| card | Intent.Message.Card | The card response. |
|
| payload | google.protobuf.Struct | Returns a response containing a custom, platform-specific payload. See the Intent.Message.Platform type for a description of the structure that may be required for your platform. |
|
| simple_responses | Intent.Message.SimpleResponses | The voice and text-only responses for Actions on Google. |
|
| basic_card | Intent.Message.BasicCard | The basic card response for Actions on Google. |
|
| suggestions | Intent.Message.Suggestions | The suggestion chips for Actions on Google. |
|
| link_out_suggestion | Intent.Message.LinkOutSuggestion | The link out suggestion chip for Actions on Google. |
|
| list_select | Intent.Message.ListSelect | The list card response for Actions on Google. |
|
| carousel_select | Intent.Message.CarouselSelect | The carousel card response for Actions on Google. |
|
| html_text | Intent.Message.HTMLText | The HTML text response |
|
| video | Intent.Message.Video | The Video response |
|
| audio | Intent.Message.Audio | The Audio response |
|
| platform | Intent.Message.Platform | Optional. The platform that this message is intended for. |
|
| is_prompt | bool | Read-only. States if a returned message is a prompt or not. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
The Audio response message.
| Field | Type | Label | Description |
| uri | string | Optional. The public URI to an audio file. |
|
| accessibility_text | string | Optional. A text description of the audio to be used for accessibility, e.g., screen readers. |
The basic card message. Useful for displaying information.
| Field | Type | Label | Description |
| title | string | Optional. The title of the card. |
|
| subtitle | string | Optional. The subtitle of the card. |
|
| formatted_text | string | Required, unless image is present. The body text of the card. |
|
| image | Intent.Message.Image | Optional. The image for the card. |
|
| buttons | Intent.Message.BasicCard.Button | repeated | Optional. The collection of card buttons. |
The button object that appears at the bottom of a card.
| Field | Type | Label | Description |
| title | string | Required. The title of the button. |
|
| open_uri_action | Intent.Message.BasicCard.Button.OpenUriAction | Required. Action to take when a user taps on the button. |
Opens the given URI.
| Field | Type | Label | Description |
| uri | string | Required. The HTTP or HTTPS scheme URI. |
The card response message.
| Field | Type | Label | Description |
| title | string | Optional. The title of the card. |
|
| subtitle | string | Optional. The subtitle of the card. |
|
| image_uri | string | Optional. The public URI to an image file for the card. |
|
| buttons | Intent.Message.Card.Button | repeated | Optional. The collection of card buttons. |
Optional. Contains information about a button.
| Field | Type | Label | Description |
| text | string | Note: One of the following is required: Optional. The text to show on the button. |
|
| postback | string | Optional. The text to send back to the Dialogflow API or a URI to open. |
The card for presenting a carousel of options to select from.
| Field | Type | Label | Description |
| items | Intent.Message.CarouselSelect.Item | repeated | Required. Carousel items. |
An item in the carousel.
| Field | Type | Label | Description |
| info | Intent.Message.SelectItemInfo | Required. Additional info about the option item. |
|
| title | string | Required. Title of the carousel item. |
|
| description | string | Optional. The body text of the card. |
|
| image | Intent.Message.Image | Optional. The image to display. |
This message contains HTML text
| Field | Type | Label | Description |
| text | string | repeated | Collection of the agent's responses in HTML format |
The image response message.
| Field | Type | Label | Description |
| image_uri | string | Optional. The public URI to an image file. |
|
| accessibility_text | string | Optional. A text description of the image to be used for accessibility, e.g., screen readers. |
The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
| Field | Type | Label | Description |
| destination_name | string | Required. The name of the app or site this chip is linking to. |
|
| uri | string | Required. The URI of the app or site to open when the user taps the suggestion chip. |
The card for presenting a list of options to select from.
| Field | Type | Label | Description |
| title | string | Optional. The overall title of the list. |
|
| items | Intent.Message.ListSelect.Item | repeated | Required. List items. |
An item in the list.
| Field | Type | Label | Description |
| info | Intent.Message.SelectItemInfo | Required. Additional information about this option. |
|
| title | string | Required. The title of the list item. |
|
| description | string | Optional. The main text describing the item. |
|
| image | Intent.Message.Image | Optional. The image to display. |
The quick replies response message.
| Field | Type | Label | Description |
| title | string | Optional. The title of the collection of quick replies. |
|
| quick_replies | string | repeated | Optional. The collection of quick replies. |
Additional info about the select item for when it is triggered in a dialog.
| Field | Type | Label | Description |
| key | string | Required. A unique key that will be sent back to the agent if this response is given. |
|
| synonyms | string | repeated | Optional. A list of synonyms that can also be used to trigger this item in dialog. |
The simple response message containing speech or text.
| Field | Type | Label | Description |
| text_to_speech | string | One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml. |
|
| ssml | string | One of text_to_speech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with text_to_speech. |
|
| display_text | string | Optional. The text to display. |
The collection of simple response candidates. This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.
| Field | Type | Label | Description |
| simple_responses | Intent.Message.SimpleResponse | repeated | Required. The list of simple responses. |
The suggestion chip message that the user can tap to quickly post a reply to the conversation.
| Field | Type | Label | Description |
| title | string | Required. The text shown the in the suggestion chip. |
The collection of suggestions.
| Field | Type | Label | Description |
| suggestions | Intent.Message.Suggestion | repeated | Required. The list of suggested replies. |
The text response message.
| Field | Type | Label | Description |
| text | string | repeated | Optional. The collection of the agent's responses. |
The Video response message.
| Field | Type | Label | Description |
| uri | string | Optional. The public URI to a video file. |
|
| accessibility_text | string | Optional. A text description of the video to be used for accessibility, e.g., screen readers. |
Represents intent parameters.
| Field | Type | Label | Description |
| name | string | The unique identifier of this parameter. Format: |
|
| display_name | string | Required. The name of the parameter. |
|
| value | string | Optional. The definition of the parameter value. It can be:
|
|
| default_value | string | Optional. The default value to use when the |
|
| entity_type_name | string | Optional. The unique identifier of the entity type in format
|
|
| entity_type_display_name | string | Optional. The name of the entity type that describes values of the parameter. If the parameter is required, this must be provided. |
|
| mandatory | bool | Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value. |
|
| prompts | Intent.Parameter.Prompt | repeated | Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter. |
| is_list | bool | Optional. Indicates whether the parameter represents a list of values. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents the prompts in the parameters.
| Field | Type | Label | Description |
| name | string | The unique identifier of this prompt. Format: |
|
| text | string | Required. Text of the prompt |
|
| language_code | string | The language of the prompts. If not specified, the default language code will be used. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents an example or template that the agent is trained on.
| Field | Type | Label | Description |
| name | string | Required. The unique identifier of this training phrase. Format: |
|
| type | Intent.TrainingPhrase.Type | Required. The type of the training phrase. |
|
| text | string | Required. The text of the training phrase. |
|
| entities | Intent.TrainingPhrase.Entity | repeated | Optional. The collection of annotated entities in the training phrase. |
| times_added_count | int32 | Optional. Indicates how many times this example or template was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased. |
|
| language_code | string | Optional. The language of the training phrase. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Represents an entity annotation in a training phrase. The entity can be annotated on the level of
entity type only or both entity type and entity value.
| Field | Type | Label | Description |
| entity_type_name | string | Required. The unique entity type identifier in format
|
|
| entity_type_display_name | string | Optional. The entity type name. |
|
| entity_value_name | string | Optional. The unique entity value identifier in format
|
|
| entity_value_display_name | string | Optional. The entity value name. |
|
| start | int32 | Required. Defines a character position, where the entity starts in the training phrase text (0-indexed). |
|
| end | int32 | Required. Defines a character position + 1, where the entity ends in the training phrase. Example: "Meet you tomorrow" -> Entity(entity_type_display_name="sys.date", start=9, end=17) |
|
| parameter_name | string | Optional. The unique parameter identifier in format
|
|
| parameter_display_name | string | Optional. The parameter name. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a wrapper around a collection of intents.
| Field | Type | Label | Description |
| intents | Intent | repeated | A collection of intents. |
This message contains sorting of an intent
| Field | Type | Label | Description |
| sorting_field | IntentSorting.IntentSortingField | The field to sort the intents by |
|
| sorting_mode | SortingMode | The sorting mode: ascending or descending |
This message is a request to get an intent tag
| Field | Type | Label | Description |
| intent_name | string | The path of the intent. Format: |
|
| tags | string | repeated | Intent tags for this intent to operate on |
The request message for Intents.ListIntents.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent before they can be used. |
|
| intent_view | IntentView | Optional. The resource view to apply to the returned intent. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| filter_by_category | IntentCategory | Optional. Applies a filter to the list. Default, no filter. |
|
| sort_by_field | IntentSorting | Optional. Defines the sorting of the list. Default, no sorting. |
|
| filter_by_tags | string | repeated | Optional. Applies a filter to the list by tags. Default, no filter. |
The response message for Intents.ListIntents.
| Field | Type | Label | Description |
| intents | Intent | repeated | The list of agent intents. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
The request message for TrainingPhraseRequest
| Field | Type | Label | Description |
| intent_name | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language code used to filter out prompts. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
The response message for ListTrainingPhrase
| Field | Type | Label | Description |
| parameters | Intent.Parameter | repeated | The list of parameters. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | Token to retrieve the next page of results, or empty if there are no
more results in the list.
Format: |
The request message for ResponseMessageRequest
| Field | Type | Label | Description |
| intent_name | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language to list response messages, parameters and rich messages for. If not specified, the agent's default language is used. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
The response message for ListResponseMessage
| Field | Type | Label | Description |
| response_messages | Intent.Message | repeated | The list of response messages. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | Token to retrieve the next page of results, or empty if there are no
more results in the list.
Format: |
The request message for TrainingPhraseRequest
| Field | Type | Label | Description |
| intent_name | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
The response message for ListTrainingPhrase
| Field | Type | Label | Description |
| training_phrases | Intent.TrainingPhrase | repeated | The list of training phrases. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | Token to retrieve the next page of results, or empty if there are no
more results in the list.
Format: |
The request message for TrainingPhraseRequest
| Field | Type | Label | Description |
| parent | string | Required. The name of the agent to delete all entities types for. Format:
|
|
| language_code | string | Optional. The language code used to filter out prompts. |
|
| intent_ids | string | repeated | Optional. List of intent uuids to filter by. Only training phrases that have this intent uuid will be returned If not passed, returns all |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
This message contains a list of training phrases filtered by intent ids, language code and parent passed through the request
| Field | Type | Label | Description |
| training_phrases | string | repeated | List of user_says values. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | Optional. The next_page_token value returned from a previous list request.
Format: |
This message containing the training phrases status
| Field | Type | Label | Description |
| training_phrase | Intent.TrainingPhrase | The successfully processed training phrase |
|
| error_message | string | The error message when processing this training phrase failed |
The request message for Intents.UpdateIntent.
| Field | Type | Label | Description |
| intent | Intent | Required. The intent to update. Format: |
|
| language_code | string | Optional. The language of training phrases, parameters and rich messages
defined in |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
|
| intent_view | IntentView | Optional. The resource view to apply to the returned intent. |
Structure of status of an Intent
| Name | Number | Description |
| ACTIVE | 0 | Intent is active |
| INACTIVE | 1 | Intent is inactive |
Represents different platforms that a rich message can be intended for.
| Name | Number | Description |
| PLATFORM_UNSPECIFIED | 0 | Not specified. |
| 1 | Facebook. |
|
| SLACK | 2 | Slack. |
| TELEGRAM | 3 | Telegram. |
| KIK | 4 | Kik. |
| SKYPE | 5 | Skype. |
| LINE | 6 | Line. |
| VIBER | 7 | Viber. |
| ACTIONS_ON_GOOGLE | 8 | Actions on Google. When using Actions on Google, you can choose one of the specific Intent.Message types that mention support for Actions on Google, or you can use the advanced Intent.Message.payload field. The payload field provides access to AoG features not available in the specific message types. If using the Intent.Message.payload field, it should have a structure similar to the JSON message shown here. For more information, see Actions on Google Webhook Format |
| PLACEHOLDER_1 | 9 | Placeholder platform 1 |
| PLACEHOLDER_2 | 10 | Placeholder platform 2 |
| PLACEHOLDER_3 | 11 | Placeholder platform 3 |
| PLACEHOLDER_4 | 12 | Placeholder platform 4 |
| PLACEHOLDER_5 | 13 | Placeholder platform 5 |
| PLACEHOLDER_6 | 14 | Placeholder platform 6 |
| PLACEHOLDER_7 | 15 | Placeholder platform 7 |
| PLACEHOLDER_8 | 16 | Placeholder platform 8 |
| PLACEHOLDER_9 | 17 | Placeholder platform 9 |
| PLACEHOLDER_10 | 18 | Placeholder platform 10 |
| PLACEHOLDER_11 | 19 | Placeholder platform 11 |
| PLACEHOLDER_12 | 20 | Placeholder platform 12 |
| PLACEHOLDER_13 | 21 | Placeholder platform 13 |
| PLACEHOLDER_14 | 22 | Placeholder platform 14 |
| PLACEHOLDER_15 | 23 | Placeholder platform 15 |
| PLACEHOLDER_16 | 24 | Placeholder platform 16 |
| PLACEHOLDER_17 | 25 | Placeholder platform 17 |
| PLACEHOLDER_18 | 26 | Placeholder platform 18 |
| PLACEHOLDER_19 | 27 | Placeholder platform 19 |
| PLACEHOLDER_20 | 28 | Placeholder platform 20 |
Represents different types of training phrases.
| Name | Number | Description |
| TYPE_UNSPECIFIED | 0 | Not specified. This value should never be used. |
| EXAMPLE | 1 | Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types. |
| TEMPLATE | 2 | Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. |
Represents the different states that webhooks can be in.
| Name | Number | Description |
| WEBHOOK_STATE_UNSPECIFIED | 0 | Webhook is disabled in the agent and in the intent. |
| WEBHOOK_STATE_ENABLED | 1 | Webhook is enabled in the agent and in the intent. |
| WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING | 2 | Webhook is enabled in the agent and in the intent. Also, each slot filling prompt is forwarded to the webhook. |
Represents the type of intents to filter by in the "List Intents" request
| Name | Number | Description |
| ALL_INTENTS | 0 | represent all intents |
| DEFAULT_INTENTS | 1 | represent the default intents |
| USER_DEFINED_INTENTS | 2 | represent the user defined (custom) intents |
| DATE_EXPIRED_INTENTS | 3 | represents the intents that had its end_date elapsed |
| DATE_ACTIVE_INTENTS | 4 | represents the intents that its start_date began but had not yet expired |
| DATE_UPCOMING_INTENTS | 5 | represent the intents that are still expecting its start_date to begin |
Structure of intent sorting field
| Name | Number | Description |
| NO_INTENT_SORTING | 0 | No sorting applied |
| SORT_INTENT_BY_NAME | 1 | Sort by intent name |
| SORT_INTENT_BY_CREATION_DATE | 2 | Sort by creation date |
| SORT_INTENT_BY_LAST_UPDATED | 3 | Sort by last updated date |
| SORT_INTENT_BY_USERSAYS_COUNT | 4 | Sort by training phrase (user says) count |
| SORT_INTENT_BY_START_DATE | 5 | Sort by start date |
| SORT_INTENT_BY_END_DATE | 6 | Sort by end date |
Represents the options for views of an intent.
An intent can be a sizable object. Therefore, we provide a resource view that
does not return training phrases in the response by default.
| Name | Number | Description |
| INTENT_VIEW_UNSPECIFIED | 0 | Same as INTENT_VIEW_FULL |
| INTENT_VIEW_FULL | 1 | All fields are populated. |
| INTENT_VIEW_PARTIAL | 2 | The only nested structures populated are Contexts and Training phrases. The Training phrases field is populated with only a few entries and no annotations. |
| INTENT_VIEW_SHALLOW | 3 | All nested structures are not populated (no training phrases, nor contexts, nor parameters, ...) |
| INTENT_VIEW_MINIMUM | 4 | Minimum view including only intent UUID and intent display name |
LangSmith-style evaluation surface: datasets, examples, experiments, evaluator
runs, feedback (LLM-as-judge / human / heuristic / custom code / pairwise),
pairwise comparisons, release gates + persisted gate runs, scorecards,
per-project evaluation settings (judge configuration), the evaluator registry,
golden-transcript recording from sessions, conversation simulation
(standard + adversarial red-teaming), recurring schedules and report artifacts.
rpc LlmEvaluationCreateDataset (CreateLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)Create a new evaluation dataset.
rpc LlmEvaluationGetDataset (GetLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)Get an evaluation dataset by resource name.
rpc LlmEvaluationListDatasets (ListLlmEvaluationDatasetsRequest) returns (ListLlmEvaluationDatasetsResponse)List evaluation datasets in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateDataset (UpdateLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)Update metadata of an existing evaluation dataset (examples managed via Add/Update/Delete RPCs).
rpc LlmEvaluationDeleteDataset (DeleteLlmEvaluationDatasetRequest) returns (.google.protobuf.Empty)Delete an evaluation dataset and all owned examples.
rpc LlmEvaluationAddExample (AddLlmEvaluationExampleRequest) returns (LlmEvaluationExample)Add a single example to an existing dataset.
rpc LlmEvaluationAddExamples (AddLlmEvaluationExamplesRequest) returns (AddLlmEvaluationExamplesResponse)Add multiple examples to an existing dataset in one call.
rpc LlmEvaluationGetExample (GetLlmEvaluationExampleRequest) returns (LlmEvaluationExample)Get a single evaluation example by resource name.
rpc LlmEvaluationListExamples (ListLlmEvaluationExamplesRequest) returns (ListLlmEvaluationExamplesResponse)List examples in a dataset, optionally filtered + paginated.
rpc LlmEvaluationUpdateExample (UpdateLlmEvaluationExampleRequest) returns (LlmEvaluationExample)Update fields of an existing evaluation example.
rpc LlmEvaluationDeleteExample (DeleteLlmEvaluationExampleRequest) returns (.google.protobuf.Empty)Delete an evaluation example.
rpc LlmEvaluationRunExperiment (RunLlmEvaluationExperimentRequest) returns (Operation)Run a fresh experiment over a dataset. Long-running operation: the returned Operation resolves to the completed LlmEvaluationExperiment once all evaluators have produced feedback.
rpc LlmEvaluationGetExperiment (GetLlmEvaluationExperimentRequest) returns (LlmEvaluationExperiment)Retrieve a previously-run experiment by resource name.
rpc LlmEvaluationListExperiments (ListLlmEvaluationExperimentsRequest) returns (ListLlmEvaluationExperimentsResponse)List experiments in a project, optionally filtered + paginated.
rpc LlmEvaluationUpdateExperiment (UpdateLlmEvaluationExperimentRequest) returns (LlmEvaluationExperiment)Update metadata of an experiment (e.g. baseline pointer, display_name). Evaluator runs and feedback are immutable; use LlmEvaluationSubmitFeedback / LlmEvaluationDeleteFeedback for downstream annotations.
rpc LlmEvaluationDeleteExperiment (DeleteLlmEvaluationExperimentRequest) returns (.google.protobuf.Empty)Delete an experiment and all owned evaluator runs + feedbacks.
rpc LlmEvaluationCancelExperiment (CancelLlmEvaluationExperimentRequest) returns (LlmEvaluationExperiment)Cancel a still-running experiment. No-op if already finished.
rpc LlmEvaluationCompareExperiments (CompareLlmEvaluationExperimentsRequest) returns (LlmEvaluationComparison)Compare two-or-more experiments and emit a pairwise comparison report.
rpc LlmEvaluationSubmitFeedback (SubmitLlmEvaluationFeedbackRequest) returns (LlmEvaluationFeedback)Submit a single feedback record (used by human reviewers / external evaluators).
rpc LlmEvaluationListFeedback (ListLlmEvaluationFeedbackRequest) returns (ListLlmEvaluationFeedbackResponse)List feedback records, optionally filtered + paginated.
rpc LlmEvaluationDeleteFeedback (DeleteLlmEvaluationFeedbackRequest) returns (.google.protobuf.Empty)Delete a single feedback record.
rpc LlmEvaluationUpdateFeedback (UpdateLlmEvaluationFeedbackRequest) returns (LlmEvaluationFeedback)Update a single feedback record (e.g. correct a human review score or comment).
rpc LlmEvaluationCreateReleaseGate (CreateLlmEvaluationReleaseGateRequest) returns (LlmEvaluationReleaseGate)Create a new release gate (a named set of thresholds over evaluator scores, regression deltas and telemetry that decides whether a candidate configuration ships).
rpc LlmEvaluationGetReleaseGate (GetLlmEvaluationReleaseGateRequest) returns (LlmEvaluationReleaseGate)Get a release gate by resource name.
rpc LlmEvaluationListReleaseGates (ListLlmEvaluationReleaseGatesRequest) returns (ListLlmEvaluationReleaseGatesResponse)List release gates in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateReleaseGate (UpdateLlmEvaluationReleaseGateRequest) returns (LlmEvaluationReleaseGate)Update an existing release gate. Semantic changes (suite, baseline, evaluators, thresholds, weights, safety) increment the server-managed revision.
rpc LlmEvaluationDeleteReleaseGate (DeleteLlmEvaluationReleaseGateRequest) returns (.google.protobuf.Empty)Delete a release gate and all owned gate runs.
rpc LlmEvaluationRunReleaseGate (RunLlmEvaluationReleaseGateRequest) returns (Operation)Run a release gate against a candidate target. Long-running operation: the returned Operation resolves to the completed LlmEvaluationReleaseGateRun once the candidate (and optional safety) experiments finished and the verdict has been computed and persisted server-side.
rpc LlmEvaluationGetReleaseGateRun (GetLlmEvaluationReleaseGateRunRequest) returns (LlmEvaluationReleaseGateRun)Get a single release gate run (persisted verdict + checks) by resource name.
rpc LlmEvaluationListReleaseGateRuns (ListLlmEvaluationReleaseGateRunsRequest) returns (ListLlmEvaluationReleaseGateRunsResponse)List release gate runs, optionally filtered + paginated.
rpc LlmEvaluationCreateScorecard (CreateLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)Create a new scorecard (weighted multi-criteria roll-up definition).
rpc LlmEvaluationGetScorecard (GetLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)Get a scorecard by resource name.
rpc LlmEvaluationListScorecards (ListLlmEvaluationScorecardsRequest) returns (ListLlmEvaluationScorecardsResponse)List scorecards in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateScorecard (UpdateLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)Update an existing scorecard.
rpc LlmEvaluationDeleteScorecard (DeleteLlmEvaluationScorecardRequest) returns (.google.protobuf.Empty)Delete a scorecard.
rpc LlmEvaluationGetProjectSettings (GetLlmEvaluationProjectSettingsRequest) returns (LlmEvaluationProjectSettings)Get the per-(project, language_code) evaluation settings singleton (judge configuration, default weights, pass cutoffs). The server auto-creates default settings on first access.
rpc LlmEvaluationUpdateProjectSettings (UpdateLlmEvaluationProjectSettingsRequest) returns (LlmEvaluationProjectSettings)Update the per-(project, language_code) evaluation settings singleton.
rpc LlmEvaluationListEvaluators (ListLlmEvaluationEvaluatorsRequest) returns (ListLlmEvaluationEvaluatorsResponse)List the evaluators available on this server, with metadata describing the category, required example fields, multi-turn support, default threshold, judge requirement and configurable parameters of each evaluator.
rpc LlmEvaluationCreateExamplesFromSession (CreateLlmEvaluationExamplesFromSessionRequest) returns (CreateLlmEvaluationExamplesFromSessionResponse)Convert a recorded session (or a selection of its session steps) into evaluation examples ("golden transcripts") inside an existing dataset.
rpc LlmEvaluationSimulateConversations (SimulateLlmEvaluationConversationsRequest) returns (Operation)Generate synthetic multi-turn evaluation conversations by simulating users (persona-driven; STANDARD kind) or attackers (red-teaming; ADVERSARIAL kind) against the live target. Long-running operation: the returned Operation resolves once the generated examples have been persisted into the receiving dataset.
rpc LlmEvaluationCreateSchedule (CreateLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)Create a new schedule for recurring experiment / release gate runs.
rpc LlmEvaluationGetSchedule (GetLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)Get a schedule by resource name.
rpc LlmEvaluationListSchedules (ListLlmEvaluationSchedulesRequest) returns (ListLlmEvaluationSchedulesResponse)List schedules in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateSchedule (UpdateLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)Update an existing schedule (cron / interval, enabled flag, request template).
rpc LlmEvaluationDeleteSchedule (DeleteLlmEvaluationScheduleRequest) returns (.google.protobuf.Empty)Delete a schedule. Experiments / gate runs already created by it are kept.
rpc LlmEvaluationCreateReport (CreateLlmEvaluationReportRequest) returns (LlmEvaluationReport)Persist a generated report as an immutable artifact (incl. payload bytes).
rpc LlmEvaluationGetReport (GetLlmEvaluationReportRequest) returns (LlmEvaluationReport)Get a report by resource name (incl. payload bytes).
rpc LlmEvaluationListReports (ListLlmEvaluationReportsRequest) returns (ListLlmEvaluationReportsResponse)List reports, optionally filtered + paginated. Payload bytes are omitted unless explicitly requested via field_mask.
rpc LlmEvaluationDeleteReport (DeleteLlmEvaluationReportRequest) returns (.google.protobuf.Empty)Delete a report.
rpc LlmEvaluationCreateAbExperiment (CreateLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)Create a new A/B experiment (a set of routing variants over live DetectIntent traffic). Created in DRAFT status; traffic is only split once it is started via LlmEvaluationStartAbExperiment.
rpc LlmEvaluationGetAbExperiment (GetLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)Get an A/B experiment by resource name.
rpc LlmEvaluationListAbExperiments (ListLlmEvaluationAbExperimentsRequest) returns (ListLlmEvaluationAbExperimentsResponse)List A/B experiments in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateAbExperiment (UpdateLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)Update an existing A/B experiment (variants, traffic config, metadata). Only allowed in DRAFT / STOPPED status; running experiments must be stopped first.
rpc LlmEvaluationDeleteAbExperiment (DeleteLlmEvaluationAbExperimentRequest) returns (.google.protobuf.Empty)Delete an A/B experiment and all owned sticky-assignment rows.
rpc LlmEvaluationStartAbExperiment (StartLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)Start an A/B experiment: validates that the variant traffic weights are well-formed (sum to the configured total), stamps started_at and transitions the experiment to RUNNING so live traffic begins to be split.
rpc LlmEvaluationStopAbExperiment (StopLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)Stop a running A/B experiment: stamps stopped_at and transitions to STOPPED. Existing sticky assignments are retained for results computation.
rpc LlmEvaluationGetAbExperimentResults (GetLlmEvaluationAbExperimentResultsRequest) returns (GetLlmEvaluationAbExperimentResultsResponse)Compute per-variant telemetry rollups for an A/B experiment. Stateless / computed on demand: gathers each variant's sessions and aggregates their LlmTelemetry into a per-variant LlmTelemetryReport. There is no auto-rollout.
rpc LlmEvaluationGetAbRolloutRecommendation (GetLlmEvaluationAbRolloutRecommendationRequest) returns (LlmEvaluationAbRolloutRecommendation)Compute a rollout recommendation for an A/B experiment: which variant wins against the control on the chosen optimize metric under the supplied statistical guard-rails (confidence level, minimum sessions per variant, minimum effect size). Stateless / read-only — computed on demand from the per-variant results; nothing is persisted and no traffic / config changes.
rpc LlmEvaluationApplyAbRollout (ApplyLlmEvaluationAbRolloutRequest) returns (LlmEvaluationAbRolloutDecision)Apply a rollout for an A/B experiment: promotes the chosen variant's config as the project's classifier default, stops the experiment, and writes + returns the LlmEvaluationAbRolloutDecision audit record. The operator picks the variant explicitly (there is no auto-rollout). Idempotent: re-applying an already-rolled-out experiment returns the existing decision.
rpc LlmEvaluationGetAbRolloutDecision (GetLlmEvaluationAbRolloutDecisionRequest) returns (LlmEvaluationAbRolloutDecision)Get the applied rollout decision (audit record) by resource name.
rpc LlmEvaluationListAbRolloutDecisions (ListLlmEvaluationAbRolloutDecisionsRequest) returns (ListLlmEvaluationAbRolloutDecisionsResponse)List applied rollout decisions in the project, optionally filtered (e.g. by experiment) + paginated.
rpc LlmEvaluationCreateOnlineConfig (CreateLlmEvaluationOnlineConfigRequest) returns (LlmEvaluationOnlineConfig)Create a new online-evaluation config: a per-(project, language_code) definition selecting a reference-free evaluator set + a sample rate. A swarm-safe background worker samples already-persisted live session steps, scores the recorded answer with these evaluators and enqueues failing steps into the annotation queue.
rpc LlmEvaluationGetOnlineConfig (GetLlmEvaluationOnlineConfigRequest) returns (LlmEvaluationOnlineConfig)Get an online-evaluation config by resource name.
rpc LlmEvaluationListOnlineConfigs (ListLlmEvaluationOnlineConfigsRequest) returns (ListLlmEvaluationOnlineConfigsResponse)List online-evaluation configs in the project, optionally filtered + paginated.
rpc LlmEvaluationUpdateOnlineConfig (UpdateLlmEvaluationOnlineConfigRequest) returns (LlmEvaluationOnlineConfig)Update an existing online-evaluation config (enabled flag, evaluator set, sample rate, thresholds, session filter).
rpc LlmEvaluationDeleteOnlineConfig (DeleteLlmEvaluationOnlineConfigRequest) returns (.google.protobuf.Empty)Delete an online-evaluation config. Already-produced online results and annotation-queue items are kept.
rpc LlmEvaluationGetOnlineResult (GetLlmEvaluationOnlineResultRequest) returns (LlmEvaluationOnlineResult)Get a single online-evaluation result (per scored session step) by resource name.
rpc LlmEvaluationListOnlineResults (ListLlmEvaluationOnlineResultsRequest) returns (ListLlmEvaluationOnlineResultsResponse)List online-evaluation results, optionally filtered by config / pass-state + paginated. Read-only: result rows are produced by the online-evaluation worker (no Create RPC).
rpc LlmEvaluationGetAnnotationQueueItem (GetLlmEvaluationAnnotationQueueItemRequest) returns (LlmEvaluationAnnotationQueueItem)Get a single annotation-queue item by resource name.
rpc LlmEvaluationListAnnotationQueueItems (ListLlmEvaluationAnnotationQueueItemsRequest) returns (ListLlmEvaluationAnnotationQueueItemsResponse)List annotation-queue items, optionally filtered by status / assignee + paginated. Items are enqueued by the online-evaluation worker (no Create RPC).
rpc LlmEvaluationUpdateAnnotationQueueItem (UpdateLlmEvaluationAnnotationQueueItemRequest) returns (LlmEvaluationAnnotationQueueItem)Update an annotation-queue item (status / assignee / reason transitions: PENDING -> REVIEWED / DISMISSED).
rpc LlmEvaluationPromoteAnnotationQueueItem (PromoteLlmEvaluationAnnotationQueueItemRequest) returns (PromoteLlmEvaluationAnnotationQueueItemResponse)Promote an annotation-queue item into a regression dataset. Thin server-side composition: delegates to LlmEvaluationCreateExamplesFromSession with the item's session (+ selected steps), flips the item status to PROMOTED and stamps the promoted dataset name. Returns the created example(s).
Request to append a single example to an existing dataset.
| Field | Type | Label | Description |
| llm_evaluation_dataset_name | string | Resource name of the dataset to extend.
Format: |
|
| llm_evaluation_example | LlmEvaluationExample | Example payload to append. |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required, must match the dataset's). |
Request to append multiple examples to an existing dataset.
| Field | Type | Label | Description |
| llm_evaluation_dataset_name | string | Resource name of the dataset to extend.
Format: |
|
| llm_evaluation_examples | LlmEvaluationExample | repeated | Examples to append. |
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required, must match the dataset's). |
Response for AddExamples.
| Field | Type | Label | Description |
| llm_evaluation_examples | LlmEvaluationExample | repeated | Example records created. |
Request to apply an A/B rollout: promotes the chosen variant's config to the
project's classifier default, stops the experiment and writes the audit
decision. Idempotent — re-applying the same already-applied experiment returns
the existing decision rather than promoting twice.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to roll out.
Format: |
|
| variant_id | string | Required. Variant slug whose config to promote to the project classifier default. The operator's explicit choice; the server applies exactly this variant. |
|
| optimize_metric | LlmEvaluationAbOptimizeMetric | The metric the decision was made on, recorded on the audit decision. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to cancel a running experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to cancel.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to compare two-or-more experiments.
| Field | Type | Label | Description |
| llm_evaluation_experiment_names | string | repeated | Resource names of the experiments to compare (two-or-more).
Format: |
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of the baseline experiment used for delta computation.
Format: |
|
| parent | string | Project owning the experiments.
Format: |
|
| language_code | string | BCP-47 language-code scope (required, all experiments must share the same). |
Request to create a new A/B experiment.
| Field | Type | Label | Description |
| llm_evaluation_ab_experiment | LlmEvaluationAbExperiment | A/B experiment payload (name / status / audit fields are server-populated). |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to create a new evaluation dataset.
| Field | Type | Label | Description |
| parent | string | Project owning the dataset.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| llm_evaluation_examples | LlmEvaluationExample | repeated | Optional initial set of examples. |
| tags | string | repeated | Free-form tags for grouping / filtering. |
| language_code | string | BCP-47 language code the dataset is authored for. Required — the same dataset name may coexist across different languages. |
Request to convert a recorded session into evaluation examples ("golden transcripts").
| Field | Type | Label | Description |
| parent | string | Project owning the session and the dataset.
Format: |
|
| session_name | string | Resource name of the recorded session to convert.
Format: |
|
| llm_evaluation_dataset_name | string | Resource name of the dataset receiving the created examples.
Format: |
|
| session_step_names | string | repeated | Optional. Session steps to convert (resource names). Empty = all steps, in session order. |
| llm_evaluation_example_extraction_mode | LlmEvaluationExampleExtractionMode | How the selected steps are turned into examples. |
|
| display_name | string | Optional. Display-name prefix for the created example(s); the server appends a per-example suffix. |
|
| language_code | string | BCP-47 language-code scope (required, must match the dataset's). |
|
| include_tool_calls | bool | When true, tool calls recorded in the session's telemetry are captured as expected tool calls on the created examples. |
|
| include_retrieval_context | bool | When true, retrieved chunks recorded by retriever spans are captured as frozen retrieval context on the created examples. |
Response for CreateExamplesFromSession.
| Field | Type | Label | Description |
| llm_evaluation_examples | LlmEvaluationExample | repeated | Example records created. |
Request to create a new online-evaluation config.
| Field | Type | Label | Description |
| llm_evaluation_online_config | LlmEvaluationOnlineConfig | Config payload (name / audit / last-evaluated fields are server-populated). |
|
| parent | string | Project owning the config.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to create a new release gate.
| Field | Type | Label | Description |
| llm_evaluation_release_gate | LlmEvaluationReleaseGate | Release gate payload (name / revision / audit fields are server-populated). |
|
| parent | string | Project owning the gate.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to persist a generated report.
| Field | Type | Label | Description |
| llm_evaluation_report | LlmEvaluationReport | Report payload (name / audit fields are server-populated). |
|
| parent | string | Project owning the report.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to create a new schedule.
| Field | Type | Label | Description |
| llm_evaluation_schedule | LlmEvaluationSchedule | Schedule payload (name / audit / last-next-run fields are server-populated). |
|
| parent | string | Project owning the schedule.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to create a new scorecard.
| Field | Type | Label | Description |
| llm_evaluation_scorecard | LlmEvaluationScorecard | Scorecard payload (name / audit fields are server-populated). |
|
| parent | string | Project owning the scorecard.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete an A/B experiment and all owned sticky-assignment rows.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to delete.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a dataset and all owned examples.
| Field | Type | Label | Description |
| name | string | Resource name of the dataset to delete.
Format: |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete an example.
| Field | Type | Label | Description |
| name | string | Resource name of the example to delete.
Format: |
|
| parent | string | Project owning the example.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete an experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to delete.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a single feedback record.
| Field | Type | Label | Description |
| name | string | Resource name of the feedback record to delete.
Format: |
|
| parent | string | Project owning the feedback.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete an online-evaluation config.
| Field | Type | Label | Description |
| name | string | Resource name of the config to delete.
Format: |
|
| parent | string | Project owning the config.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a release gate and all owned gate runs.
| Field | Type | Label | Description |
| name | string | Resource name of the gate to delete.
Format: |
|
| parent | string | Project owning the gate.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a report.
| Field | Type | Label | Description |
| name | string | Resource name of the report to delete.
Format: |
|
| parent | string | Project owning the report.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a schedule.
| Field | Type | Label | Description |
| name | string | Resource name of the schedule to delete.
Format: |
|
| parent | string | Project owning the schedule.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to delete a scorecard.
| Field | Type | Label | Description |
| name | string | Resource name of the scorecard to delete.
Format: |
|
| parent | string | Project owning the scorecard.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single A/B experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to compute per-variant telemetry rollups for an A/B experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment whose results to compute.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Response for GetAbExperimentResults: one rollup per variant.
| Field | Type | Label | Description |
| llm_evaluation_ab_experiment_name | string | Resource name of the experiment these results belong to.
Format: |
|
| variant_results | LlmEvaluationAbVariantResult | repeated | Per-variant telemetry rollups (one entry per variant). |
Request to get a single A/B rollout decision (the applied audit record) for an
experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the rollout decision to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the decision.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to compute a rollout recommendation for an A/B experiment. Read-only /
stateless — computes the winner-vs-control statistics on demand under the
supplied guard-rails and returns a LlmEvaluationAbRolloutRecommendation
without mutating anything.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to evaluate.
Format: |
|
| optimize_metric | LlmEvaluationAbOptimizeMetric | Required. The metric to optimize when picking the winner. |
|
| confidence_level | double | Optional. Confidence level for the significance test in |
|
| min_sessions_per_variant | int32 | Optional. Minimum number of sessions required per variant before a winner
may be called; below it the recommendation reports
|
|
| min_effect_size | double | Optional. Minimum absolute effect size required to call a winner; guards against statistically-significant-but-trivial differences. Unset / 0 applies the server default. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single annotation-queue item.
| Field | Type | Label | Description |
| name | string | Resource name of the item to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the item.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single evaluation dataset.
| Field | Type | Label | Description |
| name | string | Resource name of the dataset to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["name", "llm_evaluation_examples"] |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single example.
| Field | Type | Label | Description |
| name | string | Resource name of the example to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["name", "inputs", "expected_outputs"] |
|
| parent | string | Project owning the example.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to fetch a previously-run experiment.
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["display_name", "status", "llm_evaluation_evaluator_runs"] |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single online-evaluation config.
| Field | Type | Label | Description |
| name | string | Resource name of the config to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the config.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single online-evaluation result.
| Field | Type | Label | Description |
| name | string | Resource name of the result to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the result.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get the evaluation settings singleton.
| Field | Type | Label | Description |
| parent | string | Project owning the settings.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
Request to get a single release gate.
| Field | Type | Label | Description |
| name | string | Resource name of the gate to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the gate.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single release gate run.
| Field | Type | Label | Description |
| name | string | Resource name of the gate run to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the gate run.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single report (incl. payload bytes).
| Field | Type | Label | Description |
| name | string | Resource name of the report to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the report.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single schedule.
| Field | Type | Label | Description |
| name | string | Resource name of the schedule to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the schedule.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to get a single scorecard.
| Field | Type | Label | Description |
| name | string | Resource name of the scorecard to fetch.
Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| parent | string | Project owning the scorecard.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to list A/B experiments within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the experiments.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_ab_experiment_filter | LlmEvaluationAbExperimentFilter | Optional. Filter conditions to narrow the returned experiments. |
Response for ListAbExperiments.
| Field | Type | Label | Description |
| llm_evaluation_ab_experiments | LlmEvaluationAbExperiment | repeated | A/B experiments matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list A/B rollout decisions within a project, optionally narrowed by
filter (typically by experiment).
| Field | Type | Label | Description |
| parent | string | Project owning the decisions.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_ab_rollout_decision_filter | LlmEvaluationAbRolloutDecisionFilter | Optional. Filter conditions to narrow the returned decisions. |
Response for ListAbRolloutDecisions.
| Field | Type | Label | Description |
| llm_evaluation_ab_rollout_decisions | LlmEvaluationAbRolloutDecision | repeated | Rollout decisions matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list annotation-queue items within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the items.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_annotation_queue_item_filter | LlmEvaluationAnnotationQueueItemFilter | Optional. Filter conditions to narrow the returned items. |
Response for ListAnnotationQueueItems.
| Field | Type | Label | Description |
| llm_evaluation_annotation_queue_items | LlmEvaluationAnnotationQueueItem | repeated | Items matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list evaluation datasets within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the datasets.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["llm_evaluation_datasets.display_name", "llm_evaluation_datasets.tags"] |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_dataset_filter | LlmEvaluationDatasetFilter | Optional. Filter conditions to narrow the returned datasets. |
Response for ListDatasets.
| Field | Type | Label | Description |
| llm_evaluation_datasets | LlmEvaluationDataset | repeated | Datasets matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list available evaluators.
| Field | Type | Label | Description |
| parent | string | Project scope (registry may be filtered by project capabilities).
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Response for ListEvaluators.
| Field | Type | Label | Description |
| llm_evaluation_evaluator_specs | LlmEvaluationEvaluatorSpec | repeated | Available evaluators with metadata. |
Request to list examples in a dataset.
| Field | Type | Label | Description |
| llm_evaluation_dataset_name | string | Resource name of the dataset to enumerate examples from.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["llm_evaluation_examples.display_name", "llm_evaluation_examples.inputs"] |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_example_filter | LlmEvaluationExampleFilter | Optional. Filter conditions to narrow the returned examples. |
Response for ListExamples.
| Field | Type | Label | Description |
| llm_evaluation_examples | LlmEvaluationExample | repeated | Examples in the dataset matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list experiments in a project, optionally narrowed by filter.
| Field | Type | Label | Description |
| parent | string | Project owning the experiments.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["llm_evaluation_experiments.display_name", "llm_evaluation_experiments.status"] |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_experiment_filter | LlmEvaluationExperimentFilter | Optional. Filter conditions to narrow the returned experiments. |
Response for ListExperiments.
| Field | Type | Label | Description |
| llm_evaluation_experiments | LlmEvaluationExperiment | repeated | Experiments matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list feedback records, optionally narrowed by filter.
| Field | Type | Label | Description |
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: paths=["llm_evaluation_feedbacks.score", "llm_evaluation_feedbacks.categorical_value"] |
|
| parent | string | Project owning the feedback records.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_feedback_filter | LlmEvaluationFeedbackFilter | Optional. Filter conditions to narrow the returned feedback records. |
Response for ListFeedback.
| Field | Type | Label | Description |
| llm_evaluation_feedbacks | LlmEvaluationFeedback | repeated | Feedback records matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list online-evaluation configs within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the configs.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_online_config_filter | LlmEvaluationOnlineConfigFilter | Optional. Filter conditions to narrow the returned configs. |
Response for ListOnlineConfigs.
| Field | Type | Label | Description |
| llm_evaluation_online_configs | LlmEvaluationOnlineConfig | repeated | Configs matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list online-evaluation results within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the results.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_online_result_filter | LlmEvaluationOnlineResultFilter | Optional. Filter conditions to narrow the returned results. |
Response for ListOnlineResults.
| Field | Type | Label | Description |
| llm_evaluation_online_results | LlmEvaluationOnlineResult | repeated | Results matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list release gate runs within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the gate runs.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_release_gate_run_filter | LlmEvaluationReleaseGateRunFilter | Optional. Filter conditions to narrow the returned gate runs. |
Response for ListReleaseGateRuns.
| Field | Type | Label | Description |
| llm_evaluation_release_gate_runs | LlmEvaluationReleaseGateRun | repeated | Gate runs matching the request, newest first. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list release gates within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the gates.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_release_gate_filter | LlmEvaluationReleaseGateFilter | Optional. Filter conditions to narrow the returned gates. |
Response for ListReleaseGates.
| Field | Type | Label | Description |
| llm_evaluation_release_gates | LlmEvaluationReleaseGate | repeated | Release gates matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list reports within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the reports.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data.
Payload bytes are omitted unless paths include
|
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_report_filter | LlmEvaluationReportFilter | Optional. Filter conditions to narrow the returned reports. |
Response for ListReports.
| Field | Type | Label | Description |
| llm_evaluation_reports | LlmEvaluationReport | repeated | Reports matching the request (payload omitted unless requested via field_mask). |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list schedules within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the schedules.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_schedule_filter | LlmEvaluationScheduleFilter | Optional. Filter conditions to narrow the returned schedules. |
Response for ListSchedules.
| Field | Type | Label | Description |
| llm_evaluation_schedules | LlmEvaluationSchedule | repeated | Schedules matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
Request to list scorecards within a project.
| Field | Type | Label | Description |
| parent | string | Project owning the scorecards.
Format: |
|
| page_token | string | Optional. Page token for pagination. Retrieves a large result set in smaller, more manageable portions. The token encodes the current index and the page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| llm_evaluation_scorecard_filter | LlmEvaluationScorecardFilter | Optional. Filter conditions to narrow the returned scorecards. |
Response for ListScorecards.
| Field | Type | Label | Description |
| llm_evaluation_scorecards | LlmEvaluationScorecard | repeated | Scorecards matching the request. |
| next_page_token | string | Pagination token for the next page (empty if this is the last page). |
An A/B experiment: a set of routing variants split over live DetectIntent
traffic for a (project, language_code) scope.
| Field | Type | Label | Description |
| name | string | The unique resource name of the A/B experiment. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| status | LlmEvaluationAbExperimentStatus | Lifecycle status. Read-only; transitioned via Start / Stop RPCs. |
|
| variants | LlmEvaluationAbVariant | repeated | The routing variants of this experiment. |
| traffic_config | LlmEvaluationAbTrafficConfig | Traffic-splitting configuration (enrollment rate, assignment salt). |
|
| started_at | google.protobuf.Timestamp | Wall-clock time the experiment was started (set by Start). Read-only. |
|
| stopped_at | google.protobuf.Timestamp | Wall-clock time the experiment was stopped (set by Stop). Read-only. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
|
| llm_evaluation_ab_rollout_decision_name | string | Optional. Resource name of the rollout decision that was applied to this
experiment (set once an operator explicitly applies a variant via
|
Filter conditions for ListAbExperiments. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only experiments whose display name contains this substring (case-insensitive). |
|
| status | LlmEvaluationAbExperimentStatus | Optional. Match only experiments with this status. |
The persisted audit record of an A/B rollout that an operator explicitly
applied: it captures which variant's config was promoted to the project's
classifier default, on which metric, and the statistics at the moment of
application. Written + returned by LlmEvaluationApplyAbRollout;
read back via LlmEvaluationGetAbRolloutDecision /
LlmEvaluationListAbRolloutDecisions. There is no auto-rollout —
every decision row corresponds to an explicit operator action.
| Field | Type | Label | Description |
| name | string | The unique resource name of the rollout decision. Read-only; populated by the server.
Format: |
|
| llm_evaluation_ab_experiment_name | string | Resource name of the A/B experiment this decision was applied to.
Format: |
|
| applied_variant_id | string | Variant slug whose config was promoted to the project classifier default. |
|
| optimize_metric | LlmEvaluationAbOptimizeMetric | The metric the rollout was decided on (recorded for the audit trail). |
|
| p_value | double | Two-sided p-value of the applied-variant-vs-control test at application time. |
|
| effect_size | double | Observed effect size (applied variant vs. control) at application time. |
|
| applied_at | google.protobuf.Timestamp | Wall-clock time the rollout was applied. Read-only. |
|
| applied_by | string | User id (in form of a valid UUID) of the operator who applied the rollout. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the decision.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListAbRolloutDecisions. All fields are optional;
multiple fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| llm_evaluation_ab_experiment_name | string | Optional. Match only decisions applied to this A/B experiment (resource name).
Format: |
|
| applied_by | string | Optional. Match only decisions applied by this user id (UUID). |
A computed, read-only rollout recommendation for an A/B experiment: which
variant currently wins against the control on the chosen optimize metric,
under the requested statistical guard-rails. Stateless — recomputed on demand
by LlmEvaluationGetAbRolloutRecommendation from the per-variant
results rollup; nothing is persisted and no traffic / config changes. The
operator decides whether to apply it via LlmEvaluationApplyAbRollout.
| Field | Type | Label | Description |
| optimize_metric | LlmEvaluationAbOptimizeMetric | The metric the recommendation was computed against (echoed from the request). |
|
| winner_variant_id | string | Variant slug that currently wins against the control on this metric, once
the guard-rails (significance, effect size, minimum sessions) are met.
Empty while |
|
| control_variant_id | string | Variant slug of the control (baseline) arm the winner was compared against. |
|
| p_value | double | Two-sided p-value of the winner-vs-control test on the optimize metric. |
|
| effect_size | double | Observed effect size between winner and control (absolute risk difference for rate metrics, standardized / raw mean difference for continuous metrics). |
|
| is_significant | bool | Whether the result is statistically significant at the requested confidence level AND clears the requested minimum effect size. |
|
| sessions_per_variant | LlmEvaluationAbRolloutRecommendation.SessionsPerVariantEntry | repeated | Number of sessions observed per variant in scope, keyed by variant slug. Used to surface the guard-rail check against the requested minimum. |
| needs_more_data | bool | True when at least one arm has not yet reached the requested minimum number of sessions, so no winner can be called yet (collect more traffic). |
|
| reason | string | Human-readable rationale for the recommendation (e.g. the winner and its margin, or "needs N more sessions on variant X", or "no variant beats control"). |
| Field | Type | Label | Description |
| key | string |
|
|
| value | int64 |
|
Traffic-splitting configuration for an A/B experiment.
| Field | Type | Label | Description |
| enrollment_rate | double | Fraction of eligible sessions (0.0-1.0) actually enrolled into the
experiment; the remainder use the project default path. |
|
| assignment_salt | string | Optional. Salt mixed into the deterministic session-bucketing hash so that re-running the same experiment id re-randomizes the assignment. |
One routing variant of an A/B experiment. The variant overrides the model used
for the sessions assigned to it. A variant is one of two shapes depending on
the project's classifier:
via ccai_service_names (+ optional model_name /
prompt_version).
IntentRagflowClassifier) — the variantoverrides the chat-assistant LLM CcaiService and retrieval parameters via
rag_variant_config.
The two override shapes are mutually exclusive per variant; the server applies
whichever matches the project's classifier type.
| Field | Type | Label | Description |
| variant_id | string | Required. Stable slug identifying the variant within its experiment (e.g. "control", "qwen3-fp8"). Lower-case, used as the assignment key. |
|
| display_name | string | Required. Human-readable display name. |
|
| ccai_service_names | string | repeated | CcaiService name(s) defining this variant's LLM connection (IntentAgent
projects). Mutually exclusive with |
| traffic_weight | double | Traffic weight for this variant. Expressed as a percentage in the
|
|
| is_control | bool | Whether this variant is the control (baseline) arm. |
|
| model_name | string | Optional. Concrete model identifier override (e.g. "Qwen/Qwen3-27b-fp8"). |
|
| prompt_version | string | Optional. Logical prompt version recorded for this variant. |
|
| config | google.protobuf.Struct | Optional. Free-form target descriptor (the serialized CcaiServiceList / routing override applied for sessions assigned to this variant). |
|
| rag_variant_config | RagVariantConfig | Optional. RAGFlow override for a RAG-classifier project: the chat-assistant
LLM CcaiService + retrieval parameters applied to sessions assigned to this
variant. Used instead of |
Per-variant rollup returned by GetAbExperimentResults. Stateless / computed.
| Field | Type | Label | Description |
| variant_id | string | Variant slug these results belong to. |
|
| session_count | int64 | Number of distinct sessions assigned to this variant in scope. |
|
| telemetry | google.protobuf.Struct | Aggregated LLM telemetry over this variant's sessions, as a JSON-encoded
|
|
| derived_metrics | google.protobuf.Struct | Optional. Derived comparison metrics (e.g. token / latency / error / cost deltas versus the control variant), keyed by metric name. |
A human-review annotation-queue item: one per failing session step enqueued by
the online-evaluation worker. The reviewer annotates (status / reason) and may
promote the offending session into a regression dataset.
| Field | Type | Label | Description |
| name | string | The unique resource name of the queue item. Read-only; populated by the server.
Format: |
|
| session_name | string | Resource name of the offending session.
Format: |
|
| session_step_name | string | Resource name of the offending session step.
Format: |
|
| llm_evaluation_online_result_name | string | Resource name of the online result that triggered the enqueue.
Format: |
|
| status | LlmEvaluationAnnotationStatus | Current lifecycle status. |
|
| assigned_to | string | Optional. User id (UUID) the item is assigned to for review. |
|
| reason | string | Human-readable reason / rationale (e.g. |
|
| llm_evaluation_dataset_name | string | Resource name of the dataset the item was promoted into. Set when the item
reaches PROMOTED status.
Format: |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the item.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListAnnotationQueueItems. All fields are optional;
multiple fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| status | LlmEvaluationAnnotationStatus | Optional. Match only items with this status. |
|
| assigned_to | string | Optional. Match only items assigned to this user id (UUID). |
Pairwise comparison report across multiple experiments.
| Field | Type | Label | Description |
| name | string | The unique resource name of the comparison. Read-only; populated by the server.
Format: |
|
| display_name | string | Human-readable display name. |
|
| llm_evaluation_experiment_names | string | repeated | Resource names of the experiments being compared (two-or-more).
Format: |
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of the baseline experiment used for delta computation.
Format: |
|
| llm_evaluation_pairwise_results | LlmEvaluationPairwiseResult | repeated | One entry per example. |
| aggregate | google.protobuf.Struct | Aggregate stats: win-rate, mean-delta, ... |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
A dataset is a named collection of evaluation examples plus optional metadata.
| Field | Type | Label | Description |
| name | string | The unique resource name of the dataset. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| llm_evaluation_examples | LlmEvaluationExample | repeated | Examples contained in this dataset. May be returned empty by List endpoints; use ListExamples for paginated retrieval. |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| tags | string | repeated | Free-form tags for grouping / filtering. |
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language code (e.g. |
|
| llm_evaluation_dataset_type | LlmEvaluationDatasetType | Kind of examples the dataset holds (single-turn, multi-turn conversation flow, RAG question-answering, adversarial red-team probes, simulated). |
Filter conditions for ListDatasets. All fields are optional; multiple fields
set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only datasets whose display name contains this substring (case-insensitive). |
|
| tags | string | repeated | Optional. Match only datasets carrying every tag in this list. |
| llm_evaluation_dataset_type | LlmEvaluationDatasetType | Optional. Match only datasets of this type. |
Specification of one configurable evaluator parameter.
| Field | Type | Label | Description |
| name | string | Parameter key (e.g. "criteria", "threshold", "expected_output_key"). |
|
| display_name | string | Human-readable display name. |
|
| description | string | Free-form description. |
|
| value_type | string | Value type: "string" | "double" | "bool" | "string_list" | "json". |
|
| default_value | string | JSON-encoded default value. |
|
| required | bool | Whether the parameter must be supplied. |
Result of running one evaluator against one example.
| Field | Type | Label | Description |
| name | string | The unique resource name of the evaluator run. Read-only; populated by the server.
Format: |
|
| display_name | string | Human-readable display name. |
|
| llm_evaluation_example_name | string | Resource name of the example the evaluator was run against.
Format: |
|
| llm_telemetry_run_id | string | Ties this evaluator run back to the LlmTelemetry produced when running the target. |
|
| llm_evaluation_evaluator_type | LlmEvaluationEvaluatorType | Family of evaluator implementations. |
|
| evaluator_name | string | Logical name of the evaluator (e.g. "faithfulness", "exact_match"). |
|
| llm_evaluation_feedbacks | LlmEvaluationFeedback | repeated | One or more feedback records produced by the evaluator. |
| llm_evaluation_experiment_name | string | Resource name of the owning experiment.
Format: |
|
| started_at | google.protobuf.Timestamp | Wall-clock start of the evaluator run. |
|
| finished_at | google.protobuf.Timestamp | Wall-clock end of the evaluator run. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| llm_evaluation_turn_results | LlmEvaluationTurnResult | repeated | Per-turn results for multi-turn (conversation-flow) runs: one entry per executed conversation turn, carrying expected vs. actual outputs and the per-turn telemetry join key. Empty for single-turn runs. |
| repetition_index | int32 | Zero-based repetition index when the experiment ran with repetitions > 1. |
|
| actual_output | google.protobuf.Struct | Actual output produced by the target for this run (answer text, tool
calls, final state) — first-class so result views need not parse feedback
|
Server-side metadata describing one available evaluator.
| Field | Type | Label | Description |
| evaluator_name | string | Logical evaluator name used in RunExperiment requests (e.g. "faithfulness"). |
|
| display_name | string | Human-readable display name. |
|
| description | string | Free-form description of what the evaluator measures. |
|
| llm_evaluation_evaluator_type | LlmEvaluationEvaluatorType | Family of evaluator implementations. |
|
| llm_evaluation_evaluator_category | LlmEvaluationEvaluatorCategory | Category the evaluator belongs to. |
|
| required_example_fields | string | repeated | Dotted paths of example fields the evaluator requires (e.g. "inputs.question", "expected_outputs.answer", "inputs.turns"). |
| multi_turn | bool | True when the evaluator consumes multi-turn conversations. |
|
| default_threshold | double | Default pass threshold (0.0-1.0). |
|
| requires_judge | bool | True when the evaluator requires a judge LLM. |
|
| llm_evaluation_evaluator_parameter_specs | LlmEvaluationEvaluatorParameterSpec | repeated | Configurable parameters accepted via evaluator_configs / evaluator_overrides. |
A single example in an evaluation dataset.
| Field | Type | Label | Description |
| name | string | The unique resource name of the example. Read-only; populated by the server.
Format: |
|
| display_name | string | Human-readable display name. |
|
| description | string | Free-form description. |
|
| inputs | google.protobuf.Struct | Structured inputs payload — agent inputs, prompt vars, retrieval context, ... |
|
| expected_outputs | google.protobuf.Struct | Structured expected outputs — gold answer, expected tool sequence, ... |
|
| metadata | google.protobuf.Struct | Free-form metadata. |
|
| llm_evaluation_dataset_name | string | Resource name of the owning dataset.
Format: |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the example (denormalized from parent dataset for cheap
per-project filtering). Format: |
|
| language_code | string | BCP-47 language code (denormalized from parent dataset for cheap filtering). |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
Filter conditions for ListExamples. All fields are optional; multiple fields
set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only examples whose display name contains this substring (case-insensitive). |
A single experiment run over a dataset.
| Field | Type | Label | Description |
| name | string | The unique resource name of the experiment. Read-only; populated by the server.
Format: |
|
| llm_evaluation_dataset_name | string | Resource name of the source dataset.
Format: |
|
| display_name | string | Required. Human-readable display name. |
|
| description | string | Free-form description. |
|
| git_sha | string | Pin the experiment to a source-tree revision for reproducibility. |
|
| prompt_version | string | Logical version identifier of the prompt under test. |
|
| model_name | string | Concrete model identifier exercised by the experiment. |
|
| config | google.protobuf.Struct | Arbitrary configuration captured at run time. |
|
| llm_evaluation_evaluator_runs | LlmEvaluationEvaluatorRun | repeated | One entry per evaluator x example combination. |
| started_at | google.protobuf.Timestamp | Wall-clock start of the experiment run. |
|
| finished_at | google.protobuf.Timestamp | Wall-clock end of the experiment run. |
|
| duration_in_s | double | Convenience duration (finished_at - started_at). |
|
| n_examples | int32 | Number of dataset examples consumed. |
|
| n_passed | int32 | Number of evaluator runs that produced a passing score. |
|
| n_failed | int32 | Number of evaluator runs that produced a failing score. |
|
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of a baseline experiment for regression detection.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| llm_evaluation_experiment_status | LlmEvaluationExperimentStatus | Current lifecycle status of the experiment (pending / running / succeeded / failed / cancelled). |
|
| created_by | string | User id in form of a valid UUID. |
|
| language_code | string | BCP-47 language code (denormalized from parent dataset). Experiments are scoped per (project, language_code); experiment name uniqueness is enforced per (project, language_code) tuple. |
|
| ccai_service_names | string | repeated | CcaiService name(s) whose LLM connection details defined the model(s) evaluated in this run (echoed from RunLlmEvaluationExperimentRequest for audit / reproducibility). |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| repetitions | int32 | Number of repetitions each (example, evaluator) pair was executed with (echoed from RunLlmEvaluationExperimentRequest; 0 is treated as 1). |
|
| llm_evaluation_schedule_name | string | Optional. Resource name of the schedule that created this experiment
(empty for manually-triggered experiments).
Format: |
|
| llm_evaluation_experiment_kind | LlmEvaluationExperimentKind | Kind of experiment (standard single-turn, multi-turn flow, red-team, gate candidate, gate safety, scheduled). |
|
| llm_evaluation_release_gate_run_name | string | Optional. Resource name of the release gate run this experiment belongs to
(set for gate-candidate and gate-safety experiments).
Format: |
Filter conditions for ListExperiments. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only experiments whose display name contains this substring (case-insensitive). |
|
| llm_evaluation_experiment_status | LlmEvaluationExperimentStatus | Optional. Match only experiments with this lifecycle status. |
|
| llm_evaluation_dataset_name | string | Optional. Match only experiments tied to this dataset (resource name).
Format: |
|
| model_name | string | Optional. Match only experiments exercising this concrete model identifier. |
|
| llm_evaluation_schedule_name | string | Optional. Match only experiments created by this schedule (resource name).
Format: |
|
| llm_evaluation_experiment_kind | LlmEvaluationExperimentKind | Optional. Match only experiments of this kind. |
A single feedback record (score + optional categorical + comment + raw payload).
| Field | Type | Label | Description |
| name | string | The unique resource name of the feedback record. Read-only; populated by the server.
Format: |
|
| display_name | string | Human-readable display name. |
|
| criterion | string | Free-form criterion label: "correctness", "faithfulness", "hallucination", "context_precision", "tool_trajectory", "format", "groundedness", "tone", "exact_match", "embedding_distance", "bleu", "rouge", "regression", ... |
|
| score | double | optional | Numeric score (0.0-1.0 by convention). Defaults to 0.0 (proto3 has no field presence on this scalar, so an unset score and a genuine 0.0 are indistinguishable); for purely categorical feedback, rely on categorical_value rather than this field. |
| categorical_value | string | Categorical value when applicable ("pass" | "fail" | "yes" | "no" | tier). |
|
| comment | string | Human-readable comment / rationale. |
|
| annotator_user_id | string | Human reviewer id or "evaluator:<name>". |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| raw | google.protobuf.Struct | Verbatim evaluator JSON output kept for forensic replay. |
|
| llm_evaluation_evaluator_run_name | string | Resource name of the owning evaluator run (may be empty for top-level
experiment-scoped feedback submitted via SubmitFeedback).
Format: |
|
| llm_evaluation_experiment_name | string | Resource name of the owning experiment.
Format: |
|
| llm_evaluation_example_name | string | Resource name of the example the feedback targets.
Format: |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Filter conditions for ListFeedback. All fields are optional; multiple fields
set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| llm_evaluation_experiment_name | string | Optional. Match only feedback attached to this experiment (resource name).
Format: |
|
| llm_evaluation_example_name | string | Optional. Match only feedback targeting this example (resource name).
Format: |
|
| llm_evaluation_evaluator_run_name | string | Optional. Match only feedback produced by this evaluator run (resource name).
Format: |
|
| criterion | string | Optional. Match only feedback with this criterion label (e.g. "correctness", "faithfulness"). |
|
| categorical_value | string | Optional. Match only feedback with this categorical value ("pass" | "fail" | "yes" | "no" | tier). |
Judge-LLM configuration used by LLM-as-judge evaluators.
| Field | Type | Label | Description |
| ccai_service_name | string | Resource name of the CcaiService whose LLM connection details (host / port / model / auth) the judge uses. Preferred over free-form model_name. |
|
| model_name | string | Free-form judge model label (fallback / display). |
|
| temperature | double | Sampling temperature for the judge model. |
|
| verbose_reasoning | bool | When true, the judge's full reasoning is kept in feedback
|
|
| evaluator_overrides | google.protobuf.Struct | Per-evaluator overrides keyed by evaluator name. Values are objects
matching the evaluator's parameter specs from LlmEvaluationListEvaluators
(e.g. |
An online-evaluation config: a per-(project, language_code) definition that a
swarm-safe background worker uses to sample already-persisted live session
steps, score the recorded answer with a reference-free evaluator set, and
enqueue failing steps into the annotation queue. Mirrors the LlmEvaluationSchedule
scoping / audit / enabled-flag shape.
| Field | Type | Label | Description |
| name | string | The unique resource name of the online config. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| evaluator_names | string | repeated | Reference-free evaluator names the worker runs on each sampled step (e.g.
|
| sample_rate | double | Fraction of candidate steps to score, in the range 0.0-1.0. Applied deterministically per step. |
|
| enabled | bool | Whether the worker samples for this config. Disabled configs keep their configuration. |
|
| target_dataset_name | string | Optional. Default promotion target dataset for steps enqueued by this config.
Format: |
|
| fail_threshold | double | optional | Score cutoff (0.0-1.0). Scored steps whose aggregate score is below this threshold are enqueued into the annotation queue. Defaults to 0.5. |
| settle_seconds | int32 | Settle window in seconds: the worker only considers steps older than this, so per-step telemetry has landed before scoring. Defaults to 30. |
|
| require_telemetry | bool | When true, only steps with recorded LLM telemetry are sampled (shorthand for the session-filter flag of the same name). |
|
| llm_evaluation_online_session_filter | LlmEvaluationOnlineSessionFilter | Optional. Filter narrowing which session steps are sampled. |
|
| last_evaluated_at | google.protobuf.Timestamp | Wall-clock time of the worker's most recent evaluation pass for this config. Read-only; set by the worker. |
|
| n_sessions_evaluated | int64 | Running count of session steps this config has scored. Read-only; set by the worker. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the config.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListOnlineConfigs. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only configs whose display name contains this substring (case-insensitive). |
|
| enabled_only | bool | Optional. When true, match only enabled configs. |
A self-contained online-evaluation result: one row per scored session step.
Per-criterion feedbacks are stored as an embedded repeated LlmEvaluationFeedback
list (exactly like LlmEvaluationTurnResult.feedbacks — NOT persisted into the
experiment-scoped llm_feedback table). Produced by the online-evaluation worker;
read-only over the API.
| Field | Type | Label | Description |
| name | string | The unique resource name of the result. Read-only; populated by the server.
Format: |
|
| llm_evaluation_online_config_name | string | Resource name of the online config that produced this result.
Format: |
|
| session_name | string | Resource name of the scored session.
Format: |
|
| session_step_name | string | Resource name of the scored session step.
Format: |
|
| llm_evaluation_feedbacks | LlmEvaluationFeedback | repeated | Per-criterion feedback records, one per configured evaluator (embedded list; the same LlmEvaluationFeedback message reused as the per-criterion result element). |
| passed | bool | Whether the step passed every criterion (aggregate_score >= the config's fail_threshold and no criterion failed). |
|
| aggregate_score | double | Aggregate roll-up score across the criteria (0.0-1.0). |
|
| evaluated_at | google.protobuf.Timestamp | Wall-clock time the worker scored this step. Read-only. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID (the worker / system identity). |
|
| parent | string | Project owning the result.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListOnlineResults. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| llm_evaluation_online_config_name | string | Optional. Match only results produced by this online config.
Format: |
|
| passed | bool | Optional. Match only results with this pass-state. |
|
| filter_by_passed | bool | Optional. When true, the |
Optional filter narrowing which already-persisted live session steps an
online-evaluation config samples. All fields are optional; multiple fields set
at the same time are combined via logical AND.
| Field | Type | Label | Description |
| labels | string | repeated | Optional. Match only session steps whose session carries every one of these
labels (e.g. |
| language_codes | string | repeated | Optional. Restrict sampling to these BCP-47 language codes. Empty = the owning config's language_code only. |
| platforms | string | repeated | Optional. Restrict sampling to these integration platforms. |
| require_telemetry | bool | Optional. When true, only sample steps that have recorded LLM telemetry
(a |
Per-example pairwise comparison entry.
| Field | Type | Label | Description |
| llm_evaluation_example_name | string | Resource name of the example being compared.
Format: |
|
| llm_evaluation_winner_experiment_name | string | Resource name of the winning experiment.
Format: |
|
| score_delta | double | Score delta against the baseline (positive means winner improved). |
|
| reason | string | Free-form reason / rationale. |
Per-(project, language_code) evaluation settings singleton.
| Field | Type | Label | Description |
| name | string | The unique resource name of the settings singleton. Read-only.
Format: |
|
| llm_evaluation_judge_config | LlmEvaluationJudgeConfig | Judge-LLM configuration for LLM-as-judge evaluators. |
|
| default_weights | google.protobuf.Struct | Default per-criterion weights (criterion name -> numeric weight) applied by comparison / scorecard views when no explicit weights are configured. |
|
| default_pass_cutoff_score | double | Default score cutoff (0.0-1.0) above which an evaluator run counts as passed. |
|
| default_scorecard_name | string | Optional. Resource name of the default scorecard.
Format: |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the settings.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
A release gate: a named set of thresholds over evaluator scores, regression
deltas and telemetry that decides whether a candidate configuration ships.
| Field | Type | Label | Description |
| name | string | The unique resource name of the release gate. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| revision | int32 | Server-managed revision counter, incremented on semantic updates (suite, baseline, evaluators, thresholds, weights, safety). Read-only. |
|
| llm_evaluation_dataset_name | string | Resource name of the benchmark suite (dataset) the gate runs.
Format: |
|
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of the baseline experiment for regression checks.
Format: |
|
| llm_evaluation_evaluator_names | string | repeated | Logical names of the evaluators the gate runs against the suite. |
| thresholds | LlmEvaluationReleaseGateThresholds | Threshold set evaluated against the candidate experiment. |
|
| safety | LlmEvaluationReleaseGateSafetyConfig | Optional safety section (separate adversarial experiment). |
|
| weights | google.protobuf.Struct | Per-criterion weights used for the weighted composite score (criterion name -> numeric weight; normalized server-side). |
|
| pass_cutoff_score | double | Score cutoff (0.0-1.0) above which an evaluator run counts as passed. |
|
| staleness_window_days | int32 | Number of days after which a gate verdict is considered stale. |
|
| ccai_service_names | string | repeated | Default CcaiService name(s) defining the candidate target's LLM connection (can be overridden per run). |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the release gate.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
One evaluated check inside a release gate run verdict.
| Field | Type | Label | Description |
| id | string | Stable check identifier, e.g. "pass_rate", "criterion.<name>", "regression.<name>", "latency_p95_seconds", "safety.<name>", "acceptance_must_pass". |
|
| threshold | double | Threshold the check compared against. |
|
| actual | double | Actual value observed. |
|
| actual_available | bool | False when the input needed for the check was unavailable (e.g. telemetry
not recorded); |
|
| passed | bool | Whether the check passed. |
|
| partial | bool | True when the actual value was only window-attributed (partial telemetry). |
|
| provenance | string | Where the actual value came from: "LIVE" | "DERIVED" | "TELEMETRY". |
Filter conditions for ListReleaseGates. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only gates whose display name contains this substring (case-insensitive). |
|
| llm_evaluation_dataset_name | string | Optional. Match only gates running this suite (dataset resource name).
Format: |
One persisted execution of a release gate: experiments + computed verdict.
| Field | Type | Label | Description |
| name | string | The unique resource name of the gate run. Read-only; populated by the server.
Format: |
|
| llm_evaluation_release_gate_name | string | Resource name of the gate this run belongs to.
Format: |
|
| gate_revision | int32 | Gate revision at run time. |
|
| gate_snapshot | google.protobuf.Struct | Full gate document snapshot taken at run time, so the verdict stays interpretable after later gate edits. |
|
| llm_evaluation_experiment_name | string | Resource name of the candidate experiment.
Format: |
|
| llm_evaluation_safety_experiment_name | string | Optional. Resource name of the safety (adversarial) experiment.
Format: |
|
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of the baseline experiment used for regression checks.
Format: |
|
| llm_evaluation_release_gate_verdict | LlmEvaluationReleaseGateVerdict | Computed verdict. Read-only; persisted server-side. |
|
| checks | LlmEvaluationReleaseGateCheck | repeated | Individual checks the verdict was derived from. Read-only. |
| started_at | google.protobuf.Timestamp | Wall-clock start of the gate run. |
|
| finished_at | google.protobuf.Timestamp | Wall-clock end of the gate run (verdict computation finished). |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the gate run.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListReleaseGateRuns. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| llm_evaluation_release_gate_name | string | Optional. Match only runs of this gate (resource name).
Format: |
|
| llm_evaluation_release_gate_verdict | LlmEvaluationReleaseGateVerdict | Optional. Match only runs with this verdict. |
Safety section of a release gate: a separate adversarial experiment scored
with safety evaluators.
| Field | Type | Label | Description |
| enabled | bool | Whether the safety section is evaluated as part of gate runs. |
|
| adversarial_dataset_name | string | Resource name of the adversarial (red-team) dataset to run.
Format: |
|
| evaluator_names | string | repeated | Logical names of safety evaluators to run (e.g. "toxicity", "bias", "pii_leakage"). |
| max_toxicity | double | optional | Maximum tolerated mean toxicity score (0.0-1.0). |
| max_bias | double | optional | Maximum tolerated mean bias score (0.0-1.0). |
Threshold set evaluated by a release gate. Nested in a dedicated message so
presence can be detected at the message level (proto3 scalars carry no presence).
| Field | Type | Label | Description |
| min_pass_rate | double | Minimum pass rate (0.0-1.0) the candidate experiment must reach. |
|
| max_regression_per_criterion | double | optional | Maximum tolerated per-criterion mean-score regression (0.0-1.0) versus the baseline experiment. |
| max_p95_latency_seconds | double | Maximum tolerated p95 latency in seconds (requires telemetry join). |
|
| acceptance_must_pass | bool | If true, every example tagged "acceptance" must pass for the gate to pass. |
An immutable persisted report artifact (release summaries, gate sign-offs,
exported evaluation snapshots).
| Field | Type | Label | Description |
| name | string | The unique resource name of the report. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name. |
|
| description | string | Free-form description. |
|
| report_type | string | Logical report type identifier (e.g. |
|
| mime_type | string | MIME type of the payload
(e.g. |
|
| payload | bytes | Report payload. Omitted from List responses unless explicitly requested via field_mask. |
|
| metadata | google.protobuf.Struct | Source references (gate runs, experiments, filters) captured at creation time. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the report.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListReports. All fields are optional; multiple fields
set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only reports whose display name contains this substring (case-insensitive). |
|
| report_type | string | Optional. Match only reports of this logical type. |
A schedule for recurring experiment / release gate runs.
| Field | Type | Label | Description |
| name | string | The unique resource name of the schedule. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| cron_expression | string | 5-field cron expression in UTC (e.g. |
|
| interval_seconds | int32 | Fixed interval between runs in seconds. Exactly one of
|
|
| enabled | bool | Whether the schedule fires. Disabled schedules keep their configuration. |
|
| llm_evaluation_schedule_action | LlmEvaluationScheduleAction | What the schedule executes when it fires. |
|
| run_llm_evaluation_experiment_request | RunLlmEvaluationExperimentRequest | RUN_EXPERIMENT only. Template request dispatched on every firing (display_name is suffixed with the firing timestamp). |
|
| llm_evaluation_release_gate_name | string | RUN_RELEASE_GATE only. Resource name of the gate to run.
Format: |
|
| last_run_at | google.protobuf.Timestamp | Wall-clock time of the most recent firing. Read-only. |
|
| next_run_at | google.protobuf.Timestamp | Wall-clock time of the next planned firing. Read-only. |
|
| last_run_resource_name | string | Resource name created by the most recent firing (experiment or gate run). Read-only. |
|
| last_run_status | LlmEvaluationExperimentStatus | Status of the experiment created by the most recent firing. Read-only. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the schedule.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
Filter conditions for ListSchedules. All fields are optional; multiple fields
set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only schedules whose display name contains this substring (case-insensitive). |
|
| enabled_only | bool | Optional. When true, match only enabled schedules. |
|
| llm_evaluation_schedule_action | LlmEvaluationScheduleAction | Optional. Match only schedules with this action. |
A scorecard: a named weighted multi-criteria roll-up definition applied to
experiments for release reporting.
| Field | Type | Label | Description |
| name | string | The unique resource name of the scorecard. Read-only; populated by the server.
Format: |
|
| display_name | string | Required. Human-readable display name (unique within the (project, language_code) tuple). |
|
| description | string | Free-form description. |
|
| llm_evaluation_scorecard_components | LlmEvaluationScorecardComponent | repeated | Weighted criterion components. |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| parent | string | Project owning the scorecard.
Format: |
|
| language_code | string | BCP-47 language-code scope. |
One weighted criterion row of a scorecard.
| Field | Type | Label | Description |
| criterion | string | Criterion label the component aggregates (e.g. "faithfulness"). |
|
| weight | double | Relative weight of the component (normalized server-side). |
|
| target_score | double | Target score (0.0-1.0) the criterion should reach. |
|
| evaluator_name | string | Optional. Logical evaluator name backing the criterion. |
Filter conditions for ListScorecards. All fields are optional; multiple
fields set at the same time are combined via logical AND.
| Field | Type | Label | Description |
| display_name | string | Optional. Match only scorecards whose display name contains this substring (case-insensitive). |
One simulated user persona.
| Field | Type | Label | Description |
| persona | string | Short persona label (e.g. "impatient customer"). |
|
| scenario | string | Scenario the simulated user pursues (e.g. "wants a refund for a double charge"). |
|
| expected_outcome | string | Expected outcome of a successful conversation (used as expected output on generated examples). |
|
| user_description | string | Free-form additional description of the simulated user's behavior. |
Result of executing one conversation turn of a multi-turn (flow) example.
| Field | Type | Label | Description |
| turn_index | int32 | Zero-based index of the turn within the example's scripted conversation. |
|
| user_input | google.protobuf.Struct | The user input that was sent for this turn (text, contexts, parameters). |
|
| expected_output | google.protobuf.Struct | Expected output for this turn as authored in the example (expected tool calls, final state, answer). |
|
| actual_output | google.protobuf.Struct | Actual output produced by the target for this turn (answer text, tool calls, final state). |
|
| llm_telemetry_run_id | string | Ties this turn back to the LlmTelemetry produced when running the target for this turn (per-turn telemetry join key). |
|
| session_step_name | string | Optional. Resource name of the session step created by executing this turn against the live target (deep link into trace views). |
|
| llm_evaluation_feedbacks | LlmEvaluationFeedback | repeated | Per-turn feedback records produced by turn-aware evaluators. |
| duration_in_s | double | Wall-clock duration of this turn in seconds. |
Request to promote an annotation-queue item into a regression dataset. Thin
server-side composition over LlmEvaluationCreateExamplesFromSession; the item
status is flipped to PROMOTED and the dataset name stamped on success.
| Field | Type | Label | Description |
| name | string | Resource name of the item to promote.
Format: |
|
| target_dataset_name | string | Resource name of the dataset receiving the created example(s).
Format: |
|
| llm_evaluation_example_extraction_mode | LlmEvaluationExampleExtractionMode | How the item's session steps are turned into examples (reused mode enum). |
|
| include_tool_calls | bool | When true, tool calls recorded in the session's telemetry are captured as expected tool calls on the created examples. |
|
| include_retrieval_context | bool | When true, retrieved chunks recorded by retriever spans are captured as frozen retrieval context on the created examples. |
|
| parent | string | Project owning the item and the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Response for PromoteAnnotationQueueItem.
| Field | Type | Label | Description |
| llm_evaluation_examples | LlmEvaluationExample | repeated | Example record(s) created in the target dataset. |
| llm_evaluation_annotation_queue_item | LlmEvaluationAnnotationQueueItem | The promoted queue item (status flipped to PROMOTED, dataset name stamped). |
RAGFlow variant override for an A/B experiment running on a RAG-classifier
project (IntentRagflowClassifier). Where an IntentAgent variant
overrides the LLM via ccai_service_names, a RAG variant overrides
the project's chat-assistant LLM CcaiService and the retrieval parameters used
when answering the assigned sessions. Override-or-inherit semantics apply per
field: an empty / zero value means "inherit the project's base
IntentRagflowClassifier config for this field".
| Field | Type | Label | Description |
| chat_assistant_llm_ccai_service_name | string | CcaiService name whose LLM connection details back the chat-assistant LLM
for sessions assigned to this variant (overrides the project's
|
|
| top_k | int32 | Retrieval top_k: the maximum number of chunks retrieved per turn (overrides
the project's |
|
| similarity_threshold | double | Retrieval similarity threshold in |
|
| vector_similarity_weight | double | Vector-vs-keyword similarity weight in |
|
| rerank_model_ccai_service_name | string | Optional. CcaiService name backing the rerank model for sessions assigned to
this variant (overrides the project's
|
Request to run a fresh experiment.
| Field | Type | Label | Description |
| parent | string | Project owning the experiment.
Format: |
|
| llm_evaluation_dataset_name | string | Resource name of the dataset to evaluate against.
Format: |
|
| display_name | string | Required. Human-readable display name. |
|
| git_sha | string | Source-tree revision pin for reproducibility. |
|
| prompt_version | string | Logical prompt version identifier. |
|
| model_name | string | Concrete model identifier under test. |
|
| config | google.protobuf.Struct | Arbitrary run-time configuration. |
|
| llm_evaluation_evaluator_names | string | repeated | Logical names of evaluators to run (resolved server-side to evaluator implementations). |
| llm_evaluation_baseline_experiment_name | string | Optional. Resource name of a baseline experiment for regression detection.
Format: |
|
| language_code | string | BCP-47 language code the experiment runs against. Required — selects which language-scoped dataset is loaded. |
|
| ccai_service_names | string | repeated | Logical names of the CcaiService(s) that carry the LLM connection details (host/port/model/
auth) of the model(s) under evaluation, resolved server-side — mirroring the
IntentRagflowClassifier / IntentAgent |
| repetitions | int32 | Optional. Number of repetitions per (example, evaluator) pair for consistency / dispersion analysis. 0 is treated as 1. |
|
| llm_evaluation_experiment_kind | LlmEvaluationExperimentKind | Optional. Kind of experiment to run. Unspecified defaults to STANDARD (or FLOW when the dataset type is FLOW). |
|
| evaluator_configs | google.protobuf.Struct | Optional. Per-evaluator parameter overrides for this run, keyed by
evaluator name. Values are objects matching the evaluator's parameter
specs from LlmEvaluationListEvaluators
(e.g. |
Request to run a release gate against a candidate target.
| Field | Type | Label | Description |
| name | string | Resource name of the gate to run.
Format: |
|
| parent | string | Project owning the gate.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
|
| ccai_service_names | string | repeated | Optional. CcaiService name(s) defining the candidate target's LLM
connection; overrides the gate's default |
| git_sha | string | Optional. Source-tree revision pin recorded on the candidate experiment. |
|
| prompt_version | string | Optional. Logical prompt version recorded on the candidate experiment. |
Request to generate synthetic multi-turn evaluation conversations.
| Field | Type | Label | Description |
| parent | string | Project owning the dataset.
Format: |
|
| llm_evaluation_dataset_name | string | Resource name of the dataset receiving the generated examples.
Format: |
|
| llm_evaluation_simulation_personas | LlmEvaluationSimulationPersona | repeated | Personas to simulate. At least one is required for STANDARD simulations. |
| num_conversations | int32 | Number of conversations to generate (across all personas). |
|
| max_turns | int32 | Maximum number of user turns per generated conversation. |
|
| ccai_service_names | string | repeated | CcaiService name(s) defining the LLM connection used to simulate the user side of the conversations. |
| language_code | string | BCP-47 language-code scope (required, must match the dataset's). |
|
| config | google.protobuf.Struct | Arbitrary simulator configuration captured for reproducibility. |
|
| llm_evaluation_simulation_kind | LlmEvaluationSimulationKind | Kind of simulation (standard persona-driven vs adversarial red-teaming). |
|
| attack_types | string | repeated | ADVERSARIAL only. Attack types to probe (e.g. "prompt_injection", "pii_extraction", "jailbreak", "off_topic_drift"). Empty = all built-in types. |
Request to start an A/B experiment (validates weights, sets RUNNING).
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to start.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to stop a running A/B experiment (sets STOPPED).
| Field | Type | Label | Description |
| name | string | Resource name of the experiment to stop.
Format: |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to submit a single feedback record.
| Field | Type | Label | Description |
| llm_evaluation_experiment_name | string | Resource name of the experiment the feedback applies to.
Format: |
|
| llm_evaluation_evaluator_run_name | string | Optional. Resource name of the evaluator run the feedback attaches to. Empty
for top-level experiment-scoped feedback (e.g. human review at experiment
granularity).
Format: |
|
| llm_evaluation_feedback | LlmEvaluationFeedback | Feedback payload. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing A/B experiment.
| Field | Type | Label | Description |
| llm_evaluation_ab_experiment | LlmEvaluationAbExperiment | Experiment payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the experiment record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned experiment. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an annotation-queue item (status / assignee / reason transitions).
| Field | Type | Label | Description |
| llm_evaluation_annotation_queue_item | LlmEvaluationAnnotationQueueItem | Item payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the item record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned item. |
|
| parent | string | Project owning the item.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing dataset.
| Field | Type | Label | Description |
| llm_evaluation_dataset | LlmEvaluationDataset | Dataset payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the dataset record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned dataset. |
|
| parent | string | Project owning the dataset.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing example.
| Field | Type | Label | Description |
| llm_evaluation_example | LlmEvaluationExample | Example payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the example record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned example. |
|
| parent | string | Project owning the example.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an experiment's metadata.
| Field | Type | Label | Description |
| llm_evaluation_experiment | LlmEvaluationExperiment | Experiment payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the experiment record. Evaluator runs and feedback are immutable and ignored here. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned experiment. |
|
| parent | string | Project owning the experiment.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing feedback record.
| Field | Type | Label | Description |
| llm_evaluation_feedback | LlmEvaluationFeedback | Feedback payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the feedback record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned feedback record. |
|
| parent | string | Project owning the feedback.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing online-evaluation config.
| Field | Type | Label | Description |
| llm_evaluation_online_config | LlmEvaluationOnlineConfig | Config payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the config record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned config. |
|
| parent | string | Project owning the config.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update the evaluation settings singleton.
| Field | Type | Label | Description |
| llm_evaluation_project_settings | LlmEvaluationProjectSettings | Settings payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the settings record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned settings. |
|
| parent | string | Project owning the settings.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing release gate.
| Field | Type | Label | Description |
| llm_evaluation_release_gate | LlmEvaluationReleaseGate | Gate payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the gate record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned gate. |
|
| parent | string | Project owning the gate.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing schedule.
| Field | Type | Label | Description |
| llm_evaluation_schedule | LlmEvaluationSchedule | Schedule payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the schedule record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned schedule. |
|
| parent | string | Project owning the schedule.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Request to update an existing scorecard.
| Field | Type | Label | Description |
| llm_evaluation_scorecard | LlmEvaluationScorecard | Scorecard payload (only fields covered by |
|
| update_mask | google.protobuf.FieldMask | Mask of fields to update on the scorecard record. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data on the returned scorecard. |
|
| parent | string | Project owning the scorecard.
Format: |
|
| language_code | string | BCP-47 language-code scope (required). |
Lifecycle status of an A/B experiment.
| Name | Number | Description |
| LLM_EVALUATION_AB_EXPERIMENT_STATUS_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_AB_EXPERIMENT_STATUS_DRAFT | 1 | Defined but not yet started; no traffic is split. |
| LLM_EVALUATION_AB_EXPERIMENT_STATUS_RUNNING | 2 | Started; live DetectIntent traffic is being split across the variants. |
| LLM_EVALUATION_AB_EXPERIMENT_STATUS_STOPPED | 3 | Stopped; traffic split has ended. Sticky assignments and results are retained. |
| LLM_EVALUATION_AB_EXPERIMENT_STATUS_ARCHIVED | 4 | Archived; read-only, hidden from the default list. |
The metric an A/B rollout optimizes when comparing each variant against the
control. Each value maps to a quantity already produced by the per-variant
results rollup (see GetAbExperimentResults). Higher-is-better vs.
lower-is-better is implied by the metric (e.g. PASS_RATE / CRITERION_SCORE /
SAFETY_SCORE are higher-is-better; ERROR_RATE / MEAN_LATENCY are
lower-is-better) and applied server-side when picking the winner.
| Name | Number | Description |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_PASS_RATE | 1 | Fraction of sessions that passed (1 - error_rate). Higher is better. |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_ERROR_RATE | 2 | Fraction of sessions that errored. Lower is better. |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_MEAN_LATENCY | 3 | Mean first-token / response latency in seconds. Lower is better. |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_CRITERION_SCORE | 4 | Mean offline-criterion score in |
| LLM_EVALUATION_AB_OPTIMIZE_METRIC_SAFETY_SCORE | 5 | Mean native-safety score in |
Lifecycle status of an annotation-queue item.
| Name | Number | Description |
| LLM_EVALUATION_ANNOTATION_STATUS_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_ANNOTATION_STATUS_PENDING | 1 | Enqueued, awaiting human review. |
| LLM_EVALUATION_ANNOTATION_STATUS_REVIEWED | 2 | Reviewed by a human (verdict / reason recorded), not yet promoted or dismissed. |
| LLM_EVALUATION_ANNOTATION_STATUS_PROMOTED | 3 | Promoted into a regression dataset (promoted_dataset_name stamped). |
| LLM_EVALUATION_ANNOTATION_STATUS_DISMISSED | 4 | Dismissed (not a genuine failure; will not be promoted). |
Kind of examples an evaluation dataset holds.
| Name | Number | Description |
| LLM_EVALUATION_DATASET_TYPE_UNSPECIFIED | 0 | Default / unset (treated as SINGLE_TURN). |
| LLM_EVALUATION_DATASET_TYPE_SINGLE_TURN | 1 | Single-turn examples (one input, one expected output). |
| LLM_EVALUATION_DATASET_TYPE_FLOW | 2 | Multi-turn conversation-flow examples (scripted user turns with expected tool calls / final state / answers per turn). |
| LLM_EVALUATION_DATASET_TYPE_RAG | 3 | RAG question-answering examples (question, gold answer, expected sources). |
| LLM_EVALUATION_DATASET_TYPE_RED_TEAM | 4 | Adversarial red-team probes (prompt injection, PII extraction, jailbreaks, ...). |
| LLM_EVALUATION_DATASET_TYPE_SIMULATED | 5 | Synthetically generated examples (conversation simulator output). |
Category an evaluator belongs to.
| Name | Number | Description |
| LLM_EVALUATION_EVALUATOR_CATEGORY_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_EVALUATOR_CATEGORY_RAG | 1 | Retrieval-augmented-generation quality (faithfulness, contextual precision, ...). |
| LLM_EVALUATION_EVALUATOR_CATEGORY_AGENTIC | 2 | Agentic behavior (tool correctness, task completion, MCP usage, ...). |
| LLM_EVALUATION_EVALUATOR_CATEGORY_CONVERSATIONAL | 3 | Multi-turn conversational quality (knowledge retention, role adherence, ...). |
| LLM_EVALUATION_EVALUATOR_CATEGORY_SAFETY | 4 | Safety (toxicity, bias, PII leakage, hallucination, ...). |
| LLM_EVALUATION_EVALUATOR_CATEGORY_HEURISTIC | 5 | Deterministic heuristics (exact match, embedding distance, JSON validity, ...). |
| LLM_EVALUATION_EVALUATOR_CATEGORY_CUSTOM | 6 | User-configurable custom metrics (G-Eval rubrics, DAG metrics, ...). |
Family of evaluator implementations.
| Name | Number | Description |
| LLM_EVALUATION_EVALUATOR_TYPE_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_EVALUATOR_TYPE_LLM_AS_JUDGE | 1 | LLM acting as a judge (LangSmith-style). |
| LLM_EVALUATION_EVALUATOR_TYPE_HUMAN | 2 | Human reviewer. |
| LLM_EVALUATION_EVALUATOR_TYPE_HEURISTIC | 3 | Deterministic heuristic (regex, exact match, ...). |
| LLM_EVALUATION_EVALUATOR_TYPE_CUSTOM_CODE | 4 | Custom Python code provided by the user. |
| LLM_EVALUATION_EVALUATOR_TYPE_PAIRWISE | 5 | Pairwise comparison evaluator. |
How session steps are converted into evaluation examples.
| Name | Number | Description |
| LLM_EVALUATION_EXAMPLE_EXTRACTION_MODE_UNSPECIFIED | 0 | Default / unset (treated as SINGLE_TURN). |
| LLM_EVALUATION_EXAMPLE_EXTRACTION_MODE_SINGLE_TURN | 1 | One single-turn example per selected session step. |
| LLM_EVALUATION_EXAMPLE_EXTRACTION_MODE_MULTI_TURN_FLOW | 2 | One multi-turn (conversation-flow) example with one turn per selected session step, in session order. |
Kind of an experiment run.
| Name | Number | Description |
| LLM_EVALUATION_EXPERIMENT_KIND_UNSPECIFIED | 0 | Default / unset (treated as STANDARD). |
| LLM_EVALUATION_EXPERIMENT_KIND_STANDARD | 1 | Standard single-turn evaluation run. |
| LLM_EVALUATION_EXPERIMENT_KIND_FLOW | 2 | Multi-turn conversation-flow run (per-turn results populated). |
| LLM_EVALUATION_EXPERIMENT_KIND_RED_TEAM | 3 | Red-team / adversarial safety run. |
| LLM_EVALUATION_EXPERIMENT_KIND_GATE_CANDIDATE | 4 | Candidate experiment dispatched by a release gate run. |
| LLM_EVALUATION_EXPERIMENT_KIND_GATE_SAFETY | 5 | Safety experiment dispatched by a release gate run. |
| LLM_EVALUATION_EXPERIMENT_KIND_SCHEDULED | 6 | Experiment dispatched by a recurring schedule. |
Lifecycle status of an experiment.
| Name | Number | Description |
| LLM_EVALUATION_EXPERIMENT_STATUS_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_EXPERIMENT_STATUS_PENDING | 1 | Queued, not yet started. |
| LLM_EVALUATION_EXPERIMENT_STATUS_RUNNING | 2 | Currently running. |
| LLM_EVALUATION_EXPERIMENT_STATUS_SUCCEEDED | 3 | Finished successfully. |
| LLM_EVALUATION_EXPERIMENT_STATUS_FAILED | 4 | Finished with errors. |
| LLM_EVALUATION_EXPERIMENT_STATUS_CANCELLED | 5 | Cancelled by user request. |
Verdict of a release gate run.
| Name | Number | Description |
| LLM_EVALUATION_RELEASE_GATE_VERDICT_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_RELEASE_GATE_VERDICT_PENDING | 1 | Experiments still running; verdict not yet computed. |
| LLM_EVALUATION_RELEASE_GATE_VERDICT_PASS | 2 | All checks passed. |
| LLM_EVALUATION_RELEASE_GATE_VERDICT_FAIL | 3 | At least one check failed. |
| LLM_EVALUATION_RELEASE_GATE_VERDICT_STALE | 4 | Verdict is older than the gate's staleness window. |
What a schedule executes when it fires.
| Name | Number | Description |
| LLM_EVALUATION_SCHEDULE_ACTION_UNSPECIFIED | 0 | Default / unset. |
| LLM_EVALUATION_SCHEDULE_ACTION_RUN_EXPERIMENT | 1 | Run the experiment template (recurring regression run). |
| LLM_EVALUATION_SCHEDULE_ACTION_RUN_RELEASE_GATE | 2 | Run the referenced release gate. |
Kind of conversation simulation.
| Name | Number | Description |
| LLM_EVALUATION_SIMULATION_KIND_UNSPECIFIED | 0 | Default / unset (treated as STANDARD). |
| LLM_EVALUATION_SIMULATION_KIND_STANDARD | 1 | Persona-driven user simulation for coverage / stress testing. |
| LLM_EVALUATION_SIMULATION_KIND_ADVERSARIAL | 2 | Adversarial (red-team) simulation probing safety weaknesses. |
Reads, follows, exports and erases the logs ONDEWO CAI captures: the log records of the CAI gRPC server
processes themselves (every worker of every replica), the output of the docker containers that remote
operations run (build cache, training, RAG crawl, LLM evaluation and simulation, RAGFlow upload / removal /
re-parse) and of the short-lived helper containers that prepare them (hardware check, GPU pre-allocation).
Long-running operations that run inside a CAI worker (agent export, import, restore, re-index, ranking
optimization) are covered too: the server records they emit carry the operation's name.
Entries are served from the CAI database, not from the docker daemon, so the logs of a container that was
already removed, and of a server process that already exited, stay readable until retention or
DeleteLogs removes them.
Secrets are redacted server-side when an entry is captured and again when it is read, so a
redaction rule added later also applies to entries captured before it.
Errors are reported as gRPC status codes: INVALID_ARGUMENT for a malformed name, filter,
cursor, resume_token, page_token or field_mask (each naming the field);
NOT_FOUND for an unknown log stream or operation, and for one the caller may not read;
RESOURCE_EXHAUSTED when the server process already serves its maximum of concurrent streams or
exports; UNAVAILABLE when the logs API is disabled (ONDEWO_NLU_CAI_LOG_API_ENABLED)
or the database cannot be reached; UNAUTHENTICATED without a valid credential;
PERMISSION_DENIED when the caller may read no logs at all.
Authorization: entries that belong to no project (the server's own records outside any project RPC
or operation) require the server permission ServerPermission.Logs.ReadServerLogs, granted to
SERVER_ADMIN by default; a caller holding it reads every entry. Without it a caller reads only
the entries tagged with a project in which it holds ProjectPermission.Logs.ReadProjectLogs,
granted to PROJECT_DEVELOPER and above by default; entries of other projects are filtered out
and are never reported as existing. DeleteLogs requires
ServerPermission.Logs.DeleteLogs, granted to SERVER_ADMIN only. A long-running
StreamLogs or ExportLogs re-checks the caller periodically and ends when the access
was revoked or the credential expired.
rpc StreamLogs (StreamLogsRequest) returns (stream StreamLogsResponse)
Streams captured log entries as they are written, in the manner of docker logs --follow.
The stream replays tail_lines historical entries and then follows. It stays open until the
capture of every matching log stream has terminated (only possible when the filter selects container
streams alone: the server's own log streams never terminate while the server runs), until the client
disconnects, or until the server-side maximum stream duration is reached.
Limits: at most ONDEWO_NLU_CAI_LOG_STREAM_MAX_DURATION_S (default 3600) seconds per stream,
after which the server sends a final message with end_reason_code =
CAI_LOG_STREAM_END_REASON_MAX_DURATION and a resume_token to reconnect with; at most
ONDEWO_NLU_CAI_LOG_MAX_CONCURRENT_STREAMS (default 8) concurrent streams per server process,
beyond which a new stream is RESOURCE_EXHAUSTED. The server sends NO keep-alive message: a
quiet filter sends nothing, so a client must not treat silence as a dead stream (use HTTP/2 keep-alive
pings to detect a dead connection).
Errors: INVALID_ARGUMENT for a filter carrying start_time or
end_time, an after_seq with a filter that does not resolve to exactly one log
stream, a malformed resume_token, an invalid regex or an unknown
field_mask path; NOT_FOUND for a named log stream or operation the caller may
not read; RESOURCE_EXHAUSTED as above, and when one read of the stored entries exceeds
ONDEWO_NLU_CAI_LOG_QUERY_TIMEOUT_S (narrow the filter); UNAVAILABLE when the
database cannot be reached (reconnect with the last resume_token). When the caller's
access is revoked or its credential expires during the stream, the server sends a final message
(CAI_LOG_STREAM_END_REASON_PERMISSION_REVOKED /
CAI_LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED, with a resume_token) and ends the
stream with PERMISSION_DENIED / UNAUTHENTICATED.
rpc ListLogs (ListLogsRequest) returns (ListLogsResponse)
Returns a bounded, filtered page of captured log entries. Supports a time window, severity filtering, a regular expression, a plain-text search and cursor paging in both directions for infinite scrolling.
No time window is required: without start_time / end_time the window is the
newest max_lines matching entries (or, with oldest_first, the oldest after the
cursor). With include_counts the response also carries the number of matching entries per
severity. The next_resume_token of a response can be handed to StreamLogs to
continue live exactly where the page ended, without a gap or a duplicate.
Errors: INVALID_ARGUMENT for an invalid or over-long regex, a
start_time after end_time, before_seq / after_seq
combined with resume_token or with a filter that does not resolve to exactly one log stream, a
negative before_seq / after_seq, a malformed resume_token or an
unknown field_mask path; NOT_FOUND for a named log stream or operation the caller
may not read; RESOURCE_EXHAUSTED when the query exceeds
ONDEWO_NLU_CAI_LOG_QUERY_TIMEOUT_S (narrow the filter: log streams, time window or severity);
UNAVAILABLE when the database cannot be reached.
A page is bounded by size as well as by max_lines: when its messages would exceed the
server's size budget it is cut (a forward page keeps its oldest entries, a backward page its newest)
and reported with truncated = true; the cursors continue exactly where it was cut.
rpc GetLogStream (GetLogStreamRequest) returns (CaiLogStream)
Returns one log stream, i.e. the capture of one server process or of one container.
Errors: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown log stream or one the caller may not
read.
rpc ListLogStreams (ListLogStreamsRequest) returns (ListLogStreamsResponse)
Lists the log streams CAI has captured. A server process yields a new log stream every time it starts,
and a container every time it is (re)started under a new container id. Ordered by
capture_started_at, newest first.
A caller without ServerPermission.Logs.ReadServerLogs sees only the log streams of the
projects in which it holds ProjectPermission.Logs.ReadProjectLogs; the server's own log
streams are not listed to it, although ListLogs and StreamLogs return their
entries that are tagged with such a project.
Errors: INVALID_ARGUMENT for a malformed page_token,
CAI_LOG_CAPTURE_STATE_UNSPECIFIED in capture_states or an unknown
field_mask path.
rpc ExportLogs (ExportLogsRequest) returns (stream ExportLogsResponse)
Exports the captured log entries matching a filter as a file: plain text, NDJSON or CSV, streamed in
chunks. Entries are exported oldest first with the same filter semantics and the same server-side secret
redaction as ListLogs; unlike ListLogs the content filters are applied to EVERY
entry of the window. Concatenating the chunks of all messages in order yields the file.
A bounded time window is REQUIRED: filter.start_time AND filter.end_time must
both be set, with start_time before end_time.
Limits: each chunk is at most 1 MiB; an export holds at most
ONDEWO_NLU_CAI_LOG_EXPORT_MAX_ENTRIES (default 1000000) entries and at most
ONDEWO_NLU_CAI_LOG_EXPORT_MAX_BYTES (default 1 GiB) of output. When a limit is reached the
export ends early with truncated = true on the last message; so does an export one of whose
reads exceeds ONDEWO_NLU_CAI_LOG_QUERY_TIMEOUT_S. At most
ONDEWO_NLU_CAI_LOG_MAX_CONCURRENT_EXPORTS (default 1) exports run per server process, beyond
which a new one is RESOURCE_EXHAUSTED.
Errors: INVALID_ARGUMENT for a missing, empty or inverted time window, an invalid
regex or an unknown format value; NOT_FOUND for a named log stream
or operation the caller may not read; RESOURCE_EXHAUSTED as above. A revoked access or an
expired credential ends the export with PERMISSION_DENIED / UNAUTHENTICATED and
no last message.
rpc DeleteLogs (DeleteLogsRequest) returns (DeleteLogsResponse)
Permanently deletes captured log entries matching a filter. Only the identity filters and the time
window apply; content filters are rejected. A time window alone is a valid filter. A log stream whose last
entry was deleted is removed too, unless it is still CAI_LOG_CAPTURE_STATE_CAPTURING. A
capture that is still running keeps writing, so entries emitted after the deletion are stored again.
Idempotent: repeating a deletion succeeds and reports 0 deleted entries. With
validate_only nothing is deleted and the counts are what would be deleted.
Errors: INVALID_ARGUMENT for an empty filter, a content filter (text,
regex, log_levels, min_log_level,
include_unleveled_lines, emitter_prefixes, thread_names,
trace_ids; presence alone counts) or a start_time after end_time;
PERMISSION_DENIED without ServerPermission.Logs.DeleteLogs;
RESOURCE_EXHAUSTED when one deletion step exceeds ONDEWO_NLU_CAI_LOG_QUERY_TIMEOUT_S
(what was deleted until then stays deleted; repeat the request); UNAVAILABLE when the database
cannot be reached.
A single captured log record. One record may span several physical lines: a Python traceback, a protobuf
str() dump and a multi-line banner are all one record and are stored and returned as one entry.
| Field | Type | Label | Description |
| seq | int64 | Ordering cursor. Assigned by the database, monotonically increasing WITHIN ONE LOG STREAM. It is NOT
contiguous: values are drawn from a sequence shared by every stream, are consumed by rolled-back writes,
and are removed by retention. Never compute the next cursor as |
|
| timestamp | google.protobuf.Timestamp | When the record was produced, in UTC: the instant the server process logged it, or the instant the docker daemon observed the first physical line of a container record. |
|
| timestamp_is_exact | bool | False when |
|
| level | LogSeverity | The severity of the record. |
|
| message | string | The log text, with ANSI escape sequences removed, continuation lines re-joined, and secrets redacted server-side. |
|
| log_source | CaiLogSource | What produced the log stream this entry belongs to. |
|
| channel | CaiLogStreamChannel | Which output channel the record arrived on. |
|
| emitter | string |
|
|
| thread_name | string | Name of the thread that emitted the record. Empty when not available. |
|
| process_name | string | Name of the process that emitted the record, e.g. |
|
| log_stream | string | Resource name of the log stream this entry belongs to. The format is for a stream that belongs to no project (a
server process) and
for one that does (an operation's container). |
|
| operation_name | string | Name of the long-running operation the record belongs to. Empty for a server record emitted outside any operation. The format is
for a project operation. |
|
| project_parent | string | The project the record belongs to. Empty for a server record emitted outside any project RPC or operation. The format is |
|
| container_id | string | Docker container id of the container the record came from. Empty for a server record. |
|
| container_name | string | Docker container name of the container the record came from. Empty for a server record. |
|
| replica_id | string | Identity of the CAI server process that captured the record ( |
|
| trace_id | string | OpenTelemetry trace id (32 lowercase hex characters) active when a server record was emitted. Empty when no trace was active and for container records. |
|
| physical_line_count | int32 | How many physical lines were folded into |
|
| operation_type | OperationMetadata.OperationType | Type of the operation named by |
|
| phase | string | Lifecycle phase of the container the record came from, e.g. |
Narrows a log query. Every field is optional; an empty repeated field means "do not filter on
this". Fields are combined with AND; the values within one repeated field are combined with OR.
Filters fall into two groups. IDENTITY filters (fields 1 to 19) select which log streams, operations and
projects are of interest. CONTENT filters (fields 20 to 30) select which entries of those to return. The time
window (fields 31, 32) is neither.
| Field | Type | Label | Description |
| log_stream_names | string | repeated | Log stream resource names, in either form of CaiLogEntry.log_stream. |
| operation_names | string | repeated | Operation names, e.g. |
| include_sub_operations | bool | Also match the sub-operations of every operation in |
|
| project_parents | string | repeated | Project parents of the form |
| container_ids | string | repeated | Docker container ids. |
| container_names | string | repeated | Docker container names. |
| replica_ids | string | repeated | Identities of the CAI server processes that captured the entries (see CaiLogEntry.replica_id). |
| operation_types | OperationMetadata.OperationType | repeated | Operation types. |
| phases | string | repeated | Container lifecycle phases, e.g. |
| log_sources | CaiLogSource | repeated | Restrict to entries of log streams produced by these sources. |
| channels | CaiLogStreamChannel | repeated | Restrict to entries that arrived on these channels. |
| min_log_level | LogSeverity | Only return entries at or above this severity. |
|
| log_levels | LogSeverity | repeated | Exact severities to include. When non-empty this OVERRIDES |
| include_unleveled_lines | bool | optional | Keep entries whose severity could not be determined even when a severity bound is set. Defaults to
|
| text | string | optional | Case-insensitive substring match against the message, as the caller receives it (after the server's
secret redaction). |
| regex | string | optional | Regular expression (Python |
| emitter_prefixes | string | repeated | Prefix match against |
| thread_names | string | repeated | Restrict to entries emitted by these threads. |
| process_names | string | repeated | Restrict to entries emitted by these processes, e.g. |
| trace_ids | string | repeated | Restrict to entries carrying one of these OpenTelemetry trace ids (32 lowercase hex characters). |
| start_time | google.protobuf.Timestamp | optional | Only return entries at or after this instant. A zero timestamp counts as unset. |
| end_time | google.protobuf.Timestamp | optional | Only return entries at or before this instant. A zero timestamp counts as unset. A |
One capture of one server process or of one container. A server process that restarts, and a container
recreated under a new id, yield a NEW log stream.
| Field | Type | Label | Description |
| name | string | Resource name of the log stream, in the form of CaiLogEntry.log_stream. |
|
| log_source | CaiLogSource | What produced the log stream. |
|
| channel | CaiLogStreamChannel | The channel this stream captures. |
|
| project_parent | string | The project the stream belongs to ( |
|
| operation_name | string | The operation the container serves. Empty for a server process. |
|
| container_id | string | Docker container id. Empty for a server process. |
|
| container_name | string | Docker container name. Empty for a server process. |
|
| host | string | The host the container runs on, or the host name of the server process. |
|
| replica_id | string | Identity of the CAI server process that captures (or captured) this stream. |
|
| process_name | string | Name of the captured server process, e.g. |
|
| phase | string | Lifecycle phase of the container. Empty for a server process. |
|
| capture_state | CaiLogCaptureState | State of CAI's capture of this stream. |
|
| capture_error | string | Why capture failed, when |
|
| capture_started_at | google.protobuf.Timestamp | When CAI started capturing this stream. |
|
| capture_finished_at | google.protobuf.Timestamp | When CAI stopped capturing this stream. Unset while capturing. |
|
| partial_capture | bool | True when entries the source emitted were not captured and are not recoverable, e.g. a container whose owning CAI process died and whose output was recovered from a bounded snapshot. |
|
| min_available_seq | int64 | The smallest |
|
| max_available_seq | int64 | The largest |
|
| line_count | int64 | How many entries are currently stored for this stream. |
|
| dropped_line_count | int64 | How many records were deliberately not stored, summed over every reason: the ingest severity floor, the capture queue being full, storage back-pressure, a failed write and retention. |
|
| operation_type | OperationMetadata.OperationType | Type of the operation the container serves; |
The request message for Logs.DeleteLogs.
| Field | Type | Label | Description |
| filter | CaiLogFilter | The entries to delete. Only the identity fields and the time window apply; content filters are rejected. At least one field must be set: an empty filter is rejected rather than treated as "delete everything". |
|
| validate_only | bool | Optional. Validate only: run every check of a real deletion and report how many entries and log streams
WOULD be deleted now, but delete nothing. Default |
The response message for Logs.DeleteLogs.
| Field | Type | Label | Description |
| deleted_log_entry_count | int64 | How many log entries were deleted (with |
|
| deleted_log_stream_count | int64 | How many log streams were deleted because no entries remained (with |
The request message for Logs.ExportLogs.
| Field | Type | Label | Description |
| filter | CaiLogFilter | The entries to export. Every field of CaiLogFilter
applies, with the semantics of |
|
| format | CaiLogExportFormat | The file format. Unset means |
|
| include_metadata | bool | Include every field of each entry rather than only the timestamp, the severity and the message (see
CaiLogExportFormat). Default |
One message of an ExportLogs stream.
| Field | Type | Label | Description |
| chunk | bytes | The next bytes of the exported file, at most 1 MiB. Chunk boundaries carry no meaning: an entry, a line or a multi-byte UTF-8 character may span two chunks. The last message may carry an empty chunk. |
|
| entry_count | int64 | The number of entries exported so far, including those of this chunk. |
|
| last | bool | True on the last message of a complete export. A stream that ends without a message carrying
|
|
| truncated | bool | True on the last message when the export stopped early because it reached
|
The request message for Logs.GetLogStream.
| Field | Type | Label | Description |
| name | string | The name of the log stream, in either form of CaiLogEntry.log_stream. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Logs.ListLogStreams.
| Field | Type | Label | Description |
| filter | CaiLogFilter | optional | Optional. A filter to narrow the response down to the log streams of interest. Only the identity fields
and |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| capture_states | CaiLogCaptureState | repeated | Optional. Only log streams in one of these capture states. Empty matches every state.
|
The response message for Logs.ListLogStreams.
| Field | Type | Label | Description |
| log_streams | CaiLogStream | repeated | The log streams of this page, newest |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g.
|
The request message for Logs.ListLogs.
| Field | Type | Label | Description |
| filter | CaiLogFilter | optional | Optional. A filter to narrow the response down to the entries of interest. |
| max_lines | int32 | optional | Return at most this many entries. |
| before_seq | int64 | optional | Optional cursor for infinite-scroll UP: return the newest entries with |
| after_seq | int64 | optional | Optional cursor for infinite-scroll DOWN: return entries with |
| resume_token | string | optional | Optional. An opaque, server-encoded per-log-stream cursor from a previous response. Use this instead of
|
| oldest_first | bool | optional | Walk forward from the cursor oldest-first instead of returning the most recent window. A client paging through a whole backlog must set this: the default window silently skips everything between the cursor and the newest entries. |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| include_counts | bool | Optional. Also count the matching entries: fills |
The response message for Logs.ListLogs.
| Field | Type | Label | Description |
| log_entries | CaiLogEntry | repeated | The matching entries, oldest first. |
| truncated | bool | True when matching entries were dropped because |
|
| min_available_seq | int64 | The smallest |
|
| max_available_seq | int64 | The largest |
|
| has_more_older | bool | True when entries older than this window exist. |
|
| has_more_newer | bool | True when entries newer than this window exist. |
|
| next_resume_token | string | Cursor to fetch the next window (pass it back with |
|
| scope_limited_filters | CaiLogFilterField | repeated | Filters that could only be applied WITHIN the returned window rather than across the whole history. A client displaying a match count must qualify it when this is non-empty. |
| total_matching_count | int64 | optional | The number of entries matching the filter over the whole stored history, regardless of the window and the
cursors. Set only when |
| count_by_level | ListLogsResponse.CountByLevelEntry | repeated | The matching entries counted per severity, keyed by the |
| Field | Type | Label | Description |
| key | string |
|
|
| value | int64 |
|
The request message for Logs.StreamLogs.
| Field | Type | Label | Description |
| filter | CaiLogFilter | optional | Optional. A filter to narrow the stream down to the entries of interest. The time window of the filter is
meaningless for a live stream and is rejected with |
| tail_lines | int32 | optional | Replay at most this many of the most recent stored entries before switching to live follow.
|
| resume_token | string | optional | Optional. Resume exactly where a previous stream or page stopped. An opaque, server-encoded
per-log-stream cursor that must be echoed back verbatim. Prefer it over |
| after_seq | int64 | optional | Optional. Resume after this |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every streamed
|
The response message for Logs.StreamLogs. The stream
carries an envelope rather than a bare entry so that a viewer can tell a healthy quiet source from a capture
that has died.
| Field | Type | Label | Description |
| log_entries | CaiLogEntry | repeated | The entries in this batch, oldest first. May be empty, e.g. on the final message. |
| capture_state | CaiLogCaptureState | The capture state of the log streams being followed, aggregated: |
|
| capture_error | string | Why capture failed, when |
|
| dropped_line_count | int64 | Total records deliberately not stored across the followed streams. See CaiLogStream.dropped_line_count. |
|
| resume_token | string | Cursor to resume this stream. Echo it into |
|
| end_reason | string | Set on the final message when the stream was ended by the server. Human-readable text, not a contract:
match on |
|
| end_reason_code | CaiLogStreamEndReason | Set on the final message when the stream was ended by the server, together with |
The state of CAI's capture of one log stream. This describes the CAPTURE, not the process or the
container.
| Name | Number | Description |
| CAI_LOG_CAPTURE_STATE_UNSPECIFIED | 0 | Unspecified. |
| CAI_LOG_CAPTURE_STATE_CAPTURING | 1 | Capture is running. |
| CAI_LOG_CAPTURE_STATE_STOPPED | 2 | Capture ended cleanly; the stream is complete up to the end of the process or the removal of the container. |
| CAI_LOG_CAPTURE_STATE_FAILED | 3 | Capture failed or its owner stopped renewing it. The stored history may be incomplete and
|
| CAI_LOG_CAPTURE_STATE_DETACHED | 4 | Another CAI server process holds the capture of this stream. |
File format of an ExportLogs export. Every format is UTF-8
with \n line endings and one entry per record; a multi-line entry stays one record.
| Name | Number | Description |
| CAI_LOG_EXPORT_FORMAT_UNSPECIFIED | 0 | Unspecified: identical to |
| CAI_LOG_EXPORT_FORMAT_TEXT | 1 | Plain text in the manner of |
| CAI_LOG_EXPORT_FORMAT_NDJSON | 2 | Newline-delimited JSON: one JSON object per line, the proto3 JSON form of a
CaiLogEntry (lowerCamelCase keys). Without
|
| CAI_LOG_EXPORT_FORMAT_CSV | 3 | Comma-separated values (RFC 4180, every field quoted, embedded quotes doubled, embedded line breaks kept
inside the quotes), with a header row. Columns without |
Identifies a field of CaiLogFilter. Used by
ListLogsResponse.scope_limited_filters to declare which
filters could only be applied inside the returned window.
| Name | Number | Description |
| CAI_LOG_FILTER_FIELD_UNSPECIFIED | 0 | Unspecified. |
| CAI_LOG_FILTER_FIELD_TEXT | 1 |
|
| CAI_LOG_FILTER_FIELD_REGEX | 2 |
|
| CAI_LOG_FILTER_FIELD_LOG_SOURCES | 3 |
|
| CAI_LOG_FILTER_FIELD_EMITTER_PREFIXES | 4 |
|
| CAI_LOG_FILTER_FIELD_THREAD_NAMES | 5 |
|
| CAI_LOG_FILTER_FIELD_PROCESS_NAMES | 6 |
|
What produced a log stream.
| Name | Number | Description |
| CAI_LOG_SOURCE_UNSPECIFIED | 0 | Unspecified or unrecognised source. |
| CAI_LOG_SOURCE_SERVER | 1 | A CAI gRPC server process (one worker of one replica) logging through its own logger. |
| CAI_LOG_SOURCE_REMOTE_OPERATION_CONTAINER | 2 | The docker container a remote operation runs (build cache, training, RAG crawl, LLM evaluation or simulation, RAGFlow upload / removal / re-parse). |
| CAI_LOG_SOURCE_HELPER_CONTAINER | 3 | A short-lived helper container a remote operation starts before its main container: the hardware check
(phase |
The output channel a log stream captures.
| Name | Number | Description |
| CAI_LOG_STREAM_CHANNEL_UNSPECIFIED | 0 | The channel is not known. This is the honest value for a container started with a TTY (every remote operation container is), where the pseudo-terminal merges both channels into one stream. |
| CAI_LOG_STREAM_CHANNEL_STDOUT | 1 | Standard output. |
| CAI_LOG_STREAM_CHANNEL_STDERR | 2 | Standard error. The CAI server process logs here. |
Why the SERVER ended a StreamLogs stream. Carried by the final
StreamLogsResponse beside the human-readable
end_reason. A stream ended by the client has no final message.
| Name | Number | Description |
| CAI_LOG_STREAM_END_REASON_UNSPECIFIED | 0 | Not ended by the server: every message except the final one. |
| CAI_LOG_STREAM_END_REASON_ALL_CAPTURES_TERMINATED | 1 | The capture of every followed log stream has terminated ( |
| CAI_LOG_STREAM_END_REASON_MAX_DURATION | 2 | The server-side maximum stream duration ( |
| CAI_LOG_STREAM_END_REASON_SERVER_SHUTDOWN | 3 | The CAI server process is shutting down. Reconnect, to another replica if there is one, with the
|
| CAI_LOG_STREAM_END_REASON_PERMISSION_REVOKED | 4 | The caller lost the access the stream requires. The stream then ends with |
| CAI_LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED | 5 | The caller's credential expired. The stream then ends with |
Represents the metadata of the long-running operation that can be a parent operation for sub-operations or
can be a sub-operation itself
| Field | Type | Label | Description |
| status | OperationMetadata.Status | long-running operation status code |
|
| parent_operation_name | string | optional parent operation name |
|
| sub_operation_names | string | repeated | list of the sub-operations' names of the operation |
| create_time | google.protobuf.Timestamp | the time the operation was submitted. |
|
| start_time | google.protobuf.Timestamp | the time operation processing started. |
|
| end_time | google.protobuf.Timestamp | the time operation processing completed. |
|
| is_cancellation_requested | bool | indicates whether a request to cancel this operation has been made. |
|
| cancel_command | string | command executed at cancel operation |
|
| user_id_created | string | id of the user who created the operation |
|
| user_id_cancelled | string | id of the user who cancelled the operation |
|
| project_parent | string | project parent name, e.g. "projects/pepper/agent" |
|
| operation_type | OperationMetadata.OperationType | operation type |
|
| host_name | string | name of the host where the operation was executed |
|
| num_reruns | int32 | number of times the operation was re-run |
|
| max_num_reruns | int32 | maximum number of re-runs in case the operation fails |
|
| description | string | description, normally needed for sub operations when type is OPERATION_TYPE_UNSPECIFIED |
|
| log | string | repeated | The log output of an operation |
| log_limit | int32 | The log output of an operation limited to the last x log entries |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Type of operation.
It can be creating, importing, exporting, deleting, restoring, building cache, training or exporting benchmark an agent
| Name | Number | Description |
| OPERATION_TYPE_UNSPECIFIED | 0 | unspecified operation type |
| CREATE_AGENT | 1 | create a new agent with specified configuration |
| IMPORT_AGENT | 2 | import agent from a zip file |
| EXPORT_AGENT | 3 | export agent to a zip file |
| DELETE_AGENT | 4 | delete agent |
| RESTORE_AGENT | 5 | restore agent |
| BUILD_AGENT_CACHE | 6 | build agent cache |
| TRAIN_AGENT | 7 | train agent |
| EXPORT_BENCHMARK_AGENT | 8 | export benchmark agent to a zip file |
| INDEX_AGENT | 9 | force loading agent data for full text search |
| RUN_RAG_CRAWLER | 10 | run a rag crawler |
| ADD_RAG_CRAWLER_RESULT_TO_DATASET | 11 | add a rag crawler result to a dataset |
| REMOVE_RAG_CRAWLER_RESULT_FROM_DATASET | 12 | remove a rag crawler result from a dataset |
| CHANGE_DATASET_EMBEDDING_MODEL | 13 | change the embedding model of dataset that already contains parsed documents |
| REPARSE_DATASET | 14 | re-parse of all documents in a dataset |
Structure to set status of operation.
An operation may not be started if NOT_STARTED is set, in progress if IN_PROGRESS, finished if DONE, interrupted if CANCELED or failed if FAILED.
| Name | Number | Description |
| STATUS_UNSPECIFIED | 0 | unspecified status code |
| NOT_STARTED | 1 | operation haven't started yet |
| IN_PROGRESS | 2 | operation currently in progress |
| DONE | 3 | operation has completed without any error |
| CANCELLED | 4 | operation has completed with cancellation by user |
| FAILED | 5 | operation has completed with errors |
Manages long-running operations with an API service.
When an API method normally takes long time to complete, it can be designed to return Operation to the client, and the client can use this interface to receive the real response asynchronously by polling the operation resource, or pass the operation resource to another API (such as Google Cloud Pub/Sub API) to receive the response. Any API service that returns long-running operations should implement the Operations interface so developers can have a consistent client experience.
rpc ListOperations (ListOperationsRequest) returns (ListOperationsResponse)Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns
UNIMPLEMENTED.
name binding below allows API services to override the binding
to use different resource name schemes, such as users/*/operations.
rpc GetOperation (GetOperationRequest) returns (Operation)Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
rpc DeleteOperation (DeleteOperationRequest) returns (.google.protobuf.Empty)Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
rpc CancelOperation (CancelOperationRequest) returns (.google.protobuf.Empty)Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED. Clients can use
Operations.GetOperation or
other methods to verify whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an Operation.error value with a google.rpc.Status.code
of 1, corresponding to Code.CANCELLED.
rpc StreamRemoteOperationContainerLogs (StreamRemoteOperationContainerLogsRequest) returns (stream RemoteOperationContainerLogLine)Streams the live container logs of a remote-operation container (LLM evaluation, simulation, crawl, training) as they are produced, in the manner of
docker logs --follow.
The stream stays open until the container exits or the client disconnects. Each message is a
single parsed log line. Secrets in the log text are redacted server-side before streaming.
rpc GetRemoteOperationContainerLogs (GetRemoteOperationContainerLogsRequest) returns (GetRemoteOperationContainerLogsResponse)Returns a bounded, filtered snapshot of a remote-operation container's logs. Supports a time window (
start_time / end_time), a minimum loguru log level,
a regular-expression match on the message, and a cap on the number of returned lines. Secrets
in the log text are redacted server-side before the response is returned.
rpc GetRemoteOperationContainerStatus (GetRemoteOperationContainerStatusRequest) returns (RemoteOperationContainerStatus)Returns the health and lifecycle status of a remote-operation container: whether it still exists, whether it is running/exited, its exit code, OOM-kill flag and Docker health status.
rpc ListRemoteOperationContainers (ListRemoteOperationContainersRequest) returns (ListRemoteOperationContainersResponse)Lists every docker container that a remote operation started (a single operation may run several containers sequentially, e.g. hardware-check, GPU pre-allocation, build-cache and one training container per algorithm). When
include_sub_operations is set, the containers of the
operation's sub-operations are included as well. Each entry carries the container id + name,
its host, lifecycle state and whether logs are still available (live or persisted).
| Method Name | Method | Pattern | Body |
| ListOperations | GET | /v1/{name=operations} | |
| GetOperation | GET | /v1/{name=operations/**} | |
| DeleteOperation | DELETE | /v1/{name=operations/**} | |
| CancelOperation | POST | /v1/{name=operations/**}:cancel | * |
| GetRemoteOperationContainerLogs | GET | /v1/{name=operations/**}:containerLogs | |
| GetRemoteOperationContainerStatus | GET | /v1/{name=operations/**}:containerStatus | |
| ListRemoteOperationContainers | GET | /v1/{name=operations/**}:containers |
The request message for Operations.CancelOperation.
| Field | Type | Label | Description |
| name | string | The name of the operation resource to be cancelled. |
The request message for Operations.DeleteOperation.
| Field | Type | Label | Description |
| name | string | The name of the operation resource to be deleted. |
The request message for Operations.GetOperation.
| Field | Type | Label | Description |
| name | string | The name of the operation resource. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
The request message for Operations.GetRemoteOperationContainerLogs.
| Field | Type | Label | Description |
| name | string | The name of the operation resource whose container logs should be returned. |
|
| min_log_level | LogSeverity | Only return lines at or above this loguru severity. |
|
| start_time | google.protobuf.Timestamp | Only return lines whose timestamp is at or after this instant. Unset returns from the start of the available logs. |
|
| end_time | google.protobuf.Timestamp | Only return lines whose timestamp is at or before this instant. Unset returns up to the latest available log line. |
|
| max_lines | int32 | Return at most this many lines, keeping the most recent matches. |
|
| regex | string | Only return lines whose message matches this regular expression (Python |
|
| container_id | string | Optional. Scope the query to a single container of the operation, identified by its docker container id. Empty (the default) queries the operation's currently-registered container, preserving the legacy single-container behavior. When the container has finished and been removed, its persisted logs are served from the server-side log archive. |
|
| before_seq | int64 | Optional cursor for infinite-scroll-UP paging: return the newest lines with
seq < |
|
| after_seq | int64 | Optional cursor for infinite-scroll-DOWN paging: return lines with |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned
|
|
| resume_token | string | Optional. An opaque cursor from a previous response's |
The response message for Operations.GetRemoteOperationContainerLogs.
| Field | Type | Label | Description |
| log_lines | RemoteOperationContainerLogLine | repeated | The matching log lines, oldest first. Secrets are redacted server-side. |
| truncated | bool | True when older matching lines were dropped because |
|
| min_available_seq | int64 | The smallest |
|
| max_available_seq | int64 | The largest |
|
| has_more_older | bool | True when older lines than the returned window still exist (i.e. the window's first
|
|
| next_resume_token | string | Cursor to fetch the next window, or to start a |
|
| has_more_newer | bool | True when entries newer than this window exist. |
The request message for Operations.GetRemoteOperationContainerStatus.
| Field | Type | Label | Description |
| name | string | The name of the operation resource whose container status should be returned. |
|
| container_id | string | Optional. Scope the status to a single container of the operation, identified by its docker container id. Empty (the default) returns the status of the operation's currently-registered container, preserving the legacy single-container behavior. |
The request message for Operations.ListOperations.
| Field | Type | Label | Description |
| name | string | The name of the operation collection. |
|
| filter | string | The standard list filter. |
|
| page_size | int32 | The standard list page size. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| operation_filter | OperationFilter | Optional. A filter to narrow the response down to operations of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
The response message for Operations.ListOperations.
| Field | Type | Label | Description |
| operations | Operation | repeated | A list of operations that matches the specified filter in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
The request message for Operations.ListRemoteOperationContainers.
| Field | Type | Label | Description |
| name | string | The name of the operation resource whose containers should be listed. |
|
| include_sub_operations | bool | When true, also include the containers of the operation's sub-operations (OperationMetadata.sub_operation_names). |
The response message for Operations.ListRemoteOperationContainers.
| Field | Type | Label | Description |
| containers | RemoteOperationContainer | repeated | The containers started by the operation (and, when requested, its sub-operations), oldest first. |
This resource represents a long-running operation that is the result of a network API call.
| Field | Type | Label | Description |
| name | string | The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
|
|
| metadata | OperationMetadata | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
|
| done | bool | If the value is |
|
| error | google.rpc.Status | The error result of the operation in case of failure or cancellation. |
|
| response | google.protobuf.Any | The normal response of the operation in case of success. If the original
method returns no data on success, such as |
This message contains an operation filter
| Field | Type | Label | Description |
| project_parents | string | repeated | An operationFilter can be used in some requests to return only operations matching certain filter conditions. All fields below are optional. Multiple fields specified at the same time are chained via OR. Match operations with any of the following project parents. |
| statuses | OperationMetadata.Status | repeated | Match operation which had any of the following operation statuses. |
| types | OperationMetadata.OperationType | repeated | Match operation which had any of the following operation types. |
| start_time | google.protobuf.Timestamp | The time operation processing started. |
|
| end_time | google.protobuf.Timestamp | The time operation processing completed. |
|
| user_ids | string | repeated | Match operation which had any of the following user_ids. |
Describes one docker container started by a remote operation. A single operation may start several
containers sequentially (hardware-check, GPU pre-allocation, build-cache, and one training container
per algorithm), so containers are enumerated by
Operations.ListRemoteOperationContainers.
| Field | Type | Label | Description |
| container_id | string | The docker container id (64-hex). Empty until captured at launch. |
|
| container_name | string | The deterministic docker container name (the |
|
| host_name | string | The host the container runs (or ran) on. |
|
| lifecycle_state | RemoteOperationContainerLifecycleState | The last-known lifecycle state of the container. |
|
| operation_name | string | The operation resource that started this container. May be a sub-operation of the queried
operation when |
|
| image | string | The docker image reference the container was started from. |
|
| phase | string | A human-readable phase label for the container within the operation, e.g. |
|
| exit_code | int32 | The container exit code. Only meaningful once the container has exited. |
|
| oom_killed | bool | True when the container was killed by the out-of-memory killer. |
|
| started_at | google.protobuf.Timestamp | When the container started, if known. |
|
| finished_at | google.protobuf.Timestamp | When the container finished, if it has exited. |
|
| logs_available | bool | True when logs for this container can still be fetched — either the container is live, or its logs were persisted to the server-side archive after it finished. |
|
| environment_variables | RemoteOperationContainer.EnvironmentVariablesEntry | repeated | The container's environment variables (docker |
| command | string | repeated | The container's command/args (docker |
| memory_limit_bytes | int64 | The container's hard memory limit in bytes (docker |
|
| nano_cpus | int64 | The container's CPU limit in billionths of a CPU (docker |
|
| cpuset_cpus | string | The CPUs the container is pinned to (docker |
|
| cpu_quota | int64 | The CFS CPU quota (docker |
|
| cpu_period | int64 | The CFS CPU period (docker |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
A single parsed container log line, emitted by both the streaming and the query RPCs.
| Field | Type | Label | Description |
| timestamp | google.protobuf.Timestamp | The timestamp parsed from the loguru line prefix, if present. |
|
| level | LogSeverity | The loguru severity parsed from the line, or |
|
| message | string | The log message text, with ANSI colour codes stripped and secrets redacted. |
|
| container_id | string | The docker container id this line was produced by. Lets a client attribute or group lines when an operation ran several containers. Empty when the id was not captured. |
|
| container_name | string | The docker container name this line was produced by. Empty when unavailable. |
|
| seq | int64 | Ordering cursor of this line, assigned by the database. Monotonically increasing WITHIN ONE CONTAINER but
NOT contiguous: values come from a sequence shared by every log stream and are removed by retention. Never
compute the next cursor as |
|
| log_stream | string | Resource name of the log stream this line belongs to (see CaiLogEntry.log_stream). |
The response message for Operations.GetRemoteOperationContainerStatus.
| Field | Type | Label | Description |
| name | string | The name of the operation resource this status describes. |
|
| lifecycle_state | RemoteOperationContainerLifecycleState | The lifecycle state of the container. |
|
| host_name | string | The host the container was dispatched to (empty when the dispatch record is unavailable). |
|
| container_name | string | The container name (empty when the dispatch record is unavailable). |
|
| container_id | string | The docker container id (64-hex), empty when it was not captured or the record is unavailable. |
|
| exit_code | int32 | The container exit code. Only meaningful when |
|
| oom_killed | bool | True when the container was killed by the out-of-memory killer. |
|
| health_status | string | The Docker healthcheck status ( |
|
| started_at | google.protobuf.Timestamp | When the container started, if known. |
|
| finished_at | google.protobuf.Timestamp | When the container finished, if it has exited. |
|
| observed_at | google.protobuf.Timestamp | When this status was observed by the server. |
|
| environment_variables | RemoteOperationContainerStatus.EnvironmentVariablesEntry | repeated | The container's environment variables (docker |
| command | string | repeated | The container's command/args (docker |
| memory_limit_bytes | int64 | The container's hard memory limit in bytes (docker |
|
| nano_cpus | int64 | The container's CPU limit in billionths of a CPU (docker |
|
| cpuset_cpus | string | The CPUs the container is pinned to (docker |
|
| cpu_quota | int64 | The CFS CPU quota (docker |
|
| cpu_period | int64 | The CFS CPU period (docker |
|
| image | string | The docker image reference the container was started from (docker |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
The request message for Operations.StreamRemoteOperationContainerLogs.
| Field | Type | Label | Description |
| name | string | The name of the operation resource whose container logs should be streamed. |
|
| min_log_level | LogSeverity | Only stream lines at or above this loguru severity. |
|
| tail_lines | int32 | Replay at most this many of the most recent existing log lines before switching to live follow.
|
|
| container_id | string | Optional. Scope the stream to a single container of the operation, identified by its docker container id (as returned by RemoteOperationContainer). Empty (the default) streams the operation's currently-registered container, preserving the legacy single-container behavior. |
|
| regex | string | Optional. Only stream lines whose message matches this regular expression (Python |
|
| resume_token | string | Optional. Resume exactly where a previous stream or |
The lifecycle state of a remote-operation container, mirroring the Docker container lifecycle.
| Name | Number | Description |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_UNSPECIFIED | 0 | The lifecycle state could not be determined. |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_NOT_FOUND | 1 | No container with the recorded name exists on the recorded host (never started, already reaped, or the dispatch record was garbage-collected after completion). |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_CREATED | 2 | The container has been created but is not yet running. |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_RUNNING | 3 | The container is running. |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_PAUSED | 4 | The container is paused. |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_RESTARTING | 5 | The container is in the process of restarting. |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_EXITED | 6 | The container has exited (successfully or with an error — see |
| REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_DEAD | 7 | The container is dead (Docker could not stop/remove it cleanly). |
Project roles
rpc CreateProjectRole (CreateProjectRoleRequest) returns (ProjectRole)Creates a project role by creating the knowledge base master
rpc GetProjectRole (GetProjectRoleRequest) returns (ProjectRole)Creates a project role by getting the knowledge base master
rpc DeleteProjectRole (DeleteProjectRoleRequest) returns (.google.protobuf.Empty)Deletes project role
rpc UpdateProjectRole (UpdateProjectRoleRequest) returns (ProjectRole)Updates project role
rpc ListProjectRoles (ListProjectRolesRequest) returns (ListProjectRolesResponse)List project roles
| Method Name | Method | Pattern | Body |
| CreateProjectRole | POST | /v2/{parent=projects/*/agent}/project_roles | * |
| GetProjectRole | GET | /v2/{parent=projects/*/agent}/project_roles/{role_id=*} | |
| DeleteProjectRole | DELETE | /v2/{parent=projects/*/agent}/project_roles/{role_id=*} | |
| UpdateProjectRole | PATCH | /v2/{parent=projects/*/agent}/project_roles | * |
| ListProjectRoles | GET | /v2/{parent=projects/*/agent}/project_roles |
This message is a request to create project role
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| role | ProjectRole | If the role_id is not provided, an incremental value will be assigned The "name" and "role_type" are mandatory values The permissions all default to False if not provided specifically |
|
| project_role_view | ProjectRoleView | Optional. specify the view of the created project role, PROJECT_ROLE_VIEW_FULL by default |
This message is a request to delete project role
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| role_id | uint32 | role is identified by role id, if empty will throw an error in the backend |
This message is a request to get project role
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| role_id | uint32 | role is identified by role id |
|
| role_name | string | role can also be uniquely identified by its name |
|
| project_role_view | ProjectRoleView | Optional. specify the view of the project role, PROJECT_ROLE_VIEW_FULL by default |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to list project role
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| project_role_view | ProjectRoleView | Optional. specify the view of the project roles, PROJECT_ROLE_VIEW_FULL by default |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing project role
| Field | Type | Label | Description |
| project_roles | ProjectRole | repeated | The list of project roles. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Project Role messages
| Field | Type | Label | Description |
| role_id | uint32 | unique identifier of the role |
|
| name | string | unique name of the role |
|
| permissions | string | repeated | defines the permissions for the given role (the strings can be gotten from the ListProjectPermissions) |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message is a request to update project role
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| role | ProjectRole | role_id in the Role message should be given, if empty will throw an error in the backend other fields in the Role are optional. Only the fields to be updated should be provided |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
|
| project_role_view | ProjectRoleView | Optional. specify the view of the updated project role, PROJECT_ROLE_VIEW_FULL by default |
Structure of project role
| Name | Number | Description |
| PROJECT_UNSPECIFIED | 0 | These roles have permissions valid only on a specific project unspecified, default value depends on endpoint |
| PROJECT_USER | 1 | read-only access |
| PROJECT_EXECUTOR | 2 | permissions of PROJECT_USER + execution rights (detect intent, extract entities, train, etc) |
| PROJECT_DEVELOPER | 3 | permissions of PROJECT_EXECUTOR + CRUD rights |
| PROJECT_ADMIN | 4 | this role can do everything. The creator of a project is set automatically as PROJECT_ADMIN of it. |
| PROJECT_INACTIVE | 5 | This role can do nothing. Used to set a user as inactive inside a project |
Structure of project role view
| Name | Number | Description |
| PROJECT_ROLE_VIEW_UNSPECIFIED | 0 | The view depends on the endpoint:
|
| PROJECT_ROLE_VIEW_SHALLOW | 1 | only role ID and name fields are populated |
| PROJECT_ROLE_VIEW_FULL | 2 | all fields including permissions are populated |
Project Root Statistics
rpc GetIntentCount (GetIntentCountRequest) returns (StatResponse)Returns the intent count within a project
rpc GetEntityTypeCount (GetEntityTypeCountRequest) returns (StatResponse)Returns the entity types count within a project
rpc GetUserCount (GetProjectStatRequest) returns (StatResponse)Returns the users count within a project
rpc GetSessionCount (GetProjectStatRequest) returns (StatResponse)Returns the sessions count within a project
rpc GetTrainingPhraseCount (GetProjectElementStatRequest) returns (StatResponse)Returns the training phrases count within a project
rpc GetResponseCount (GetProjectElementStatRequest) returns (StatResponse)Returns the responses count within a project
rpc GetEntityValueCount (GetProjectElementStatRequest) returns (StatResponse)Returns the entity value count within a project
rpc GetEntitySynonymCount (GetProjectElementStatRequest) returns (StatResponse)Returns the entity synonyms count within a project
| Method Name | Method | Pattern | Body |
| GetIntentCount | GET | /{parent=projects/*/agent}/intents:count | |
| GetEntityTypeCount | GET | /{parent=projects/*/agent}/entityTypes:count | |
| GetUserCount | GET | /{parent=projects/*/agent}/users:count | |
| GetSessionCount | GET | /{parent=projects/*/agent}/sessions:count | |
| GetTrainingPhraseCount | GET | /{name=projects/*/agent/intents/*}/trainingPhrases:count | |
| GetResponseCount | GET | /{name=projects/*/agent/intents/*}/responses:count | |
| GetEntityValueCount | GET | /{name=projects/*/agent/entityTypes/*}/entities:count | |
| GetEntitySynonymCount | GET | /{name=projects/*/agent/entityTypes/*/entityValues/*}/entitySynonyms:count |
Request to get entity type count
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| filter_by_category | EntityTypeCategory | Optional. Applies a filter to the list to be counted. Default, no filter. |
Request to get the intent count
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| filter_by_category | IntentCategory | Optional. Applies a filter to the list to be counted. Default, no filter. |
Request to get project element statistics
| Field | Type | Label | Description |
| name | string | Required. The name/path of the concept to get the statistic from. Example:
|
|
| language_code | string | Language code |
Request to get project statistics
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
File-level comment for ondewo/nlu/rag.proto.
This file contains a single service Rags. The Rags service provides RAG (Retrieval-Augmented Generation) and web crawler functionality.
Fields marked as optional carry explicit presence, so that an explicitly set default value (0, false, "") can be distinguished from a field that was never set. Without the optional keyword it would for instance not be possible to distinguish between an integer 0 and null.
The marker is applied where that distinction is actually consumed — the partial-update inputs (an unset field leaves the stored value untouched, an explicit default clears it) and the retrieval overrides that are forwarded to RAGFlow (an explicit 0.0 or false must override the server-side default rather than fall back to it). Fields that carry no such distinction are deliberately left without the keyword, and for message-typed fields it is omitted because proto3 gives them explicit presence anyway.
Provides RAG and web crawler endpoints.
Most of the RAG related endpoints largely mirror RAGFlow's HTTP API endpoints. For more information on RAGFlow refer to the official documentation
rpc RagCreateDataset (RagCreateDatasetRequest) returns (RagDataset)Create a new dataset (knowledge base).
rpc RagUpdateDataset (RagUpdateDatasetRequest) returns (RagDataset)Update an existing dataset's configuration.
rpc RagDeleteDatasets (RagDeleteRequest) returns (RagPartialSuccess)Delete one or more datasets (batch operation).
rpc RagListDatasets (RagListDatasetsRequest) returns (RagDatasetList)List datasets with pagination and filtering.
rpc RagUploadDocument (stream RagUploadDocumentRequest) returns (RagDocument)Uploads a document to a dataset and starts parsing it.
run field of the returned document is not RAG_DOCUMENT_STATUS_RUNNING this indicates a failure to start parsing the document.
rpc RagUpdateDocument (RagUpdateDocumentRequest) returns (RagDocument)Update document metadata and configuration.
run field of the returned document is not RAG_DOCUMENT_STATUS_RUNNING this indicates a failure to start parsing the document.
rpc RagDownloadDocument (RagDownloadDocumentRequest) returns (stream RagFileChunk)Download the original document file.
rpc RagListDocuments (RagListDocumentsRequest) returns (RagDocumentList)List documents in a dataset with pagination and filtering.
rpc RagDeleteDocuments (RagDeleteDocumentsRequest) returns (RagPartialSuccess)Delete one or more documents from a dataset (batch operation).
rpc RagRetrieval (RagRetrievalRequest) returns (RagRetrievalResponse)Retrieve chunks using vector similarity search.
rpc RagParseDocuments (RagDocumentIdsRequest) returns (RagPartialSuccess)Start parsing documents into chunks.
rpc RagStopParsing (RagDocumentIdsRequest) returns (RagPartialSuccess)Stop parsing documents.
rpc RagCreateCrawler (RagCreateCrawlerRequest) returns (RagCrawler)Create a rag crawler for a dataset of an agent.
rpc RagGetCrawler (RagGetCrawlerRequest) returns (RagCrawler)Get a rag crawler by resource name.
rpc RagListCrawlers (RagListCrawlersRequest) returns (RagListCrawlersResponse)List rag crawlers of a dataset for the specified agent.
rpc RagUpdateCrawler (RagUpdateCrawlerRequest) returns (RagCrawler)Update a rag crawler (partial update of configuration fields).
rpc RagDeleteCrawler (RagDeleteCrawlerRequest) returns (RagDeleteCrawlerResponse)Delete a rag crawler of a dataset for the specified agent.
rpc RagStartCrawler (RagStartCrawlerRequest) returns (Operation)Run a crawler.
rpc RagStopCrawler (RagStopCrawlerRequest) returns (RagStopCrawlerResponse)Stop a pending or running crawler run.
rpc RagGetCrawlerRun (RagGetCrawlerRunRequest) returns (Operation)Get a crawler run by resource name.
rpc RagListCrawlerRuns (RagListCrawlerRunsRequest) returns (RagListCrawlerRunsResponse)List crawler runs for a crawler.
rpc RagDeleteCrawlerRuns (RagDeleteCrawlerRunsRequest) returns (RagDeleteCrawlerRunsResponse)Delete crawler runs by explicit run names and/or crawler names.
rpc RagGetCrawlerResult (RagGetCrawlerResultRequest) returns (RagCrawlerResult)Get a single crawler result by crawler run resource name and URL.
rpc RagGetCrawlerResults (RagGetCrawlerResultsRequest) returns (RagGetCrawlerResultsResponse)Get crawler results by crawler run resource name.
rpc RagAddCrawlerResultsToDatasets (RagAddCrawlerResultsToDatasetsRequest) returns (Operation)Add rag crawler output to one or more datasets.
rpc RagRemoveCrawlerResultsFromDatasets (RagRemoveCrawlerResultsFromDatasetsRequest) returns (Operation)Remove previously imported crawler output from one or more datasets.
rpc RagGetCrawlerAttachedDatasets (RagGetCrawlerAttachedDatasetsRequest) returns (RagGetCrawlerAttachedDatasetsResponse)Get datasets currently attached to a crawler.
rpc RagDeleteCrawlers (RagDeleteCrawlersRequest) returns (RagDeleteCrawlersResponse)Delete multiple crawlers.
rpc RagGetCrawlerRunLogs (RagGetCrawlerRunLogsRequest) returns (RagGetCrawlerRunLogsResponse)Get crawler run logs.
Request message for adding crawler output to one or more datasets.
Either crawler_names or crawler_result_names (or both) must be provided.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_names | string | repeated | Optional. Resource names of crawlers whose results should be imported. |
| crawler_result_names | string | repeated | Optional. Resource names of crawler results to upload in addition to the results of the crawlers specified in |
| dataset_ids | string | repeated | Required. IDs of the datasets to add the crawl results to. |
Chunk of text extracted from a document.
Chunks are the basic retrieval units used for vector similarity search in RAG.
| Field | Type | Label | Description |
| id | string | Chunk ID (computed as xxhash of content combined with document_id). |
|
| dataset_id | string | Parent dataset ID. |
|
| document_id | string | Parent document ID. |
|
| content | string | Chunk text content (the actual text segment extracted from the document). |
|
| important_keywords | string | repeated | Important keywords extracted from or manually assigned to this chunk. |
| questions | string | repeated | Associated questions for Q&A chunks (used when |
| image_id | string | Associated image ID if this chunk references an image. |
|
| positions | google.protobuf.ListValue | repeated | Position information in the original document. |
| create_time | google.protobuf.Timestamp | Creation date and time. |
|
| document_keyword | string | Document name used as a keyword for retrieval. |
|
| similarity | float | optional | Similarity score between |
RagCrawler definition.
This object represents a reusable crawler profile that can be run multiple times.
It is modeled after Crawl4AI concepts:
RagCrawlerSources)RagCrawlerFilters)RagCrawlerAuth, RagCrawlerBrowserConfig)RagCrawlerConfig)The same crawler can be executed multiple times; each execution creates
a separate crawler run and result set.
| Field | Type | Label | Description |
| name | string | Resource name of the RagCrawler Format:
Automatically generated in backend if empty |
|
| display_name | string | Optional. Human-readable crawler name shown in UIs/logs. Should be unique per agent to simplify operational troubleshooting. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| crawler_sources | RagCrawlerSources | Optional. Crawl entry points. Configure crawl entry points: URL seeds and/or sitemap sources. |
|
| crawler_seed_url_filters | RagCrawlerSeedUrlFilters | Optional. Seed URL filters. Filters are applied to the seed URLs before they are crawled. |
|
| crawler_auth | RagCrawlerAuth | Optional. Login/auth setup used before crawl requests. |
|
| crawler_browser_config | RagCrawlerBrowserConfig | Optional. Browser runtime setup (engine, viewport, cookies, proxy, headers).
Roughly corresponds to Crawl4AI |
|
| crawler_config | RagCrawlerConfig | Optional. Crawl execution behavior and extraction settings.
Roughly corresponds to Crawl4AI |
|
| retry_config | RagCrawlerRetryConfig | Optional. Retry configuration for crawler runs. |
Authentication configuration.
Supports both browser/form login and HTTP auth patterns used by Crawl4AI pipelines when crawling protected content.
HTTP Auth is used on all pages of the sources, while html_auth is a separate authentication flow used in the beginning of the crawl to extract the cookies. This is done through a login screen. If HTTP Auth is set, this would ALSO be used on the HTML auth page.
| Field | Type | Label | Description |
| http_auth | RagCrawlerHttpAuth | Optional. HTTP Basic auth settings. |
|
| html_auth | RagCrawlerHtmlAuth | Optional. Form/HTML login selector and credential settings. |
Browser runtime configuration.
This block maps closely to Crawl4AI BrowserConfig and controls browser
process setup (engine, headless mode, viewport, context, proxy, cookies,
user-agent behavior, and launch arguments).
| Field | Type | Label | Description |
| crawler_headers | google.protobuf.Struct | repeated | Optional. HTTP headers sent on page/resource requests. Repeated entries allow duplicate header names and preserve order. |
| crawler_cookies | RagCrawlerCookie | repeated | Optional. Initial cookies. |
| crawler_user_agent | string | optional | Optional. User-Agent sent with requests. |
Concurrency and pacing controls for crawler runs.
| Field | Type | Label | Description |
| max_concurrent_requests | int32 | Optional. Max number of concurrent in-flight requests/pages. Increase for throughput; reduce for fragile sites/rate limits. |
|
| slow_crawl | bool | Optional. Enable slow crawl mode with fixed delays between requests to avoid rate limits. |
Crawl run behavior.
This block controls scheduling, traversal, extraction outputs, retries,
diagnostics capture, and deep crawling options for each crawler run.
| Field | Type | Label | Description |
| concurrency_config | RagCrawlerConcurrencyConfig | Optional. Concurrency and pacing controls for crawler requests. |
|
| deep_crawler_config | RagCrawlerDeepCrawlerConfig | Optional. Deep crawler behavior (enable + depth/scoring/filter chain). |
|
| output_config | RagCrawlerResultsConfig | Optional. Structured output configuration (format + metadata policy). |
|
| status_filter | RagCrawlerStatusFilter | Optional. HTTP status filtering: which fetched pages become result documents. |
|
| incremental_config | RagCrawlerIncrementalConfig | Optional. Incremental crawling: reuse unchanged pages from the previous run instead of re-fetching them. |
|
| max_pages | int32 | optional | Optional. Hard cap on pages fetched successfully in this run; |
| Field | Type | Label | Description |
| metadata | google.protobuf.Struct | Optional. Extracted page metadata.
Includes only fields configured in |
|
| markdown | string | optional | Optional. Extracted markdown output. |
CSS-selector based content scoping for markdown extraction.
When set, Markdown is generated only from the elements matched by include_selectors (if any), after removing elements matched by exclude_selectors.
| Field | Type | Label | Description |
| include_selectors | string | repeated | Optional. CSS selectors to scope extraction to (keep only matching subtrees). Empty means the whole page is used. |
| exclude_selectors | string | repeated | Optional. CSS selectors whose matching elements are removed before extraction (e.g. navigation, footer, sidebars, internal-only blocks). |
Cookie representation for initial browser session state.
| Field | Type | Label | Description |
| cookie_name | string | Required. Cookie name. |
|
| cookie_value | string | Required. Cookie value. |
|
| cookie_domain | string | Optional. Cookie domain. |
Deep crawler options grouped under one config node.
| Field | Type | Label | Description |
| is_active | bool | Optional. Enable deep crawler behavior (link following beyond seeds).
Default |
|
| crawl_strategy | RagCrawlerCrawlStrategy | Optional. Crawl traversal strategy. Default |
|
| max_depth | int32 | optional | Optional. Maximum link depth from seed URLs, counted from the nearest seed. |
| max_pages | int32 | Deprecated. Deprecated. Use |
|
| deep_crawler_filters | RagCrawlerFilters | Optional. URL and domain restrictions. |
|
| normalize_url_case | bool | optional | Optional. Normalize URL case (lowercase the path) during link discovery/deduplication. |
| Name | Option |
| max_pages | true |
Density-based content pruning (Crawl4AI PruningContentFilter).
Removes low-text-density and very short nodes by a composite density score.
| Field | Type | Label | Description |
| is_active | bool | optional | Optional. Enable density pruning. Default |
| threshold | float | optional | Optional. Density score threshold. Default |
| threshold_type | RagCrawlerPruningThresholdType | optional | Optional. Threshold interpretation. Default |
| min_word_threshold | int32 | optional | Optional. Nodes with fewer than this many words are removed. Default |
Consolidated diagnostics and HTTP execution metadata for a crawl result.
| Field | Type | Label | Description |
| ssl_certificate | google.protobuf.Struct | Optional. SSL certificate details. |
|
| success | bool | optional | Optional. Crawl status flag. |
| error_message | string | optional | Optional. Error details if crawl failed. |
URL and domain restrictions.
Filters are evaluated during link discovery/scheduling and help avoid
crawling irrelevant, duplicate, or unsafe sections (auth/logout pages,
marketing subdomains, binary downloads, etc.).
These include domains to be excluded in the sources (e.g. through sitemaps or seed URLs)
and domains to be excluded in the deep crawl or extraction of pages to be crawled.
| Field | Type | Label | Description |
| allowed_domains | string | repeated | Optional. Domain allow-list (host-level gating). |
| disallowed_domains | string | repeated | Optional. Domain block-list. |
| allow_internal_links | bool | Deprecated. Deprecated. Has never had any effect. |
|
| allow_external_links | bool | Optional. Include external links, that is links outside the crawled site's registrable domain. |
|
| allow_social_media_links | bool | Deprecated. Deprecated. Has never had any effect. |
|
| allowed_regex | string | repeated | Optional. URL allow-list by regular expression. |
| disallowed_regex | string | repeated | Optional. URL block-list by regular expression. |
| allowed_paths | string | repeated | Deprecated. Deprecated. Use |
| disallowed_paths | string | repeated | Deprecated. Deprecated. Use |
| Name | Option |
| allow_internal_links | true |
| allow_social_media_links | true |
| allowed_paths | true |
| disallowed_paths | true |
Form/HTML login configuration.
Selector types and selector strings identify login form fields in the page
DOM. Credentials are then filled before form submission.
| Field | Type | Label | Description |
| html_auth_base_url | string | Optional. Base URL used for auth/login navigation. |
|
| html_auth_username_selector_type | RagCrawlerSelectorType | Optional. Username field selector type. |
|
| html_auth_username_selector | string | Optional. Username field selector value. |
|
| html_auth_username | string | Optional. Username credential. |
|
| html_auth_password_selector_type | RagCrawlerSelectorType | Optional. Password field selector type. |
|
| html_auth_password_selector | string | Optional. Password field selector value. |
|
| html_auth_password | string | Optional. Password credential. |
|
| authentication_execution_type | RagCrawlerAuthenticationExecutionType | Optional. Authentication execution type |
HTTP Basic authentication settings.
| Field | Type | Label | Description |
| http_auth_username | string | HTTP Basic Authentication username. |
|
| http_auth_password | string | HTTP Basic Authentication password. |
Incremental crawling: skip re-fetching pages a sitemap reports as unchanged.
A page is reused from the most recent completed run of the same crawler when its sitemap/ <lastmod> is not newer than the page_last_updated_date of the copy that run holds. A reused page is part of the new run exactly like a freshly fetched one; only RagCrawlerResult.last_crawled_date still reports when its content was actually fetched.
A page is always fetched when any of the following holds: its sitemap entry carries no <lastmod>; the most recent completed run did not contain it; there is no completed previous
run; the crawler configuration changed since that run; or max_age_days has elapsed.
| Field | Type | Label | Description |
| is_active | bool | Optional. Enable incremental crawling. Default |
|
| max_age_days | int32 | optional | Optional. Force a re-fetch of any page whose content was fetched more than this many days ago, regardless of what |
Metadata extractor configuration.
| Field | Type | Label | Description |
| type | RagCrawlerMetaDataExtractorType | Optional. Regex pattern to match metadata field names. |
|
| value | string | Optional. Value to extract (e.g. regex pattern, fixed value, CSS selector, XPath selector, ID selector). |
|
| key | string | Optional. Metadata field name to extract (e.g. url, title, description, author, keywords, tags, created_date, modified_date, scraped_at). |
Crawler result entity.
Each result corresponds to one crawled URL in a crawler run and includes
extracted content, metadata, diagnostics, and optional binary artifacts.
| Field | Type | Label | Description |
| name | string | Resource name of the crawler result. Format: |
|
| crawler_name | string | Resource name of the source crawler profile. |
|
| operation_name | string | Resource name of the crawler run this result was requested under. |
|
| source_url | string | URL this content came from. |
|
| file_resource | FileResource | Classified primary file resource built from source URL and detected MIME/type. If its a HTML page, it will be stored in the DocumentFileResource Bytes. See FileResource Documentation for all other file types. |
|
| last_crawled_date | google.protobuf.Timestamp | Timestamp when this URL was last processed by crawler. |
|
| content_result | RagCrawlerContentResult | Optional. Consolidated extracted content for this page. |
|
| page_last_updated_date | google.protobuf.Timestamp | Optional. Timestamp when source page was last updated.
Source precedence: HTTP Last-Modified header, then sitemap |
Structured output configuration.
Use this block to define result payload shape and metadata behavior,
similar to Crawl4AI markdown/output-generation toggles.
| Field | Type | Label | Description |
| inject_frontmatter | bool | optional | Optional. Prepend the page's extracted metadata to the markdown as a YAML frontmatter block. |
| meta_data_extractors | RagCrawlerMetaDataExtractor | repeated | Optional. Metadata extractors. |
| content_scope | RagCrawlerContentScope | Optional. CSS-selector based content scoping for markdown extraction. |
|
| density_pruning | RagCrawlerDensityPruning | Optional. Density-based content pruning (Crawl4AI PruningContentFilter).
If not set the |
|
| discovery_only_url_regex | string | repeated | Optional. Regular expressions matched against a crawled page's URL. A page whose URL matches any of these is still fetched and its links are followed for discovery, but it is NOT converted into a document |
Timeout settings for crawler operations.
| Field | Type | Label | Description |
| page_load_timeout_seconds | int32 | optional | Optional. Page load/render timeout in seconds. |
| retry_max_attempts | int32 | optional | Optional. Maximum retry attempts per page source. |
| retry_backoff_seconds | float | optional | Optional. Base for the per-URL retry linear backoff, in seconds (default: 2). |
| max_stall_seconds | int32 | optional | Optional. Abort the crawl run when no page has been fetched successfully for this many seconds (default: 600).
|
| Field | Type | Label | Description |
| allowed_regex | string | repeated | Optional. Regex allow-list for full URLs. |
| disallowed_regex | string | repeated | Optional. Regex block-list for full URLs. |
| allowed_domains | string | repeated | Optional. Domain allow-list (host-level gating). |
| disallowed_domains | string | repeated | Optional. Domain block-list. |
Crawl entry points.
Both inputs can be provided at the same time:
- Sitemaps are expanded into a crawl URL list (in discovery order)
- Seed URLs are appended afterwards (in the order provided)
| Field | Type | Label | Description |
| urls | string | repeated | Direct seed URLs to enqueue as starting points. |
| sitemaps | string | repeated | Sitemap URLs used for URL discovery.
Typical values are |
HTTP status filtering for crawled pages.
When active, a fetched page becomes a result document only if its HTTP status is accepted.
| Field | Type | Label | Description |
| is_active | bool | optional | Optional. Enable HTTP status filtering. Default |
| accepted_status_codes | int32 | repeated | Optional. Accepted HTTP status codes. If empty while active, only the 2xx range ( |
Request message for creating a crawler for a dataset of an agent.
| Field | Type | Label | Description |
| parent | string | Required. The agent to create crawlers for. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler | RagCrawler | Required. Crawler definition to create.
If |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which RagCrawler fields get returned. |
Request message for creating a new dataset.
| Field | Type | Label | Description |
| parent | string | Required. The agent to create the dataset for. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| name | string | Required. Unique name of the dataset to create. Must follow these requirements:
|
|
| description | string | Optional. Dataset description. Maximum 65,535 characters. |
|
| avatar | string | Optional. Base64-encoded avatar image in the format |
|
| chunk_method | RagChunkMethod | Optional. Default chunking method for documents in this dataset. |
|
| parser_config | RagParserConfig | Optional. Configuration settings for the dataset parser. The used fields vary depending on the selected |
|
| embedding_model_ccai_service_name | string | Optional if |
Dataset containing documents for RAG.
| Field | Type | Label | Description |
| id | string | Dataset UUID. |
|
| avatar | string | Base64-encoded avatar image. |
|
| name | string | Dataset name. |
|
| description | string | Dataset description. |
|
| document_count | int32 | optional | Number of documents in the dataset. |
| token_num | int32 | optional | Number of tokens in the dataset. |
| chunk_count | int32 | optional | Number of chunks of all documents in the dataset. |
| chunk_method | RagChunkMethod | Default chunking method for documents in this dataset. |
|
| parser_config | RagParserConfig | Document parser configuration (auto-generated based on chunk_method). |
|
| pagerank | int32 | optional | Pagerank. |
| parsing_status | RagDatasetParsingStatus | Parsing status of all documents in the dataset. Might be empty if the system failed to get the parsing statistics. |
|
| create_time | google.protobuf.Timestamp | Creation date and time. |
|
| update_time | google.protobuf.Timestamp | Last update date and time. |
|
| embedding_model_ccai_service_name | string | CCAI service name of the embedding model used by this dataset. |
Response message for listing datasets.
| Field | Type | Label | Description |
| datasets | RagDataset | repeated | List of datasets. |
| total | int32 | Total number of datasets that match the given filters |
|
| next_page_token | string | Page token string (following the format described in |
Parsing status statistics of all documents in a dataset
| Field | Type | Label | Description |
| unstart | int32 | number of documents that have not started processing. |
|
| running | int32 | number of documents that are currently being processed. |
|
| cancel | int32 | number of documents for which parsing was cancelled. |
|
| done | int32 | number of documents that have successfully finished parsing. |
|
| fail | int32 | number of documents for which parsing has failed. |
Request message for deleting a crawler of a dataset for the specified agent.
| Field | Type | Label | Description |
| name | string | Resource name of the RagCrawler Format: |
|
| parent | string | Required. The agent owning the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
Response message for deleting a crawler of a dataset for the specified agent.
| Field | Type | Label | Description |
| name | string | Resource name of the RagCrawler Format: |
|
| error_message | string | Error message if there are any. |
Request message for deleting crawler runs.
Deletion candidates are the union of:
- explicit run names in crawler_run_names
- all runs belonging to crawlers listed in crawler_names
If both lists are empty, the call is a no-op.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler runs. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_run_names | string | repeated | Optional. Explicit crawler run names to delete. Format: |
| crawler_names | string | repeated | Optional. Crawler names whose runs should be deleted. Format: |
Response message for deleting crawler runs.
| Field | Type | Label | Description |
| deleted_count | int32 | Number of deleted crawler runs. |
|
| deleted_run_names | string | repeated | Resource names of deleted crawler runs. |
Request message for deleting multiple crawlers of a dataset for the specified agent.
| Field | Type | Label | Description |
| parent | string | Required. The agent owning the crawlers. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| names | string | repeated | Optional. Crawler resource names to delete. Format: |
Response message for deleting multiple crawlers of a dataset for the specified agent.
| Field | Type | Label | Description |
| delete_crawler_responses | RagDeleteCrawlerResponse | repeated | responses to delete crawlers |
| error_message | string | error message if there are any |
Request message for deleting one or more documents of a single dataset.
| Field | Type | Label | Description |
| parent | string | Required. The agent to delete datasets from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. ID of dataset containing the documents to delete. |
|
| ids | string | repeated | Optional. IDs of documents to delete. Duplicate IDs are ignored. |
| delete_all | bool | Optional. Delete all documents of the specified dataset if set to |
Request message for deleting one or more of a RAGFlow resource.
| Field | Type | Label | Description |
| parent | string | Required. The agent to delete datasets from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| ids | string | repeated | Optional. IDs of resources to delete. Duplicate IDs are ignored. |
| delete_all | bool | Optional. Delete all resources if set to |
Aggregated document retrieval results containing how many chunks of the given document where retrieved
| Field | Type | Label | Description |
| doc_name | string | Document name |
|
| doc_id | string | Document ID |
|
| count | int32 | Number of retrieved chunks |
Document uploaded to a dataset.
| Field | Type | Label | Description |
| id | string | Document UUID. |
|
| thumbnail | string | Base64-encoded thumbnail image in the format |
|
| dataset_id | string | Parent dataset ID. |
|
| chunk_method | RagChunkMethod | Chunking method used for this document. |
|
| parser_config | RagParserConfig | Parser configuration used for chunking this document. |
|
| type | RagDocumentType | Broad file category |
|
| name | string | Document filename. |
|
| size | int64 | optional | File size in bytes. |
| chunk_count | int32 | optional | Number of chunks extracted from this document (initially |
| token_count | int32 | optional | Number of tokens across all chunks in this document. |
| progress | float | optional | Processing progress as a decimal value between |
| progress_msg | string | Human-readable progress message describing current processing state. |
|
| process_begin_at | google.protobuf.Timestamp | Processing start date and time. |
|
| process_duration | float | optional | Total processing duration in seconds. |
| meta_fields | google.protobuf.Struct | Custom metadata fields specific to this document (arbitrary key-value pairs). |
|
| run | RagDocumentStatus | Document processing status. |
|
| status | string | Status indicating if document is enabled ( |
|
| create_time | google.protobuf.Timestamp | Creation date and time. |
|
| update_time | google.protobuf.Timestamp | Last update date and time. |
Request message for any endpoints that need a list of document IDs as input, e.g. delete documents, parse documents, stop parsing documents.
| Field | Type | Label | Description |
| parent | string | Required. The agent to delete documents from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. Dataset ID of the dataset containing the documents in |
|
| document_ids | string | repeated | Optional. Document IDs for the request. |
Response message for listing documents.
| Field | Type | Label | Description |
| documents | RagDocument | repeated | List of documents for the current page. |
| total | int32 | Total number of documents matching the filter criteria (not limited by pagination). |
|
| next_page_token | string | Page token string (following the format described in |
Request message for downloading the document file.
| Field | Type | Label | Description |
| parent | string | Required. The agent to download the document from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. Dataset ID containing the document. |
|
| document_id | string | Required. Document ID to download. |
File chunk for streaming downloads.
First chunk contains metadata, subsequent chunks only contain data.
| Field | Type | Label | Description |
| metadata | RagFileMetadata | Required in first chunk, ignored in later chunks. File metadata. |
|
| data | bytes | Optional. Chunk of file content. |
File metadata for streaming uploads/downloads.
| Field | Type | Label | Description |
| file_name | string | Required. Filename. Maximum length 255. |
|
| content_type | string | Optional. MIME type (e.g., |
|
| size | int64 | Optional. Minimum 0. File size in bytes (if known, 0 if unknown). |
Request message for getting datasets attached to a crawler.
| Field | Type | Label | Description |
| parent | string | Required. The agent owning the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_name | string | Required. Resource name of the crawler. Format: |
|
| page_size | int32 | Optional. Maximum number of datasets to return. If unset or non-positive, backend default is used. |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
|
| orderby | string | Optional. Sort field (default: |
|
| sorting_mode | SortingMode | optional | Optional. Sort descending (default: |
Response message for getting datasets attached to a crawler.
| Field | Type | Label | Description |
| datasets | RagDataset | repeated | Datasets attached to the crawler. |
| next_page_token | string | Page token string (following the format described in |
Request message for getting a crawler.
| Field | Type | Label | Description |
| name | string | Required. Resource name of the RagCrawler. Format: |
|
| parent | string | Required. The agent owning the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which RagCrawler fields get returned. |
Request message for getting a single crawler result from a crawler run.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler run. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| operation_name | string | Required. Resource name of the crawler run. Format: |
|
| url | string | Required. Exact URL of the crawler result to retrieve. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which RagCrawlerResult fields get returned. |
Request message for getting crawler results of a crawler run.
Results are returned in pages. Request the first page with an empty
page_token, then continue with each response next_page_token.
Example:
RagGetCrawlerResults(run_name, page_token="")-> next_page_token="..."
RagGetCrawlerResults(run_name, page_token="...")
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler run. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| operation_name | string | Required. Resource name of the crawler run. Format: |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| url_query | string | Optional. Filter by URL substring. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
|
| orderby | string | Optional. Sort field (default: |
|
| sorting_mode | SortingMode | optional | Optional. Sort descending. |
Response message for getting crawler results.
| Field | Type | Label | Description |
| crawler_results | RagCrawlerResult | repeated | List of crawler results for the crawler run. |
| next_page_token | string | Page token string (following the format described in |
|
| total_size | int32 | Total number of crawler results available after applying request filters
(for example |
Request message for getting crawler run logs.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler run. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| operation_name | string | Required. Resource name of the crawler run. Format: |
|
| page_token | string | Optional. Specifies which page to return. |
|
| page_size | int32 | Optional. Number of logs per page. |
|
| level_filters | LogSeverity | repeated | Optional. Filter by one or more log levels. |
| phase_filter | string | Optional. Filter by specific phase (exact match). |
|
| search_query | string | Optional. Search string for the message or details. |
|
| start_time | google.protobuf.Timestamp | Optional. Filter logs generated after this time. |
|
| end_time | google.protobuf.Timestamp | Optional. Filter logs generated before this time. |
|
| source_url_filter | string | Optional. Filter by source URL (substring match). |
|
| orderby | string | Optional. Sort field. Accept any field of |
|
| sorting_mode | SortingMode | optional | Optional. Sort descending. |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
Response message for getting crawler run logs.
| Field | Type | Label | Description |
| operation_name | string | Resource name of the crawler run operation. |
|
| crawler_name | string | Resource name of the crawler profile. |
|
| status | OperationMetadata.Status | Operation status of the run. |
|
| entries | LogEntry | repeated | List of log entries for the requested page. |
| next_page_token | string | Page token string for retrieving the next results page. |
|
| total_log_entries | int32 | Total number of log entries available after applying filters. |
Request message for getting a crawler run.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler run. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_run_name | string | Required. Resource name of the crawler run. Format: |
GraphRAG configuration.
| Field | Type | Label | Description |
| use_graphrag | bool | optional | Optional. Default |
| entity_types | string | repeated | Optional. Default |
| method | RagGraphRagMethod | Optional. Default |
|
| community | bool | optional | Optional. Default |
| resolution | bool | optional | Optional. Default |
Request message for listing crawler runs.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler runs. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_name | string | Optional. Restrict to one crawler. Format: |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| status | OperationMetadata.Status | Optional. Filter by operation status. |
|
| orderby | string | Optional. Sort field (default: |
|
| sorting_mode | SortingMode | optional | Optional. Sort descending. |
Response message for listing crawler runs.
| Field | Type | Label | Description |
| crawler_runs | Operation | repeated | List of crawler run operations. |
| next_page_token | string | Page token string (following the format described in |
Request message for listing crawlers of a dataset for the specified agent.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list crawlers for. Format: |
|
| language_code | string | Required. The language of the agent of the dataset. |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| dataset_name | string | Optional. Filter by dataset name. |
|
| crawler_name | string | Optional. Filter by crawler name. |
|
| orderby | string | Optional. Sort field (default: |
|
| sorting_mode | SortingMode | optional | Optional. Sort descending. |
| field_mask | google.protobuf.FieldMask | Optional. The Mask to control which RagCrawler fields get returned for each crawler in the list response. |
Response message for listing crawlers.
| Field | Type | Label | Description |
| crawlers | RagCrawler | repeated | List of crawlers. |
| next_page_token | string | Page token string (following the format described in |
Request message for listing datasets with pagination and filtering.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all datasets from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| id | string | Optional. Filter by dataset ID. |
|
| name | string | Optional. Filter by dataset name. |
|
| orderby | string | Optional. Sort field. Can be one of
create_time). |
|
| desc | bool | optional | Deprecated. Optional. Sort descending (default: |
| sorting_mode | SortingMode | Optional. Specify whether to sort ascending or descending (default: ascending). |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
| Name | Option |
| desc | true |
Request message for listing documents in a dataset with pagination and filtering.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list documents from. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. Dataset ID to list documents from. |
|
| id | string | Optional. Filter by specific document ID. |
|
| name | string | Optional. Filter by document name (exact match). |
|
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| orderby | string | Optional. Sort field (default: |
|
| desc | bool | optional | Deprecated. Optional. Sort in descending order (default: |
| keywords | string | Optional. Filter by document names containing |
|
| suffix | string | repeated | Optional. Suffixes to filter by (e.g. |
| run_status | RagDocumentStatus | repeated | Optional. Document statuses to filter by. |
| create_time_from | google.protobuf.Timestamp | Optional. Filter by creation time start. |
|
| create_time_to | google.protobuf.Timestamp | Optional. Filter by creation time end. |
|
| metadata_condition | RagMetadataConditions | Optional. Metadata filter condition to restrict results based on document metadata. |
|
| sorting_mode | SortingMode | Optional. Specify whether to sort ascending or descending (default: ascending). |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
| Name | Option |
| desc | true |
Condition to filter document metadata on.
String comparison is always case-insensitive.
| Field | Type | Label | Description |
| name | string | Required. Metadata field name. |
|
| comparison_operator | RagComparisonOperator | Required. Comparison operator. |
|
| value | string | Required. Value to compare to. |
List of document metadata conditions.
| Field | Type | Label | Description |
| logic | RagLogic | Optional. Whether to apply the conditions with a logical and or logical or. |
|
| conditions | RagMetadataCondition | repeated | Optional. List of conditions. |
Document parser configuration.
Used fields depend on the chunking method of the document.
naive: uses the following fields (all optional)auto_keywordsauto_questionschunk_token_numdelimiterhtml4excellayout_recognizetag_kb_idstask_page_sizeraptorgraphragqa, manual, paper, book, laws, presentation: uses only the raptor fieldtable, picture, one, email: does not use any field (expects empty message)| Field | Type | Label | Description |
| auto_keywords | int32 | optional | Optional. Minimum 0, maximum 32, default 0. See https://ragflow.io/docs/dev/autokeyword_autoquestion for details. |
| auto_questions | int32 | optional | Optional. Minimum 0, maximum 10, default 0. See https://ragflow.io/docs/dev/autokeyword_autoquestion for details. |
| chunk_token_num | int32 | Optional. Minimum 1, maximum 2048, default 512. |
|
| delimiter | string | Optional. Default |
|
| html4excel | bool | optional | Optional. Convert Excel documents to HTML. Default |
| layout_recognize | string | Optional. Default |
|
| tag_kb_ids | string | repeated | Optional. List of dataset IDs. See https://ragflow.io/docs/dev/use_tag_sets for details. |
| topn_tags | int32 | Optional. Minimum 1. Maximum 10. Default 1. |
|
| filename_embd_weight | float | optional | Optional. Minimum 0.0. Maximum 1.0. Default 0.1. |
| task_page_size | int32 | Optional. Minimum 1, default 12. Only applies to PDFs. |
|
| raptor | RagRaptorConfig | Optional. RAPTOR-specific settings. Default |
|
| graphrag | RagGraphRagConfig | Optional. GRAPHRAG-specific settings. Default |
On complete success: no fields set (empty message).
On partial success/failure: both fields set.
| Field | Type | Label | Description |
| success_count | int32 | Number of successful operations. |
|
| errors | string | repeated | Error messages for failed operations. |
RAPTOR configuration. Refer to RAPTOR paper for more information about RAPTOR.
| Field | Type | Label | Description |
| use_raptor | bool | optional | Optional. Default |
| prompt | string | Optional. Prompt to use for RAPTOR. Default: |
|
| max_token | int32 | Optional. Minimum 1. Maximum 2048. Default 256. |
|
| threshold | float | optional | Optional. Minimum 0.0. Maximum 1.0. Default 0.1. |
| max_cluster | int32 | Optional. Minimum 1. Maximum 1024. Default 64. |
|
| random_seed | int64 | optional | Optional. Minimum 0. Default 0. |
Request message for removing previously imported crawler output from one or more datasets.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_name | string | Required. Resource name of crawler whose results should be removed. Format: |
|
| crawler_result_names | string | repeated | Required. Resource names of crawler results to remove. Format: |
| dataset_ids | string | repeated | Required. Dataset IDs from which the crawler outputs should be removed. Example: |
Request message for retrieving chunks using vector similarity search.
Supports hybrid search combining vector similarity with keyword matching.
| Field | Type | Label | Description |
| parent | string | Required. The agent to retrieve chunks for. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_ids | string | repeated | Required. Dataset IDs to search. |
| page_token | string | Optional. Specifies which page to return. The page token is a string of the format
<idx> is the index in the requested sequence NOT the page number. E.g. if the requested list has 100 elements then current_index-5--page_size-15 returns the elements at index 5-19 and not the 5-th page of 15 elements.
Both current_index-<idx> and page_size-<size> are optional and default to 0 and 10 respectively. The following are all valid page_tokens
|
|
| question | string | Required. Query string to search for. |
|
| document_ids | string | repeated | Optional. Filter by specific document IDs within the datasets. |
| use_kg | bool | optional | Optional. Include knowledge graph retrieval to enhance results with graph relationships. |
| cross_languages | string | repeated | Optional. Cross-language translation codes to enable multilingual retrieval. |
| metadata_condition | RagMetadataConditions | Optional. Metadata filter condition to restrict results based on document metadata. |
|
| similarity_threshold | float | optional | Optional. Minimum similarity score threshold between |
| vector_similarity_weight | float | optional | Optional. Weight for vector similarity versus keyword matching between |
| top_k | int32 | Optional. Minimum 1. Maximum number of chunks to retrieve before reranking (default: |
|
| highlight | bool | optional | Optional. Whether to highlight matched content in the returned chunks. |
| keyword | bool | optional | Optional. Extract additional keywords from the query to improve retrieval. |
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
|
| rerank_model_ccai_service_name | string | optional | Optional. Rerank model used to refine the initial retrieval scores. If not provided, the default model is used (if one is set). If empty, the results are not reranked. |
| rerank_candidates | int32 | Optional. Minimum 0. Number of retrieved chunks the rerank model scores (default: |
|
| dedup_threshold | float | optional | Optional. Drop a retrieved chunk whose word-shingle similarity to a better-ranked chunk reaches this threshold, between |
| dedup_before_rerank | bool | optional | Optional. Suppress near-duplicates before reranking instead of after (default: |
Response message for chunk retrieval.
| Field | Type | Label | Description |
| chunks | RagChunk | repeated | Retrieved chunks with similarity scores populated (ordered by relevance). |
| doc_aggs | RagDocAgg | repeated | Statistics of the matched documents. |
| total | int32 | Total number of chunks matching the query (before pagination). |
|
| next_page_token | string | Page token string (following the format described in |
Request message for running a crawler.
This starts a long-running operation and returns immediately.
Clients should poll operation status via RagGetCrawlerRun.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| crawler_name | string | Required. Resource name of the crawler to run. Format: |
Request message for stopping a crawler run.
| Field | Type | Label | Description |
| parent | string | Required. The agent that owns the crawler run. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| name | string | Required. Resource name of the crawler run. Format: |
Result of stopping a crawler run
| Field | Type | Label | Description |
| name | string | Resource name of the crawler run that was stopped. Format: |
|
| error_message | string | Error message if there are any; empty when the stop request was accepted successfully. |
Request message for updating a crawler (partial update).
| Field | Type | Label | Description |
| crawler | RagCrawler | Required. The crawler to update. Only configuration fields can be updated. The name field must be set and must match an existing crawler. Timestamps and audit fields are auto-managed by the service. |
|
| parent | string | Required. The agent owning the crawler. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| update_mask | google.protobuf.FieldMask | Optional. FieldMask to specify which fields to update. If not provided, all configuration fields in crawler are updated. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which crawler fields get returned. |
Request message for updating an existing dataset.
The same field constraints as for RagCreateDatasetRequest apply here.
| Field | Type | Label | Description |
| parent | string | Required. The agent to update the dataset for. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. Dataset ID. |
|
| name | string | Optional. New dataset name. |
|
| description | string | optional | Optional. New dataset description. |
| avatar | string | optional | Optional. New avatar image. |
| chunk_method | RagChunkMethod | Optional. New chunk method. |
|
| parser_config | RagParserConfig | Optional. New parser config (deep merged with existing). |
|
| pagerank | int32 | optional | Optional. Minimum 0. Maximum 100. PageRank value. |
| update_mask | google.protobuf.FieldMask | Optional. FieldMask to specify which fields to update. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
|
| embedding_model_ccai_service_name | string | Optional. CCAI service to use for embedding the documents in the dataset. |
Request message for updating an existing document's metadata and configuration.
| Field | Type | Label | Description |
| parent | string | Required. The agent to update the document for. Format: |
|
| language_code | string | Required. The language of the project to use. |
|
| dataset_id | string | Required. Dataset ID containing the document. |
|
| document_id | string | Required. Document ID to update. |
|
| name | string | Optional. Maximum length 255. New document name (file extension must remain the same). |
|
| chunk_method | RagChunkMethod | Optional. New chunking method (resets document to |
|
| parser_config | RagParserConfig | Optional. New parser configuration (deep merged with existing configuration). |
|
| enabled | bool | optional | Optional. Document enabled/disabled status. |
| meta_fields | google.protobuf.Struct | Optional. Custom metadata fields for document-specific metadata (replaces existing metadata). |
|
| update_mask | google.protobuf.FieldMask | Optional. FieldMask to specify which fields to update. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which |
Request message for uploading a document to a dataset.
| Field | Type | Label | Description |
| parent | string | Required in first chunk, ignored in later chunks. The agent to upload documents for. Format: |
|
| language_code | string | Required in first chunk, ignored in later chunks. The language of the project to use. |
|
| dataset_id | string | Required in first chunk, ignored in later chunks. Target dataset ID to upload documents to. |
|
| metadata | RagFileMetadata | Required in first chunk, ignored in later chunks. File metadata. |
|
| data | bytes | Optional. Chunk of file content. |
Chunking method for documents. See https://ragflow.io/docs/dev/configure_knowledge_base#select-chunking-method for details.
| Name | Number | Description |
| RAG_CHUNK_METHOD_UNSPECIFIED | 0 | Unspecified. Defaults to |
| RAG_CHUNK_METHOD_NAIVE | 1 | General (default). |
| RAG_CHUNK_METHOD_BOOK | 2 | Book. |
| RAG_CHUNK_METHOD_EMAIL | 3 | Email. |
| RAG_CHUNK_METHOD_LAWS | 4 | Laws. |
| RAG_CHUNK_METHOD_MANUAL | 5 | Manual. |
| RAG_CHUNK_METHOD_ONE | 6 | One. |
| RAG_CHUNK_METHOD_PAPER | 7 | Paper. |
| RAG_CHUNK_METHOD_PICTURE | 8 | Picture. |
| RAG_CHUNK_METHOD_PRESENTATION | 9 | Presentation. |
| RAG_CHUNK_METHOD_QA | 10 | Q&A. |
| RAG_CHUNK_METHOD_TABLE | 11 | Table. |
| RAG_CHUNK_METHOD_TAG | 12 | Tag. |
Valid metadata condition comparison operators
| Name | Number | Description |
| RAG_COMPARISON_OPERATOR_UNSPECIFIED | 0 | Unspecified. Must never be used. |
| RAG_COMPARISON_OPERATOR_CONTAINS | 1 | String representation of metadata field contains value. |
| RAG_COMPARISON_OPERATOR_NOT_CONTAINS | 2 | String representation of metadata field does not contain value. |
| RAG_COMPARISON_OPERATOR_IN | 3 | Checks with Python's |
| RAG_COMPARISON_OPERATOR_NOT_IN | 4 | Checks with Python's |
| RAG_COMPARISON_OPERATOR_START_WITH | 5 | String representation of metadata field starts with value. |
| RAG_COMPARISON_OPERATOR_END_WITH | 6 | String representation of metadata field ends with value. |
| RAG_COMPARISON_OPERATOR_EMPTY | 7 | Is empty (Python falsy). |
| RAG_COMPARISON_OPERATOR_NOT_EMPTY | 8 | Is not empty (Python truthy). |
| RAG_COMPARISON_OPERATOR_EQ | 9 | Equals. |
| RAG_COMPARISON_OPERATOR_NEQ | 10 | Does not equal. |
| RAG_COMPARISON_OPERATOR_GT | 11 | Greater than. |
| RAG_COMPARISON_OPERATOR_LT | 12 | Less than. |
| RAG_COMPARISON_OPERATOR_GEQ | 13 | Greater than or equal. |
| RAG_COMPARISON_OPERATOR_LEQ | 14 | Less than or equal. |
| Name | Number | Description |
| RAG_CRAWLER_AUTHENTICATION_EXECUTION_TYPE_UNSPECIFIED | 0 | Authentication execution type not specified. |
| RAG_CRAWLER_AUTHENTICATION_EXECUTION_TYPE_SERVER_SIDE | 1 | Authentication execution type is server side. |
| RAG_CRAWLER_AUTHENTICATION_EXECUTION_TYPE_CLIENT_SIDE | 2 | Authentication execution type is client side. |
Crawl traversal strategy.
| Name | Number | Description |
| RAG_CRAWLER_CRAWL_STRATEGY_UNSPECIFIED | 0 | Unspecified |
| RAG_CRAWLER_CRAWL_STRATEGY_BFS | 1 | Breadth-first traversal. |
| RAG_CRAWLER_CRAWL_STRATEGY_DFS | 2 | Depth-first traversal. |
| RAG_CRAWLER_CRAWL_STRATEGY_BEST_FIRST | 3 | Best-first traversal based on relevance scoring. |
| Name | Number | Description |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TPYE_UNSPECIFIED | 0 | Unspecified. |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TYPE_REGEX | 1 | Regex pattern. |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TYPE_FIXED_VALUE | 2 | Fixed value. |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TYPE_CSS_SELECTOR | 3 | CSS selector. |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TYPE_XPATH_SELECTOR | 4 | XPath selector. |
| RAG_CRAWLER_META_DATA_EXTRACTOR_TYPE_ID_SELECTOR | 5 | ID selector. |
Interpretation of the density-pruning threshold.
| Name | Number | Description |
| RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_UNSPECIFIED | 0 | Unspecified (treated as FIXED). |
| RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_FIXED | 1 | Fixed cutoff: nodes scoring below |
| RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_DYNAMIC | 2 | Dynamic: the threshold is adjusted per-document by the pruning heuristic. |
| Name | Number | Description |
| RAG_CRAWLER_SELECTOR_TYPE_UNSPECIFIED | 0 | Unspecified. |
| RAG_CRAWLER_SELECTOR_TYPE_ID | 1 | ID selector. |
| RAG_CRAWLER_SELECTOR_TYPE_CSS_CLASS | 2 | CSS class selector. |
| RAG_CRAWLER_SELECTOR_TYPE_XPATH | 3 | XPath selector. |
Document processing status.
| Name | Number | Description |
| RAG_DOCUMENT_STATUS_UNSPECIFIED | 0 | Unspecified. |
| RAG_DOCUMENT_STATUS_UNSTART | 1 | Document has not started processing. |
| RAG_DOCUMENT_STATUS_RUNNING | 2 | Document is currently being processed. |
| RAG_DOCUMENT_STATUS_CANCEL | 3 | Document processing was cancelled. |
| RAG_DOCUMENT_STATUS_DONE | 4 | Document processing completed successfully. |
| RAG_DOCUMENT_STATUS_FAIL | 5 | Document processing failed. |
Broad document category.
| Name | Number | Description |
| RAG_DOCUMENT_TYPE_UNSPECIFIED | 0 | Unspecified. |
| RAG_DOCUMENT_TYPE_PDF | 1 | |
| RAG_DOCUMENT_TYPE_DOC | 2 | general documents (e.g. text, slides, spreadsheets, code, ...) |
| RAG_DOCUMENT_TYPE_VISUAL | 3 | images and videos |
| RAG_DOCUMENT_TYPE_AURAL | 4 | audio |
| RAG_DOCUMENT_TYPE_VIRTUAL | 5 | empty virtual files |
| RAG_DOCUMENT_TYPE_FOLDER | 6 | folders |
| RAG_DOCUMENT_TYPE_OTHER | 7 | unrecognized document types |
Knowledge graph construction methods.
| Name | Number | Description |
| RAG_GRAPH_RAG_METHOD_UNSPECIFIED | 0 | Unspecified. Defaults to |
| RAG_GRAPH_RAG_METHOD_LIGHT | 1 | Use prompts provided by LightRAG. |
| RAG_GRAPH_RAG_METHOD_GENERAL | 2 | Use prompts provided by GraphRAG. |
Metadata conditions logical operators
| Name | Number | Description |
| RAG_LOGIC_UNSPECIFIED | 0 | Unspecified. Must never be used. |
| RAG_LOGIC_AND | 1 | Return results that match all conditions. |
| RAG_LOGIC_OR | 2 | Return results that match any condition. |
Server project statistics
rpc GetProjectCount (.google.protobuf.Empty) returns (StatResponse)Returns the count of projects in the CAI server
rpc GetUserProjectCount (GetUserProjectCountRequest) returns (StatResponse)Returns the count of projects of a user
rpc GetUserCount (.google.protobuf.Empty) returns (StatResponse)Returns the users count within a project
| Method Name | Method | Pattern | Body |
| GetProjectCount | GET | /projects:count | |
| GetUserProjectCount | GET | /users/{user_identifier=*}/projects:count | |
| GetUserCount | GET | /users:count |
Request to get user project count
| Field | Type | Label | Description |
| user_id | string | Required. The ID of the User to count the projects from |
A session represents an interaction with a user. You retrieve user input and pass it to the DetectIntent (or StreamingDetectIntent) method to determine user intent and respond.
rpc DetectIntent (DetectIntentRequest) returns (DetectIntentResponse)Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
rpc StreamingDetectIntent (stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse)Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST).
rpc InterruptTurn (InterruptTurnRequest) returns (InterruptTurnResponse)Interrupts a turn of the session outside a
StreamingDetectIntent stream: cancels it, reports what
the user actually heard of its answer, or discards the session step of a preemptive draft. Meant for clients
without a call-length stream (e.g. a stop button) and for a heard report that arrives after the stream closed.
A voice client with an open stream sends the same TurnControl on that stream instead
(StreamingDetectIntentRequest.turn_control). Requires the permission to interrupt a turn of the
session's project.
rpc PrepareWarmTransferIntro (PrepareWarmTransferIntroRequest) returns (PrepareWarmTransferIntroResponse)Prepares the intro session of a warm transfer: reads the history, the contexts and the slots of the source (caller) session, renders the intro text (with an LLM within a time budget, or from the TEMPLATE when the LLM fails or is not configured), strips every
<SIP:…> markup from it, and stores the text, the
configuration and the stage in the intro session, which must not exist yet. Writes no step into the source
session. Idempotent per (intro_session, transfer_request_id): a repeated request
answers the response of the first one. Answers UNIMPLEMENTED when the server's warm transfer
feature is switched off, and FAILED_PRECONDITION with reason=warm-intro-disabled-for-agent
when Agent.warm_transfer_settings.enabled is false. Requires the permission to run a warm transfer
intro of the session's project. See docs/warm_transfer.md.
rpc GetWarmTransferIntroOutcome (GetWarmTransferIntroOutcomeRequest) returns (WarmTransferIntroOutcome)Returns the decision the target gave in the intro session of a warm transfer. Never returns the reason text or the intro text. Answers
UNIMPLEMENTED when the server's warm transfer feature is switched off.
Requires the permission to run a warm transfer intro of the session's project.
rpc ListSessions (ListSessionsRequest) returns (ListSessionsResponse)ListSessions: returns list of sessions from ondewo-kb; by default returns only session IDs
rpc GetSession (GetSessionRequest) returns (Session)GetSession: returns a session(=conversation) from ondewo-kb
rpc CreateSession (CreateSessionRequest) returns (Session)CreateSession: creates and returns a session(=conversation) from ondewo-kb
rpc CreateSessionStep (CreateSessionStepRequest) returns (SessionStep)CreateSessionStep: creates a new session step for a session
rpc GetSessionStep (GetSessionStepRequest) returns (SessionStep)GetSessionStep: gets an existing session step of a session
rpc UpdateSessionStep (UpdateSessionStepRequest) returns (SessionStep)UpdateSessionStep: updates an existing session step in a session
rpc DeleteSessionStep (DeleteSessionStepRequest) returns (.google.protobuf.Empty)DeleteSessionStep: deletes an existing session step from the session
rpc DeleteSession (DeleteSessionRequest) returns (.google.protobuf.Empty)DeleteSession: delete a session(=conversation) from ondewo-kb (for testing only)
rpc ListSessionLabels (ListSessionLabelsRequest) returns (ListSessionLabelsResponse)Returns the list of labels attached to a single session.
rpc ListSessionLabelsOfAllSessions (ListSessionLabelsOfAllSessionsRequest) returns (ListSessionLabelsResponse)Returns the distinct set of labels observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListLanguageCodesOfAllSessions (ListLanguageCodesOfAllSessionsRequest) returns (ListLanguageCodesResponse)Returns the distinct set of language codes observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListMatchedIntentsOfAllSessions (ListMatchedIntentsOfAllSessionsRequest) returns (ListMatchedIntentsResponse)Returns the distinct set of intents matched across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListMatchedEntityTypesOfAllSessions (ListMatchedEntityTypesOfAllSessionsRequest) returns (ListMatchedEntityTypesResponse)Returns the distinct set of entity types recognised across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListUserIdsOfAllSessions (ListUserIdsOfAllSessionsRequest) returns (ListUserIdsResponse)Returns the distinct set of
user_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListIdentifiedUserIdsOfAllSessions (ListIdentifiedUserIdsOfAllSessionsRequest) returns (ListIdentifiedUserIdsResponse)Returns the distinct set of
identified_user_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListTagsOfAllSessions (ListTagsOfAllSessionsRequest) returns (ListTagsResponse)Returns the distinct set of intent tags observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListInputContextsOfAllSessions (ListInputContextsOfAllSessionsRequest) returns (ListInputContextsResponse)Returns the distinct set of input contexts observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListOutputContextsOfAllSessions (ListOutputContextsOfAllSessionsRequest) returns (ListOutputContextsResponse)Returns the distinct set of output contexts observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListPlatformsOfAllSessions (ListPlatformsOfAllSessionsRequest) returns (ListPlatformsResponse)Returns the distinct set of
Intent.Message.Platform values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListAccountIdsOfAllSessions (ListAccountIdsOfAllSessionsRequest) returns (ListAccountIdsResponse)Returns the distinct set of
account_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListPropertyIdsOfAllSessions (ListPropertyIdsOfAllSessionsRequest) returns (ListPropertyIdsResponse)Returns the distinct set of
property_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListDatastreamIdsOfAllSessions (ListDatastreamIdsOfAllSessionsRequest) returns (ListDatastreamIdsResponse)Returns the distinct set of
datastream_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc ListOriginIdsOfAllSessions (ListOriginIdsOfAllSessionsRequest) returns (ListOriginIdsResponse)Returns the distinct set of
origin_id values observed across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc AddSessionLabels (AddSessionLabelsRequest) returns (Session)Attaches the supplied labels to a session and returns the updated session.
rpc DeleteSessionLabels (DeleteSessionLabelsRequest) returns (Session)Removes the supplied labels from a session and returns the updated session.
rpc AddSessionComment (AddSessionCommentRequest) returns (Comment)Appends a comment to a session and returns the persisted comment.
rpc DeleteSessionComments (DeleteSessionCommentsRequest) returns (Session)Removes the comments named in the request from a session and returns the updated session.
rpc UpdateSessionComments (UpdateSessionCommentsRequest) returns (Session)Updates an existing comment on a session and returns the updated session.
rpc ListSessionComments (ListSessionCommentsRequest) returns (ListSessionCommentsResponse)Lists the comments attached to a session with pagination support, optionally narrowed by resolved status.
rpc ListSessionCommentsOfAllSessions (ListSessionCommentsOfAllSessionsRequest) returns (ListSessionCommentsResponse)Lists the comments attached to all sessions of the agent with pagination support, optionally narrowed by a SessionFilter and by resolved status.
rpc AddSessionFeedback (AddSessionFeedbackRequest) returns (SessionFeedback)Records user feedback (thumbs up/down + optional comment + optional score/categorical value) about a whole session and returns the persisted feedback. Works for authenticated reviewers/test users and, where enabled, anonymous production end-users (webchat/webphone).
rpc AddSessionStepFeedback (AddSessionStepFeedbackRequest) returns (SessionFeedback)Records user feedback about a single session step (turn), pinned to the exact response, and returns the persisted feedback.
rpc GetSessionFeedback (GetSessionFeedbackRequest) returns (SessionFeedback)Returns a single session/step feedback by its resource name.
rpc UpdateSessionFeedback (UpdateSessionFeedbackRequest) returns (SessionFeedback)Updates an existing feedback (a user revising their thumbs / comment) and returns it.
rpc DeleteSessionFeedback (DeleteSessionFeedbackRequest) returns (.google.protobuf.Empty)Deletes a feedback (a user withdrawing their feedback).
rpc ListSessionFeedback (ListSessionFeedbackRequest) returns (ListSessionFeedbackResponse)Lists all feedback (session-level and step-level) attached to a session with pagination support.
rpc ListSessionFeedbackOfAllSessions (ListSessionFeedbackOfAllSessionsRequest) returns (ListSessionFeedbackResponse)Lists feedback across all sessions of the agent, optionally narrowed by a SessionFilter.
rpc GetFeedbackStatistics (GetFeedbackStatisticsRequest) returns (GetFeedbackStatisticsResponse)Returns aggregated feedback statistics for an agent (thumbs up/down counts + breakdowns), optionally rolling up existing session reviews and comments as additional quality signals.
rpc GetFeedbackStatisticsTimeSeries (GetFeedbackStatisticsTimeSeriesRequest) returns (GetFeedbackStatisticsTimeSeriesResponse)Returns feedback statistics bucketed over time for trend charts.
rpc ListSessionReviews (ListSessionReviewsRequest) returns (ListSessionReviewsResponse)ListSessionReviews: returns list of session reviews from ondewo-kb; by default only returns session review IDs
rpc GetSessionReview (GetSessionReviewRequest) returns (SessionReview)GetSessionReview: returns a session-review from ondewo-kb or computes the first review if none exists
rpc GetLatestSessionReview (GetLatestSessionReviewRequest) returns (SessionReview)GetLatestSessionReview: returns a session-review from ondewo-kb or computes the first review if none exists
rpc CreateSessionReview (CreateSessionReviewRequest) returns (SessionReview)CreateSessionReview: persist a session review in ondewo-kb as a side effect: also update training data in ondewo-cai
rpc GetAudioFiles (GetAudioFilesRequest) returns (GetAudioFilesResponse)RPC to get audio files based on specified criteria. Retrieves information about audio files associated with specific sessions. Returns a response containing details of the requested audio files.
rpc AddAudioFiles (AddAudioFilesRequest) returns (AddAudioFilesResponse)RPC to add audio files to a session. Adds new audio files to the specified session, providing details about each file. Returns a response containing information about the added audio files.
rpc DeleteAudioFiles (DeleteAudioFilesRequest) returns (DeleteAudioFilesResponse)RPC to delete specified audio files. Deletes audio files associated with specific sessions based on unique identifiers. Returns an empty response indicating the successful deletion of the specified audio files.
rpc GetAudioFileOfSession (GetAudioFileOfSessionRequest) returns (AudioFileResource)RPC to get a consolidated audio file for a specific session. Retrieves a single audio file that combines all audio files associated with the specified session. Returns details of the consolidated audio file.
rpc ListAudioFiles (ListAudioFilesRequest) returns (ListAudioFilesResponse)RPC to get a list audio files for a specific session. Retrieves a single audio file that combines all audio files associated with the specified session.
| Method Name | Method | Pattern | Body |
| DetectIntent | POST | /v2/{session=projects/*/agent/sessions/*}:detectIntent | * |
| InterruptTurn | POST | /v2/{session=projects/*/agent/sessions/*}:interruptTurn | * |
| PrepareWarmTransferIntro | POST | /v2/{intro_session=projects/*/agent/sessions/*}:prepareWarmTransferIntro | * |
| GetWarmTransferIntroOutcome | GET | /v2/{intro_session=projects/*/agent/sessions/*}/warmTransferIntroOutcome | |
| ListSessions | GET | /v2/{parent=projects/*/agent}/sessions | |
| GetSession | GET | /v2/{session_id=projects/*/agent/sessions/*} | |
| CreateSession | POST | /v2/{parent=projects/*/agent}/sessions | * |
| GetSessionStep | POST | /v2/{session_id=projects/*/agent/sessions/*}:getSessionStep | * |
| UpdateSessionStep | POST | /v2/{session_id=projects/*/agent/sessions/*}:updateSessionStep | * |
| DeleteSessionStep | POST | /v2/{session_id=projects/*/agent/sessions/*}:deleteSessionStep | * |
| DeleteSession | DELETE | /v2/{session_id=projects/*/agent/sessions/*} | |
| ListSessionLabels | GET | /v2/{session_id=projects/*/agent/sessions/*}/labels | |
| ListSessionLabelsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/labels | |
| ListLanguageCodesOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/language_codes | |
| ListMatchedIntentsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/matched_intents | |
| ListMatchedEntityTypesOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/matched_entity_types | |
| ListUserIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/user_ids | |
| ListIdentifiedUserIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/identified_user_ids | |
| ListTagsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/tags | |
| ListInputContextsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/input_contexts | |
| ListOutputContextsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/output_contexts | |
| ListPlatformsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/platforms | |
| ListAccountIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/account_ids | |
| ListPropertyIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/property_ids | |
| ListDatastreamIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/datastream_ids | |
| ListOriginIdsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/origin_ids | |
| AddSessionLabels | POST | /v2/{session_id=projects/*/agent/sessions/*}/labels:add | * |
| DeleteSessionLabels | POST | /v2/{session_id=projects/*/agent/sessions/*}/labels:delete | * |
| AddSessionComment | POST | /v2/{session_id=projects/*/agent/sessions/*}/comments:add | * |
| DeleteSessionComments | POST | /v2/{session_id=projects/*/agent/sessions/*}/comments:delete | * |
| UpdateSessionComments | POST | /v2/{session_id=projects/*/agent/sessions/*}/comments:update | * |
| ListSessionComments | GET | /v2/{session_id=projects/*/agent/sessions/*}/comments | |
| ListSessionCommentsOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/comments | |
| AddSessionFeedback | POST | /v2/{session_id=projects/*/agent/sessions/*}/feedback:add | * |
| AddSessionStepFeedback | POST | /v2/{session_id=projects/*/agent/sessions/*}/sessionSteps/feedback:add | * |
| GetSessionFeedback | GET | /v2/{name=projects/*/agent/sessions/*/feedback/*} | |
| UpdateSessionFeedback | POST | /v2/{feedback.name=projects/*/agent/sessions/*/feedback/*}:update | * |
| DeleteSessionFeedback | POST | /v2/{name=projects/*/agent/sessions/*/feedback/*}:delete | * |
| ListSessionFeedback | GET | /v2/{session_id=projects/*/agent/sessions/*}/feedback | |
| ListSessionFeedbackOfAllSessions | GET | /v2/{parent=projects/*/agent}/sessions/feedback | |
| GetFeedbackStatistics | GET | /v2/{parent=projects/*/agent}/feedbackStatistics | |
| GetFeedbackStatisticsTimeSeries | GET | /v2/{parent=projects/*/agent}/feedbackStatistics:timeSeries | |
| ListSessionReviews | GET | /v2/{session_id=projects/*/agent/sessions/*}/reviews | |
| GetSessionReview | GET | /v2/{session_review_id=projects/*/agent/sessions/*/reviews/*} | |
| GetLatestSessionReview | GET | /v2/{session_id=projects/*/agent/sessions/*}/reviews:getLatestSessionReview | |
| CreateSessionReview | POST | /v2/{session_id=projects/*/agent/sessions/*}:createSessionReview | * |
This message is a request to add the audio files specified
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| session_id | string | The unique identifier of the session for which the audio files should be listed Format: |
|
| audio_file_resources | AudioFileResource | repeated | AudioFileResources to be added |
| session_step_id | string | The unique identifier of the session step for which the audio files should be listed Format: |
This message is a request to add the audio files specified
| Field | Type | Label | Description |
| audio_file_resources | AudioFileResource | repeated | The unique identifier of the audio files for a specific session. Format: |
| error_message | string | error message if there are any. |
This message is a request to add a comment to a session
| Field | Type | Label | Description |
| session_id | string | The id of the session |
|
| comment | Comment | The comment to add to the session |
Request to record feedback about a whole session.
| Field | Type | Label | Description |
| session_id | string | The id of the session. |
|
| feedback | SessionFeedback | The feedback to record. session_step_id is left empty for session-level feedback. |
This message is a request to add session labels
| Field | Type | Label | Description |
| session_id | string | The id of the session |
|
| labels | string | repeated | The labels to add to the session |
Request to record feedback about a single session step (turn).
| Field | Type | Label | Description |
| session_id | string | The id of the session. |
|
| session_step_id | string | The id of the session step (turn) the feedback is about. |
|
| feedback | SessionFeedback | The feedback to record. |
Represents an audio file resource attached to a session (input recording or generated TTS output).
| Field | Type | Label | Description |
| name | string | The unique identifier of the audio file resource. Format: |
|
| bytes | bytes | Bytes of the audio file |
|
| language | string | Language of the audio file |
|
| duration_in_s | float | Duration in seconds and milliseconds of the audio file |
|
| sample_rate | int32 | sample rate of the audio |
|
| audio_file_resource_type | AudioFileResourceType | File type of an audio resource |
|
| transcriptions | S2tTranscription | repeated | transcriptions of the user input sorted by score. A transcription can be from a speech-to-text system or a human |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| display_name | string | Display name of the audio file, e.g., MyRecording.wav, or a user-assigned label. |
Cancels a turn. At least one of response_id and client_turn_id must be set; when both
are, client_turn_id is authoritative.
| Field | Type | Label | Description |
| response_id | string | The server's |
|
| client_turn_id | string |
|
|
| turn_interruption_reason | TurnInterruptionReason | Why the turn is cancelled. |
|
| decided_at | google.protobuf.Timestamp | Wall-clock time at which the client decided to cancel. Telemetry only. |
|
| background_work_policy | BackgroundWorkPolicy | What happens to background work the turn started. |
Message used to filter sessions based on contextual information
| Field | Type | Label | Description |
| context_name | string | name of the context |
|
| key | string | name of the key of the context parameter |
|
| value | string | value of the parameter |
|
| operator | ComparisonOperator | comparison operator to use for filtering |
This message is a request to create a session
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| session_uuid | string | The unique UUID of a Session Format: UUID Version 4, e.g. 2f59fad2-06bc-4730-9920-d3148f28f357 Optional. If not provided, it will be auto-generated |
|
| labels | string | repeated | Optional. labels for the session. |
| contexts | Context | repeated | Optional. The collection of contexts to be activated before this query is executed. |
Request to persist a session review for a given session.
As a side effect, training data in ondewo-cai may also be updated.
| Field | Type | Label | Description |
| session_id | string | The unique identifier for the session under review Format: |
|
| parent_review_id | string | Optional: The unique identifier of the parent review Format: |
|
| session_review | SessionReview | The reviews for all steps in the session |
|
| session_review_view | SessionReview.View | Represents the options for views of a session_review. A session_review can be a sizable object. Therefore, we provide a resource view that does not return all data |
Request to append a new SessionStep to an existing session.
| Field | Type | Label | Description |
| session_id | string | The unique identifier of the parent session. Format: . |
|
| session_step | SessionStep | The session step to be added. |
|
| field_mask | google.protobuf.FieldMask | Field mask specifying which fields the returned SessionStep should carry
(e.g. only |
This message is a request to the delete audio files specified
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| names | string | repeated | The unique identifier of the audio file of the specific session Format: |
This message is a request to the delete audio files specified
| Field | Type | Label | Description |
| names | string | repeated | The unique identifier of the audio file of the specific session Format: |
| error_message | string | error message if there are any. |
This message is a request to delete a session comment
| Field | Type | Label | Description |
| session_id | string | The id of the session |
|
| comment_names | string | repeated | The comment names to delete from the session |
Request to delete (withdraw) a feedback.
| Field | Type | Label | Description |
| name | string | The resource name of the feedback to delete. |
This message is a request to delete session labels
| Field | Type | Label | Description |
| session_id | string | The id of the session |
|
| labels | string | repeated | The labels to delete from the session |
This message is a request to delete a session
| Field | Type | Label | Description |
| session_id | string | Required. The session to be deleted Format: |
This message is a request to delete a session step of a session
| Field | Type | Label | Description |
| name | string | The unique identifier for the given session step Format: . |
The request to detect user's intent.
| Field | Type | Label | Description |
| session | string | Required. The name of the session this query is sent to. Format:
|
|
| query_params | QueryParameters | Optional. The parameters of this query. |
|
| query_input | QueryInput | Required. The input specification. It can be set to:
|
|
| input_audio | bytes | Optional. The natural language speech audio to be processed. This field
should be populated iff |
The message returned from the DetectIntent method.
| Field | Type | Label | Description |
| response_id | string | The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues. |
|
| query_result | QueryResult | The results of the conversational query or event processing. |
|
| webhook_status | google.rpc.Status | Specifies the status of the webhook request. |
|
| llm_telemetry_report | LlmTelemetryReport | Aggregated LLM telemetry — duplicated convenience copy of
|
This message contains a detected intent
| Field | Type | Label | Description |
| intent | Intent | intent |
|
| score | float | score of intent detection |
|
| algorithm | string | intent detection algorithm |
|
| fulfillment_messages | Intent.Message | repeated | collection of rich messages to present to the user This field is set only for the first detected intent. For the rest of the intents the messages are not resolved and the raw messages for the current language code are available in self.intent.messages |
| required_param_missing | bool | This field is set to:
|
Discards the session step of a preemptive draft: a turn the client started speculatively on a partial
transcript and then did not use. The server deletes the session step only when it belongs to this session and its
request carried QueryParameters.preemptive_draft = true; it answers
TURN_CONTROL_ACK_STATUS_DRAFT_DISCARDED. Any other step is kept and the server answers
TURN_CONTROL_ACK_STATUS_UNKNOWN_TURN.
| Field | Type | Label | Description |
| response_id | string | The server's |
Represents a document file resource (e.g., text, markdown, PDF, DOCX).
| Field | Type | Label | Description |
| name | string | The unique identifier for the document file resource. Format: |
|
| display_name | string | The display name of the document file, which can be the file name (e.g., "report.pdf") or a user-assigned name. |
|
| bytes | bytes | The raw bytes of the document file (e.g., PDF, DOCX, TXT). |
|
| created_at | google.protobuf.Timestamp | Creation date and time of the document file. This is a read-only field. |
|
| modified_at | google.protobuf.Timestamp | The last modification date and time of the document file. This is a read-only field. |
|
| created_by | string | The UUID of the user who created the document file. |
|
| modified_by | string | The UUID of the user who last modified the document file. |
Events allow for matching intents by event name instead of the natural language input.
For instance, input <event: { name: "welcome_event", parameters: { name: "Sam" } }> can trigger a personalized welcome response.
The parameter name may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?".
| Field | Type | Label | Description |
| name | string | Required. The unique identifier of the event. |
|
| parameters | google.protobuf.Struct | Optional. The collection of parameters associated with the event. |
|
| language_code | string | Required. The language of this query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |
| Field | Type | Label | Description |
| key | string | The bucket key (e.g. a language code, an intent display name, an author type). |
|
| thumbs_up_count | int32 | Number of thumbs-up feedback in this bucket. |
|
| thumbs_down_count | int32 | Number of thumbs-down feedback in this bucket. |
|
| total | int32 | Total feedback in this bucket (including unrated comment-only feedback). |
A key + up/down counts breakdown bucket (by language / intent / author type / ...).
A feedback-native filter for feedback list + analytics requests, complementing SessionFilter (which
filters the parent sessions). All set fields are AND-combined; repeated fields are OR-within-field.
| Field | Type | Label | Description |
| ratings | FeedbackRating | repeated | Keep only feedback with one of these ratings (thumbs up / down / unspecified). |
| author_types | FeedbackAuthorType | repeated | Keep only feedback left by one of these author types. |
| has_comment | bool | optional | When set, keep only feedback that has (true) or lacks (false) a free-text comment. |
| earliest | google.protobuf.Timestamp | Keep only feedback created at or after this time (feedback created_at, not session time). |
|
| latest | google.protobuf.Timestamp | Keep only feedback created at or before this time. |
|
| criteria | string | repeated | Keep only feedback whose criterion is one of these. |
| language_codes | string | repeated | Keep only feedback whose language code is one of these. |
| annotator_user_ids | string | repeated | Keep only feedback whose authenticated annotator is one of these user ids. |
| origin_ids | string | repeated | Keep only feedback whose channel origin id is one of these. |
| score_min | float | optional | When set, keep only feedback with a numeric score at or above this value. |
| score_max | float | optional | When set, keep only feedback with a numeric score at or below this value. |
| scope | FeedbackScope | Restrict to session-level or step-level feedback (unspecified means both). |
Aggregated feedback statistics for an agent.
| Field | Type | Label | Description |
| total_feedback | int32 | Total feedback records. |
|
| thumbs_up_count | int32 | Number of thumbs-up feedback. |
|
| thumbs_down_count | int32 | Number of thumbs-down feedback. |
|
| session_level_count | int32 | Number of session-level feedback. |
|
| session_step_level_count | int32 | Number of session-step-level feedback. |
|
| comment_count | int32 | Number of feedback that carry a free-text comment. |
|
| session_review_count | int32 | Roll-up of existing session reviews (additional quality signal). |
|
| session_comment_count | int32 | Roll-up of existing session comments (additional quality signal). |
|
| by_language | FeedbackBreakdownBucket | repeated | Up/down breakdown by language code. |
| by_intent | FeedbackBreakdownBucket | repeated | Up/down breakdown by matched intent. |
| by_author_type | FeedbackBreakdownBucket | repeated | Up/down breakdown by author type. |
| unspecified_rating_count | int32 | Number of feedback with no rating (comment-only / unspecified rating). |
|
| scored_count | int32 | Number of feedback that carry a numeric score. |
|
| average_score | float | Mean of the numeric scores across scored feedback (0 when none). |
|
| by_origin | FeedbackBreakdownBucket | repeated | Up/down breakdown by channel origin id. |
| by_criterion | FeedbackBreakdownBucket | repeated | Up/down breakdown by criterion. |
One time bucket of feedback counts.
| Field | Type | Label | Description |
| bucket_start | google.protobuf.Timestamp | The (inclusive) start of the time bucket. |
|
| thumbs_up_count | int32 | Number of thumbs-up feedback in this bucket. |
|
| thumbs_down_count | int32 | Number of thumbs-down feedback in this bucket. |
|
| total | int32 | Total feedback in this bucket. |
|
| bucket_end | google.protobuf.Timestamp | The (exclusive) end of the time bucket. |
Represents a file resource that can either be an image, audio, document, or video file.
| Field | Type | Label | Description |
| document_file_resource | DocumentFileResource | Document file resource (e.g., markdown, text, word, powerpoint, pdf, excel etc.). |
|
| audio_file_resource | AudioFileResource | An audio file resource, such as a recording or sound file. |
|
| image_file_resource | ImageFileResource | An image file resource, such as a JPEG, PNG, etc. |
|
| video_file_resource | VideoFileResource | A video file resource, such as an MP4 or AVI file. |
This message is a request to get one one file combining all audios of a specific session
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| session_id | string | The unique identifier of the session for which the audio files should be combined Format: |
|
| resource_view | ResourceView | Represents the options for views of resources |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to get audio files specified
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| names | string | repeated | The unique identifier of the audio file of the specific session Format: |
| resource_view | ResourceView | Represents the options for views of resources |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| sorting_mode | SortingMode | sorting mode |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to retrieve the audio files specified
| Field | Type | Label | Description |
| audio_files | AudioFileResource | repeated | The unique identifier of the audio file for a specific session. Format: |
| error_message | string | error message if there are any. |
|
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request for aggregated feedback statistics.
| Field | Type | Label | Description |
| parent | string | The agent parent. Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the sessions considered. |
|
| include_review_and_comment_rollup | bool | Optional. When true, roll up existing session reviews and comments as additional signals. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields of the statistics get returned. |
|
| feedback_filter | FeedbackFilter | Optional. A feedback-native filter (rating / author / comment / score / criterion / date window). |
Response carrying aggregated feedback statistics.
| Field | Type | Label | Description |
| statistics | FeedbackStatistics | The aggregated statistics. |
Request for feedback statistics bucketed over time.
| Field | Type | Label | Description |
| parent | string | The agent parent. Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the sessions considered. |
|
| bucket_width_seconds | int32 | The width of each time bucket in seconds. |
|
| max_buckets | int32 | The maximum number of buckets to return. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get returned. |
|
| feedback_filter | FeedbackFilter | Optional. A feedback-native filter. |
|
| granularity | FeedbackTimeGranularity | Optional. Calendar granularity; when set (non-unspecified) it overrides bucket_width_seconds. |
|
| time_zone | string | Optional. IANA timezone for calendar bucketing (e.g. "Europe/Vienna"); defaults to UTC. |
|
| start | google.protobuf.Timestamp | Optional. Inclusive start of the series window; when set, empty leading buckets are zero-filled. |
|
| end | google.protobuf.Timestamp | Optional. Exclusive end of the series window; defaults to now. |
Response carrying feedback counts bucketed over time.
| Field | Type | Label | Description |
| buckets | FeedbackTimeSeriesBucket | repeated | The time buckets, oldest first. |
This message is a request to get latest session review
| Field | Type | Label | Description |
| session_id | string | The unique identifier of the session for which the latest review should be returned Format: |
|
| session_review_view | SessionReview.View | An enum specifying the amount of information to be returned for the desired session review |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Request to fetch a single feedback by resource name.
| Field | Type | Label | Description |
| name | string | The resource name of the feedback. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get returned. |
This message is a request to get a session
| Field | Type | Label | Description |
| session_id | string | The session to be returned Format: |
|
| session_view | Session.View | whether to return a full or sparse view; if unspecified full view is returned |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: path=["session_info.duration_in_s_min"] |
This message is a request to get session review
| Field | Type | Label | Description |
| session_review_id | string | The unique identifier of the session review to be returned |
|
| session_review_view | SessionReview.View | The view of the session review to be returned |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to get a session step
| Field | Type | Label | Description |
| name | string | The unique identifier for the given session step Format: |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: path=["session_step.detect_intent_response.query_result.fulfillment_messages"] |
The request for the outcome of a warm transfer intro.
| Field | Type | Label | Description |
| intro_session | string | Required. The intro session. Format:
|
What the user heard of one spoken message of a turn.
| Field | Type | Label | Description |
| fulfillment_message_index | int32 | Index into the turn's |
|
| platform | Intent.Message.Platform | Platform of that fulfillment message. |
|
| full_text | string | The text that was synthesized for the message, SIP and SSML markup stripped. |
|
| heard_text | string | The prefix of |
|
| heard_char_count | int32 | Length of |
|
| heard_audio_duration_in_s | float | Duration of the message's audio that was played to the user, in seconds. |
|
| total_audio_duration_in_s | float | Duration of the message's whole audio, in seconds; 0 when it was never synthesized. |
|
| completed | bool | The message was played to its end. |
|
| never_started | bool | Nothing of the message was played (e.g. it was still queued when the turn was interrupted). |
|
| skipped_sip_trigger | bool | The message carried a SIP trigger (e.g. a transfer or a hangup) that was NOT executed because the turn was interrupted first. |
|
| filler_id | string | For a filler, the filler id the server sent in |
Reports what the user heard of a turn's answer. At least one of response_id and
client_turn_id must be set. The server keeps the report with the highest revision per
turn and ignores a lower or equal one.
| Field | Type | Label | Description |
| response_id | string | The server's |
|
| client_turn_id | string |
|
|
| revision | int32 | Revision of this report, starting at 1. A later, more precise measurement of the same turn carries a higher revision. |
|
| turn_interruption_reason | TurnInterruptionReason | Why the turn was interrupted. |
|
| heard_messages | HeardMessage | repeated | One entry per message of the turn that was spoken, queued or skipped, in playback order. |
| heard_text_precision | HeardTextPrecision | How the heard text was determined. |
|
| caller_overlap_duration_in_s | float | Duration of heard audio that was played after the user had started speaking (the overlap of bot and user), in seconds. |
Represents an image file resource (e.g., JPEG, PNG, GIF) attached to a session.
| Field | Type | Label | Description |
| name | string | The unique identifier of the image file resource. Format: |
|
| display_name | string | File name of the image, e.g., MyPicture.jpg, or a user assigned display name |
|
| bytes | bytes | Raw bytes of the image file. |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Instructs the speech recognizer how to process the audio content.
| Field | Type | Label | Description |
| audio_encoding | AudioEncoding | Required. Audio encoding of the audio content to process. |
|
| sample_rate_hertz | int32 | Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details. |
|
| language_code | string | Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |
|
| phrase_hints | string | repeated | Optional. The collection of phrase hints which are used to boost accuracy of speech recognition. Refer to Cloud Speech API documentation for more details. |
The request to interrupt a turn of a session outside a StreamingDetectIntent stream.
| Field | Type | Label | Description |
| session | string | Required. The session of the turn. Format:
|
|
| turn_control | TurnControl | Required. The control to apply. |
The response to an InterruptTurnRequest.
| Field | Type | Label | Description |
| turn_control_ack | TurnControlAck | Outcome of the control. |
request to list all account_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the account_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session account_ids
| Field | Type | Label | Description |
| account_ids | string | repeated | The account_ids of the session |
This message is a request to list all available audio files of a session
| Field | Type | Label | Description |
| parent | string | Required. The project of this agent. Format: |
|
| session_id | string | Optional: The unique identifier of the session for which the audio files should be listed Format: |
|
| resource_view | ResourceView | Represents the options for views of resources |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| sorting_mode | SortingMode | sorting mode |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to retrieve the audio files specified
| Field | Type | Label | Description |
| audio_files | AudioFileResource | repeated | The requested audio files . Format: |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
|
| error_message | string | error message if there are any. |
request to list all datastream_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the datastream_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
This message is a response of listing session datastream_ids
| Field | Type | Label | Description |
| datastream_ids | string | repeated | The datastream_ids of the session |
request to list all identified_user_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the identified_user_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session identified_user_ids
| Field | Type | Label | Description |
| identified_user_ids | string | repeated | The identified_user_ids of the session |
request to list all input_contexts of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the input_contexts for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session input_contexts
| Field | Type | Label | Description |
| input_contexts | string | repeated | The input_contexts ids of the session |
request to list all language codes of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the language_codes for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session language_codes
| Field | Type | Label | Description |
| language_codes | string | repeated | The language_codes of the session |
request to list all matched_entity_types of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the matched_entity_types for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session matched_entity_types
| Field | Type | Label | Description |
| matched_entity_types | string | repeated | The matched_entity_types of the session |
request to list all matched_intents of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the matched_intents for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session matched_intents
| Field | Type | Label | Description |
| matched_intents | string | repeated | The matched_intents of the session |
request to list all origin_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the origin_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session origin_ids
| Field | Type | Label | Description |
| origin_ids | string | repeated | The origin_ids of the session |
request to list all output_contexts of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the output_contexts for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session output_contexts
| Field | Type | Label | Description |
| output_contexts | string | repeated | The output_contexts ids of the session |
request to list all labels of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the platforms for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session platforms
| Field | Type | Label | Description |
| platforms | string | repeated | The platforms of the session |
request to list all property_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the property_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
This message is a response of listing session property_ids
| Field | Type | Label | Description |
| property_ids | string | repeated | The property_ids of the session |
This message is a request to list comments of all sessions of an agent
| Field | Type | Label | Description |
| parent | string | The parent for which the comments of all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| page_token | string | Optional. The page token to support pagination. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
|
| is_resolved | bool | optional | Optional. Filter comments by their resolved status. If unset, comments with any resolved status are returned. |
This message is a request to list comments of a session
| Field | Type | Label | Description |
| session_id | string | The unique identifier for the session for which comments should be listed Format: |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
|
| is_resolved | bool | optional | Optional. Filter comments by their resolved status. If unset, comments with any resolved status are returned. |
This message is a request to list comments of a session
| Field | Type | Label | Description |
| comment | Comment | repeated | The comments of a specific session Format: |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
Request to list feedback across all sessions of an agent.
| Field | Type | Label | Description |
| parent | string | The parent for which the feedback of all sessions should be listed. Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| page_token | string | Optional. The page token to support pagination. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get returned. |
|
| feedback_filter | FeedbackFilter | Optional. A feedback-native filter (rating / author / comment / score / criterion / date window). |
|
| order_by | string | Optional. Sort order, e.g. "created_at desc" (default), "created_at asc", "rating desc". |
Request to list all feedback attached to a session.
| Field | Type | Label | Description |
| session_id | string | The id of the session. |
|
| page_token | string | Optional. The page token to support pagination. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get returned. |
A page of feedback.
| Field | Type | Label | Description |
| feedback | SessionFeedback | repeated | The feedback of the requested scope. |
| next_page_token | string | The page token for the next page (empty when there are no more pages). |
|
| total_count | int32 | Total number of feedback matching the filter across all pages. |
request to list all labels of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the labels for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a request to list session labels
| Field | Type | Label | Description |
| session_id | string | The id of the session |
This message is a response of listing session labels
| Field | Type | Label | Description |
| labels | string | repeated | The labels of the session |
This message is a request to list session reviews
| Field | Type | Label | Description |
| session_id | string | The unique identifier for the session for which reviews should be listed Format: |
|
| session_review_view | SessionReview.View | An enum specifying the amount of information to be returned per session review |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
This message is a response of listing session reviews
| Field | Type | Label | Description |
| session_reviews | SessionReview | repeated | The requested session reviews |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
This message is a request to list sessions
| Field | Type | Label | Description |
| parent | string | Required. The project that the agent to fetch is associated with. Format: |
|
| session_view | Session.View | An enum specifying the amount of information to be returned per session |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: path=["session_info.duration_in_s_min"] |
This message is a response including the listing of sessions
| Field | Type | Label | Description |
| sessions | Session | repeated | The requested sessions |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
request to list all tags of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the tags for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session tags
| Field | Type | Label | Description |
| tags | string | repeated | The tags of the session |
request to list all user_ids of all sessions
| Field | Type | Label | Description |
| parent | string | The parent for which the user_ids for all sessions should be listed Format: |
|
| session_filter | SessionFilter | Optional. A filter to narrow the response down to sessions of interest. |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
This message is a response of listing session user_ids
| Field | Type | Label | Description |
| user_ids | string | repeated | The user_ids of the session |
Emitted on a streaming DetectIntent when a node of an AI Team graph starts, completes or fails.
A node inside a nested graph (a subgraph, or a member agent of a supervisor or swarm) is reported too,
with its full llm_agent_node_event_node_path.
| Field | Type | Label | Description |
| llm_agent_node_event_node_run_id | string | Id of this run of the node. The |
|
| llm_agent_node_event_parent_node_run_id | string |
|
|
| llm_agent_node_event_node_display_name | string | Name of the node, e.g. |
|
| llm_agent_node_event_node_path | string | repeated | Names of the nodes from the outermost graph down to this one, e.g.
|
| llm_agent_node_phase | LlmAgentNodePhase | Lifecycle phase this event reports. |
|
| timestamp | google.protobuf.Timestamp | Wall-clock time of the event. |
|
| llm_agent_node_event_duration_in_s | float | Duration of the node run in seconds; set only on |
|
| llm_agent_node_event_error_message | string | Populated only on |
Per-intent-agent usage rollup across the scope.
| Field | Type | Label | Description |
| agent_name | string | intent_agent executor / agent name owning the calls. |
|
| agent_role | string | Optional agent role. |
|
| team_name | string | Optional team name. |
|
| call_count | int64 | Number of LLM calls attributed to this agent in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage for this agent. |
|
| tool_call_count | int64 | Tool-call count attributed to this agent. |
Per-base-URL usage rollup across the scope. One entry per distinct
LlmTelemetry.base_url; calls whose model configuration states no base URL are
grouped under an empty base_url.
| Field | Type | Label | Description |
| base_url | string | Base URL the calls went through (proxy / OpenAI-compatible endpoint), with embedded credentials redacted. Empty = the model configuration states no base URL. |
|
| call_count | int64 | Number of LLM calls made through this base URL in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage for the calls made through this base URL. |
|
| model_names | string | repeated | Distinct model names called through this base URL. |
Prompt-cache efficiency aggregate across the LLM calls in scope.
| Field | Type | Label | Description |
| cached_input_tokens | int64 | Tokens served from prompt cache (cached_input_tokens summed). |
|
| cache_creation_input_tokens | int64 | Tokens written to prompt cache (cache_creation_input_tokens summed). |
|
| uncached_input_tokens | int64 | Non-cached input tokens. |
|
| cache_hit_rate | double | cached_input_tokens / (cached_input_tokens + uncached_input_tokens). |
|
| token_savings | int64 | Input tokens avoided by cache reuse. |
Emitted on a streaming DetectIntent when an LLM invocation finishes.
| Field | Type | Label | Description |
| llm_call_id | string | Collector-assigned id grouping events for this LLM call. |
|
| end_time | google.protobuf.Timestamp | Wall-clock end time of the LLM call. |
|
| duration_in_s | double | Convenience duration (end_time - start_time). |
|
| llm_token_usage | LlmTokenUsage | Final token totals for this LLM call. |
Emitted on a streaming DetectIntent when an LLM invocation starts.
| Field | Type | Label | Description |
| llm_call_id | string | Collector-assigned id grouping all events emitted for this LLM call. |
|
| provider | string | Provider tag: "langchain" | "openai" | "anthropic" | ... ("autogen" only on telemetry recorded before AutoGen was removed). |
|
| model_name | string | Concrete model identifier (e.g. "claude-3-5-sonnet-20241022"). |
|
| agent_name | string | intent_agent executor / agent name owning the call. |
|
| start_time | google.protobuf.Timestamp | Wall-clock start of the LLM call. |
Per-CCAI-service usage rollup across the scope.
| Field | Type | Label | Description |
| ccai_service_provider | CcaiServiceProvider | CCAI service provider enum value. |
|
| ccai_service_name | string | Resource name of the CCAI service. |
|
| call_count | int64 | Number of LLM calls attributed to this CCAI service in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage for this CCAI service. |
|
| base_url | string | Base URL used by this CCAI service. |
|
| model_names | string | repeated | Distinct model names seen under this CCAI service. |
One error class aggregate.
| Field | Type | Label | Description |
| error_class | string | Error class / type (LlmTelemetry.error_class). |
|
| count | int64 | Number of occurrences in scope. |
|
| rate | double | count / total LLM calls in scope. |
|
| sample_message | string | A representative error_message sample (may be truncated / redacted). |
Error breakdown aggregate across the scope.
| Field | Type | Label | Description |
| total_error_count | int64 | Total failed LLM calls in scope. |
|
| overall_error_rate | double | total_error_count / total LLM calls in scope. |
|
| errors_by_class | LlmErrorStat | repeated | Per-error-class breakdown, descending by count. |
| retry_count_total | int64 | Total retries observed (LlmTelemetry.retry_count summed). |
|
| max_fallback_depth | int32 | Max fallback depth observed (LlmTelemetry.fallback_depth max). |
One finish-reason aggregate.
| Field | Type | Label | Description |
| finish_reason | string | Finish reason ("stop" | "length" | "tool_calls" | "content_filter" | "error" | ...). |
|
| count | int64 | Number of occurrences in scope. |
|
| rate | double | count / total LLM calls in scope. |
Latency aggregate (seconds) across the LLM calls in scope.
| Field | Type | Label | Description |
| call_count | int64 | Number of LLM calls included in these latency stats. |
|
| mean_duration_seconds | double | Mean end-to-end call duration in seconds. |
|
| p50_duration_seconds | double | 50th percentile end-to-end call duration in seconds. |
|
| p95_duration_seconds | double | 95th percentile end-to-end call duration in seconds. |
|
| p99_duration_seconds | double | 99th percentile end-to-end call duration in seconds. |
|
| max_duration_seconds | double | Maximum observed end-to-end call duration in seconds. |
|
| mean_first_token_latency_seconds | double | Mean time-to-first-token in seconds (streaming calls only). |
|
| p95_first_token_latency_seconds | double | 95th percentile time-to-first-token in seconds. |
Per-model usage rollup across the scope.
| Field | Type | Label | Description |
| model_name | string | Concrete model identifier (e.g. "claude-3-5-sonnet-20241022"). |
|
| provider | string | Provider tag owning the model (e.g. "anthropic"). |
|
| call_count | int64 | Number of LLM calls to this model in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage (input / output / total) for this model. |
|
| tool_call_count | int64 | Tool-call count attributed to this model. |
|
| error_count | int64 | Error count attributed to this model. |
|
| duration_seconds_total | double | Summed call duration in seconds for this model. |
|
| cache_stats | LlmCacheStats | Optional cache stats for this model. |
|
| ccai_service_name | string | Resource name of the CCAI service that issued the calls. |
|
| ccai_service_provider | CcaiServiceProvider | Provider of the CCAI service. |
|
| base_url | string | Base URL used for the calls (proxy / compatible provider). |
|
| thinking_tokens_total | int64 | Summed thinking-block tokens for this model. |
|
| thinking_duration_seconds_total | double | Summed thinking-block duration in seconds for this model. |
|
| tool_call_tokens_total | int64 | Summed tool-call tokens for this model. |
|
| tool_call_duration_seconds_total | double | Summed tool-call duration in seconds for this model. |
Per-provider usage rollup across the scope.
| Field | Type | Label | Description |
| provider | string | Provider tag (e.g. "anthropic", "openai", "ollama"). |
|
| call_count | int64 | Number of LLM calls to this provider in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage for this provider. |
|
| error_count | int64 | Error count attributed to this provider. |
|
| duration_seconds_total | double | Summed call duration in seconds for this provider. |
|
| model_names | string | repeated | Distinct model names seen under this provider. |
One reasoning-effort aggregate.
| Field | Type | Label | Description |
| reasoning_effort | ReasoningEffort | Reasoning effort enum value. |
|
| count | int64 | Number of LLM calls at this effort level in scope. |
|
| rate | double | count / total LLM calls in scope. |
|
| llm_token_usage | LlmTokenUsage | Summed token usage at this effort level. |
Typed view of the chunks retrieved for one LLM call. Populated alongside the
unstructured outputs.retrieved_chunks Struct (field 18 on
LlmTelemetry, kept for back-compat); both carry the same chunk list.
| Field | Type | Label | Description |
| chunks | LlmRetrievedChunk | repeated | The retrieved chunks in retrieval-result order. |
One retrieved RAG chunk surfaced during an LLM call. Mirrors the five-field
chunk already emitted into outputs.retrieved_chunks (Struct) plus
a typed rank.
| Field | Type | Label | Description |
| document_id | string | Source document identifier the chunk was retrieved from. |
|
| chunk_id | string | Chunk identifier within the source document. |
|
| score | double | Retrieval similarity / relevance score assigned by the retriever. |
|
| text | string | Chunk text (already truncated to the emit-time character cap, ~2000 chars). |
|
| source_uri | string | Source URI (document URL or document name) for click-through. |
|
| rank | int32 | Zero-based position of this chunk in the retrieval result order (RAGFlow reference order / LangChain document order). |
Native safety assessment for one LLM call, computed at telemetry build time by
a dependency-free (regex / substring) assessor over the call's input / output
text. Additive, optional: absent when safety scoring is disabled. This is the
live MONITORING signal; the offline LLM-judge safety evaluators live in
llm_evaluation.proto.
| Field | Type | Label | Description |
| flagged_categories | string | repeated | Detector categories that fired across input and output
( |
| has_pii | bool | True when any PII pattern (email / phone / IBAN / credit-card / national-id) was detected in input or output. |
|
| has_injection_attempt | bool | True when a prompt-injection pattern was detected in the input. |
|
| has_jailbreak_attempt | bool | True when a jailbreak / role-override pattern was detected in the input. |
|
| safety_score | double | Overall safety score in |
|
| findings | LlmSafetyFinding | repeated | Per-finding detail records (category / severity / matched pattern / location). |
Per-category native-safety aggregate across the LLM calls in scope.
| Field | Type | Label | Description |
| category | string | Detector category ( |
|
| count | int64 | Number of calls flagged for this category in scope. |
|
| rate | double | count / total_assessed. |
One concrete safety finding inside an LlmSafetyAssessment.
| Field | Type | Label | Description |
| category | string | Detector category that fired (e.g. |
|
| severity | string | Severity tag ("low" | "medium" | "high" | "critical"). |
|
| matched_pattern | string | The pattern / detector rule that matched (may be a redacted excerpt). |
|
| location | LlmSafetyLocation | Whether the finding was located in the input or the output. |
Native-safety breakdown aggregate across the LLM calls in scope. Computed from
the per-call LlmSafetyAssessment records.
| Field | Type | Label | Description |
| total_assessed | int64 | Number of LLM calls that carried a safety assessment in scope. |
|
| flagged_count | int64 | Number of assessed calls with at least one flagged category. |
|
| overall_safety_score | double | Mean LlmSafetyAssessment.safety_score across assessed calls
( |
|
| category_stats | LlmSafetyCategoryStat | repeated | Per-category counts and rates, descending by count. |
Telemetry for a single LLM invocation inside one DetectIntent turn.
| Field | Type | Label | Description |
| provider | string | Provider tag: "langchain" | "openai" | "anthropic" | ... ("autogen" only on telemetry recorded before AutoGen was removed). |
|
| model_name | string | Concrete model identifier (e.g. "Qwen/Qwen3.6-27b-fp8"). |
|
| agent_name | string | intent_agent executor / agent name. |
|
| llm_token_usage | LlmTokenUsage | Totals for this call. |
|
| llm_tool_call_metadatas | LlmToolCallMetadata | repeated | Tool calls observed during this LLM invocation. |
| tool_call_count | int32 | Denormalized len(llm_tool_call_metadatas). |
|
| llm_thinking_metadata | LlmThinkingMetadata | Thinking block when surfaced by the model. |
|
| start_time | google.protobuf.Timestamp | Wall-clock start of the LLM call. |
|
| end_time | google.protobuf.Timestamp | Wall-clock end of the LLM call. |
|
| duration_in_s | double | Convenience duration (end_time - start_time). |
|
| run_id | string | LangChain / LangSmith run identifier for this LLM call (UUID). |
|
| parent_run_id | string | LangChain / LangSmith identifier of the parent run that spawned this call, forming the LangSmith run tree. |
|
| run_type | string | LangSmith run taxonomy: chain | llm | tool | retriever | agent | parser | prompt. |
|
| component_name | string | Serialized component name from LangChain callbacks (e.g. "ChatOpenAI"). |
|
| tags | string | repeated | Tags propagated via RunnableConfig. |
| metadata | google.protobuf.Struct | Free-form metadata propagated via RunnableConfig. |
|
| inputs | google.protobuf.Struct | Redaction-aware snapshot of inputs at the run boundary. |
|
| outputs | google.protobuf.Struct | Redaction-aware snapshot of outputs at the run boundary. |
|
| error_class | string | Exception class name when the LLM call failed; empty on success. |
|
| error_message | string | Exception message text when the LLM call failed; empty on success. |
|
| traceback | string | Formatted stack trace when the LLM call failed; empty on success. |
|
| streaming_chunk_count | int32 | Streaming chunk count observed during the call. |
|
| first_token_latency_seconds | double | Time-to-first-token (start_time -> first chunk). |
|
| system_fingerprint | string | OpenAI system_fingerprint when available. |
|
| cached | bool | Whether the result was served from a client-side cache. |
|
| retry_count | int32 | Retry count for the underlying provider call. |
|
| fallback_depth | int32 | Index inside a with_fallbacks([...]) chain when the call succeeded. |
|
| temperature | double | Sampling temperature requested for the LLM call (request kwargs). |
|
| top_p | double | Top-p (nucleus sampling) parameter requested for the LLM call. |
|
| max_tokens | int32 | Maximum number of tokens the model was allowed to produce. |
|
| n_generations | int32 | Number of generations the model was asked to return ( |
|
| finish_reasons | string | repeated | One finish reason per generation (e.g. |
| cached_input_tokens | int32 | Number of input tokens served from the provider-side prompt cache
(Anthropic |
|
| cache_creation_input_tokens | int32 | Number of input tokens written to the provider-side prompt cache
(Anthropic |
|
| langsmith_run_url | string | LangSmith run URL for direct click-through when LangSmith tracing is active. |
|
| team_name | string | Display name of the agent team owning the call; empty for a single agent. |
|
| team_id | string | Identifier (UUID) of the agent team owning the call. |
|
| agent_role | string | Role tag of the agent that made the call inside its team. |
|
| sender_agent | string | Name of the agent that produced the message. |
|
| recipient_agent | string | Name of the agent that received the message. |
|
| turn_index | int32 | Zero-based position of this LLM call inside the agent run's sequence of LLM calls. |
|
| reflection_iterations | int32 | Deprecated: number of reflection loops of the removed AutoGen |
|
| termination_reason | string | Stop reason of the agent team run when surfaced (formerly AutoGen |
|
| evaluator_runs_join_key | string | Join key linking this LLM call to an evaluator run (see llm_evaluation.proto). |
|
| llm_evaluation_feedbacks | LlmEvaluationFeedback | repeated | Immediate inline feedback recorded inside the turn (e.g. self-grading by a reflection agent). Each entry is a single LlmEvaluationFeedback record. |
| ccai_service_name | string | Resource name of the CCAI service that issued this LLM call. |
|
| base_url | string | The base URL for the OpenAI API. Overrides the default endpoint, useful for proxies or compatible third-party providers. |
|
| default_headers | google.protobuf.Struct | Optional. Default HTTP headers to include with every request to the OpenAI API. |
|
| default_query | google.protobuf.Struct | Optional. Default query parameters to append to every request URL sent to the OpenAI API. Values can be of any type (string, number, boolean, list), hence the use of Struct. |
|
| frequency_penalty | float | optional | Optional. A number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the likelihood of the model repeating the same line verbatim. |
| openai_metadata | google.protobuf.Struct | Optional. Developer-defined tags and values used for filtering completions in the OpenAI dashboard. |
|
| presence_penalty | float | optional | Optional. A number between -2.0 and 2.0. Positive values penalize new tokens based on whether they have already appeared in the text, increasing the likelihood of the model discussing new topics. |
| reasoning_effort | ReasoningEffort | optional | Optional. Constrains the effort level for reasoning models (e.g. o1, o3). Controls the trade-off between speed and quality. |
| user | string | optional | Optional. A unique identifier representing the end-user, which helps OpenAI monitor and detect abuse. |
| timeout | float | optional | Optional. The timeout in seconds for requests to the OpenAI API. Applies to the entire request lifecycle including connection, sending, and receiving. |
| strict_response_validation | bool | optional | Optional. If true, enables strict validation of response payloads returned by the OpenAI API. |
| extra_headers | google.protobuf.Struct | Optional. Additional HTTP headers to send with the request. These are merged with and override default_headers for this specific request only. |
|
| extra_query | google.protobuf.Struct | Optional. Additional query parameters to send with the request. These are merged with and override default_query for this specific request only. |
|
| extra_body | google.protobuf.Struct | Optional. Additional JSON properties to include in the request body. Useful for accessing new or undocumented API parameters. |
|
| ccai_service_provider | CcaiServiceProvider | Provider of the ccai service |
|
| llm_safety_assessment | LlmSafetyAssessment | Native (regex / substring, no-LLM) safety assessment computed at telemetry
build time over the call's input / output text. Distinct from the offline
LLM-judge safety evaluators in |
|
| llm_retrieval_metadata | LlmRetrievalMetadata | Typed view of the retrieved RAG chunks for this LLM call. Populated
alongside the unstructured |
|
| llm_call_id | string | Id of THIS LLM call. Same identifier the streaming telemetry events carry as
|
Aggregated telemetry across all LLM calls in one DetectIntent turn, or across
a session / agent-domain scope when used as a statistics report payload. The
breakdown fields (6+) are populated only for the matching report type; a
*_LLM_TOTAL_STATISTICS report populates all of them.
| Field | Type | Label | Description |
| llm_token_usage | LlmTokenUsage | Summed LlmTokenUsage across llm_telemetries. |
|
| tool_call_count_total | int32 | Sum of LlmTelemetry.tool_call_count across llm_telemetries. |
|
| llm_call_count | int32 | Denormalized len(llm_telemetries). |
|
| llm_telemetries | LlmTelemetry | repeated | Per-LLM-invocation breakdown. |
| duration_seconds_total | double | Sum of LlmTelemetry.duration_in_s across llm_telemetries. |
|
| models_used | LlmModelUsage | repeated | Per-model usage rollup. Populated for *_LLM_MODELS_USED and *_LLM_TOTAL_STATISTICS. |
| providers_used | LlmProviderUsage | repeated | Per-provider usage rollup. Populated for *_LLM_PROVIDERS_USED and *_LLM_TOTAL_STATISTICS. |
| ccai_services_used | LlmCcaiServiceUsage | repeated | Per-CCAI-service usage rollup. Populated for *_LLM_CCAI_SERVICES_USED and *_LLM_TOTAL_STATISTICS. |
| agents_used | LlmAgentUsage | repeated | Per-intent-agent usage rollup. Populated for *_LLM_AGENTS_USED and *_LLM_TOTAL_STATISTICS. |
| tools_used | LlmToolUsage | repeated | Tool-usage rollup. Populated for *_LLM_TOP_X_TOOLS / *_LLM_LEAST_X_TOOLS and *_LLM_TOTAL_STATISTICS. |
| latency_stats | LlmLatencyStats | Latency aggregate. Populated for *_LLM_LATENCY and *_LLM_TOTAL_STATISTICS. |
|
| cache_stats | LlmCacheStats | Cache efficiency aggregate. Populated for *_LLM_CACHE_EFFICIENCY and *_LLM_TOTAL_STATISTICS. |
|
| error_stats | LlmErrorStats | Error aggregate. Populated for *_LLM_ERRORS and *_LLM_TOTAL_STATISTICS. |
|
| finish_reason_distribution | LlmFinishReasonStat | repeated | Finish-reason distribution. Populated for *_LLM_FINISH_REASONS and *_LLM_TOTAL_STATISTICS. |
| reasoning_effort_distribution | LlmReasoningEffortStat | repeated | Reasoning-effort distribution. Populated for *_LLM_REASONING_EFFORT and *_LLM_TOTAL_STATISTICS. |
| thinking_tokens_total | int64 | Scope-wide summed thinking-block tokens. |
|
| thinking_duration_seconds_total | double | Scope-wide summed thinking-block duration in seconds. |
|
| tool_call_tokens_total | int64 | Scope-wide summed tool-call tokens. |
|
| tool_call_duration_seconds_total | double | Scope-wide summed tool-call duration in seconds. |
|
| safety_stats | LlmSafetyStats | Native safety aggregate (counts / rates / mean score). Populated for *_LLM_SAFETY and *_LLM_TOTAL_STATISTICS reports. |
|
| base_urls_used | LlmBaseUrlUsage | repeated | Per-base-URL usage rollup. Populated for *_LLM_TOTAL_STATISTICS. Unlike
|
Emitted on a streaming DetectIntent for each thinking-delta chunk.
| Field | Type | Label | Description |
| llm_call_id | string | Groups events under an LlmTelemetry entry. |
|
| text_delta | string | Incremental thinking text chunk (subject to redaction policy on the client). |
|
| timestamp | google.protobuf.Timestamp | Wall-clock timestamp of the chunk. |
Thinking / reasoning block emitted by the model (e.g. Anthropic extended thinking,
OpenAI o-series reasoning).
| Field | Type | Label | Description |
| llm_token_usage | LlmTokenUsage | Token attribution for the thinking block when surfaced by the provider. |
|
| start_time | google.protobuf.Timestamp | Wall-clock start of the thinking block. |
|
| end_time | google.protobuf.Timestamp | Wall-clock end of the thinking block. |
|
| duration_in_s | double | Convenience duration (end_time - start_time). |
|
| thinking_text | string | Raw thinking text. Subject to redaction depending on telemetry policy. |
Token usage counters for a single LLM call (or aggregate).
| Field | Type | Label | Description |
| total_tokens | int64 | Sum of input and output tokens for this call (or aggregate across calls). |
|
| input_tokens | int64 | Number of prompt / input tokens consumed. |
|
| output_tokens | int64 | Number of completion / output tokens produced. |
Emitted on a streaming DetectIntent when running token counts update.
| Field | Type | Label | Description |
| llm_call_id | string | Groups events under an LlmTelemetry entry. |
|
| llm_token_usage | LlmTokenUsage | Running totals for that llm_call. |
Emitted on a streaming DetectIntent when a tool call finishes.
| Field | Type | Label | Description |
| tool_call_id | string | Stable id matching the matching LlmToolCallStartedEvent. |
|
| end_time | google.protobuf.Timestamp | Wall-clock end time of the tool call. |
|
| duration_in_s | double | Convenience duration (end_time - start_time). |
|
| llm_token_usage | LlmTokenUsage | Token attribution for this tool call when available. |
|
| result | google.protobuf.Struct | Tool result payload (may be omitted on failure or redaction). |
|
| error_message | string | Populated only when the tool call failed; empty string on success. |
|
| llm_call_id | string | Groups events under an LlmTelemetry entry. |
Metadata for one tool call executed by the LLM.
| Field | Type | Label | Description |
| tool_call_id | string | Stable id assigned by the upstream framework (e.g. langchain). |
|
| tool_name | string | Name of the tool / function invoked. |
|
| start_time | google.protobuf.Timestamp | Wall-clock start time of the tool call. |
|
| end_time | google.protobuf.Timestamp | Wall-clock end time of the tool call. |
|
| duration_in_s | double | Convenience duration (end_time - start_time). |
|
| llm_token_usage | LlmTokenUsage | Token attribution for this tool call when available. |
|
| arguments | google.protobuf.Struct | Tool arguments as a structured payload. May be omitted on incremental events. |
|
| result | google.protobuf.Struct | Tool result as a structured payload. May be omitted on incremental events. |
|
| error_message | string | Populated only when the tool call failed; empty string on success. |
Emitted on a streaming DetectIntent when a tool call starts.
| Field | Type | Label | Description |
| tool_call_id | string | Stable id assigned by the upstream framework (e.g. langchain). |
|
| tool_name | string | Name of the tool / function invoked. |
|
| arguments | google.protobuf.Struct | Tool arguments as a structured payload (Struct kept as-is; not a custom Message). |
|
| start_time | google.protobuf.Timestamp | Wall-clock start time of the tool call. |
|
| llm_call_id | string | Groups events under an LlmTelemetry entry. |
One tool's invocation aggregate across the scope.
| Field | Type | Label | Description |
| tool_name | string | Name of the tool / function. |
|
| call_count | int64 | Number of times the tool was invoked in scope. |
|
| error_count | int64 | Number of failed invocations. |
|
| error_rate | double | error_count / call_count. |
|
| duration_seconds_total | double | Summed tool-call duration in seconds. |
|
| mean_duration_seconds | double | Mean tool-call duration in seconds. |
|
| llm_token_usage | LlmTokenUsage | Summed tool-call token usage (input / output / total). |
|
| arguments | google.protobuf.Struct | Arguments the representative invocation was called with, as a structured payload (Struct kept as-is; not a custom Message). Unset when the source metadata carried none. |
|
| llm_call_id | string | Groups the representative invocation under its |
|
| tool_call_id | string | Stable id of the representative invocation, assigned by the upstream framework (e.g. langchain). |
The request to prepare the intro session of a warm transfer.
| Field | Type | Label | Description |
| intro_session | string | Required. The intro session, which must not exist yet. Format:
|
|
| source_session | string | Required. The caller's session the intro summarises. Format:
|
|
| config | WarmTransferIntroConfig | The configuration of the intro. |
|
| language_code | string | The language of the intro session. |
|
| transfer_request_id | string | Required. The idempotency key of the transfer. |
The response to a PrepareWarmTransferIntroRequest. Never carries the intro text.
| Field | Type | Label | Description |
| text_source_used | WarmTransferIntroTextSource | The source the intro text was rendered from. |
|
| text_fell_back | bool | True when the LLM failed or exceeded its budget and the TEMPLATE was used instead. |
|
| intro_text_chars | int32 | The length of the intro text in characters. |
|
| prompt_digest | string | The SHA-256 (hex) of the resolved prompt, for audit. |
Represents the query input. It can contain either:
1. An audio config which instructs the speech recognizer how to process the speech audio.
2. A conversational query in the form of text,.
3. An event that specifies which intent to trigger.
| Field | Type | Label | Description |
| audio_config | InputAudioConfig | Instructs the speech recognizer how to process the speech audio. |
|
| text | TextInput | The natural language text to be processed. |
|
| event | EventInput | The event to be processed. |
|
| file_resources | FileResource | repeated | Files as input for the detect intent request, e.g., image, document, audio, video etc. |
Represents the parameters of the conversational query.
| Field | Type | Label | Description |
| time_zone | string | Optional. The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used. |
|
| geo_location | google.type.LatLng | Optional. The geo location of this conversational query. |
|
| contexts | Context | repeated | Optional. The collection of contexts to be activated before this query is executed. |
| reset_contexts | bool | Optional. Specifies whether to delete all contexts in the current session before the new ones are activated. |
|
| payload | google.protobuf.Struct | Optional. This field can be used to pass custom data into the webhook
associated with the agent.
Following language=LanguageCode.de.valuekey: timestamp
timestamp=time.time() # float python timestamp in seconds since epochkey: source
source='https://ondewo.com'key: configuration
configuration='config_example_123'key: single_intent_algorithm
single_intent_algorithm='IntentClassifierType.OndewoIntentAgent'=> allowed other values for single_intent_algorithm:
IntentClassifierType.DefaultFallBackAlgorithm IntentClassifierType.DeviationEndingDetection IntentClassifierType.IntentExitDetector IntentClassifierType.OndewoIntentAgent IntentClassifierType.OndewoIntentBertClassifier IntentClassifierType.OndewoIntentExactContextDetector IntentClassifierType.OndewoIntentExactMatch IntentClassifierType.OndewoIntentExitDetector IntentClassifierType.OndewoIntentLogisticRegression IntentClassifierType.OndewoIntentMetaClassifier IntentClassifierType.OndewoIntentNamedExactMatch IntentClassifierType.OndewoIntentNamedSimilarityMatch IntentClassifierType.OndewoIntentParameterMatch IntentClassifierType.OndewoIntentRandomForestClassifier IntentClassifierType.OndewoIntentRankingMatch IntentClassifierType.OndewoIntentSimilarityMatch IntentClassifierType.OndewoIntentSupportVectorClassifier IntentClassifierType.OndewoWeightedEnsemblekey: single_ner_algorithm
single_ner_algorithm='NerMethodType.OndewoNerRegex'
=> allowed other values for |
|
| labels | string | repeated | labels associated to this request |
| platforms | Intent.Message.Platform | repeated | Only messages for the specified Intent.Message.Platform platforms are sent to the user in the
|
| account_id | string | Id of the account, e.g. Company Ondewo |
|
| property_id | string | Id of the property of the account, e.g. Domain ondewo.com This field can also be used for a customized tracking id or tag id |
|
| datastream_id | string | Id of the datastream of the property of the account, e.g. Subdomain sub1.ondewo.com or sub2.ondewo.com This field can also be used for a customized tracking id or tag id |
|
| origin_id | string | Id of the the origin of the user request For a phone bot, this is the phone number +123456789 the user called (Note: This is not the user's phone number) For a chatbot or voicebot on the web, this is the URL on which the bo, e.g. https://ondewo.com/webchat For a voice assistant device, this is the device-id or the app id This field can also be used for a customized tracking id or tag id https://aim-develop.ondewo.com/ |
|
| identified_user_id | string | Id of the "identified user" e.g. for a chatbot the email address or for a phone bot the phone number of the user This field can also be used for a customized tracking id or tag id |
|
| transcriptions | S2tTranscription | repeated | transcriptions of the user input sorted by score |
| preemptive_draft | bool | Optional. Marks the request as a preemptive draft: a turn the client (e.g. ondewo-csi) starts speculatively,
e.g. on a partial transcript, and may later discard with |
Represents the result of conversational query or event processing.
| Field | Type | Label | Description |
| query_text | string | The original conversational query text:
|
|
| speech_recognition_confidence | float | The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. You should not rely on this field as it isn't guaranteed to be accurate, or even set. In particular this field isn't set in Webhook calls and for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult. |
|
| action | string | The action name from the matched intent. |
|
| parameters | google.protobuf.Struct | The collection of extracted parameters. |
|
| all_required_params_present | bool | This field is set to:
|
|
| fulfillment_text | string | The text to be pronounced to the user or shown on the screen. |
|
| fulfillment_messages | Intent.Message | repeated | The collection of rich messages to present to the user. |
| webhook_source | string | If the query was fulfilled by a webhook call, this field is set to the
value of the |
|
| webhook_payload | google.protobuf.Struct | If the query was fulfilled by a webhook call, this field is set to the
value of the |
|
| output_contexts | Context | repeated | The collection of output contexts. If applicable,
|
| intent | Intent | The intent that matched the conversational query. Some, not
all fields are filled in this message, including but not limited to:
|
|
| intent_detection_confidence | float | The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). |
|
| query_text_original | string | The user input gets pre-processed by spelling correction, stop word removal etc. This property holds the string that is passed to the entity recognition and intent detection |
|
| diagnostic_info | google.protobuf.Struct | The free-form diagnostic info. For example, this field could contain webhook call latency. |
|
| language_code | string | The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes. |
|
| file_resources | FileResource | repeated | Generated or attached files, e.g., llm generates a picture or file attachment |
| llm_telemetry_report | LlmTelemetryReport | Aggregated LLM telemetry (tokens, tool calls, thinking) for this turn. |
|
| referenced_chunks | ReferencedChunk | repeated | Source chunks the answer cited via in-text |
Chunk information for a document chunk referenced in a RAG based StreamingDetectIntentResponse
| Field | Type | Label | Description |
| reference_index | int32 | Index by which this chunk is referenced in the response text. For index |
|
| dataset_id | string | ID of the dataset the chunk belongs to. |
|
| document_id | string | ID of the document the chunk belongs to. |
|
| chunk_id | string | ID of the chunk. |
|
| document_name | string | Name of the document the chunk belongs to. |
|
| content | string | Text of the chunk. |
|
| similarity | float | Similarity score of this chunk for response it is retruned with. |
|
| document_url | string | For crawled documents the URL of the source document. For any other document it is left empty. |
|
| deep_link_url | string | For crawled documents link to the source document that directly jumps to the chunk's location on the page using a text fragment anchor (a bit fragile and might not always work). For any other document it is left empty. |
|
| document_title | string | Title of the document (optional). |
Represents a speech-to-text transcription.
| Field | Type | Label | Description |
| name | string | resource name of the transcription |
|
| text | string | The transcribed text content. |
|
| score | float | Optional. A confidence score associated with the transcription. The score indicates the level of confidence in the accuracy of the transcription. It is a floating-point number, typically ranging from 0.0 (low confidence) to 1.0 (high confidence). |
|
| language_code | string | Optional. The detected language of the transcription. The language is represented by a string following language codes (e.g., "en" for English, "es" for Spanish). |
|
| audio_resource_name | string | the resource name of the audio file of the transcription |
|
| pipeline_id | string | Optional. pipeline used for transcription. A pipeline ID. Example: "pipeline_1" |
|
| duration_in_s | float | Optional. Duration in seconds for transcription |
|
| transcription_type | TranscriptionType | Whether a speech-to-text engine or a human has transcribed the audio |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Session of a user interaction
| Field | Type | Label | Description |
| name | string | The unique identifier of the session Format: |
|
| session_steps | SessionStep | repeated | The list of all the steps of the session |
| session_info | SessionInfo | session information |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
A single piece of user feedback about a whole session or a single session step (turn).
The rating is intentionally extensible: rating carries the thumbs signal surfaced in the UI
today, while score and categorical_value allow richer scales (star / NPS / CSAT)
to be added later without a schema change. The feedback is pinned to the exact forensic context it is
about (session_id, session_step_id, response_id,
session_step_llm_telemetry_id) so the full conversation state up to the feedback can be
reconstructed from the already-persisted session step.
| Field | Type | Label | Description |
| name | string | The resource name of the feedback. Format: |
|
| session_id | string | The session this feedback belongs to. Format: |
|
| session_step_id | string | The session step (turn) this feedback targets. Empty for session-level feedback. |
|
| response_id | string | Optional. The specific detect-intent response this feedback pins. |
|
| session_step_llm_telemetry_id | string | Optional. The specific LLM-telemetry sub-event (llm call / tool call) this feedback pins. |
|
| rating | FeedbackRating | The thumbs rating. |
|
| categorical_value | string | Optional. An extensible categorical value (e.g. star bucket, NPS/CSAT bucket). |
|
| score | float | optional | Optional. A numeric score in [0, 1] for future continuous scales.
Explicit presence ( |
| comment | string | Optional. Free-text comment. |
|
| criterion | string | Optional. A dimension the feedback is about (e.g. "helpfulness", "accuracy"). |
|
| author_type | FeedbackAuthorType | Who left the feedback. |
|
| annotator_user_id | string | The authenticated author's user id (Keycloak sub); empty for anonymous end-users. |
|
| origin_id | string | Optional. The channel origin id (webchat / webphone) identifying an anonymous end-user. |
|
| identified_user_id | string | Optional. The identified end-user id, when the channel provides one. |
|
| raw | google.protobuf.Struct | Optional. An extensibility escape hatch for channel-specific metadata. |
|
| created_at | google.protobuf.Timestamp | When the feedback was created. |
|
| modified_at | google.protobuf.Timestamp | When the feedback was last modified. |
|
| created_by | string | Who created the feedback. |
|
| modified_by | string | Who last modified the feedback. |
This message contains a session filter
| Field | Type | Label | Description |
| language_codes | string | repeated | A SessionFilter can be used in some requests to return only sessions matching certain filter conditions. All fields below are optional. Multiple fields specified at the same time are chained via AND. Match only sessions with all of the following language_codes |
| matched_intents | Intent | repeated | Match only sessions during which all of the following intents were detected NOTE: only name and display name fields are used for comparison |
| matched_entity_types | EntityType | repeated | Match only sessions during which all of the following entity types were recognized NOTE: only name and display name fields are used for comparison |
| min_intents_confidence_min | float | Match only sessions where the minimum confidence for intent detection along the session falls in the following range. Defaults to -1 if not set. |
|
| min_intents_confidence_max | float | Match only sessions where the minimum confidence for intent detection along the session falls in the following range. Defaults to +1 if not set. |
|
| min_entity_types_confidence_min | float | Match only sessions where the minimum confidence for entity recognition along the session falls in the following range. Defaults to -1 if not set. |
|
| min_entity_types_confidence_max | float | Match only sessions where the minimum confidence for entity recognition along the session falls in the following range. Defaults to +1 if not set. |
|
| earliest | double | Match only sessions whose time range falls within the following range (in UNIX epochs). Defaults to 0 if not set. |
|
| latest | double | Match only sessions whose time range falls within the following range (in UNIX epochs). Defaults to current epoch if not set |
|
| min_number_turns | int32 | Match only sessions for which the number of turns (interaction steps) falls in the following range Defaults to 0 if not set. |
|
| max_number_turns | int32 | Match only sessions for which the number of turns (interaction steps) falls in the following range Defaults to MAXINT if not set. |
|
| labels | string | repeated | Match only session which have all of the following labels assigned |
| user_ids | string | repeated | Match only session which had all of the following user_ids interacting with them. |
| intent_tags | string | repeated | Match only session which have all of the following intent tags assigned |
| session_ids | string | repeated | Match only sessions whose IDs are specified here |
| input_contexts | Context | repeated | Match only sessions whose session info contains at least one step having all the contexts specified here The input contexts are pre-conditions for detecting intents |
| output_contexts | Context | repeated | The output contexts are the result of the intent matching and track the contextual state of a conversation |
| duration_in_s_min | float | Match only sessions for which the duration in seconds are larger or equal |
|
| duration_in_s_max | float | Match only sessions for which the duration in seconds are smaller or equal |
|
| duration_in_m_min | float | Match only sessions for which the duration in minutes are larger or equal |
|
| duration_in_m_max | float | Match only sessions for which the duration in minutes are smaller or equal |
|
| duration_in_m_rounded_min | float | Match only sessions for which the duration in minutes rounded are larger or equal |
|
| duration_in_m_rounded_max | float | Match only sessions for which the duration in minutes rounded are smaller or equal |
|
| duration_interval_15s_rounded_min | float | Match only sessions for which the duration in 15 seconds rounded are larger or equal |
|
| duration_interval_15s_rounded_max | float | Match only sessions for which the duration in 15 seconds rounded are smaller or equal |
|
| duration_interval_30s_rounded_min | float | Match only sessions for which the duration in 30 seconds rounded are larger or equal |
|
| duration_interval_30s_rounded_max | float | Match only sessions for which the duration in 30 seconds rounded are smaller or equal |
|
| duration_interval_45s_rounded_min | float | Match only sessions for which the duration in 45 seconds rounded are larger or equal |
|
| duration_interval_45s_rounded_max | float | Match only sessions for which the duration in 45 seconds rounded are smaller or equal |
|
| started_time_slot_per_hour_min | string | Match only sessions for which the started_time_slot_per_hour (e.g. 08:00) are larger or equal |
|
| started_time_slot_per_hour_max | string | Match only sessions for which the started_time_slot_per_hour (e.g. 14:00) are smaller or equal |
|
| started_time_slot_per_quarter_hour_min | string | Match only sessions for which the started_time_slot_per_quarter_hour (e.g. 08:00) are larger or equal |
|
| started_time_slot_per_quarter_hour_max | string | Match only sessions for which the started_time_slot_per_quarter_hour (e.g. 14:00) are smaller or equal |
|
| started_time_slot_per_half_hour_min | string | Match only sessions for which the started_time_slot_per_half_hour (e.g. 08:00) are larger or equal |
|
| started_time_slot_per_half_hour_max | string | Match only sessions for which the started_time_slot_per_half_hour (e.g. 14:00) are smaller or equal |
|
| started_time_slot_per_day_phase_min | string | Match only sessions for which the started_time_slot_per_day_phase (e.g. 08:00) are larger or equal |
|
| started_time_slot_per_day_phase_max | string | Match only sessions for which the started_time_slot_per_day_phase (e.g. 14:00) are smaller or equal |
|
| started_time_slot_per_minute_min | string | Match only sessions for which the started_time_slot_per_minute (e.g. 08:00) are larger or equal |
|
| started_time_slot_per_minute_max | string | Match only sessions for which the started_time_slot_per_minute (e.g. 14:00) are smaller or equal |
|
| duration_in_s_rounded_min | float | Match only sessions for which the duration in seconds rounded are larger or equal |
|
| duration_in_s_rounded_max | float | Match only sessions for which the duration in seconds rounded are smaller or equal |
|
| platforms | Intent.Message.Platform | repeated | Messages for each of the Intent.Message.Platform were sent to the user |
| account_ids | string | repeated | Ids of the account, e.g. Company Ondewo, This field can also be used for customized tracking ids or tag ids |
| property_ids | string | repeated | Ids of the property of the account, e.g. Domain ondewo.com This field can also be used for customized tracking ids or tag ids |
| datastream_ids | string | repeated | Ids of the datastream of the property of the account, e.g. Subdomain sub1.ondewo.com or sub2.ondewo.com This field can also be used for customized tracking ids or tag ids |
| origin_ids | string | repeated | Ids of the the origin of the user request For a phone bot, this is the phone number +123456789 the user called (Note: This is not the user's phone number) For a chatbot or voicebot on the web, this is the URL on which the bo, e.g. https://ondewo.com/webchat For a voice assistant device, this is the device-id or the app id |
| identified_user_ids | string | repeated | Ids of the "identified user" e.g. for a chatbot the email address or for a phone bot the phone number of the user |
| duration_interval_60s_rounded_min | float | Match only sessions for which the duration in 60 seconds rounded are larger or equal |
|
| duration_interval_60s_rounded_max | float | Match only sessions for which the duration in 60 seconds rounded are smaller or equal |
This message contains information about session
| Field | Type | Label | Description |
| language_codes | string | repeated | A SessionInfo contains some general information about a session. This information can be returned inside a Session object for consumption by a client. Or it can be used by the backend to check whether the Session matches a given SessionFilter. All fields below are optional. Multiple fields specified at the same time are chained The language codes used in the given session. |
| matched_intents | Intent | repeated | A list of intents which have been matched |
| matched_entity_types | EntityType | repeated | A list of entity types which have been matched |
| min_intents_confidence | float | The minimum confidence for intent recognition along the session |
|
| min_entity_types_confidence | float | The minimum confidence for entity recognition along the session |
|
| earliest | double | The earliest date of the given session (in UNIX epochs), i.e. the time of the first interaction of a user in the given session |
|
| latest | double | The latest date of the given session (in UNIX epochs), i.e. the time of the last interaction of a user in the given session |
|
| number_turns | int32 | The number of turns (interaction steps) in the given session |
|
| labels | string | repeated | The list of labels of the given session |
| user_ids | string | repeated | The user_ids of the users which were interacting within the given session |
| intent_tags | string | repeated | The list of intent tags in the given session |
| input_context_steps | SessionInfo.ContextSteps | repeated | The input contexts that are matched in the given session. The name of the context here is the short name and not the full URL name including the project parent |
| output_context_steps | SessionInfo.ContextSteps | repeated | The output contexts that are matched in the given session. The name of the context here is the short name and not the full URL name including the project parent |
| duration_in_s | float | duration in seconds |
|
| duration_in_m | float | duration in minutes |
|
| duration_in_m_rounded | float | duration in minutes rounded |
|
| duration_interval_15s_rounded | float | duration in 15 seconds intervals rounded |
|
| duration_interval_30s_rounded | float | duration in 30 seconds intervals rounded |
|
| duration_interval_45s_rounded | float | duration in 45 seconds intervals rounded |
|
| started_time_slot_per_hour | string | started_time_slot_per_hour (e.g. 08:00) |
|
| started_time_slot_per_quarter_hour | string | started_time_slot_per_quarter_hour (e.g. 08:00) |
|
| started_time_slot_per_half_hour | string | started_time_slot_per_half_hour (e.g. 08:00) |
|
| started_time_slot_per_day_phase | string | started_time_slot_per_day_phase (e.g. 14:00) |
|
| started_time_slot_per_minute | string | started_time_slot_per_minute (e.g. 14:00) |
|
| duration_in_s_rounded | float | duration in seconds rounded |
|
| platforms | Intent.Message.Platform | repeated | Messages for each of the Intent.Message.Platform were sent to the user |
| account_ids | string | repeated | Ids of the account, e.g. Company Ondewo, This field can also be used for customized tracking ids or tag ids |
| property_ids | string | repeated | Ids of the property of the account, e.g. Domain ondewo.com This field can also be used for customized tracking ids or tag ids |
| datastream_ids | string | repeated | Ids of the datastream of the property of the account, e.g. Subdomain sub1.ondewo.com or sub2.ondewo.com This field can also be used for customized tracking ids or tag ids |
| origin_ids | string | repeated | Ids of the the origin of the user request For a phone bot, this is the phone number +123456789 the user called (Note: This is not the user's phone number) For a chatbot or voicebot on the web, this is the URL on which the bo, e.g. https://ondewo.com/webchat For a voice assistant device, this is the device-id or the app id |
| identified_user_ids | string | repeated | Ids of the "identified user" e.g. for a chatbot the email address or for a phone bot the phone number of the user |
| duration_interval_60s_rounded | float | duration in 60 seconds intervals rounded |
|
| parent_comment | Comment | repeated | comments about a session |
The list of contexts of each step collected in an outer list
| Field | Type | Label | Description |
| contexts | Context | repeated | List of contexts for a session step |
This message contains a session review
| Field | Type | Label | Description |
| name | string | The unique identifier for the given review Format: |
|
| session_review_steps | SessionReviewStep | repeated | The reviews for all steps in the session |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message contains a session review step
| Field | Type | Label | Description |
| name | string | The unique identifier for the given review step Format: |
|
| annotated_usersays | Intent.TrainingPhrase | The user says with markup of the detected entity types after the preprocessing such as spelling correction, stopword removal etc. has been applied. This string represents what has been passed to the entity recognition and intent detection algorithms. |
|
| language_code | string | The language code |
|
| detected_intents | DetectedIntent | repeated | Unique detected intents ordered by descending confidence |
| contexts | Context | repeated | The contexts which were active at the beginning of this step |
| contexts_out | Context | repeated | The output contexts of this step |
| query_text_original | string | User input without any pre-processing applied |
|
| platforms | Intent.Message.Platform | repeated | Messages for each of the Intent.Message.Platform were sent to the user |
| timestamp | google.protobuf.Timestamp | Timestamp of session review step |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| audio_file_resources | AudioFileResource | repeated | audio file resources associated with the session review step |
SessionStep is a single user interaction as part of a session.
| Field | Type | Label | Description |
| name | string | The unique identifier of the session step. Format: |
|
| detect_intent_request | DetectIntentRequest | The detect intent request of the session step |
|
| detect_intent_response | DetectIntentResponse | The detect intent response of the session step |
|
| contexts | Context | repeated | The contexts which were active at the beginning of this step |
| timestamp | google.protobuf.Timestamp | Timestamp of session step |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
|
| audio_file_resources | AudioFileResource | repeated | audio file resources associated with the session step |
| llm_telemetry_report | LlmTelemetryReport | Aggregated LLM telemetry for this step (one entry per LLM invocation, plus turn-level totals). |
The top-level message sent by the client to the StreamingDetectIntent method.
Multiple request messages should be sent in order:
1. The first message must contain session, query_input plus optionally query_params and/or single_utterance. The message must not contain input_audio.
2. If query_input was set to a streaming input audio config, all subsequent messages must contain only input_audio. Otherwise, finish the request stream.
| Field | Type | Label | Description |
| session | string | Required. The name of the session the query is sent to.
Format of the session name:
|
|
| query_params | QueryParameters | Optional. The parameters of this query. |
|
| query_input | QueryInput | Required. The input specification. It can be set to:
|
|
| single_utterance | bool | Optional. If |
|
| input_audio | bytes | Optional. The input audio content to be recognized. Must be sent if
|
|
| turn_control | TurnControl | Optional. Controls a turn of this stream: cancels it, reports what the user heard of its answer, or discards
the session step of a preemptive draft. Sent ALONE (no |
|
| client_turn_id | string | Optional. Client-minted id (e.g. a uuid4 hex) of the turn this request STARTS; set together with
|
The top-level message returned from the StreamingDetectIntent method.
Multiple response messages can be returned in order:
1. If the input was set to streaming audio, the first one or more messages contain recognition_result. Each recognition_result represents a more complete transcript of what the user said. The last recognition_result has is_final set to true.
2. The next message contains response_id, query_result and optionally webhook_status if a WebHook was called.
| Field | Type | Label | Description |
| response_id | string | The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues. |
|
| recognition_result | StreamingRecognitionResult | The result of speech recognition. |
|
| query_result | QueryResult | The result of the conversational query or event processing. |
|
| webhook_status | google.rpc.Status | Specifies the status of the webhook request. |
|
| llm_call_started | LlmCallStartedEvent | Emitted when an LLM call has started. |
|
| llm_call_finished | LlmCallFinishedEvent | Emitted when an LLM call has finished. |
|
| llm_tool_call_started | LlmToolCallStartedEvent | Emitted when an LLM tool call has started. |
|
| llm_tool_call_finished | LlmToolCallFinishedEvent | Emitted when an LLM tool call has finished. |
|
| llm_thinking_delta | LlmThinkingDeltaEvent | Emitted for an incremental LLM thinking (reasoning) update. |
|
| llm_token_usage_update | LlmTokenUsageUpdateEvent | Emitted when the running LLM token-usage totals are updated. |
|
| llm_agent_node_event | LlmAgentNodeEvent | Emitted when a node of an AI Team graph starts, completes or fails. |
|
| turn_control_ack | TurnControlAck | Set on the response that acknowledges a |
|
| client_turn_id | string | Echo of |
Contains a speech recognition result corresponding to a portion of the audio that is currently being processed or an indication that this is the end of the single requested utterance.
Example:
1. transcript: "tube"
2. transcript: "to be a"
3. transcript: "to be"
4. transcript: "to be or not to be"
is_final: true
5. transcript: " that's"
6. transcript: " that is"
7. recognition_event_type: RECOGNITION_EVENT_END_OF_SINGLE_UTTERANCE
8. transcript: " that is the question"
is_final: true
Only two of the responses contain final results (#4 and #8 indicated by is_final: true). Concatenating these generates the full transcript: "to be or not to be that is the question".
In each response we populate:
MESSAGE_TYPE_TRANSCRIPT: transcript and possibly is_final.MESSAGE_TYPE_END_OF_SINGLE_UTTERANCE: only event_type.| Field | Type | Label | Description |
| message_type | StreamingRecognitionResult.MessageType | Type of the result message. |
|
| transcript | string | Transcript text representing the words that the user spoke.
Populated if and only if |
|
| is_final | bool | The default of 0.0 is a sentinel value indicating |
|
| confidence | float | The Speech confidence between 0.0 and 1.0 for the current portion of audio.
A higher number indicates an estimated greater likelihood that the
recognized words are correct. The default of 0.0 is a sentinel value
indicating that confidence was not set.
This field is typically only provided if |
Represents the natural language text to be processed.
| Field | Type | Label | Description |
| text | string | Required. The UTF-8 encoded natural language text to be processed. Text length must not exceed 256 bytes. |
|
| language_code | string | Required. The language of this conversational query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |
Controls one turn of a session. Sent as StreamingDetectIntentRequest.turn_control on a call-length
stream, or in an InterruptTurnRequest.
| Field | Type | Label | Description |
| cancel_turn | CancelTurn | Cancel the turn: stop generating its answer. Acknowledged with a |
|
| heard_report | HeardReport | Report what the user heard of the turn's answer, so the server rewrites the session step and the LLM memory to it. |
|
| discard_draft | DiscardDraft | Discard the session step of a preemptive draft the client did not use. Acknowledged with a
|
Acknowledges a turn control.
| Field | Type | Label | Description |
| response_id | string | The server's |
|
| client_turn_id | string |
|
|
| turn_control_ack_status | TurnControlAckStatus | Outcome of the turn control. |
|
| server_cancel_duration_in_s | float | Time the server took from receiving a |
This message is a request to update a session comment
| Field | Type | Label | Description |
| session_id | string | The id of the session |
|
| comment | Comment | The comment of a session to be updated |
Request to update (revise) an existing feedback.
| Field | Type | Label | Description |
| feedback | SessionFeedback | The feedback to update; feedback.name identifies the record. |
|
| update_mask | google.protobuf.FieldMask | Optional. The fields of the feedback to update. |
UpdateSessionStepRequest stores a session step into the session
| Field | Type | Label | Description |
| session_step | SessionStep | The session step to be updated |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be updated. Example: path=["session_step.detect_intent_response.query_result.fulfillment_messages"] |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields will be filled with data. Example: path=["session_step.detect_intent_response.query_result.fulfillment_messages"] |
Represents a video file resource (e.g., MP4, AVI).
| Field | Type | Label | Description |
| name | string | The unique identifier for the video file resource. Format: |
|
| display_name | string | The display name of the video file, which can be a user-assigned label. |
|
| bytes | bytes | The raw bytes representing the video file (e.g., MP4, AVI). |
|
| duration_in_s | float | The duration of the video file in seconds. |
|
| resolution | string | The resolution of the video (e.g., "1920x1080" for Full HD). |
|
| frame_rate | float | The frame rate of the video (e.g., 30 fps). |
|
| created_at | google.protobuf.Timestamp | Creation date and time of the video file. This is a read-only field. |
|
| modified_at | google.protobuf.Timestamp | The last modification date and time of the video file. This is a read-only field. |
|
| created_by | string | The UUID of the user who created the video file. |
|
| modified_by | string | The UUID of the user who last modified the video file. |
The configuration of one warm transfer intro, as resolved by the caller of
PrepareWarmTransferIntro. A text left empty (or unset, for an optional field) falls back
to the agent's default text for the language (Agent.warm_transfer_settings), then to the built-in
default. Texts are spoken to the target, never to the caller, except caller_declined_message and
caller_unreachable_message.
| Field | Type | Label | Description |
| intro_prompt | string | The LLM instruction ( |
|
| text_source | WarmTransferIntroTextSource | Where the intro text comes from. |
|
| ready_question | string | The first question to the target, which must not reveal anything about the caller, e.g. "Hier ist der
digitale Assistent von {project}. Ich habe einen Anruf für Sie. Sind Sie am Apparat? Sagen Sie ja oder
drücken Sie 1." Placeholder |
|
| confirm_human_before_intro | bool | optional | Whether the intro is spoken only after the target answered |
| accept_question | string | The question after the intro, e.g. "Möchten Sie das Gespräch übernehmen? Ja oder 1, nein oder 2." |
|
| decline_reason_question | string | optional | The question after a decline, e.g. "Was darf ich dem Anrufer ausrichten?". Unset = the agent's or the built-in default; set to "" = the reason is not asked for. |
| caller_declined_message | string | The template of the message the caller hears after a decline. Placeholders |
|
| caller_unreachable_message | string | The template of the message the caller hears when the target was busy, did not answer, gave no decision or
the intro could not run. Placeholder |
|
| accept_dtmf | string | The DTMF key that accepts: one of |
|
| decline_dtmf | string | The DTMF key that declines: one of |
|
| callee_display_name | string | Who the target is, e.g. "Frau Berger, Buchhaltung": |
|
| callee_description | string | The role and context of the target, given to the LLM intro. At most 512 characters. |
|
| llm_ccai_service_name | string | The |
|
| max_history_steps | int32 | How many of the latest steps of the source session the intro reads. 0 = 30. |
|
| decision_timeout_s | int32 | Seconds from a question to the decision, declared to the client as the expected input's timeout. |
|
| project_display_name | string | The project's display name: |
The outcome of a warm transfer intro. Holds no intro text and no reason text.
| Field | Type | Label | Description |
| decision | WarmTransferIntroDecision | The decision of the target. |
|
| decided_by | WarmTransferIntroDecidedBy | How the decision was given. |
|
| decline_reason_present | bool | True when the target gave a reason after declining. |
|
| stage | WarmTransferIntroStage | The stage of the intro session. |
|
| cause | string | A bounded token naming why there is no decision, e.g. |
Audio encoding of the audio content sent in the conversational query request.
Refer to the Cloud Speech API documentation for more details.
| Name | Number | Description |
| AUDIO_ENCODING_UNSPECIFIED | 0 | Not specified. |
| AUDIO_ENCODING_LINEAR_16 | 1 | Uncompressed 16-bit signed little-endian samples (Linear PCM). |
| AUDIO_ENCODING_FLAC | 2 | FLAC (Free Lossless Audio
Codec) is the recommended encoding because it is lossless (therefore
recognition is not compromised) and requires only about half the
bandwidth of |
| AUDIO_ENCODING_MULAW | 3 | 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
| AUDIO_ENCODING_AMR | 4 | Adaptive Multi-Rate Narrowband codec. |
| AUDIO_ENCODING_AMR_WB | 5 | Adaptive Multi-Rate wideband codec. |
| AUDIO_ENCODING_OGG_OPUS | 6 | Opus encoded audio frames in Ogg container
(OggOpus).
|
| AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE | 7 | Although the use of lossy encodings is not recommended, if a very low
bitrate encoding is required, |
File type of an audio resource
| Name | Number | Description |
| AUDIO_FILE_RESOURCE_TYPE_UNSPECIFIED | 0 | Unspecified audio file type |
| AUDIO_FILE_RESOURCE_TYPE_T2S | 1 | Audio file from text to speech |
| AUDIO_FILE_RESOURCE_TYPE_S2T | 2 | Audio file from speech to text |
| AUDIO_FILE_RESOURCE_TYPE_S2T_AND_T2S | 3 | Audio file from speech to text and text to speech |
What happens to background work (e.g. an asynchronous tool) the cancelled turn started.
| Name | Number | Description |
| BACKGROUND_WORK_POLICY_KEEP | 0 | Keep it running; its result is delivered later as usual. |
| BACKGROUND_WORK_POLICY_CANCEL_PENDING | 1 | Cancel work that is still pending, unless the user already heard it acknowledged. |
Type of operator to compare
| Name | Number | Description |
| EQUAL | 0 | equal operator |
| GREATER | 1 | greater operator, e.g. for numbers, dates, and strings |
| GREATER_OR_EQUAL | 2 | greater or equal operator, e.g. for numbers, dates, and strings |
| LESS_OR_EQUAL | 3 | less or equal operator, e.g. for numbers, dates, and strings |
| CONTAINS | 4 | contains operator, e.g. part of string, or one of the elements in an iterable such as set or list |
| STARTS_WITH | 5 | starts with operator for string comparison only |
| ENDS_WITH | 6 | ends with operator for string comparison only |
Who left a piece of feedback — distinguishes trusted reviewers from anonymous production end-users.
| Name | Number | Description |
| FEEDBACK_AUTHOR_TYPE_UNSPECIFIED | 0 | Unknown author type. |
| FEEDBACK_AUTHOR_TYPE_HUMAN_REVIEWER | 1 | A logged-in human reviewer / test user (an authenticated Keycloak identity; annotator_user_id is set). |
| FEEDBACK_AUTHOR_TYPE_TECHNICAL_USER | 2 | A technical / service user. |
| FEEDBACK_AUTHOR_TYPE_END_USER_ANONYMOUS | 3 | An anonymous production end-user of the webchat / webphone channel (no authenticated identity; identified only by the session and channel origin). |
The thumbs rating a user gives as feedback.
| Name | Number | Description |
| FEEDBACK_RATING_UNSPECIFIED | 0 | No rating provided (e.g. a comment-only feedback). |
| FEEDBACK_RATING_THUMBS_UP | 1 | Positive feedback (thumbs up). |
| FEEDBACK_RATING_THUMBS_DOWN | 2 | Negative feedback (thumbs down). |
The scope a feedback filter targets: session-level, step-level, or both.
| Name | Number | Description |
| FEEDBACK_SCOPE_UNSPECIFIED | 0 | Both session-level and step-level feedback. |
| FEEDBACK_SCOPE_SESSION_LEVEL | 1 | Only session-level feedback (session_step_id empty). |
| FEEDBACK_SCOPE_STEP_LEVEL | 2 | Only session-step-level feedback (session_step_id set). |
The calendar granularity of a feedback time series. When set (non-unspecified) it overrides the
fixed-width bucket_width_seconds on the request.
| Name | Number | Description |
| FEEDBACK_TIME_GRANULARITY_UNSPECIFIED | 0 | Unspecified — use the request's fixed-width bucket_width_seconds instead. |
| FEEDBACK_TIME_GRANULARITY_HOUR | 1 | Hourly calendar buckets. |
| FEEDBACK_TIME_GRANULARITY_DAY | 2 | Daily calendar buckets. |
| FEEDBACK_TIME_GRANULARITY_WEEK | 3 | Weekly calendar buckets (ISO weeks, Monday start). |
| FEEDBACK_TIME_GRANULARITY_MONTH | 4 | Monthly calendar buckets. |
| FEEDBACK_TIME_GRANULARITY_YEAR | 5 | Yearly calendar buckets. |
How the heard text of a HeardReport was determined.
| Name | Number | Description |
| HEARD_TEXT_PRECISION_UNSPECIFIED | 0 | Not set. |
| HEARD_TEXT_PRECISION_NONE_HEARD | 1 | Nothing of the answer was heard. |
| HEARD_TEXT_PRECISION_FULL | 2 | The whole answer was heard. |
| HEARD_TEXT_PRECISION_ESTIMATED_SERVER | 3 | The played share of the audio was estimated by the client from when it handed the audio to the player, not measured by the player, and mapped proportionally onto the text. |
| HEARD_TEXT_PRECISION_PROPORTIONAL | 4 | The played share of the audio was measured by the audio player and mapped proportionally onto the text. |
Lifecycle phase of an AI Team graph node, reported by LlmAgentNodeEvent.
| Name | Number | Description |
| LLM_AGENT_NODE_PHASE_UNSPECIFIED | 0 | Not set. |
| LLM_AGENT_NODE_PHASE_STARTED | 1 | The node started running. |
| LLM_AGENT_NODE_PHASE_COMPLETED | 2 | The node finished without an error. |
| LLM_AGENT_NODE_PHASE_FAILED | 3 | The node raised an error. |
Where a safety finding was located in the LLM call.
| Name | Number | Description |
| LLM_SAFETY_LOCATION_UNSPECIFIED | 0 | Default / unset. |
| LLM_SAFETY_LOCATION_INPUT | 1 | The finding was matched in the model input (prompt / user turn). |
| LLM_SAFETY_LOCATION_OUTPUT | 2 | The finding was matched in the model output (completion). |
Effort level for reasoning models (e.g. o1, o3). Controls the trade-off
between speed and quality.
| Name | Number | Description |
| REASONING_EFFORT_UNSPECIFIED | 0 | Unspecified reasoning effort. |
| REASONING_EFFORT_MINIMAL | 1 | Minimal reasoning effort. |
| REASONING_EFFORT_LOW | 2 | Low reasoning effort. |
| REASONING_EFFORT_MEDIUM | 3 | Medium reasoning effort. |
| REASONING_EFFORT_HIGH | 4 | High reasoning effort. |
Represents the options for views of resources.
| Name | Number | Description |
| RESOURCE_VIEW_UNSPECIFIED | 0 | Resource view not specified |
| RESOURCE_VIEW_FULL | 1 | All fields are populated including bytes e.g., for audio files |
| RESOURCE_VIEW_PARTIAL | 2 | Fields include metadata but no bytes |
| RESOURCE_VIEW_MINIMUM | 3 | Minimum view only without bytes and metadata |
Represents the options for views of a session.
A session can be a sizable object. Therefore, we provide a resource view that does not return all data
| Name | Number | Description |
| VIEW_UNSPECIFIED | 0 | Endpoints decide whether to return the full or the sparse view |
| VIEW_FULL | 1 | All fields are populated. |
| VIEW_SPARSE | 2 | Only some fields are populated in the response. |
Represents the options for views of a session_review.
A session_review can be a sizable object. Therefore, we provide a resource view that does not return all data
| Name | Number | Description |
| VIEW_UNSPECIFIED | 0 | Endpoints decide whether to return the full or the sparse view |
| VIEW_FULL | 1 | All fields are populated. |
| VIEW_SPARSE | 2 | Only some fields are populated in the response. |
Type of the response message.
| Name | Number | Description |
| MESSAGE_TYPE_UNSPECIFIED | 0 | Not specified. Should never be used. |
| TRANSCRIPT | 1 | Message contains a (possibly partial) transcript. |
| END_OF_SINGLE_UTTERANCE | 2 | Event indicates that the server has detected the end of the user's speech
utterance and expects no additional speech. Therefore, the server will
not process additional audio (although it may subsequently return
additional results). The client should stop sending additional audio
data, half-close the gRPC connection, and wait for any additional results
until the server closes the gRPC connection. This message is only sent if
|
Identifies whether a transcription was produced by an automatic
speech-to-text system or by a human annotator.
| Name | Number | Description |
| TRANSCRIPTION_TYPE_UNSPECIFIED | 0 | Sentinel value when the source of the transcription was not specified. |
| TRANSCRIPTION_TYPE_S2T | 1 | Automatic transcription produced by a speech-to-text system. |
| TRANSCRIPTION_TYPE_HUMAN | 2 | Manual transcription produced by a human annotator. |
Outcome of a turn control.
| Name | Number | Description |
| TURN_CONTROL_ACK_STATUS_UNSPECIFIED | 0 | Not set. |
| TURN_CONTROL_ACK_STATUS_CANCELLED | 1 | The turn was being generated and is now cancelled. |
| TURN_CONTROL_ACK_STATUS_CANCELLED_QUEUED | 2 | The turn had not started yet; it is cancelled and will not run. |
| TURN_CONTROL_ACK_STATUS_ALREADY_FINISHED | 3 | The turn had already finished generating; nothing was cancelled. |
| TURN_CONTROL_ACK_STATUS_UNKNOWN_TURN | 4 | No turn of this session matches the given ids. For a |
| TURN_CONTROL_ACK_STATUS_HEARD_APPLIED | 5 | The heard report was applied to the turn's session step. |
| TURN_CONTROL_ACK_STATUS_HEARD_STALE | 6 | The heard report was ignored because a report with the same or a higher revision was already applied. |
| TURN_CONTROL_ACK_STATUS_DRAFT_DISCARDED | 7 | The draft's session step, whose request carried |
Why a turn was interrupted.
| Name | Number | Description |
| TURN_INTERRUPTION_REASON_UNSPECIFIED | 0 | Not set. |
| TURN_INTERRUPTION_REASON_BARGE_IN | 1 | The user spoke over the answer and the interruption was confirmed as real. |
| TURN_INTERRUPTION_REASON_CALLER_SPOKE_WHILE_THINKING | 2 | The user spoke again while the turn was still being generated, before any of its answer was played. |
| TURN_INTERRUPTION_REASON_CALL_ENDED | 3 | The call ended while the turn was being generated or played. |
| TURN_INTERRUPTION_REASON_FILLER_CUT | 4 | A filler of the turn was cut. |
| TURN_INTERRUPTION_REASON_NO_FINAL_TIMEOUT | 5 | The user started speaking but no final transcript arrived in time, and the held answer was discarded. |
| TURN_INTERRUPTION_REASON_OPERATOR_TAKEOVER | 6 | A human operator took the call over. |
| TURN_INTERRUPTION_REASON_BOT_MUTED | 7 | A human operator muted the bot. |
How the target of a warm transfer intro gave the decision.
| Name | Number | Description |
| WARM_TRANSFER_INTRO_DECIDED_BY_UNSPECIFIED | 0 | Not set, or not decided yet. |
| WARM_TRANSFER_INTRO_DECIDED_BY_DTMF | 1 | By a DTMF key. |
| WARM_TRANSFER_INTRO_DECIDED_BY_SPEECH | 2 | By speech. |
| WARM_TRANSFER_INTRO_DECIDED_BY_TIMEOUT | 3 | By the decision timeout. |
The decision of the target of a warm transfer intro.
| Name | Number | Description |
| WARM_TRANSFER_INTRO_DECISION_UNSPECIFIED | 0 | Not set. |
| WARM_TRANSFER_INTRO_DECISION_PENDING | 1 | The intro is still running. |
| WARM_TRANSFER_INTRO_DECISION_ACCEPTED | 2 | The target accepted the call. |
| WARM_TRANSFER_INTRO_DECISION_DECLINED | 3 | The target declined the call. |
| WARM_TRANSFER_INTRO_DECISION_NO_DECISION | 4 | The target gave no decision: no ready answer, an unclear answer twice, or a timeout. |
The stage of a warm transfer intro session.
| Name | Number | Description |
| WARM_TRANSFER_INTRO_STAGE_UNSPECIFIED | 0 | Not set. |
| WARM_TRANSFER_INTRO_STAGE_PREPARED | 1 | Prepared; nothing spoken yet. |
| WARM_TRANSFER_INTRO_STAGE_READY_ASKED | 2 |
|
| WARM_TRANSFER_INTRO_STAGE_INTRO_SPOKEN | 3 | The intro and |
| WARM_TRANSFER_INTRO_STAGE_REASON_ASKED | 4 |
|
| WARM_TRANSFER_INTRO_STAGE_CLOSED | 5 | The final answer, which ends the target's call, was generated. |
Where the intro text of a warm transfer comes from.
| Name | Number | Description |
| WARM_TRANSFER_INTRO_TEXT_SOURCE_UNSPECIFIED | 0 | Not set: |
| WARM_TRANSFER_INTRO_TEXT_SOURCE_TEMPLATE | 1 |
|
| WARM_TRANSFER_INTRO_TEXT_SOURCE_LLM_SUMMARY | 2 | An LLM summarises the source session for the target; |
gRPC service for managing users and server roles.
rpc CreateUser (CreateUserRequest) returns (User)Creates a user.
rpc GetUser (GetUserRequest) returns (User)Retrieves a user by identifier.
rpc GetUserInfo (GetUserRequest) returns (UserInfo)Retrieves user information by identifier.
rpc DeleteUser (GetUserRequest) returns (.google.protobuf.Empty)Deletes a user by identifier.
rpc UpdateUser (UpdateUserRequest) returns (User)Updates a user.
rpc ListUsers (ListUsersRequest) returns (ListUsersResponse)Lists users.
rpc ListUserInfos (ListUsersRequest) returns (ListUserInfosResponse)Lists user information.
rpc CreateServerRole (CreateServerRoleRequest) returns (ServerRole)Creates a server role.
rpc GetServerRole (GetServerRoleRequest) returns (ServerRole)Retrieves a server role by ID.
rpc DeleteServerRole (DeleteServerRoleRequest) returns (.google.protobuf.Empty)Deletes a server role by ID.
rpc UpdateServerRole (UpdateServerRoleRequest) returns (ServerRole)Updates a server role.
rpc ListServerRoles (ListServerRolesRequest) returns (ListServerRolesResponse)Lists server roles.
rpc ListServerPermissions (ListServerPermissionsRequest) returns (ListServerPermissionsResponse)Lists server permissions.
rpc CheckLogin (.google.protobuf.Empty) returns (.google.protobuf.Empty)Checks login.
rpc ListNotifications (ListNotificationsRequest) returns (ListNotificationsResponse)Lists notifications based on specified filters.
rpc SetNotificationsFlaggedStatus (SetNotificationsFlaggedStatusRequest) returns (ListNotificationsResponse)Sets the flagged status for multiple notifications.
rpc SetNotificationsReadStatus (SetNotificationsReadStatusRequest) returns (ListNotificationsResponse)Sets the read status for multiple notifications.
rpc AddNotifications (AddNotificationsRequest) returns (AddNotificationsResponse)Adds one or more notifications.
rpc GetNotification (GetNotificationRequest) returns (Notification)Retrieves a single notification by its resource name.
rpc UpdateNotification (UpdateNotificationRequest) returns (Notification)Updates a single notification, applying only the fields named in the update mask.
rpc DeleteNotifications (DeleteNotificationsRequest) returns (.google.protobuf.Empty)Deletes one or more notifications by their resource names.
rpc StreamNotifications (StreamNotificationsRequest) returns (stream Notification)Streams notifications for the authenticated caller in real time: each newly-added notification that matches the request filter is pushed to the client as it is created (backed server-side by a Postgres LISTEN/NOTIFY channel). The stream stays open until the client disconnects. When
include_existing is set the currently-stored matching notifications are replayed first
(newest last) before switching to the live tail.
rpc GetUserPreferences (GetUserPreferencesRequest) returns (GetUserPreferencesResponse)Retrieves user preferences based on the provided request.
rpc SetUserPreferences (SetUserPreferencesRequest) returns (SetUserPreferencesResponse)Sets or updates user preferences based on the provided request.
rpc DeleteUserPreferences (DeleteUserPreferencesRequest) returns (DeleteUserPreferencesResponse)Deletes specific user preferences based on the provided request.
rpc DeleteAllUserPreferences (DeleteAllUserPreferencesRequest) returns (DeleteUserPreferencesResponse)Deletes all user preferences for a specific user, optionally filtered by a substring.
| Method Name | Method | Pattern | Body |
| CreateUser | POST | /v2/users | * |
| GetUser | GET | /v2/users/{user_identifier=*} | |
| GetUserInfo | GET | /v2/user_infos/{user_identifier=*} | |
| DeleteUser | DELETE | /v2/users/{user_identifier=*} | |
| UpdateUser | PATCH | /v2/users | * |
| ListUsers | GET | /v2/users | |
| ListUserInfos | GET | /v2/users_infos | |
| CreateServerRole | POST | /v2/server_roles | * |
| GetServerRole | GET | /v2/server_roles/{role_id=*} | |
| DeleteServerRole | DELETE | /v2/server_roles/{role_id=*} | |
| UpdateServerRole | PATCH | /v2/server_roles | * |
| ListServerRoles | GET | /v2/server_roles | |
| ListServerPermissions | GET | /v2/server_permissions | |
| CheckLogin | DELETE | /v2/check_login |
Request to create server role
| Field | Type | Label | Description |
| role | ServerRole | If the role_id is not provided, an incremental value will be assigned The "name" and "role_type" are mandatory values The permissions all default to False if not provided specifically |
Request to create user
| Field | Type | Label | Description |
| user | User | user_id in the User message should be given, if empty will throw an error in the backend |
|
| password | string | password |
Request to delete all user preferences with an optional filter substring.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| regex_filter | string | Optional: Only delete keys that match the provided regular expression.
If user does not add regex_filter, then all user preferences will be deleted
Example:
Only delete keys starting with DE: |
Request to delete server role
| Field | Type | Label | Description |
| role_id | uint32 | role is identified by role id, if empty will throw an error in the backend |
Request to delete specific user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| keys | string | repeated | List of keys to delete from user preferences. |
| regex_include | string | Optional: In addition to the keys specified also include all |
Response to delete specific user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| keys | string | repeated | List of keys to delete from user preferences. |
| error_message | string | error message if there are any. |
Request to delete user
| Field | Type | Label | Description |
| user_id | string | user is identified by user id, if empty will throw an error in the backend |
Request to get server role
| Field | Type | Label | Description |
| role_id | uint32 | role is identified by role id |
|
| role_name | string | role can also be uniquely identified by its name |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Request to get user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| keys | string | repeated | Specific keys to retrieve from user preferences. If keys are specified multiple times then only one KeyValue pair is returned |
| regex_include | string | Optional: In addition to the keys specified also include all |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| key_value_pairs | KeyValuePair | repeated | List of key-value pairs representing user preferences. |
| error_message | string | error message if there are any. |
Request to get user
| Field | Type | Label | Description |
| user_id | string | the user is identified by user id |
|
| user_email | string | the user can identified by their email |
|
| field_mask | google.protobuf.FieldMask | Optional field mask to specify which fields to return in the response |
Server permissions
| Field | Type | Label | Description |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing list of server permissions
| Field | Type | Label | Description |
| permissions | string | repeated | The list of server permissions. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request to list server roles
| Field | Type | Label | Description |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing list of server roles
| Field | Type | Label | Description |
| server_roles | ServerRole | repeated | The list of server roles. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Response containing list of users
| Field | Type | Label | Description |
| users | UserInfo | repeated | The list of server roles. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Request to list all user preferences for a specific user.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| regex_filter | string | Optional: Only list keys that match the provided regular expression |
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing a list of user preferences for a specific user with an optional filter substring.
| Field | Type | Label | Description |
| user_name | string | The name of the user. |
|
| key_value_pairs | KeyValuePair | repeated | List of key-value pairs representing user preferences. |
| error_message | string | error message if there are any. |
Request to list user
| Field | Type | Label | Description |
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
|
| field_mask | google.protobuf.FieldMask | Optional. The mask to control which fields gets returned. |
Response containing list of users
| Field | Type | Label | Description |
| users | User | repeated | The list of users. There will be a maximum number of items returned based on the page_token field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Server Role messages
| Field | Type | Label | Description |
| role_id | uint32 | unique identifier of the role |
|
| name | string | unique name of the role |
|
| permissions | string | repeated | defines the permissions for the given role (the strings can be gotten from the ListServerPermissions) |
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
Request to set or update user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| key_value_pairs | KeyValuePair | repeated | List of key-value pairs to set or update. |
Response to set or update user preferences.
| Field | Type | Label | Description |
| user_name | string | The name of the user. Format: |
|
| keys | string | repeated | List of keys to delete from user preferences. |
| error_message | string | error message if there are any. |
Request to update server role
| Field | Type | Label | Description |
| role | ServerRole | role_id in the Role message should be given, if empty will throw an error in the backend other fields in the Role are optional. Only the fields to be updated should be provided |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
Request to update user
| Field | Type | Label | Description |
| user | User | user_id in the User message should be given, if empty will throw an error in the backend password and other fields in the User are optional. Only the fields to be updated should be provided |
|
| password | string | Password of the user |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
this message contains all the fields that required for user db
| Field | Type | Label | Description |
| user_id | string | when creating user user_id is empty, then it will be generated on creation time on backend |
|
| display_name | string | Optional field display_name is the name that will be used on the frontend to interact with the user it shouldn't be unique. If not provided user_name will also be used as display name |
|
| server_role_id | uint32 | server role type of the given user. If nothing is provided, the user is set to USER (minimum access) |
|
| user_email | string | user e-mail should be a valid e-mail and unique |
|
| user_profile_picture | bytes | user profile picture |
|
| created_at | google.protobuf.Timestamp | Creation date and time. Read-only field. |
|
| modified_at | google.protobuf.Timestamp | Modification date and time. Read-only field. |
|
| created_by | string | User id in form of a valid UUID. |
|
| modified_by | string | User id in form of a valid UUID. |
This message contains information about user
| Field | Type | Label | Description |
| user | User | user object |
|
| project_roles | UserInfo.ProjectRolesEntry | repeated | If in GetUser, ListUser requests UserView is FULL, then the mapping is additionally provided of parent of the project and corresponding ProjectRole of the user |
| Field | Type | Label | Description |
| key | string |
|
|
| value | ProjectRole |
|
Structure of server role
| Name | Number | Description |
| SERVER_UNSPECIFIED | 0 | unspecified server role |
| SERVER_USER | 1 | read-only access |
| SERVER_MANAGER | 2 | SERVER_USER's permissions + CRUD of projects and Users |
| SERVER_ADMIN | 3 | this role can do everything |
| SERVER_INACTIVE | 4 | this role can do nothing. Used to set a user as inactive in the server. |
This is collection of utility endpoints, intended to language-independent operations, such as code checks, regex checks, etc. Holds a collection of utility functions
rpc ValidateRegex (ValidateRegexRequest) returns (ValidateRegexResponse)Validates the validity of python regexes
rpc ValidateEmbeddedRegex (ValidateEmbeddedRegexRequest) returns (ValidateEmbeddedRegexResponse)Validate that entity types with group references have synonyms with capturing groups.
rpc CleanAllIntents (CleanAllIntentsRequest) returns (CleanAllIntentsResponse)Cleans all intent training phrases and entity annotations of parent
rpc CleanIntent (CleanIntentRequest) returns (CleanIntentResponse)Cleans single intent training phrases and entity annotations
rpc CleanAllEntityTypes (CleanAllEntityTypesRequest) returns (CleanAllEntityTypesResponse)Cleans all entity types of parent
rpc CleanEntityType (CleanEntityTypeRequest) returns (CleanEntityTypeResponse)Cleans entity type
rpc AddTrainingPhrases (AddTrainingPhrasesRequest) returns (AddTrainingPhrasesResponse)Creates new training phrases corresponding to intent specified by its intent display name
rpc AddTrainingPhrasesFromCSV (AddTrainingPhrasesFromCSVRequest) returns (AddTrainingPhrasesResponse)Creates new training phrases corresponding to intent specified by its intent display name from csv file
Request message to AddTrainingPhraseFromCSV rpc
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Required. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| csv_contents | bytes | Required. Contents of the .csv file containing training phrases to be added to the intents |
|
| extract_entities | bool | Optional. Whether or not to extract entities for the new training phrases |
|
| special_characters | string | Optional. Before new training phrases are added to their corresponding intent,
they are cleaned with cleaning scripts. These cleaning scripts remove certain special characters,
if they are found at the beginning of the text or if they appear in annotations.
Overrides the default: |
|
| training_phrase_cleaner_options | TrainingPhraseCleanerOptions | Optional. Options for the training phrase cleaner to override the default settings |
|
| number_of_workers | int32 | Optional. Number of threads used to accomplish the task |
Request message to AddTrainingPhrase rpc
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Required. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| training_phrase_list | AddTrainingPhrasesRequest.TrainingPhraseForIntent | repeated | Required. List of training phrases to be added to the intent |
| extract_entities | bool | Optional. Whether or not to extract entities for the new training phrases |
|
| special_characters | string | Optional. Characters to be recognized as special characters for cleaning
the training phrases. Overrides the default: |
|
| training_phrase_cleaner_options | TrainingPhraseCleanerOptions | Optional. Options for the training phrase cleaner to override the default settings |
|
| number_of_workers | int32 | Optional. Number of threads used to accomplish the task |
Message that contains the new training phrase, together with the intent display name and, optionally the entity annotations
| Field | Type | Label | Description |
| training_phrase | string | Required. New training phrase to be added |
|
| intent_display_name | string | Required. Corresponding display name of the intent |
|
| entities | Intent.TrainingPhrase.Entity | repeated | Optional. Entity annotations |
Response message to AddTrainingPhrase rpc
| Field | Type | Label | Description |
| error_messages | string | repeated | Required. If something goes wrong, error messages will be conveyed via a repeated string |
Request to clean the entity types
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| special_characters | string | Optional. Characters to be recognized as special characters for cleaning.
Overrides the default: |
|
| substring_white_list | string | repeated | Optional. List of substring that shall not be cleaned/deleted.
Example: |
| max_entity_count_update | int32 | Optional. Entity type that contain more than max_entity_count_update entities will not be cleaned. Relevant for auto-generated entity values (e.g. City Names) Default = 10000 |
|
| forbidden_entity_type_patterns | string | repeated | Optional. List of strings or regexes. Entity types will be deleted if their display
name matches an element of this list
Example: |
| dry_run | bool | Required. Do not apply changes to the database if set to True |
|
| number_of_workers | int32 | Optional. Number of threads used to accomplish the task |
Response from entity type cleaner
| Field | Type | Label | Description |
| cleaned_entity_types | EntityType | repeated | Required. List of updated entity types |
| deleted_entity_types | EntityType | repeated | Optional. List of updated entity types |
| entity_type_updates | EntityTypeUpdate | repeated | Optional. List of updates performed on entity types |
| entity_type_deletions | EntityTypeUpdate | repeated | Optional. List of the deleted entity types |
The request to clean the all intents.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| special_characters | string | Optional. Characters to be recognized as special characters for cleaning.
Overrides the default: |
|
| substring_white_list | string | repeated | Optional. List of substring that shall not be cleaned/deleted.
Example: |
| dry_run | bool | Required. Do not apply changes to the database if set to True |
|
| training_phrase_cleaner_options | TrainingPhraseCleanerOptions | Optional. Options for the cleaning of the training phrases. |
|
| reannotate_entities_options | ReannotateEntitiesOptions | Optional. Options for re-annotation of entities (default = REANNOTATE_NEVER) |
|
| number_of_workers | int32 | Optional. Number of threads used to accomplish the task |
Response corresponding to the CleanAllIntents Request
| Field | Type | Label | Description |
| cleaned_intents | Intent | repeated | Required. List of updates performed on intents |
| intent_update_list | IntentUpdate | repeated | Optional. List of updates applied to intents |
Request to clean a single entity type
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| entity_type_name | string | Required. The name of the entity_type |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| special_characters | string | Optional. Characters to be recognized as special characters for cleaning.
Overrides the default: |
|
| substring_white_list | string | repeated | Optional. List of substring that shall not be cleaned/deleted.
Example: |
| max_entity_count_update | int32 | Optional. Entity type that contain more than max_entity_count_update entities will not be cleaned. Relevant for auto-generated entity values (e.g. City Names) Default = 10000 |
|
| dry_run | bool | Required. Do not apply changes to the database if set to True |
Response from entity type cleaner
| Field | Type | Label | Description |
| cleaned_entity_type | EntityType | Required. The cleaned entity type |
|
| entity_type_update | EntityTypeUpdate | Optional. The updated entity type |
The request message to clean a single intents.
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| intent_name | string | Required. The name of the intent. Format: |
|
| language_code | string | Optional. The language to list training phrases, parameters and rich messages for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. |
|
| special_characters | string | Optional. Characters to be recognized as special characters for cleaning.
Overrides the default: |
|
| substring_white_list | string | repeated | Optional. List of substring that shall not be cleaned/deleted.
Example: |
| dry_run | bool | Required. Do not apply changes to the database if set to True |
|
| training_phrase_cleaner_options | TrainingPhraseCleanerOptions | Optional. Options for the cleaning of the training phrases. |
|
| reannotate_entities_options | ReannotateEntitiesOptions | Optional. Options for re-annotation of entities (default = REANNOTATE_NEVER) |
The response message to clean a single intents.
| Field | Type | Label | Description |
| cleaned_intent | Intent | Required. Cleaned Intent |
|
| intent_update | IntentUpdate | Optional. Updates applied to intent |
Stores updates applied to an entity type
| Field | Type | Label | Description |
| entity_type_name | string | The entity type name |
|
| values_update_list | EntityTypeUpdate.EntityUpdate | repeated | List of the updated entities |
Stores updates applied to an entity
| Field | Type | Label | Description |
| entity_value_update | StringUpdate | Updates made to the entity value |
|
| entity_synonym_updates | StringUpdate | repeated | Updates made to the entity synonyms |
Stores updates applied to an intent
| Field | Type | Label | Description |
| intent_display_name | string | The display name of the intent |
|
| training_phrase_update_list | IntentUpdate.TrainingPhraseUpdate | repeated | List of the updated training phrases |
| deleted_parameters | string | repeated | List of the deleted parameters |
Message to track the updates made to a training phrase
| Field | Type | Label | Description |
| training_phrase_update | StringUpdate | Stores updates of training phrases |
|
| entity_updates | StringUpdate | repeated | Stores updates of entity strings |
| entities_reannotated | string | repeated | Stores re-annotated entity strings |
| contains_update_variable | bool | Will be switched to True if at least one update has been performed |
Message to keep track of updated strings
| Field | Type | Label | Description |
| new | string | New version of the string |
|
| old | string | Old version of the string |
Options for cleaning the training phrases
| Field | Type | Label | Description |
| delete_repeated_whitespaces | bool | Whether or not to delete repeated whitespaces |
|
| delete_leading_special_characters | bool | Whether of not to delete leading special characters |
|
| delete_trailing_special_characters | bool | Whether of not to delete trailing special characters |
Validation request for entity type values
| Field | Type | Label | Description |
| entity_type | EntityType.Entity | The entity (with embedded regex) to validate |
Response of the entity type validation
| Field | Type | Label | Description |
| error_messages | string | repeated | List of error message from the validation |
The request to validate regexes.
| Field | Type | Label | Description |
| regex | string | String containing the regex. |
The response of the regex validation
| Field | Type | Label | Description |
| error_messages | string | repeated | Error messages |
Encapsulates entity re-annotation options
| Name | Number | Description |
| REANNOTATE_NEVER | 0 | Never re-annotate training phrases |
| REANNOTATE_ALWAYS | 1 | Always re-annotate training phrases |
| REANNOTATE_IF_EMPTY | 2 | Re-annotate training phrases if there are no annotations |
| REANNOTATE_AFTER_DELETION | 3 | Re-annotate if training phrases have been deleted |
| REANNOTATE_IF_EMPTY_OR_AFTER_DELETION | 4 | Re-annotate if there are no annotations or if training phrases have been deleted |
service to send requests to a webhook server
rpc ResponseRefinement (WebhookRequest) returns (WebhookResponse)send a request for /response_refinement/ to the webhook server fulfillment messages can be overwritten by the webhook server
rpc SlotFilling (WebhookRequest) returns (WebhookResponse)send a request for /slot_filling/ to the webhook server parameter values can be provided & context information can be changed by the webhook server
rpc Ping (PingRequest) returns (PingResponse)send a Ping to the webhook server to verify server health will return True if http status_code==200 is detected in the response
rpc CreateSessionEntityType (CreateSessionEntityTypeRequest) returns (SessionEntityType)Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
rpc UpdateSessionEntityType (UpdateSessionEntityTypeRequest) returns (SessionEntityType)Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
rpc DeleteSessionEntityType (DeleteSessionEntityTypeRequest) returns (.google.protobuf.Empty)Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
| Method Name | Method | Pattern | Body |
| ResponseRefinement | POST | /{session=projects/*/agent/sessions/*}:responseRefinement | * |
| SlotFilling | POST | /{session=projects/*/agent/sessions/*}:slotFilling | * |
| Ping | GET | /projects/*/agent/webhook:ping |
The request message for Webhook.CreateSessionEntityType
| Field | Type | Label | Description |
| parent | string | Required. The agent to list all intents from. Format: |
|
| session_entity_type | SessionEntityType | Required. The session entity type to create. |
|
| session_id | string | Required. The session to create a session entity type for. Format:
or
projects/<project_uuid>/agent/environments/<environment_uuid>/users/<user_uuid>/
sessions/<session_uuid>.
If Environment ID is not specified, we assume default 'draft'
environment. If User ID is not specified, we assume default '-' user.
Required. The project that the agent to fetch is associated with.
The session to create a session entity type for.
Format: |
The request message for Webhook.DeleteSessionEntityType.
| Field | Type | Label | Description |
| name | string | Required. The name of the entity type to delete. Format:
|
The request message for Webhook.GetSessionEntityType.
| Field | Type | Label | Description |
| name | string | Required. The name of the session entity type. Format:
|
The request message for Webhook.ListSessionEntityTypes.
| Field | Type | Label | Description |
| parent | string | Required. The session to list all session entity types from.
Format: |
|
| page_size | int32 | Optional. The maximum number of items to return in a single page. By default 100 and at most 1000. |
|
| page_token | string | Optional: The page token to support pagination. Pagination allows you to retrieve a large result set in smaller, more manageable portions. The page token is a string representing the current index and page size. Valid page token strings:
|
The response message for Webhook.ListSessionEntityTypes.
| Field | Type | Label | Description |
| session_entity_types | SessionEntityType | repeated | The list of session entity types. There will be a maximum number of items returned based on the page_size field in the request. |
| next_page_token | string | The next_page_token is used to retrieve the next page of a returned result, e.g. next_page_token is current_index-2 |
Represents the contents of the original request that was passed to the [Streaming]DetectIntent call.
| Field | Type | Label | Description |
| source | string | The source of this request, e.g., |
|
| payload | google.protobuf.Struct | Optional. This field is set to the value of the {
"a": {
"b": "c"
}
} |
request sent for webhook ping
| Field | Type | Label | Description |
| session | string | session ID for webhook ping |
This message is a response of pinging
| Field | Type | Label | Description |
| is_reachable | bool | This is the response message of a Ping request. It's purpose is to report the reachability of a Webhook server. |
A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes.
For more information, see the session entity guide.
| Field | Type | Label | Description |
| name | string | Required. The unique identifier of this session entity type. Format:
|
|
| entity_override_mode | SessionEntityType.EntityOverrideMode | Required. Indicates whether the additional data should override or supplement the custom entity type definition. |
|
| entities | EntityType.Entity | repeated | Required. The collection of entities associated with this session entity type. |
The request message for Webhook.UpdateSessionEntityType.
| Field | Type | Label | Description |
| session_entity_type | SessionEntityType | Required. The session entity type to update. |
|
| update_mask | google.protobuf.FieldMask | Optional. The mask to control which fields get updated. |
The request message for a webhook call.
| Field | Type | Label | Description |
| response_id | string | The unique identifier of the response. Contains the same value as
|
|
| query_result | QueryResult | The result of the conversational query or event processing. Contains the
same value as |
|
| original_detect_intent_request | OriginalDetectIntentRequest | Optional. The contents of the original request that was passed to |
|
| session | string | The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: |
|
| headers | google.protobuf.Struct | Optional. The headers of the request message |
The response message for a webhook call.
| Field | Type | Label | Description |
| fulfillment_text | string | Optional. The text to be shown on the screen. This value is passed directly
to |
|
| fulfillment_messages | Intent.Message | repeated | Optional. The collection of rich messages to present to the user. This
value is passed directly to |
| source | string | Optional. This value is passed directly to |
|
| payload | google.protobuf.Struct | Optional. This value is passed directly to {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
} |
|
| output_contexts | Context | repeated | Optional. The collection of output contexts. This value is passed directly
to |
| followup_event_input | EventInput | Optional. Makes the platform immediately invoke another |
|
| session_entity_types | SessionEntityType | repeated | Optional. Additional session entity types to replace or extend developer
entity types with. The entity synonyms apply to all languages and persist
for the session. Setting this data from a webhook overwrites
the session entity types that have been set using |
The types of modifications for a session entity type.
| Name | Number | Description |
| ENTITY_OVERRIDE_MODE_UNSPECIFIED | 0 | Not specified. This value should be never used. |
| ENTITY_OVERRIDE_MODE_OVERRIDE | 1 | The collection of session entities overrides the collection of entities in the corresponding custom entity type. |
| ENTITY_OVERRIDE_MODE_SUPPLEMENT | 2 | The collection of session entities extends the collection of entities in
the corresponding custom entity type.
Note: Even in this override mode calls to |
gRPC service for QA functionalities.
rpc GetAnswer (GetAnswerRequest) returns (GetAnswerResponse)Retrieves an answer based on the provided request.
rpc RunScraper (RunScraperRequest) returns (RunScraperResponse)Runs a web scraper job for specified project IDs.
rpc UpdateDatabase (UpdateDatabaseRequest) returns (UpdateDatabaseResponse)Updates the database for specified project IDs.
rpc RunTraining (.google.protobuf.Empty) returns (RunTrainingResponse)Runs a training job for the QA system.
rpc GetServerState (.google.protobuf.Empty) returns (GetServerStateResponse)Retrieves the server state for QA.
rpc ListProjectIds (.google.protobuf.Empty) returns (ListProjectIdsResponse)Lists project IDs associated with QA.
rpc GetProjectConfig (GetProjectConfigRequest) returns (GetProjectConfigResponse)Retrieves the configuration of a specific project.
| Method Name | Method | Pattern | Body |
| GetAnswer | POST | /qa | * |
| RunScraper | GET | /qa:RunScraper | |
| UpdateDatabase | GET | /qa:UpdateDatabase | |
| RunTraining | GET | /qa:RunTraining | |
| GetServerState | GET | /qa:GetServerState | |
| ListProjectIds | GET | /qa:ListProjectIds | |
| GetProjectConfig | GET | /qa:ListProjectConfig |
The request message
| Field | Type | Label | Description |
| session_id | string | Required. The name of the session this query is sent to. Format:
|
|
| text | ondewo.nlu.TextInput | Required. The context of the request. A message containing a string (in the form of a sentence) and a language code. |
|
| max_num_answers | int32 | Maximal number of answers returned |
|
| threshold_reader | float | Threshold (minimal score) to give back reader result |
|
| threshold_retriever | float | Threshold (minimal score) to give back retriever result |
|
| threshold_overall | float | Threshold (minimal score) overall probability |
|
| reader_model_name | string | Reader model name |
|
| url_filter | UrlFilter | Optional. Filters applied to the urls, to restrict the retrieved documents. |
Message containing the response for retrieving answers.
| Field | Type | Label | Description |
| query_result | ondewo.nlu.DetectIntentResponse | The results of the conversational query or event processing. |
Message for requesting the configuration of a specific project.
| Field | Type | Label | Description |
| project_id | string | The ID of the project for which to retrieve the configuration. |
Message containing the response for getting the configuration of a project.
| Field | Type | Label | Description |
| config_serialized | string | Serialized configuration of the project. |
Message containing the response for checking the server state.
| Field | Type | Label | Description |
| server_is_ready | bool | Indicates whether the server is ready to accept requests. |
Message for listing project IDs in the response.
| Field | Type | Label | Description |
| project_ids | string | repeated | List of project IDs. |
Message for running a web scraper job.
| Field | Type | Label | Description |
| project_ids | string | repeated | List of project IDs to run the scraper on. |
Message containing the response for running a web scraper job.
| Field | Type | Label | Description |
| scraper_containers | RunScraperResponse.ScraperContainer | repeated | List of scraper containers running the jobs. |
Message representing a scraper container.
| Field | Type | Label | Description |
| container_name | string | Name of the Docker container running the job. |
|
| container_id | string | ID of the Docker container running the scraping job. |
Message containing the response for running a training job.
| Field | Type | Label | Description |
| f1 | float | F1 score as a response of the training. |
|
| accuracy | float | Accuracy as a response of the training. |
Message for requesting a database update for specific projects.
| Field | Type | Label | Description |
| project_ids | string | repeated | List of project IDs for which to update the database. |
Message containing the response for updating the database of specific projects.
| Field | Type | Label | Description |
| error_messages | string | repeated | List of error messages encountered during the database update. |
Message for defining URL filters to include and exclude from the scraping process.
| Field | Type | Label | Description |
| allowed_values | string | repeated | Optional. List of allowed values for the metadata field |
| regex_filter_include | string | Optional. Regular expression that must be matched by the metadata. |
|
| regex_filter_exclude | string | Optional. Regular expression that must not be matched by the metadata. |
Speech-to-text service
rpc TranscribeFile (TranscribeFileRequest) returns (TranscribeFileResponse)
Transcribes an audio file
rpc TranscribeStream (stream TranscribeStreamRequest) returns (stream TranscribeStreamResponse)
Transcribes an audio stream.
rpc GetS2tPipeline (S2tPipelineId) returns (Speech2TextConfig)
Gets a speech to text pipeline corresponding to the id specified in S2tPipelineId. If no corresponding id is
found, raises ModuleNotFoundError in server.
rpc CreateS2tPipeline (Speech2TextConfig) returns (S2tPipelineId)
Creates a new speech to text pipeline from a Speech2TextConfig and registers the new pipeline in the server.
rpc DeleteS2tPipeline (S2tPipelineId) returns (.google.protobuf.Empty)
Deletes a pipeline corresponding to the id parsed in S2tPipelineId. If no corresponding id is
found, raises ModuleNotFoundError in server.
rpc UpdateS2tPipeline (Speech2TextConfig) returns (.google.protobuf.Empty)
Updates a pipeline with the id specified in Speech2TextConfig with the new config. If no corresponding id is
found, raises ModuleNotFoundError in server.
rpc ListS2tPipelines (ListS2tPipelinesRequest) returns (ListS2tPipelinesResponse)
Lists all speech to text pipelines.
rpc ListS2tLanguages (ListS2tLanguagesRequest) returns (ListS2tLanguagesResponse)
Returns a message containing a list of all languages for which there exist pipelines.
rpc ListS2tDomains (ListS2tDomainsRequest) returns (ListS2tDomainsResponse)
Returns a message containing a list of all domains for which there exist pipelines.
rpc GetServiceInfo (.google.protobuf.Empty) returns (S2tGetServiceInfoResponse)
Returns a message containing the version of the running speech to text server.
rpc ListS2tLanguageModels (ListS2tLanguageModelsRequest) returns (ListS2tLanguageModelsResponse)
Given a list of pipeline ids, returns a list of LanguageModelPipelineId messages containing the pipeline
id and a list of the language models loaded in the pipeline.
rpc CreateUserLanguageModel (CreateUserLanguageModelRequest) returns (.google.protobuf.Empty)
Create a user language model.
rpc DeleteUserLanguageModel (DeleteUserLanguageModelRequest) returns (.google.protobuf.Empty)
Delete a user language model.
rpc AddDataToUserLanguageModel (AddDataToUserLanguageModelRequest) returns (.google.protobuf.Empty)
Add data to a user language model.
rpc TrainUserLanguageModel (TrainUserLanguageModelRequest) returns (.google.protobuf.Empty)
Train a user language model.
rpc ListS2tNormalizationPipelines (ListS2tNormalizationPipelinesRequest) returns (ListS2tNormalizationPipelinesResponse)
Retrieves a list of normalization pipelines based on specific requirements.
AcousticModels contains information about different types of acoustic models.
| Field | Type | Label | Description |
| type | string | Type of the acoustic model. |
|
| wav2vec | Wav2Vec | Configuration for the Wav2Vec model. |
|
| wav2vec_triton | Wav2VecTriton | Configuration for the Wav2Vec model using Triton. |
|
| whisper | Whisper | Configuration for the Whisper model. |
|
| whisper_triton | WhisperTriton | Configuration for the Whisper model using Triton. |
|
| s2t_cloud_service_amazon | S2tCloudServiceAmazon | Amazon web service cloud service inference settings. |
|
| s2t_cloud_service_deepgram | S2tCloudServiceDeepgram | Deepgram cloud service inference settings. |
|
| s2t_cloud_service_google | S2tCloudServiceGoogle | Google cloud service inference settings. |
|
| s2t_cloud_service_microsoft | S2tCloudServiceMicrosoft | Microsoft Azure cloud service inference settings. |
|
| parakeet | Parakeet | Configuration for the Parakeet model. |
AddDataToUserLanguageModelRequest is used to request the addition of data to a user-specific language model.
| Field | Type | Label | Description |
| language_model_name | string | Name of the language model to which to add data. Example: "user_lm_1" |
|
| zipped_data | bytes | Zip file containing data in the form of text files. Example: A zip file with text files containing sentences or phrases in the target language. |
CkptFile contains information about checkpoint files.
| Field | Type | Label | Description |
| path | string | Path to the checkpoint file. |
CreateUserLanguageModelRequest is used to request the creation of a new user-specific language model.
| Field | Type | Label | Description |
| language_model_name | string | Name of the language model to create. Example: "user_lm_1" |
DeleteUserLanguageModelRequest is used to request the deletion of a user-specific language model.
| Field | Type | Label | Description |
| language_model_name | string | Name of the language model to delete. Example: "user_lm_1" |
LanguageModelPipelineId contains information about a pipeline and its available language models.
| Field | Type | Label | Description |
| pipeline_id | string | A pipeline ID. Example: "pipeline_1" |
|
| model_names | string | repeated | A list of all available language models for the corresponding pipeline ID. Example: ["model_1", "model_2"] |
LanguageModels contains information about language models.
| Field | Type | Label | Description |
| path | string | Path to the directory of language models. |
|
| beam_size | int64 | Beam size for the search algorithm. |
|
| default_lm | string | Default language model to be selected if none is given. |
|
| beam_search_scorer_alpha | float | Weight for the language model scorer (alpha). |
|
| beam_search_scorer_beta | float | Weight for the word insertion penalty (beta). |
Request message to list available domains. Optionally also filters can be set.
| Field | Type | Label | Description |
| languages | string | repeated | Filter for languages |
| pipeline_owners | string | repeated | Filter for pipeline owner |
Response message to list available domains
| Field | Type | Label | Description |
| domains | string | repeated | domains available. Example: ["medical", "finance"] |
ListS2tLanguageModelsRequest is used to request a list of available language models for specified pipelines.
| Field | Type | Label | Description |
| ids | string | repeated | List of pipeline IDs to retrieve their available language models. Example: ["pipeline_1", "pipeline_2"] |
ListS2tLanguageModelsResponse is used to return the available language models for specified pipelines.
| Field | Type | Label | Description |
| lm_pipeline_ids | LanguageModelPipelineId | repeated | Response is a list of |
ListS2tLanguagesRequest is used to request a list of available languages. Optionally, filters can be set.
| Field | Type | Label | Description |
| domains | string | repeated | Filter for domains. Example: ["medical", "finance"] |
| pipeline_owners | string | repeated | Filter for pipeline owners. Example: ["ondewo", "partner_company"] |
Response message to list available languages
| Field | Type | Label | Description |
| languages | string | repeated | available languages |
The request message for ListS2tNormalizationPipelines.
Filter pipelines by attributes in request.
| Field | Type | Label | Description |
| language | string | Optional. Define the language. |
The response message for ListS2tNormalizationPipelines.
| Field | Type | Label | Description |
| s2t_normalization_pipelines | string | repeated | Required. Representation of a list of normalization pipelines configurations.
Retrieved by |
Request to list all speech-to-text pipelines. Optionally also filter criteria can be set
| Field | Type | Label | Description |
| languages | string | repeated | Filter for languages |
| pipeline_owners | string | repeated | Filter for pipeline owners |
| domains | string | repeated | Filter for domains |
| registered_only | bool | If true, return only registered pipelines. Default false: return registered and persisted (from config files) configs. |
ListS2tPipelinesResponse is used to return a list of all speech-to-text pipelines.
| Field | Type | Label | Description |
| pipeline_configs | Speech2TextConfig | repeated | A list of |
Logging contains configuration for logging.
| Field | Type | Label | Description |
| type | string | Type of logging. |
|
| path | string | Path for logging. |
Configuration options for OpenAI client chat completion requests used in turn detection and LLM post-processing.
| Field | Type | Label | Description |
| api_key | string | optional | Optional. The API key used to authenticate with the OpenAI API. |
| organization | string | optional | Optional. The organization ID associated with the OpenAI account, used for billing and access control. |
| project | string | optional | Optional. The project ID associated with the OpenAI account. |
| webhook_secret | string | optional | Optional. The webhook secret used to validate incoming webhook events from OpenAI. |
| base_url | string | optional | Optional. The base URL for the OpenAI API. Overrides the default endpoint, useful for proxies or compatible third-party providers. |
| websocket_base_url | string | optional | Optional. The base URL for OpenAI WebSocket connections. Overrides the default WebSocket endpoint. |
| timeout | float | optional | Optional. The timeout in seconds for requests to the OpenAI API. Applies to the entire request lifecycle including connection, sending, and receiving. |
| max_retries | int32 | optional | Optional. The maximum number of retries to attempt when a request fails due to a transient error. Defaults to 2. |
| default_headers | OpenaiLlmOptions.DefaultHeadersEntry | repeated | Optional. Default HTTP headers to include with every request to the OpenAI API. |
| default_query | google.protobuf.Struct | optional | Optional. Default query parameters to append to every request URL sent to the OpenAI API. Values can be of any type (string, number, boolean, list), hence the use of Struct. |
| strict_response_validation | bool | optional | Optional. If true, enables strict validation of response payloads returned by the OpenAI API. |
| model | string | Required. The name or identifier of the OpenAI model to use for chat completion (e.g., "gpt-4o", "gpt-4o-mini", "o3"). |
|
| frequency_penalty | float | optional | Optional. A number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the likelihood of the model repeating the same line verbatim. |
| logit_bias | OpenaiLlmOptions.LogitBiasEntry | repeated | Optional. Modifies the likelihood of specified tokens appearing in the completion. Maps token IDs (as strings) to bias values from -100 to 100. Mathematically added to the logits before sampling. |
| logprobs | bool | optional | Optional. Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the response. |
| max_completion_tokens | int32 | optional | Optional. An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. |
| max_tokens | int32 | optional | Optional. The maximum number of tokens that can be generated in the chat completion. Deprecated in favor of max_completion_tokens. |
| metadata | google.protobuf.Struct | optional | Optional. Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. |
| n | int32 | optional | Optional. The number of chat completion choices to generate for each input message. Note that costs are multiplied by the number of choices generated. |
| presence_penalty | float | optional | Optional. A number between -2.0 and 2.0. Positive values penalize new tokens based on whether they have already appeared in the text, increasing the likelihood of the model discussing new topics. |
| prompt_cache_key | string | optional | Optional. Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](https://platform.openai.com/docs/guides/prompt-caching). |
| reasoning_effort | ReasoningEffort | optional | Optional. Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. |
| seed | int64 | optional | Optional. If specified, the system will make a best effort to sample deterministically given the same seed and parameters, enabling reproducible outputs. |
| service_tier | ServiceTier | optional | Optional. Specifies the processing type used for serving the request. - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'. - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier. - When not set, the default behavior is 'auto'. When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter. |
| stop | string | repeated | Optional. Not supported with latest reasoning models `o3` and `o4-mini`. Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence. |
| store | bool | optional | Optional. Whether to store the output of this chat completion request for use in model distillation, evals, or the stored completions dashboard. |
| temperature | float | optional | Optional. What sampling temperature to use, between 0 and 2. Higher values (e.g., 0.8) make the output more random, while lower values (e.g., 0.2) make it more focused and deterministic. |
| top_logprobs | int32 | optional | Optional. An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs to be true. |
| top_p | float | optional | Optional. An alternative to sampling with temperature, called nucleus sampling. The model considers only the tokens with top_p probability mass. Ranges from 0 to 1. |
| user | string | optional | Optional. This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations. A stable identifier for your end-users. Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). |
| verbosity | Verbosity | optional | Optional. Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are `low`, `medium`, and `high`. |
| extra_headers | google.protobuf.Struct | optional | Optional. Additional HTTP headers to send with the request. These are merged with and override default_headers for this specific request only. |
| extra_query | google.protobuf.Struct | optional | Optional. Additional query parameters to send with the request. These are merged with and override default_query for this specific request only. |
| extra_body | google.protobuf.Struct | optional | Optional. Additional JSON properties to include in the request body. Useful for accessing new or undocumented API parameters. |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | int32 |
|
Parakeet contains information about the Parakeet model.
| Field | Type | Label | Description |
| triton_model_name | string | Name of the Triton model. |
|
| triton_model_version | string | Version of the Triton model. |
|
| check_status_timeout | int64 | Timeout for checking model status. |
|
| triton_server_host | string | Host name of triton inference server that serves the Parakeet model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the Parakeet model |
PostProcessing contains the configuration for post-processing.
| Field | Type | Label | Description |
| pipeline | string | repeated | List of names of active post-processors. |
| post_processors | PostProcessors | Post-processor configurations. |
Configuration of the post-processing options
| Field | Type | Label | Description |
| spelling_correction | bool | Whether to use spelling correction |
|
| normalize | bool | Whether to disable normalization |
|
| config | PostProcessing | Post-processing configuration specifying the active post-processors in the pipeline, as well as their individual configuration. If not set, all values are replaced by the ones in current pipeline. |
|
| llm_post_processing | bool | Whether to disable LLM post-processing |
PostProcessors contains configurations for post-processors.
| Field | Type | Label | Description |
| sym_spell | SymSpell | Configuration of the SymSpell spelling correction. |
|
| normalization | S2tNormalization | Configuration of the normalization object. |
|
| llm_post_processing | S2tLlmPostProcessing | Configuration of the LLM post-processing. |
PtFiles contains information about PT files.
| Field | Type | Label | Description |
| path | string | Path to the PT files. |
|
| step | string | Step for the PT files. |
Pyannote contains configuration for the Pyannote voice activity detection model.
Library: pyannote-audio
| Field | Type | Label | Description |
| model_name | string | Full name of the Pyannote model. |
|
| min_audio_size | int64 | Minimum audio size for processing. |
|
| min_duration_off | float | Fill inactive regions shorter than that many seconds. Example notebook |
|
| min_duration_on | float | Remove active regions shorter than that many seconds. Example notebook |
|
| triton_server_host | string | Host name of triton inference server that serves the Pyannote model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the Pyannote model |
Configuration for cloud provider settings for Speech-to-Text (S2T).
| Field | Type | Label | Description |
| s2t_cloud_provider_config_amazon | S2tCloudProviderConfigAmazon | optional | Optional. Configuration for Amazon web service speech-to-text provider. |
| s2t_cloud_provider_config_deepgram | S2tCloudProviderConfigDeepgram | optional | Optional. Configuration for DeepGram speech-to-text provider. |
| s2t_cloud_provider_config_google | S2tCloudProviderConfigGoogle | optional | Optional. Configuration for Google speech-to-text provider. |
| s2t_cloud_provider_config_microsoft | S2tCloudProviderConfigMicrosoft | optional | Optional. Configuration for Microsoft Azure speech-to-text provider. |
Configuration details specific to the Amazon web service speech-to-text provider.
| Field | Type | Label | Description |
| enable_partial_results_stabilization | bool | optional | Optional. Enables or disables |
| partial_results_stability | string | optional | Optional. You can use this field to set the stability level of the transcription results. A higher stability level means that the transcription results are less likely to change. Higher stability levels can come with lower overall transcription accuracy. Acceptable values: ["low", "medium", "high"]. Defaults to "high" if not set explicitly. More details at: https://aws.amazon.com/blogs/machine-learning/amazon-transcribe-now-supports-partial-results-stabilization-for-streaming-audio/ |
| language_model_name | string | optional | Optional. The name of your customize language model you want to use. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html |
| vocabulary_name | string | optional | Optional. The name of your customize vocabulary you want to use. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html |
Configuration details specific to the Deepgram speech-to-text provider.
| Field | Type | Label | Description |
| punctuate | bool | optional | Optional. Enables or disables |
| smart_format | bool | optional | Optional. Enables or disables |
| numerals | bool | optional | Optional. Enables or disables |
| measurements | bool | optional | Optional. Enables or disables |
| dictation | bool | optional | Optional. Enables or disables |
Configuration details specific to the Google speech-to-text provider.
| Field | Type | Label | Description |
| enable_automatic_punctuation | bool | optional | Optional. Enables or disables |
| enable_word_time_offsets | bool | optional | Optional. Enables or disables |
| enable_word_confidence | bool | optional | Optional. Enables or disables |
| transcript_normalization | bool | optional | Optional. Enables or disables |
| max_alternatives | int32 | optional | Optional. Maximum number of recognition hypotheses to be returned, may be returned fewer than |
Configuration details specific to the Microsoft Azure speech-to-text provider.
| Field | Type | Label | Description |
| use_fast_transcription_api | bool | optional | Optional. Enables or disables the Microsoft Azure fast transcription API. It is faster than SDK but is in preview version. More details at: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/fast-transcription-create |
| use_detailed_output_format | bool | optional | Optional. Enables or disables the |
S2tCloudServiceAmazon message contains settings for the Amazon web service Cloud service inference.
| Field | Type | Label | Description |
| language | string | Language of the audio to transcribe by Amazon web service s2t cloud service. It should be 4-letter language code (BCP-47) e.g. 'en-US' or 'de-DE'. |
|
| streaming_available | bool | Specifies if streaming mode of Amazon web service speech to text is available for the selected language, otherwise batch mode transcription is used. See the list of languages and available transcription modes at: https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html |
|
| enable_partial_results_stabilization | bool | Enables or disables |
|
| partial_results_stability | string | You can use this field to set the stability level of the transcription results. A higher stability level means that the transcription results are less likely to change. Higher stability levels can come with lower overall transcription accuracy. Defaults to "high" if not set explicitly. |
|
| language_model_name | string | The name of your customize language model you want to use. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html |
|
| vocabulary_name | string | The name of your customize vocabulary you want to use. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html |
S2tCloudServiceDeepgram message contains settings for the Deepgram Cloud service inference.
| Field | Type | Label | Description |
| model_name | string | Model name from one of the speech-to-text models provided by Deepgram for the desired use-case. Provided model names and details at: https://developers.deepgram.com/docs/model |
|
| language | string | Language of the audio to transcribe by Deepgram s2t cloud service. It should be 4-letter language code (BCP-47) e.g. 'en-US' or 'de-DE'. |
|
| punctuate | bool | Enables or disables |
|
| smart_format | bool | Enables or disables |
|
| numerals | bool | Enables or disables |
|
| measurements | bool | Enables or disables |
|
| dictation | bool | Enables or disables |
S2tCloudServiceGoogle message contains settings for the Google Cloud service inference.
| Field | Type | Label | Description |
| model_name | string | Model name from one of the speech-to-text models provided by Google for the desired use-case. Provided model names and details at: https://cloud.google.com/speech-to-text/docs/transcription-model |
|
| language | string | Language of the audio to transcribe by Google s2t cloud service. It should be 4-letter language code (BCP-47) e.g. 'en-US' or 'de-DE'. |
|
| enable_automatic_punctuation | bool | Enables or disables |
|
| enable_word_time_offsets | bool | Enables or disables |
|
| enable_word_confidence | bool | Enables or disables |
|
| transcript_normalization | bool | Enables or disables |
|
| max_alternatives | int32 | Maximum number of recognition hypotheses to be returned. The server may return fewer than |
S2tCloudServiceMicrosoft message contains settings for the Microsoft Azure Cloud service inference.
| Field | Type | Label | Description |
| language | string | Language of the audio to transcribe by Microsoft Azure s2t cloud service. It should be 4-letter language code (BCP-47) e.g. 'en-US' or 'de-DE'. |
|
| use_fast_transcription_api | bool | Enables or disables the Microsoft Azure fast transcription API. It is faster than SDK but is in preview version. More details at: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/fast-transcription-create |
|
| use_detailed_output_format | bool | Enables or disables the |
S2tDescription contains descriptive information about the speech-to-text pipeline.
| Field | Type | Label | Description |
| language | string | Language of the speech-to-text system. |
|
| pipeline_owner | string | Owner of the pipeline. |
|
| domain | string | Domain of the speech-to-text system. |
|
| comments | string | Comments about the system. |
S2tGetServiceInfoResponse is used to return version information about the speech-to-text service.
| Field | Type | Label | Description |
| version | string | Version number based on semantic versioning, e.g. "4.2.0". |
S2tInference contains information about inference models used in the speech-to-text pipeline.
| Field | Type | Label | Description |
| acoustic_models | AcousticModels | Configuration for the acoustic models. |
|
| language_models | LanguageModels | Configuration for the language models. |
|
| inference_backend | InferenceBackend | Configuration for the inference backend. |
S2tLlmPostProcessing contains configuration for the speech-to-text postprocessing with LLM.
| Field | Type | Label | Description |
| s2t_llm_post_processing_openai_options | OpenaiLlmOptions | optional | Optional. Configuration options for the OpenAI client used for post-processing. |
| s2t_llm_post_processing_system_prompt | string | optional | Optional. System prompt used to guide the LLM model for post-processing. |
| s2t_llm_post_processing_ending_prompt | string | optional | Optional. Ending prompt appended to the accumulated prompts of the active post-processing tasks. |
| s2t_llm_post_processing_casing_options | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the options to casing task in LLM post-processing. |
| s2t_llm_post_processing_punctuation_options | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the options to punctuation task in LLM post-processing. |
| s2t_llm_post_processing_spelling_correction_options | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the options to spelling-correction task in LLM post-processing. |
| s2t_llm_post_processing_semantic_correction_options | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the options to semantic-correction task in LLM post-processing. |
| s2t_llm_post_processing_translation_options | S2tLlmPostProcessingTranslationOptions | optional | Optional. Configuration of the options to translation task in LLM post-processing. |
| s2t_llm_post_processing_inverse_normalization_options | S2tLlmPostProcessingInverseNormalizationOptions | optional | Optional. Configuration of the options to inverse-normalization task in LLM post-processing. |
| s2t_llm_post_processing_normalization_options | S2tLlmPostProcessingNormalizationOptions | optional | Optional. Configuration of the options to normalization task in LLM post-processing. |
| s2t_llm_post_processing_summarization_options | S2tLlmPostProcessingSummarizationOptions | optional | Optional. Configuration of the options to summarization task in LLM post-processing. |
| s2t_llm_post_processing_user_prompt_options | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the options to user-prompt task in LLM post-processing. |
Configuration of the options to inverse-normalization task in LLM post-processing.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if the inverse-normalization task of LLM post-processing is active. |
| S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of email address sub-task. |
|
| phone_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of phone number sub-task. |
| date_and_time | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of date and time sub-task. |
| credit_card_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of credit card number sub-task. |
| social_security_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of social security number sub-task. |
| time_zone | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the inverse-normalization of time zone sub-task. |
Configuration of the options to normalization task in LLM post-processing.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if the normalization task of LLM post-processing is active. |
| S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of email address sub-task. |
|
| phone_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of phone number sub-task. |
| date_and_time | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of date and time sub-task. |
| credit_card_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of credit card number sub-task. |
| social_security_number | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of social security number sub-task. |
| time_zone | S2tLlmPostProcessingSubTaskOptions | optional | Optional. Configuration of the normalization of time zone sub-task. |
Common configuration for an individual LLM post-processing sub-task (e.g. email, phone number,
date and time, credit card number, social security number, time zone).
Used by both normalization and inverse-normalization tasks.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if this sub-task is active. |
| prompt | string | optional | Optional. Custom prompt to guide the LLM for this sub-task. Overrides the default prompt when set. |
Configuration of the options to summarization task in LLM post-processing.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if the summarization task of LLM post-processing is active. |
| prompt | string | optional | Optional. Custom prompt to guide the LLM for summarization. Overrides the default prompt when set. |
| min_chars | int32 | optional | Optional. Minimum number of characters of the summary generated in summarization task of LLM post-processing. |
| max_chars | int32 | optional | Optional. Maximum number of characters of the summary generated in summarization task of LLM post-processing. |
Configuration of the options to translation task in LLM post-processing.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if the translation task of LLM post-processing is active. |
| language | string | optional | Optional. Target language of the translation task of LLM post-processing. |
| prompt | string | optional | Optional. Custom prompt to guide the LLM for translation. Overrides the default prompt when set. |
S2tNormalization contains configuration for the speech-to-text normalization.
| Field | Type | Label | Description |
| language | string | Language for normalization of transcriptions. |
|
| pipeline | string | repeated | List of names of active normalizations. |
The pipeline id for a specific pipeline configuration
| Field | Type | Label | Description |
| id | string | id of the model that will generate audio |
Silero contains configuration for the Silero voice activity detection model.
Unlike Pyannote, Silero is configured with its own parameters rather than
(min_duration_on, min_duration_off). They carry exactly the meaning they have
upstream in get_speech_timestamps / VADIterator.
Library: silero-vad
| Field | Type | Label | Description |
| model_name | string | Full name of the Silero model. |
|
| min_audio_size | int64 | Minimum audio size for processing. |
|
| threshold | float | optional | Speech probability, in [0, 1], above which a frame counts as speech. A run of speech
ends at the hysteresis threshold |
| min_speech_duration_ms | float | optional | Speech runs shorter than this many milliseconds are discarded. A run still open at the
end of the buffer is kept regardless, since more audio may extend it.
Optional for the same reason as |
| min_silence_duration_ms | float | optional | Silence, in milliseconds, that must follow the last speech before an utterance is
declared to have ended.
Optional for the same reason as |
| speech_pad_ms | float | optional | Padding, in milliseconds, added on each side of the detected boundary.
Optional for the same reason as |
| triton_server_host | string | Host name of triton inference server that serves the Silero model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the Silero model |
Speech2TextConfig is a configuration message for the speech-to-text pipeline
| Field | Type | Label | Description |
| id | string | Unique identifier for the configuration. |
|
| description | S2tDescription | Description of the speech-to-text system. |
|
| active | bool | Indicates if the configuration is active. |
|
| inference | S2tInference | Configuration for inference models. |
|
| streaming_server | StreamingServer | Configuration for the streaming server. |
|
| voice_activity_detection | VoiceActivityDetection | Configuration for voice activity detection. |
|
| post_processing | PostProcessing | Configuration for post-processing. |
|
| logging | Logging | Configuration for logging. |
StreamingServer contains information about the streaming server.
| Field | Type | Label | Description |
| host | string | Hostname of the streaming server. |
|
| port | int64 | Port number of the streaming server. |
|
| output_style | string | Output style for the streaming server. |
|
| streaming_speech_recognition | StreamingSpeechRecognition | Configuration for streaming speech recognition. |
StreamingSpeechRecognition contains information about streaming speech recognition settings.
| Field | Type | Label | Description |
| transcribe_not_final | bool | optional | Indicates whether to transcribe non-final results for every stream of this pipeline. Unset: the server
default, which is now |
| decoding_method | string | Decoding method for speech recognition. |
|
| sampling_rate | int64 | Sampling rate for audio input. |
|
| min_audio_chunk_size | int64 | Minimum audio chunk size for processing. |
|
| next_chunk_timeout | float | Timeout between audio chunks; if exceeded, the stream will be stopped. |
|
| turn_detection | TurnDetectionOptions | Configuration of the options to turn-detection in utterances |
|
| transcribe_not_final_period_seconds | float | optional | Optional. The minimum new audio, in seconds, between two non-final transcriptions of an utterance (the
partial-transcription cadence) for every stream of this pipeline. Overrides the server setting
|
SymSpell contains configuration for the SymSpell spelling correction.
| Field | Type | Label | Description |
| dict_path | string | Path to the dictionary used by symspell |
|
| max_dictionary_edit_distance | int64 | The maximal edit-distance to consider for spelling correction (affects performance - bigger number takes longer to process!) |
|
| prefix_length | int64 | The length (number of characters) of the prefix to consider for filtering |
TrainUserLanguageModelRequest is used to request the training of a user-specific language model.
| Field | Type | Label | Description |
| language_model_name | string | Name of the language model to train. Example: "user_lm_1" |
|
| order | int64 | Order n of the ngram. Example: 3 (for trigram model) |
A request to transcribe an audio file
| Field | Type | Label | Description |
| audio_file | bytes | wav file to transcribe |
|
| config | TranscribeRequestConfig | The configuration to override the default configuration |
The response message for a transcribe file request
| Field | Type | Label | Description |
| transcriptions | Transcription | repeated | List of transcriptions with confidence level |
| time | float | The time the transcription took |
|
| audio_uuid | string | id of the transcribed audio file |
Configuration for a request to transcribe audio
| Field | Type | Label | Description |
| s2t_pipeline_id | string | Required. id of the pipeline (model setup) that will generate audio |
|
| decoding | Decoding | Optional. decoding type |
|
| language_model_name | string | Name of the language model |
|
| post_processing | PostProcessingOptions | The postprocessing options |
|
| utterance_detection | UtteranceDetectionOptions | The utterance detection options |
|
| pyannote | Pyannote | Voice activity detection with pyannote |
|
| return_options | TranscriptionReturnOptions | The transcribe return options |
|
| language | string | optional | Optional. Specify language of transcription to return |
| task | string | optional | Optional. Specify task of s2t model, e.g. 'transcribe' and 'translate' |
| s2t_service_config | google.protobuf.Struct | optional | Optional.
For Amazon S2T service, the following arguments should be passed in form of a dict:
s2t_config_service={'aws_access_key_id': 'YOUR_AWS_ACCESS_KEY_ID', 'aws_secret_access_key':
'YOUR_AWS_SECRET_ACCESS_KEY', 'region': 'YOUR_AMAZON_SERVER_REGION_NAME'}
For Deepgram S2T service, the following argument should be passed in form of a dict:
s2t_config_service={'api_key': 'YOUR_DEEPGRAM_API_KEY'}
For Google cloud S2T service, the following arguments should be passed in form of a dict:
s2t_config_service={'api_key': 'YOUR_GOOGLE_CLOUD_API_KEY', 'api_endpoint': 'YOUR_GOOGLE_CLOUD_API_ENDPOINT'}
For Microsoft Azure S2T service, the following arguments should be passed in form of a dict:
s2t_config_service={'subscription_key': 'YOUR_MICROSOFT_AZURE_SUBSCRIPTION_KEY', 'region':
'YOUR_MICROSOFT_AZURE_SERVER_REGION_NAME'}
Note: ondewo-s2t will raise an error if you don't pass any of the required arguments above. |
| s2t_cloud_provider_config | S2tCloudProviderConfig | optional | Optional. Defines the cloud provider's specific configuration for using speech to text cloud services. The default value is None. |
Request to transcribe an audio stream
| Field | Type | Label | Description |
| audio_chunk | bytes | wav file to transcribe |
|
| end_of_stream | bool | if it's the final chunk of the stream |
|
| config | TranscribeRequestConfig | The configuration to override the default configuration |
|
| mute_audio | bool | Whether or not to mute the audio signal. Defaults to false. |
The response message of a stream transcription
| Field | Type | Label | Description |
| transcriptions | Transcription | repeated | List of transcriptions with confidence level |
| time | float | The time the transcription took |
|
| final | bool | Whether or not this transcription is final (transcribed texts might change if transcription is started before the end of an utterance). |
|
| return_audio | bool | is audio bytes of the utterance in response |
|
| audio | bytes | audio bytes of the transcribed utterance |
|
| utterance_start | bool | is it a start of the utterance |
|
| audio_uuid | string | id of the transcribed audio file |
|
| end_of_speech_candidate | bool | Whether this response is an end-of-speech candidate. Sent only when the request set
|
|
| config | TranscribeRequestConfig | The configuration for the transcription |
The transcription message
| Field | Type | Label | Description |
| transcription | string | The transcribed text |
|
| confidence_score | float | The corresponding confidence score. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. |
|
| words | WordDetail | repeated | List of the words of transcription with their confidence scores and probable alternatives |
| alternatives | TranscriptionAlternative | repeated | List of alternative transcriptions, confidence scores, words timings and alternative words |
The alternative transcription message
| Field | Type | Label | Description |
| transcript | string | The alternative transcribed text |
|
| confidence | float | The corresponding confidence score to the alternative transcript. |
|
| words | WordDetail | repeated | A list of word-specific information for each recognized word, including word timings, confidence score of the word and alternative words. |
Configuration of the return values of a transcribe request
| Field | Type | Label | Description |
| return_start_of_speech | bool | should server make response indicating that the beginning of the speech was detected |
|
| return_audio | bool | should s2t server return audio bytes of transcribed utterance |
|
| return_confidence_score | bool | Whether or not to return confidence scores |
|
| return_alternative_transcriptions | bool | Whether or not to return alternative results from beam-search |
|
| return_alternative_transcriptions_nr | int32 | Optional. Number of alternative transcriptions results from beam-search or greedy-search |
|
| return_alternative_words | bool | Whether or not to return alternative results from beam-search |
|
| return_alternative_words_nr | int32 | Optional. Number of alternative words to results |
|
| return_word_timing | bool | Optional. Whether or not to return timestamps of start and end of the words. Only used in TranscribeFile. |
|
| return_end_of_speech_candidate | bool | Optional. Whether the server should send an end-of-speech candidate on a stream (see
|
TurnDetectionChatLlmOptions configures a chat LLM as the turn detector: the LLM is asked, with the prompts
below and the transcription of the turn, whether the caller has finished.
| Field | Type | Label | Description |
| openai_llm_options | OpenaiLlmOptions | optional | Optional. The OpenAI-compatible endpoint and model of the chat LLM. Unset fields take the server's
configured values. A |
| system_prompt | string | optional | Optional. System prompt that guides the LLM. Unset = the server's configured prompt. |
| user_prompt | string | optional | Optional. User prompt that carries the turn under evaluation. Unset = the server's configured prompt. |
One turn of the conversation context of the turn detection, read only by
TurnDetectionEndOfUtteranceLlmOptions.
| Field | Type | Label | Description |
| role | TurnDetectionContextTurn.Role | Who spoke the turn. |
|
| text | string | The text of the turn. |
TurnDetectionConversationContext carries the latest turns of the conversation for
TurnDetectionEndOfUtteranceLlmOptions (see
TurnDetectionOptions.turn_detection_conversation_context). No other detector reads it.
| Field | Type | Label | Description |
| turn_detection_context_turns | TurnDetectionContextTurn | repeated | The turns of the conversation, oldest first. They EXCLUDE the caller's utterance under evaluation, which the server appends itself. |
TurnDetectionEndOfUtteranceLlmOptions configures an end-of-utterance LLM (LiveKit-shaped, e.g.
livekit/turn-detector) as the turn detector: the model scores the probability of the
end-of-utterance token after the turn's transcription and, when
TurnDetectionOptions.turn_detection_conversation_context is set, the turns before it.
| Field | Type | Label | Description |
| openai_llm_options | OpenaiLlmOptions | optional | Optional. The OpenAI-compatible endpoint and served model name. Unset fields take the server's configured values. |
| end_of_turn_probability_threshold | float | optional | Optional. The end-of-utterance probability at or above which the caller is taken to have finished the turn, valid range: 0 - 1. Unset = the server's configured value (default: the threshold configured for the language of the stream). |
| turn_detection_hold_bands | TurnDetectionHoldBands | optional | Optional. How long a turn judged finished, but only with a probability below a band's upper bound, waits for further silence before it is committed. Unset = the server's configured value (default: the bands configured for the language of the stream). A wrapper only so that "set with no bands" (a turn at or above the threshold is committed at once) means something different from "unset". |
| uncertain_min_words | uint32 | optional | Optional. The minimum number of words an utterance needs before a hold band may hold it; a shorter utterance judged finished is committed at once. Unset = the server's configured value (default: 3). |
| exact_probability | bool | optional | Optional. Whether the exact probability of the end-of-utterance token is computed instead of being read
from the returned top log probabilities. Unset = the server's configured value (default: false). Requires a
deployment that returns prompt log probabilities (vLLM |
One hold band of TurnDetectionEndOfUtteranceLlmOptions.
| Field | Type | Label | Description |
| upper_probability | float | The exclusive upper bound of the end-of-utterance probabilities this band covers, valid range: 0 - 1. |
|
| max_silence_seconds | float | Seconds of silence a turn in this band waits before it is committed, valid range: 0 - 4. The server never
holds longer than |
TurnDetectionHoldBands carries the hold bands of TurnDetectionEndOfUtteranceLlmOptions. No other
detector reads them.
| Field | Type | Label | Description |
| turn_detection_hold_bands | TurnDetectionHoldBand | repeated | The bands, each holding a turn judged finished with a probability below its upper bound: the first band,
sorted by |
TurnDetectionOndewoDeFusionOptions configures the ONDEWO German fusion turn detector. It combines the ONDEWO
German text model on vLLM, acoustic heads on Triton and signals computed from the stream into one end-of-turn
probability. The Triton heads, the text model's served name and the weights file are server settings.
| Field | Type | Label | Description |
| openai_llm_options | OpenaiLlmOptions | optional | Optional. Addresses the vLLM deployment of the text model ( |
| end_of_turn_probability_threshold | float | optional | Optional. The end-of-turn probability at or above which the caller is taken to have finished the turn, valid range: 0 - 1. Unset = the server's configured value, else the weights file's threshold. |
TurnDetectionOndewoDeOptions configures the ONDEWO German turn-detection model as the turn detector. It judges
the turn from its text and word timing and is served by vLLM.
| Field | Type | Label | Description |
| openai_llm_options | OpenaiLlmOptions | optional | Optional. The vLLM deployment: |
| end_of_turn_probability_threshold | float | optional | Optional. The end-of-turn probability the model must reach for the caller to be taken to have finished the
turn, valid range: 0 - 1. A turn below it is judged not finished and waits for
|
TurnDetectionOptions configures turn detection: deciding, at a pause of the caller, whether the caller has
finished the turn. Exactly one turn detector is chosen by oneof_turn_detector; the fields outside it
apply to every detector.
Precedence for every field: the request config's value
(TranscribeRequestConfig.utterance_detection.turn_detection), then the pipeline config's value
(StreamingSpeechRecognition.turn_detection), then the server's configured value. When the request
config chooses a different detector than the pipeline config, the request config's detector is used with only
its own fields: none of the pipeline config's detector fields carry over.
| Field | Type | Label | Description |
| active | bool | optional | Optional. Indicates if the turn-detection feature is active. |
| full_utterance_deployment | bool | optional | Optional. Whether to transcribe the whole utterance when the end of a turn is detected. It increases the accuracy of the transcription at the cost of speed. If deactivated, only the audio after the last short silence is transcribed and the transcriptions of the short audio chunks between silences are concatenated. |
| turn_detection_system_prompt | string | optional | Deprecated. Optional. Deprecated in favour of |
| turn_detection_user_prompt | string | optional | Deprecated. Optional. Deprecated in favour of |
| turn_detection_llm_openai_options | OpenaiLlmOptions | optional | Deprecated. Optional. Deprecated in favour of |
| incomplete_max_silence_seconds | float | optional | Optional. Seconds of silence after an utterance judged NOT finished before it is finished anyway, valid
range: 0 - 4. The server raises a value below the voice activity detection's |
| turn_detection_conversation_context | TurnDetectionConversationContext | optional | Optional. The latest turns of the conversation before the caller's utterance under evaluation, handed to the
end-of-utterance LLM as preceding chat turns so that it can judge the utterance against what was said
before, e.g. a bare number answering a question for a number. Kept outside |
| turn_detection_chat_llm_options | TurnDetectionChatLlmOptions | A chat LLM asked, with a prompt, whether the caller has finished the turn. |
|
| turn_detection_end_of_utterance_llm_options | TurnDetectionEndOfUtteranceLlmOptions | An end-of-utterance LLM (LiveKit-shaped) that scores the probability of the end-of-utterance token. |
|
| turn_detection_ondewo_de_options | TurnDetectionOndewoDeOptions | The ONDEWO German turn-detection model: the turn's text and timing, served by vLLM. |
|
| turn_detection_ondewo_de_fusion_options | TurnDetectionOndewoDeFusionOptions | The ONDEWO German fusion turn detector: the ONDEWO German text model on vLLM plus acoustic heads on Triton, combined into one end-of-turn probability. |
|
| turn_detection_pipecat_smart_turn_options | TurnDetectionPipecatSmartTurnOptions | pipecat Smart Turn v3.2: audio only, served by Triton. |
| Name | Option |
| turn_detection_system_prompt | true |
| turn_detection_user_prompt | true |
| turn_detection_llm_openai_options | true |
TurnDetectionPipecatSmartTurnOptions configures pipecat Smart Turn v3.2 as the turn detector. It judges the
turn from the caller's audio alone and is served by Triton.
Model: pipecat Smart Turn
| Field | Type | Label | Description |
| model_name | string | optional | Optional. Full name of the Triton model. Unset = the server's configured value (default:
|
| triton_server_host | string | optional | Optional. Host name of the Triton inference server that serves the model, as
|
| triton_server_port | int64 | optional | Optional. Port of the Triton inference server that serves the model, as
|
| max_audio_seconds | float | optional | Optional. Seconds of the caller's audio, ending at the decision moment, that the model hears; valid range: 1 - 8. Shorter audio is left-padded with silence to 8 s, as the model was trained. Unset = the server's configured value (default: 8). |
| timeout_seconds | float | optional | Optional. Seconds to wait for Triton's answer, valid range: greater than 0, at most 5. A turn whose verdict
does not arrive in time is judged not finished and waits for
|
| end_of_turn_probability_threshold | float | optional | Optional. The end-of-turn probability Smart Turn must report for the caller to be taken to have finished the
turn, valid range: 0 - 1. A turn below it is judged not finished and waits for
|
Configuration of the options to detect utterances
| Field | Type | Label | Description |
| transcribe_not_final | bool | Return also immediate transcription results (non-final transcriptions of an utterance while it is
still being spoken). Unset: the pipeline's |
|
| next_chunk_timeout | float | if time between audio chunks exceeds next_chunk_timeout, stream will be stopped |
|
| turn_detection | TurnDetectionOptions | The turn detection options |
|
| min_audio_chunk_size | int64 | optional | Optional. The processing chunk of THIS stream, in samples at the pipeline's sampling rate: the server buffers
the incoming audio until it holds this many samples and only then runs the voice-activity search, the sliding
transcription and the turn detector, so it is the cadence at which an utterance can end (8000 samples at
16 kHz = 0.5 s; 1600 = 0.1 s). Overrides |
| transcribe_not_final_period_seconds | float | optional | Optional. The minimum new audio, in seconds, between two non-final transcriptions of an utterance (the
partial-transcription cadence; applies only while |
VoiceActivityDetection contains information about voice activity detection settings.
| Field | Type | Label | Description |
| active | string | Deprecated in favour of |
|
| sampling_rate | int64 | Sampling rate for voice activity detection. |
|
| pyannote | Pyannote | Configuration for the Pyannote model. Read when Pyannote is the resolved VAD or TSD method. |
|
| silero | Silero | Configuration for the Silero model. Read when Silero is the resolved VAD method. |
|
| wespeaker_tsd | WespeakerTsd | Configuration for WeSpeaker target-speaker detection. Read when WeSpeaker is the resolved TSD method. |
|
| vad_method | VadMethod | Which model splits the stream into utterances. Takes precedence over |
|
| tsd_method | TsdMethod | Which model decides whether an utterance came from the main speaker. Independent of
|
Wav2Vec contains information about the Wav2Vec model.
| Field | Type | Label | Description |
| model_path | string | Path to the model. |
|
| use_gpu | bool | Indicates if GPU is used. |
Wav2VecTriton contains information about the Wav2Vec model using Triton.
| Field | Type | Label | Description |
| processor_path | string | Path to the processor. |
|
| triton_model_name | string | Name of the Triton model. |
|
| triton_model_version | string | Version of the Triton model. |
|
| check_status_timeout | int64 | Timeout for checking model status. |
|
| triton_server_host | string | Host name of triton inference server that serves the Wav2VecTriton model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the Wav2VecTriton model |
WespeakerTsd contains configuration for the WeSpeaker target-speaker detection (TSD)
model. Given a reference speaker embedding, it decides whether a newly detected utterance
was spoken by the same person, so that speech from a different speaker (e.g. background
noise, crosstalk, or a barge-in) can be rejected.
Library: wespeaker-voxceleb-resnet34-LM
| Field | Type | Label | Description |
| active | bool | Indicates if target-speaker detection is active. |
|
| model_name | string | Full name of the WeSpeaker model. |
|
| triton_server_host | string | Host name of triton inference server that serves the WeSpeaker model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the WeSpeaker model |
|
| similarity_threshold | float | optional | Cosine similarity, in [-1, 1], above which a candidate utterance is judged to come from the same speaker as the reference. Optional, and explicitly so: 0 sits in the middle of the valid range, and without presence tracking it would be indistinguishable from an unset field. |
| min_audio_length | float | optional | Utterances shorter than this many seconds carry too little speaker information to
judge, and are treated as undecided rather than rejected.
Optional for the same reason as |
| reference_max_length | float | The reference audio is cropped to its most recent this-many seconds before being embedded. |
Whisper contains information about the Whisper model.
| Field | Type | Label | Description |
| model_path | string | Path to the model. |
|
| use_gpu | bool | Indicates if GPU is used. |
|
| language | string | Default language of the model. |
|
| task | string | Default task of the model. |
WhisperTriton contains information about the Whisper model using Triton.
| Field | Type | Label | Description |
| processor_path | string | Path to the processor. |
|
| triton_model_name | string | Name of the Triton model. |
|
| triton_model_version | string | Version of the Triton model. |
|
| check_status_timeout | int64 | Timeout for checking model status. |
|
| language | string | Default language of the model. |
|
| task | string | Default task of the model. E.g., transcribe, translate, etc. |
|
| triton_server_host | string | Host name of triton inference server that serves the WhisperTriton model |
|
| triton_server_port | int64 | Port number of triton inference server that serves the WhisperTriton model |
The word alternative message
| Field | Type | Label | Description |
| word | string | The recognized word corresponding to this set of information. |
|
| confidence | float | The corresponding confidence score to the alternative word. |
WordDetail provides word-specific information for recognized words.
| Field | Type | Label | Description |
| start_time | float | The start time of the spoken word relative to the beginning of the audio. The accuracy of the time offset can vary, and this is an experimental feature. |
|
| end_time | float | The end time of the spoken word relative to the beginning of the audio. The accuracy of the time offset can vary, and this is an experimental feature. |
|
| word | string | The recognized word corresponding to this set of information. |
|
| confidence | float | The corresponding confidence score to the word. |
|
| word_alternatives | WordAlternative | repeated | List of alternative words and confidence scores of each. |
The decoding configuration
| Name | Number | Description |
| DEFAULT | 0 | decoding will be defined by the pipeline config |
| GREEDY | 1 | greedy decoding will be used independently on pipeline config |
| BEAM_SEARCH_WITH_LM | 2 | beam search will be used independently on pipeline config |
| BEAM_SEARCH | 3 | beam search without LM head, to configure decoding mode for seq2seq models. |
The inference backend configuration
| Name | Number | Description |
| INFERENCE_BACKEND_UNKNOWN | 0 | Not set |
| INFERENCE_BACKEND_PYTORCH | 1 | Run pytorch model |
| INFERENCE_BACKEND_FLAX | 2 | Run flax model |
| INFERENCE_BACKEND_CLOUD_SERVICE_AMAZON | 3 | Run Amazon S2T cloud service |
| INFERENCE_BACKEND_CLOUD_SERVICE_DEEPGRAM | 4 | Run Deepgram S2T cloud service |
| INFERENCE_BACKEND_CLOUD_SERVICE_GOOGLE | 5 | Run Google S2T cloud service |
| INFERENCE_BACKEND_CLOUD_SERVICE_MICROSOFT | 6 | Run Microsoft Azure S2T cloud service |
Effort level for reasoning models (e.g., o1, o3). Controls the trade-off between speed and quality.
| Name | Number | Description |
| REASONING_EFFORT_UNSPECIFIED | 0 | Unspecified reasoning effort. |
| REASONING_EFFORT_MINIMAL | 1 | Minimal reasoning effort. |
| REASONING_EFFORT_LOW | 2 | Low reasoning effort. |
| REASONING_EFFORT_MEDIUM | 3 | Medium reasoning effort. |
| REASONING_EFFORT_HIGH | 4 | High reasoning effort. |
Latency tier to use for processing an OpenAI request. Affects cost and throughput.
| Name | Number | Description |
| SERVICE_TIER_UNSPECIFIED | 0 | Unspecified service tier. |
| SERVICE_TIER_AUTO | 1 | Auto service tier. |
| SERVICE_TIER_DEFAULT | 2 | Default service tier. |
| SERVICE_TIER_FLEX | 3 | Flex service tier. |
| SERVICE_TIER_SCALE | 4 | Scale service tier. |
| SERVICE_TIER_PRIORITY | 5 | Priority service tier. |
TsdMethod selects the model used for target-speaker detection (TSD): deciding whether a
newly detected utterance came from the main speaker of the call, so that speech from anyone
else (crosstalk, background speakers, barge-in) can be rejected.
| Name | Number | Description |
| TSD_METHOD_UNSPECIFIED | 0 | No explicit choice. TSD then follows the behaviour of older configurations that predate
this field, which is keyed on the active VAD: Pyannote whenever Pyannote is the VAD, since
its segmentation model doubles as a speaker filter; otherwise WeSpeaker if
|
| TSD_METHOD_NONE | 1 | Disable target-speaker detection. Every detected utterance is transcribed, whoever spoke it. |
| TSD_METHOD_PYANNOTE | 2 | Reuse the Pyannote segmentation model, which distinguishes speakers in addition to detecting speech. Available only when Pyannote is also the active VAD. |
| TSD_METHOD_WESPEAKER | 3 | Use the dedicated WeSpeaker embedding model, configured by
|
Who spoke the turn.
| Name | Number | Description |
| ROLE_UNSPECIFIED | 0 | Unspecified role. The server ignores a turn without a role. |
| ROLE_USER | 1 | The caller, i.e. the speaker whose turns are detected. |
| ROLE_ASSISTANT | 2 | The voice assistant. Its text is what the caller HEARD, i.e. the spoken prefix of an interrupted utterance. |
VadMethod selects the model used to split the audio stream into utterances.
| Name | Number | Description |
| VAD_METHOD_UNSPECIFIED | 0 | No explicit choice. The method is then taken from the legacy
|
| VAD_METHOD_PYANNOTE | 1 | Use the Pyannote segmentation model, configured by |
| VAD_METHOD_SILERO | 2 | Use the Silero model, configured by |
Verbosity level for the response output.
| Name | Number | Description |
| VERBOSITY_UNSPECIFIED | 0 | Unspecified verbosity. |
| VERBOSITY_LOW | 1 | Low verbosity. |
| VERBOSITY_MEDIUM | 2 | Medium verbosity. |
| VERBOSITY_HIGH | 3 | High verbosity. |
ONDEWO-SIP API available at GitHub
SIP LifeCycle is explained at here
rpc SipStartSession (SipStartSessionRequest) returns (SipStatus)
Starts a new SIP session for an account registered at a SIP server. RegisterAccount need to be called before.
rpc SipEndSession (.google.protobuf.Empty) returns (SipStatus)
Ends a SIP session for an account registered at a SIP server
Not idempotent (no idempotency_level): tears down the session; a repeat records a new status.rpc SipStartCall (SipStartCallRequest) returns (SipStatus)
Starts a call in an active SIP session for an account registered at a SIP server
Not idempotent (no idempotency_level): a repeat dials a second call.rpc SipEndCall (SipEndCallRequest) returns (SipStatus)
Ends a call in an active SIP session for an account registered at a SIP server
Not idempotent (no idempotency_level): a repeat without a call appends its refusal to the history and ends a one-shot caller container; unscoped it can end the next call.rpc SipTransferCall (SipTransferCallRequest) returns (SipStatus)
Transfers a call in an active SIP session for an account registered at a SIP server to another SIP account or phone number specified by transfer_id
Call scoping: when the gRPC metadatum x-ondewo-expected-call-id is present it must equal
SipStatus.call_id of the ongoing call, otherwise the request is refused with
exception_name=CallScopeMismatch and nothing is assigned to the status. When it is absent the request is
accepted for backward compatibility (unless the server requires call scoping).
With outcome_timeout_ms = 0 the call is transferred as before (REFER, then an immediate hangup).
With outcome_timeout_ms > 0 see SipTransferCallRequest.outcome_timeout_ms.
Refused while invited participants are present (see
SipSetCallMediaControlRequest.participants_present): a REFER into a conference bridge transfers every
party in it, the invited participant included. The refusal is RETURNED as TRANSFER_CALL_FAILED with
exception_name=ParticipantsPresent and description = reason=participants-present; nothing
is sent and the call is kept.
Transfer delegation (see SipTransferDelegation): in a container started with
SIP_TRANSFER_DELEGATION_ACTIVE=True a transfer that the in-container speech-to-speech pipeline asks for
on a connected call is not sent. It is parked in SipStatus.delegated_transfer and RETURNED as
TRANSFER_CALL_FAILED with exception_name=TransferDelegated and
description = reason=delegated-to-vtsi; the call is kept. A client (ONDEWO VTSI) then claims it with
delegation and delegated_request_id. A second transfer of the pipeline while one is
parked is refused with exception_name=TransferInProgress. Without that environment variable, and
for every request with delegation = SIP_TRANSFER_DELEGATION_UNSPECIFIED from any other peer, the
transfer is sent as before.
rpc SipRegisterAccount (SipRegisterAccountRequest) returns (SipStatus)
Registers s SIP account at a SIP server
Not idempotent (no idempotency_level): re-registers the account at the SIP server.rpc SipGetSipStatus (.google.protobuf.Empty) returns (SipStatus)
Gets the current SIP status
rpc SipGetSipStatusHistory (.google.protobuf.Empty) returns (SipStatusHistoryResponse)
Gets the history of SIP status
rpc SipPlayWavFiles (SipPlayWavFilesRequest) returns (SipStatus)
Plays wav files during an ongoing call of an active SIP session
Call scoping as for SipTransferCall: a present x-ondewo-expected-call-id metadatum must
match SipStatus.call_id.
rpc SipMute (.google.protobuf.Empty) returns (SipStatus)
Mutes the microphone in an ongoing call of an active SIP session
Call scoping as for SipTransferCall. Sent by the in-container speech-to-speech pipeline it mutes only
the bot's own mixer slot; sent by a remote client it sets the operator mute of
SipSetCallMediaControl, which the pipeline cannot undo.
rpc SipUnMute (.google.protobuf.Empty) returns (SipStatus)
Un-mutes the microphone in an ongoing call of an active SIP session
Call scoping and the split between the pipeline's own mute and the operator mute as for SipMute.
rpc SipReportAnsweringMachineDetected (SipReportAnsweringMachineDetectedRequest) returns (SipStatus)
Reports that answering machine detection reached a verdict on the ongoing outgoing call. Sets the status
OUTGOING_CALL_ANSWERING_MACHINE_DETECTED carrying amd_result; the call stays up.
Called by the speech-to-speech pipeline (ONDEWO-CSI) inside the same container, i.e. over loopback only.
Refused, and the current status left untouched, when no outgoing call is connected: the returned
SipStatus then carries the refusal in exception_name and description
rpc SipSetCallMediaControl (SipSetCallMediaControlRequest) returns (SipStatus)
Call-scoped operator media control of the ongoing call: mute the bot and/or pause its listening.
Metadata REQUIRED: x-ondewo-expected-call-id (must equal SipStatus.call_id of the ongoing
call) and x-ondewo-sip-call-control-token (the per-container call-control token).
Every request sets a desired level per owner and never toggles; a repeat leaves the level unchanged. The bot is muted while ANY owner holds a mute, and its listening is paused while ANY owner holds a pause.
Returns the live status with call_id, bot_muted, listening_paused and
call_audio_streams filled. Refusals are RETURNED in exception_name /
description (CallScopeMismatch, CallControlUnauthenticated,
NoOngoingCall, AmdInProgress, CsiMediaControlFailed) and never assigned to
the shared status. When the pipeline refuses or fails, a requested pause is rolled back and a requested mute is
kept (the safe direction); the returned fields carry the actual level.
A request may carry a warm_transfer_outcome notice (participant owner only, refused otherwise with
exception_name=InvalidWarmTransferOutcomeNotice). The notice is handed to the speech-to-speech
pipeline whether or not the level changed, and the answer of the pipeline is returned in
SipStatus.warm_transfer_outcome_notice_status.
rpc SipStreamCallAudio (stream SipCallAudioRequest) returns (stream SipCallAudioResponse)
Bidirectional live audio of the ongoing call.
The first request MUST be config and must arrive within 2 seconds. Metadata as for
SipSetCallMediaControl.
LISTEN receives the caller (plus any conference participants) mixed with the bot. TALK sends the agent's audio to
the caller; it REQUIRES take_over, i.e. the bot is muted and does not listen while the stream is
connected, and in TALK the agent hears the caller only. Audio is LINEAR16 little-endian mono in 20 ms frames.
gRPC status codes: UNAUTHENTICATED (token), FAILED_PRECONDITION (call id mismatch, no
connected call, answering machine detection in progress, bot still speaking at TALK start),
INVALID_ARGUMENT (missing or invalid config, wrong frame size),
RESOURCE_EXHAUSTED (stream cap reached, a second TALK). A normal end sends one ended
message and then OK.
rpc SipSendDtmf (SipSendDtmfRequest) returns (SipStatus)
Send DTMF keys into the ongoing connected call, as RFC 4733 telephone-events (e.g. to navigate an IVR the bot called, or for an operator).
Metadata as for SipSetCallMediaControl: x-ondewo-expected-call-id must equal
SipStatus.call_id of the ongoing call; a peer outside the container presents
x-ondewo-sip-call-control-token when the container has one.
Returns the live status. Refusals are RETURNED in exception_name / description
(CallScopeMismatch, CallControlUnauthenticated, NoOngoingCall,
AmdInProgress, InvalidDtmf) and never assigned to the shared status. The keys are never
logged in clear.
| Method Name | Option |
| SipGetSipStatus | NO_SIDE_EFFECTS |
| SipGetSipStatusHistory | NO_SIDE_EFFECTS |
Result of the answering machine detection (AMD) of an outbound call
Carries identifiers from closed vocabularies only: never audio, transcript text or a phone number
| Field | Type | Label | Description |
| verdict | AnsweringMachineDetectionResult.Verdict | Who or what answered the call |
|
| cause | AnsweringMachineDetectionResult.Cause | Evidence that led to the verdict |
|
| confidence | float | Confidence of the verdict, between |
|
| decision_ms | int32 | Time in milliseconds from the call being connected until the verdict was reached |
|
| rule_id | string | Identifier of the detection rule that produced the verdict |
|
| matched_cue_ids | string | repeated | Identifiers of the cues that matched, e.g. keyword or tone identifiers. Identifiers only, never transcript text |
| action_taken | AnsweringMachineDetectionResult.ActionTaken | What was done because of the verdict |
|
| call_id | string | Identifier of the call the result belongs to, i.e. the value of the |
Configuration of a SipStreamCallAudio stream. Must be the first request of the stream
| Field | Type | Label | Description |
| mode | SipCallAudioMode | Mode of the stream. Unspecified means LISTEN |
|
| sample_rate_hz | int32 | Sample rate in Hz of the audio in both directions: |
|
| frame_ms | int32 | Frame length in milliseconds. Only |
|
| take_over | bool | REQUIRED for TALK: the bot is muted and does not listen while the stream is connected. Released when the stream ends |
|
| stream_id | string | Identifier of the stream for logs and audit correlation, minted by the client (a UUID) |
|
| max_duration_s | int32 | Maximum duration of the stream in seconds. |
Sent once when a SipStreamCallAudio stream ends normally
| Field | Type | Label | Description |
| reason | SipCallAudioEndReason | Why the stream ended |
|
| detail | string | Optional detail, a stable token |
One frame of call audio
| Field | Type | Label | Description |
| pcm_s16le | bytes | LINEAR16 little-endian mono samples of one frame, i.e. |
|
| sequence | uint64 | Monotonic sequence number of the frame within its direction of the stream |
Request of SipStreamCallAudio
| Field | Type | Label | Description |
| config | SipCallAudioConfig | Configuration; must be the first request and is accepted only once |
|
| audio | SipCallAudioFrame | Agent audio to send to the caller (TALK only) |
|
| agent_muted | bool |
|
Response of SipStreamCallAudio
| Field | Type | Label | Description |
| started | SipCallAudioStarted | The stream is connected |
|
| audio | SipCallAudioFrame | Call audio |
|
| stats | SipCallAudioStats | Stream counters |
|
| ended | SipCallAudioEnded | The stream ended |
Sent once when a SipStreamCallAudio stream is connected
| Field | Type | Label | Description |
| stream_id | string | Identifier of the stream |
|
| sample_rate_hz | int32 | Sample rate in Hz of the audio in both directions |
|
| frame_ms | int32 | Frame length in milliseconds |
|
| mode | SipCallAudioMode | Mode of the stream |
Counters of a SipStreamCallAudio stream, sent periodically
| Field | Type | Label | Description |
| frames_sent | uint64 | Frames sent to the client |
|
| frames_dropped | uint64 | Frames to the client dropped because the client read too slowly |
|
| frames_received | uint64 | Frames received from the client |
|
| underruns | uint64 | Playback underruns of the agent audio (silence was played) |
|
| frames_discarded | uint64 | Frames from the client discarded because the playback buffer was full |
A transfer that the in-container speech-to-speech pipeline asked for and the container handed to a client instead
of sending it (see SipTransferDelegation). Call-scoped: empty when no transfer is parked, when no call
is ongoing, and after the call ended.
SipGetSipStatus, SipGetSipStatusHistory and every other response report only
request_id, requested_at and target_is_phone_number. The target and the headers
are filled ONLY in the response of a SIP_TRANSFER_DELEGATION_CLAIM.
| Field | Type | Label | Description |
| request_id | string | Identifier of the parked transfer, a UUID minted by ONDEWO SIP. Sent back as
|
|
| requested_at | google.protobuf.Timestamp | When the pipeline asked for the transfer |
|
| target_is_phone_number | bool |
|
|
| transfer_id | string | The target the pipeline asked for, already checked by the transfer target policy. Only in the response of a
|
|
| headers | SipDelegatedTransfer.HeadersEntry | repeated | The headers the pipeline sent with the transfer. Only in the response of a
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Ends an ongoing call of the active SIP session of the active SIP account
| Field | Type | Label | Description |
| hard_hangup | bool | Set to |
|
| end_reason | SipEndCallRequest.EndCallReason | Optional: reason for ending the call. Leave unset for an ordinary hangup |
|
| amd_result | AnsweringMachineDetectionResult | Optional: result of the answering machine detection that decided to end the call. Only meaningful together with
|
Plays a list of wav files
| Field | Type | Label | Description |
| wav_files | bytes | repeated | Wav files as bytes in a list that will be played |
Request for registering a SIP account at a SIP server
| Field | Type | Label | Description |
| account_name | string | Account name of the sip user. Usually something like |
|
| password | string | Password of the account |
|
| auth_username | string | Optional: authentication user name |
|
| outbound_proxy | string | Optional: outbound proxy address, e.g. |
Reports the verdict of the answering machine detection of the ongoing outgoing call
| Field | Type | Label | Description |
| amd_result | AnsweringMachineDetectionResult | Result of the answering machine detection. Written to |
Request of SipSendDtmf
| Field | Type | Label | Description |
| digits | string | The keys to send, in order: |
Request of SipSetCallMediaControl
| Field | Type | Label | Description |
| bot_voice | MediaControlSetting |
|
|
| bot_listening | MediaControlSetting |
|
|
| owner | MediaControlOwner | Owner whose hold is set |
|
| participants_present | bool | Only for While participants are present (this flag, or a mute or pause held by the participant owner)
|
|
| warm_transfer_outcome | SipWarmTransferOutcomeNotice | Optional, only with Handed to the speech-to-speech pipeline after the level, also when the level did not change; the answer is
returned in |
Request to start the call with the active SIP session of the active SIP account
| Field | Type | Label | Description |
| callee_id | string | SIP account name |
|
| headers | SipStartCallRequest.HeadersEntry | repeated | Headers to include when starting the call |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Request for starting a new SIP session for a specified account
| Field | Type | Label | Description |
| account_name | string | Account name of the sip user. Usually something like |
|
| auto_answer_interval | int32 | Auto-answer interval in seconds. The call will be automatically answered after this interval |
Status information for a SIP account, session, or call
| Field | Type | Label | Description |
| account_name | string | Account name of the sip user. Usually something like |
|
| timestamp | google.protobuf.Timestamp | Timestamp of the status |
|
| status_type | SipStatus.StatusType | Status type |
|
| callee_id | string | SIP account name |
|
| transfer_call_id | string | SIP account of the transfer |
|
| headers | SipStatus.HeadersEntry | repeated | Headers to include when calling outbound or transfer |
| description | string | More detailed description of the status |
|
| exception_name | string | Name of the exception |
|
| exception_traceback | string | Traceback of the exception |
|
| nlu_session_name | string | session name of the NLU session |
|
| amd_result | AnsweringMachineDetectionResult | Result of the answering machine detection of the call. Set on
|
|
| call_id | string | Identifier of the ongoing call, minted per call: the value of the |
|
| bot_muted | bool |
|
|
| listening_paused | bool |
|
|
| call_audio_streams | int32 | Number of connected |
|
| sip_response_code | int32 | SIP response code of the last transfer attempt of the ongoing call ( |
|
| delegated_transfer | SipDelegatedTransfer | The transfer parked for a client to claim (see |
|
| capabilities | string | repeated | Optional features this container supports, as stable tokens. Fixed for the life of the container, so it is the same on every status. Empty (default): none of them, as for a container built before this field existed. Clients ignore tokens they do not know.
|
| warm_transfer_outcome_notice_status | SipWarmTransferOutcomeNoticeStatus | Answer of the speech-to-speech pipeline to the |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
History of SIP status
| Field | Type | Label | Description |
| status_history | SipStatus | repeated | History of SIP status |
Request for transferring a call with or without headers
| Field | Type | Label | Description |
| transfer_id | string | The account name or phone number to transfer the call to |
|
| headers | SipTransferCallRequest.HeadersEntry | repeated | The headers to include when transferring the call. They are sent on the REFER. Note that Asterisk (res_pjsip, measured on 18.6 and 22) does NOT forward headers of a REFER to the transfer target: the target receives the headers of the transferred caller's original INVITE. Hand headers to the target through the dialplan instead |
| outcome_timeout_ms | uint32 | Optional. How long to wait, in milliseconds, for the SIP server's answer to the REFER before reporting the outcome. Clamped to 10000.
A |
|
| delegation | SipTransferDelegation | Optional. Claims the transfer parked in |
|
| delegated_request_id | string | Required with every |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
One-shot notice of a warm-transfer outcome for the bot. The pipeline tells the caller at most once per
request_id and call. Carries no reason text the target gave
| Field | Type | Label | Description |
| request_id | string | Identifier of the transfer request of the client (ONDEWO VTSI). Required; the notice is delivered at most once per call for one identifier |
|
| outcome | SipWarmTransferOutcome | The outcome |
|
| intro_session | string | Optional: NLU session name of the session in which the transfer target was introduced, so the pipeline can relay what the target said. Empty when there was no intro |
|
| callee_display_name | string | Optional: display name of the transfer target, at most 128 characters |
|
| cause | string | Optional: a stable token naming why the transfer did not complete, e.g. |
|
| fallback_text | string | Optional: the sentence the pipeline speaks itself when it cannot have the NLU phrase the outcome, rendered by the client. Never contains a reason the target gave. Empty: the pipeline has no sentence of its own to fall back on |
What was done because of the verdict
| Name | Number | Description |
| ACTION_TAKEN_UNSPECIFIED | 0 | No action recorded |
| HUNG_UP | 1 | The call was hung up |
| CONTINUED | 2 | The call continued as normal |
| DETECT_ONLY | 3 | Detection only: the verdict was recorded, but the call was not influenced by it |
| LEFT_VOICE_MESSAGE | 4 | A voice message was left on the answering machine, and the call was hung up afterwards |
Evidence that led to the verdict
| Name | Number | Description |
| CAUSE_UNSPECIFIED | 0 | No cause available |
| CADENCE | 1 | The speech cadence, e.g. a long uninterrupted greeting |
| KEYWORD | 2 | A keyword or phrase typical of the verdict |
| BEEP | 3 | A voicemail beep |
| TONE | 4 | A tone, e.g. a fax or special information tone |
| CADENCE_AND_KEYWORD | 5 | Both the speech cadence and a keyword |
| CADENCE_AND_BEEP | 6 | Both the speech cadence and a voicemail beep |
| TIMEOUT | 7 | The detection window ended before any other evidence decided |
| SILENCE | 8 | Silence throughout the detection window |
Who or what answered the call
| Name | Number | Description |
| VERDICT_UNSPECIFIED | 0 | No verdict available |
| HUMAN | 1 | A person answered the call |
| MACHINE | 2 | An answering machine or voicemail answered the call |
| IVR | 3 | An interactive voice response system (IVR) answered the call |
| FAX | 4 | A fax machine answered the call |
| NETWORK_ANNOUNCEMENT | 5 | A network announcement answered the call, e.g. "the number you have dialed is not available" |
| CALL_SCREENING | 6 | A call screening service answered the call, e.g. asking the caller to state their name |
| NO_SPEECH | 7 | Nothing was said within the detection window |
| UNKNOWN | 8 | The detection could not decide |
Owner of a media control hold. Each owner holds its own mute and pause; releasing one owner's hold never releases
another owner's
| Name | Number | Description |
| MEDIA_CONTROL_OWNER_UNSPECIFIED | 0 | Same as |
| MEDIA_CONTROL_OWNER_OPERATOR | 1 | An operator, e.g. a supervisor muting the bot |
| MEDIA_CONTROL_OWNER_PARTICIPANT | 2 | The bot policy of invited conference participants, set while at least one participant is ringing or joined. Its
hold mutes or pauses the bot only when a participant's bot policy asks for it; it also carries
|
Desired setting of one media control flag
| Name | Number | Description |
| MEDIA_CONTROL_SETTING_UNCHANGED | 0 | Leave the flag as it is for this owner |
| MEDIA_CONTROL_SETTING_ON | 1 | The flag is on: the bot speaks ( |
| MEDIA_CONTROL_SETTING_OFF | 2 | The flag is off: the bot is muted ( |
Why a SipStreamCallAudio stream ended
| Name | Number | Description |
| SIP_CALL_AUDIO_END_REASON_UNSPECIFIED | 0 | No reason recorded |
| SIP_CALL_AUDIO_END_REASON_CLIENT_CLOSED | 1 | The client cancelled or half-closed the stream |
| SIP_CALL_AUDIO_END_REASON_CALL_ENDED | 2 | The call ended |
| SIP_CALL_AUDIO_END_REASON_CALL_TRANSFERRED | 3 | The call was transferred |
| SIP_CALL_AUDIO_END_REASON_MAX_DURATION | 4 |
|
| SIP_CALL_AUDIO_END_REASON_STALLED | 5 | The client did not read the audio in time |
| SIP_CALL_AUDIO_END_REASON_INTERNAL | 6 | An internal error ended the stream |
Mode of a SipStreamCallAudio stream
| Name | Number | Description |
| SIP_CALL_AUDIO_MODE_UNSPECIFIED | 0 | Same as |
| SIP_CALL_AUDIO_MODE_LISTEN | 1 | Receive the call audio only |
| SIP_CALL_AUDIO_MODE_TALK | 2 | Receive the caller's audio and send audio to the caller. Requires |
Why the call is being ended
| Name | Number | Description |
| END_CALL_REASON_UNSPECIFIED | 0 | No specific reason given. The call ends as an ordinary hangup, exactly as before this field existed |
| ANSWERING_MACHINE | 1 | Answering machine detection decided the callee is not a person to talk to (answering machine, fax,
network announcement, ...) and the call is hung up WITHOUT leaving a voice message. The terminal status
of the call is |
| ANSWERING_MACHINE_VOICE_MESSAGE_LEFT | 2 | Answering machine detection decided the callee is an answering machine, a voice message was left on it,
and the call is hung up afterwards (or when the voice message timeout expired). The terminal status of
the call is |
| END_CALL_REASON_TRANSFERRED | 3 | A WARM transfer completed: the transfer target joined the call and the bot leaves it. The terminal status of
the call is |
Types of status
| Name | Number | Description |
| NO_SESSION | 0 | No session is currently active |
| REGISTERED | 1 | SIP account is registered at a SIP server |
| READY | 2 | SIP account is ready to call |
| INCOMING_CALL_INITIATED | 3 | SIP account is being called, i.e. inbound/incoming call |
| OUTGOING_CALL_INITIATED | 4 | SIP account starts calling, i.e. outbound/outgoing call |
| OUTGOING_CALL_CONNECTED | 5 | SIP account outbound call is connected |
| INCOMING_CALL_CONNECTED | 6 | SIP account incoming call is connected |
| TRANSFER_CALL_INITIATED | 7 | SIP account starts transferring the call |
| SOFT_HANGUP_INITIATED | 8 | SIP account hangs up the ongoing call |
| HARD_HANGUP_INITIATED | 9 | SIP account forcefully hangs up by terminating the SIP program |
| INCOMING_CALL_FAILED | 10 | SIP account cannot accept the incoming call |
| OUTGOING_CALL_FAILED | 11 | SIP account cannot do an outbound call |
| INCOMING_CALL_FINISHED | 12 | SIP account finished the ongoing incoming call |
| OUTGOING_CALL_FINISHED | 13 | SIP account finished the ongoing outgoing call |
| SESSION_REGISTRATION_FAILED | 14 | Registration of SIP account to SIP server failed |
| SESSION_STARTED | 15 | SIP account started a new SIP session via a SIP server |
| SESSION_ENDED | 16 | SIP account ended active sip session with SIP server |
| TRANSFER_CALL_FAILED | 17 | SIP account cannot transfer the call |
| MICROPHONE_MUTED | 18 | Microphone is muted |
| MICROPHONE_UNMUTED | 19 | Microphone is unmuted |
| MICROPHONE_WAV_FILES_PLAYED | 20 | Microphone has played wav files |
| NO_ONGOING_CALL | 21 | No ongoing call |
| OUTGOING_CALL_ANSWERING_MACHINE_DETECTED | 22 | Answering machine detection decided the callee of the ongoing outgoing call is not a person to talk to.
NOT terminal: the call is still up when this status is set. |
How a SipTransferCall handles a transfer that the container parked in
SipStatus.delegated_transfer instead of sending it.
Every value other than SIP_TRANSFER_DELEGATION_UNSPECIFIED requires the
x-ondewo-sip-call-control-token metadatum (otherwise CallControlUnauthenticated) and the
x-ondewo-expected-call-id metadatum naming the ongoing call (missing or different:
CallScopeMismatch), plus delegated_request_id (otherwise
DelegatedRequestMismatch). Refusals are RETURNED in exception_name /
description and never assigned to the shared status.
A parked transfer that is neither claimed nor ended within SIP_TRANSFER_DELEGATION_CLAIM_TIMEOUT_S is
dropped WITHOUT a REFER, and the pipeline is told with SIP_WARM_TRANSFER_OUTCOME_DELEGATION_EXPIRED. A
claimed transfer never expires.
| Name | Number | Description |
| SIP_TRANSFER_DELEGATION_UNSPECIFIED | 0 | No delegated transfer is claimed: the request is an ordinary transfer, exactly as before this field existed |
| SIP_TRANSFER_DELEGATION_CLAIM | 1 | Claim the parked transfer and send nothing. The response carries the full target and headers in
|
| SIP_TRANSFER_DELEGATION_EXECUTE | 2 | End the delegation and send the transfer of THIS request ( |
| SIP_TRANSFER_DELEGATION_DISCARD | 3 | End the delegation and send nothing; the call stays with the bot, e.g. because the client handles the transfer itself (a warm transfer with an intro) |
Outcome of a warm transfer that the bot tells the caller
| Name | Number | Description |
| SIP_WARM_TRANSFER_OUTCOME_UNSPECIFIED | 0 | No outcome |
| SIP_WARM_TRANSFER_OUTCOME_DECLINED | 1 | The transfer target declined the call; the caller stays with the bot |
| SIP_WARM_TRANSFER_OUTCOME_UNREACHABLE | 2 | The transfer target could not be reached: busy, no answer, no decision, or no intro possible; the caller stays with the bot |
| SIP_WARM_TRANSFER_OUTCOME_DELEGATION_EXPIRED | 3 | A transfer parked in |
Answer of the speech-to-speech pipeline to a SipWarmTransferOutcomeNotice
| Name | Number | Description |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_UNSPECIFIED | 0 | No notice was carried |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_QUEUED | 1 | The pipeline accepted the notice and will tell the caller, unless the call ends first |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_DUPLICATE | 2 | The pipeline already has a notice with this |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_DISABLED | 3 | The pipeline does not tell the caller about warm-transfer outcomes (switched off); the notice is dropped |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_INVALID | 4 | The pipeline refused the notice as malformed; the notice is dropped |
| SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_PENDING | 5 | The pipeline did not answer (unreachable, or an older pipeline without the notice). The notice is kept and handed over again until it answers or the call ends |
Text2Speech service provides endpoints for text-to-speech generation.
rpc Synthesize (SynthesizeRequest) returns (SynthesizeResponse)
Synthesizes a specific text sent in the request with the provided configuration requirements and retrieves a response that includes the synthesized text as audio and the requested configuration.
rpc BatchSynthesize (BatchSynthesizeRequest) returns (BatchSynthesizeResponse)
Performs batch synthesis by accepting a batch of synthesis requests and returning a batch response. This can be more efficient for generating predictions on the AI model in bulk.
rpc StreamingSynthesize (stream StreamingSynthesizeRequest) returns (stream StreamingSynthesizeResponse)
Performs streaming synthesis by accepting stream of input text and returning a stream of generated audio.
rpc NormalizeText (NormalizeTextRequest) returns (NormalizeTextResponse)
Normalizes a text according to the specific pipeline's normalization rules.
rpc GetT2sPipeline (T2sPipelineId) returns (Text2SpeechConfig)
Retrieves the configuration of the specified text-to-speech pipeline.
rpc CreateT2sPipeline (Text2SpeechConfig) returns (T2sPipelineId)
Creates a new text-to-speech pipeline with the provided configuration and returns its pipeline ID.
rpc DeleteT2sPipeline (T2sPipelineId) returns (.google.protobuf.Empty)
Deletes the specified text-to-speech pipeline.
rpc UpdateT2sPipeline (Text2SpeechConfig) returns (.google.protobuf.Empty)
Updates the specified text-to-speech pipeline with the given configuration.
rpc ListT2sPipelines (ListT2sPipelinesRequest) returns (ListT2sPipelinesResponse)
Retrieves a list of text-to-speech pipelines based on specific requirements.
rpc ListT2sLanguages (ListT2sLanguagesRequest) returns (ListT2sLanguagesResponse)
Retrieves a list of languages available based on specific configuration requirements.
rpc ListT2sDomains (ListT2sDomainsRequest) returns (ListT2sDomainsResponse)
Retrieves a list of domains available based on specific configuration requirements.
rpc ListT2sNormalizationPipelines (ListT2sNormalizationPipelinesRequest) returns (ListT2sNormalizationPipelinesResponse)
Retrieves a list of normalization pipelines based on specific requirements.
rpc GetServiceInfo (.google.protobuf.Empty) returns (T2SGetServiceInfoResponse)
Retrieves the version information of the running text-to-speech server.
rpc GetCustomPhonemizer (PhonemizerId) returns (CustomPhonemizerProto)
Retrieves a custom phonemizer based on the provided PhonemizerId.
rpc CreateCustomPhonemizer (CreateCustomPhonemizerRequest) returns (PhonemizerId)
Creates a custom phonemizer based on the provided CreateCustomPhonemizerRequest. Returns the PhonemizerId associated with the created custom phonemizer.
rpc DeleteCustomPhonemizer (PhonemizerId) returns (.google.protobuf.Empty)
Deletes a custom phonemizer based on the provided PhonemizerId. Returns an Empty response upon successful deletion.
rpc UpdateCustomPhonemizer (UpdateCustomPhonemizerRequest) returns (CustomPhonemizerProto)
Updates the specified custom phonemizer with the provided configuration.
rpc ListCustomPhonemizer (ListCustomPhonemizerRequest) returns (ListCustomPhonemizerResponse)
Retrieves a list of custom phonemizers based on specific requirements.
rpc VoiceCloning (VoiceCloningRequest) returns (.google.protobuf.Empty)
Clones a voice based on a sample audio of the speaker and its transcription. The cloned voice can afterwards be used for synthesis by referencing the given speaker name.
Apodization message contains settings for apodization postprocessing.
| Field | Type | Label | Description |
| apodization_secs | float | The duration of apodization in seconds. |
BatchSynthesizeRequest message is used to send a batch request for synthesis.
| Field | Type | Label | Description |
| batch_request | SynthesizeRequest | repeated | Repeated field holding individual synthesis requests that make up the batch request. |
BatchSynthesizeResponse message is used to store the responses for a batch synthesis request.
| Field | Type | Label | Description |
| batch_response | SynthesizeResponse | repeated | Repeated field holding individual synthesis responses that correspond to the input requests in the batch. |
Caching message contains settings for caching.
| Field | Type | Label | Description |
| active | bool | Flag indicating whether caching is active. |
|
| memory_cache_max_size | int64 | The maximum size of the memory cache. |
|
| sampling_rate | int64 | The sampling rate for caching. |
|
| load_cache | bool | Flag indicating whether to load cache. |
|
| save_cache | bool | Flag indicating whether to save cache. |
|
| cache_save_dir | string | The directory path to save the cache. |
CompositeInference message combines text-to-mel and mel-to-audio inference settings.
| Field | Type | Label | Description |
| text2mel | Text2Mel | Text-to-mel inference settings. |
|
| mel2audio | Mel2Audio | Mel-to-audio inference settings. |
CreateCustomPhonemizerRequest message represents the request for creating a custom phonemizer.
| Field | Type | Label | Description |
| prefix | string | The prefix for the custom phonemizer ID. |
|
| maps | Map | repeated | Repeated field of Map messages representing word-to-phoneme mappings. |
CustomPhonemizerProto message represents a custom phonemizer.
| Field | Type | Label | Description |
| id | string | The ID of the custom phonemizer. |
|
| maps | Map | repeated | Repeated field of Map messages representing word-to-phoneme mappings. |
GlowTTS message contains settings for the GlowTTS inference.
| Field | Type | Label | Description |
| batch_size | int64 | The batch size for inference. |
|
| use_gpu | bool | Flag indicating whether to use GPU for inference. |
|
| length_scale | float | The length scale for inference. |
|
| noise_scale | float | The noise scale for inference. |
|
| path | string | The path to the GlowTTS model. |
|
| cleaners | string | repeated | Repeated field containing the cleaners for text normalization. |
| param_config_path | string | The path to the parameter configuration. |
GlowTTSTriton message contains settings for the GlowTTS Triton inference.
| Field | Type | Label | Description |
| batch_size | int64 | The batch size for inference. |
|
| length_scale | float | The length scale for inference. |
|
| noise_scale | float | The noise scale for inference. |
|
| cleaners | string | repeated | Repeated field containing the cleaners for text normalization. |
| max_text_length | int64 | The maximum text length allowed. |
|
| param_config_path | string | The path to the parameter configuration. |
|
| triton_model_name | string | The name of the Triton model. |
|
| triton_server_host | string | The host of the Triton inference server which serves the model. |
|
| triton_server_port | int64 | The port of the Triton inference server which serves the model. |
HiFiGan message contains settings for the HiFiGan inference.
| Field | Type | Label | Description |
| use_gpu | bool | Flag indicating whether to use GPU for inference. |
|
| batch_size | int64 | The batch size for inference. |
|
| config_path | string | The path to the HiFiGan configuration. |
|
| model_path | string | The path to the HiFiGan model. |
HiFiGanTriton message contains settings for the HiFiGan Triton inference.
| Field | Type | Label | Description |
| config_path | string | The path to the HiFiGan Triton configuration. |
|
| triton_model_name | string | The name of the Triton model. |
|
| triton_server_host | string | The host of the Triton inference server which serves the model. |
|
| triton_server_port | int64 | The port of the Triton inference server which serves the model. |
ListCustomPhonemizerRequest message represents the request for listing custom phonemizers.
| Field | Type | Label | Description |
| pipeline_ids | string | repeated | Repeated field of pipeline IDs to filter the list of custom phonemizers. |
ListCustomPhonemizerResponse message represents the response for listing custom phonemizers.
| Field | Type | Label | Description |
| phonemizers | CustomPhonemizerProto | repeated | Repeated field of CustomPhonemizerProto messages representing the custom phonemizers. |
Domain Request representation.
The request message for ListT2sDomains.
Filter domains of pipelines by attributed in request.
| Field | Type | Label | Description |
| speaker_sexes | string | repeated | Optional. Define the speaker sex. |
| pipeline_owners | string | repeated | Optional. Define the pipeline owner/ owners. |
| speaker_names | string | repeated | Optional. Define the speaker name/ names. |
| languages | string | repeated | Optional. Define the language/ languages. |
Domains Response representation.
The response message for ListT2sDomains.
| Field | Type | Label | Description |
| domains | string | repeated | Required. Define the domain/ domains that satisfy/ies the specifications in the ListT2sDomainsRequest. |
Language Request representation.
The request message for ListT2sLanguages.
Filter languages of pipelines by attributed in request.
| Field | Type | Label | Description |
| speaker_sexes | string | repeated | Optional. Define the speaker sex. |
| pipeline_owners | string | repeated | Optional. Define the pipeline owner/ owners. |
| speaker_names | string | repeated | Optional. Define the speaker name/ names. |
| domains | string | repeated | Optional. Define the domain/ domains. |
Language Response representation.
The response message for ListT2sLanguages.
| Field | Type | Label | Description |
| languages | string | repeated | Required. Define the language/ languages that satisfy/ies the specifications in the ListT2sLanguagesRequest. |
The request message for ListT2sNormalizationPipelines.
Filter pipelines by attributed in request.
| Field | Type | Label | Description |
| language | string | Optional. Define the language. |
Pipeline Response representation.
The response message for ListT2sNormalizationPipelines.
| Field | Type | Label | Description |
| t2s_normalization_pipelines | string | repeated | Required. Representation of a list of normalization pipelines configurations. Retrieved by ListT2sNormalizationPipelines, containing the configurations of normalization pipelines with the specifications received in the ListT2sNormalizationPipelinesRequest. |
Pipeline Request representation.
The request message for ListT2sPipelines.
Filter pipelines by attributed in request.
| Field | Type | Label | Description |
| languages | string | repeated | Optional. Define the language/ languages. |
| speaker_sexes | string | repeated | Optional. Define the speaker sex. |
| pipeline_owners | string | repeated | Optional. Define the pipeline owner/ owners. |
| speaker_names | string | repeated | Optional. Define the speaker name/ names. |
| domains | string | repeated | Optional. Define the domain/ domains. |
Pipeline Response representation.
The response message for ListT2sPipelines.
| Field | Type | Label | Description |
| pipelines | Text2SpeechConfig | repeated | Required. Representation of a list of pipelines configurations. Retrieved by ListT2sPipelines, containing the configurations of pipelines with the specifications received in the ListT2sPipelinesRequest. |
Logmnse message contains settings for Logmnse postprocessing.
| Field | Type | Label | Description |
| initial_noise | int64 | The initial noise value. |
|
| window_size | int64 | The window size. |
|
| noise_threshold | float | The noise threshold. |
Map message represents a word-to-phoneme mapping in a custom phonemizer.
| Field | Type | Label | Description |
| word | string | The word to be mapped. |
|
| phoneme_groups | string | The phoneme groups associated with the word. |
MbMelganTriton message contains settings for the MbMelgan Triton inference.
| Field | Type | Label | Description |
| config_path | string | The path to the MbMelgan Triton configuration. |
|
| stats_path | string | The path to the MbMelgan statistics. |
|
| triton_model_name | string | The name of the Triton model. |
|
| triton_server_host | string | The host of the Triton inference server which serves the model. |
|
| triton_server_port | int64 | The port of the Triton inference server which serves the model. |
Mel2Audio message contains settings for mel-to-audio inference.
| Field | Type | Label | Description |
| type | string | The type of mel-to-audio inference (vocoder), selecting which of the settings below is applied (mb_melgan_triton, hifi_gan or hifi_gan_triton). |
|
| mb_melgan_triton | MbMelganTriton | MbMelgan Triton inference settings. |
|
| hifi_gan | HiFiGan | HiFiGan inference settings. |
|
| hifi_gan_triton | HiFiGanTriton | HiFiGan Triton inference settings. |
NormalizeTextRequest message is used to request text normalization.
| Field | Type | Label | Description |
| t2s_pipeline_id | string | The ID of the text-to-speech pipeline. |
|
| text | string | The text to be normalized. |
NormalizeTextResponse message is used to store the normalized text response.
| Field | Type | Label | Description |
| normalized_text | string | The normalized text. |
PhonemizerId message represents the ID of a phonemizer.
| Field | Type | Label | Description |
| id | string | The ID of the phonemizer. |
Postprocessing message contains settings for postprocessing.
| Field | Type | Label | Description |
| silence_secs | float | The duration of silence in seconds. |
|
| pipeline | string | repeated | Repeated field containing pipeline names. |
| logmmse | Logmnse | Logmnse postprocessing settings. |
|
| wiener | Wiener | Wiener postprocessing settings. |
|
| apodization | Apodization | Apodization postprocessing settings. |
Qwen3TtsBase message contains settings for inference of qwen3-TTS-Base model.
| Field | Type | Label | Description |
| model_name | string | Model name for the inference server. |
|
| language | string | Language for inference server |
|
| embedding_path | string | Path of the embedding file |
|
| qwen3_tts_server_host | string | Host name for the inference server |
|
| qwen3_tts_server_port | int64 | Port of the inference server |
|
| qwen3_tts_server_header | google.protobuf.Struct | optional | Authorization headers for the inference server |
Qwen3TtsCustomVoice message contains settings for inference of qwen3-TTS-CustomVoice model.
| Field | Type | Label | Description |
| voice_id | string | Voice id indicating the speaker name |
|
| model_name | string | Model name for the inference server. |
|
| language | string | Language for inference server |
|
| qwen3_tts_server_host | string | Host name for the inference server |
|
| qwen3_tts_server_port | int64 | Port of the inference server |
|
| qwen3_tts_server_header | google.protobuf.Struct | optional | Authorization headers for the inference server |
Represents a Configuration for the text to speech conversion.
| Field | Type | Label | Description |
| t2s_pipeline_id | string | Required. Represents the pipeline id of the model configuration that will be used. |
|
| length_scale | float | Optional. This parameter is used for time stretching which is the process of changing the speed or duration of an audio. It should be much more than 1.0. 0 is not a valid number for this variable. The default value is 1. |
|
| noise_scale | float | Optional. Defines the noise in the generated audio. It should be between 0.0 and 1. The default value is 0.0 |
|
| sample_rate | int32 | Optional. Defines the sample rate of the generated wav file. The default value is 22050. |
|
| pcm | Pcm | Optional. Defines the pulse-code modulation of the wav file. The default value is PCM_16. |
|
| audio_format | AudioFormat | Optional. Defines the format of the desired audio. The default value is wav. |
|
| use_cache | bool | Optional. Define if cache should be used or not. The default value is False. |
|
| t2s_service_config | google.protobuf.Struct | optional | Optional. t2s_service_config provides the configuration of the service such as API key, bearer tokens, JWT, and other header information as key value pairs, e.g.,
A. For Amazon T2S service, the following arguments should be passed:
B. For ElevenLabs T2s service, the following arguments should be passed:
C. For Google cloud T2S service, the following arguments should be passed:
D. For Microsoft Azure T2s service, the following arguments should be passed:
Note: ondewo-t2s will raise an error if you don't pass any of the required arguments above. |
| t2s_cloud_provider_config | T2sCloudProviderConfig | optional | Optional. Defines the cloud provider's specific configuration for using text to speech cloud services The default value is None. |
| t2s_normalization | T2SNormalization | Optional. Define t2s_normalization config parameters for this specific request. The default values are set in the config file and the values set via RequestConfig are set just for this specific request and will not update the pipeline. |
|
| word_to_phoneme_mapping | google.protobuf.Struct | optional | Optional. Define a dict which specifies the phonemes for a special word. |
| instruction | string | optional | Optional. Define an instruction or prompt to be passed to the TTS/LLM backend for this request. This field is only honored by the qwen3-tts-voicedesign model, where it is a natural-language description of the target voice to design, e.g.
It is ignored by every other pipeline, including the qwen3-tts CustomVoice and base models and
the local vits / glow-tts models. To control the delivery / emotion of the qwen3-tts CustomVoice
model, embed the control tags in the request text instead (see |
SingleInference message inference settings of text2audio models.
| Field | Type | Label | Description |
| text2audio | Text2Audio | Text-to-audio inference settings. |
StreamingSynthesizeRequest is used to perform streaming synthesize.
| Field | Type | Label | Description |
| text | string | Required. Represents the text that will be transformed to speech. All the properties according to the input text in SynthesizeRequest can be also applied here. |
|
| config | RequestConfig | Required. Represents the specifications needed to do the text to speech transformation. |
Represents a Streaming Synthesize Response.
A Streaming Synthesize Response contains the generated audio, requested text and and
all other properties of this generated audio.
| Field | Type | Label | Description |
| audio_uuid | string | Required. The unique identifier (UUID) assigned to the generated audio. |
|
| audio | bytes | Required. Generated file with the parameters described in request. |
|
| generation_time | float | Required. Time taken to generate the audio, in seconds. |
|
| audio_length | float | Required. Length (duration) of the generated audio, in seconds. |
|
| text | string | Required. Text from which audio was generated. |
|
| config | RequestConfig | Required. Configuration from which audio was generated. |
|
| normalized_text | string | Optional. Normalized text. |
|
| sample_rate | float | Optional. Sampling rate of the generated audio, in Hertz (Hz). |
Represents a Synthesize Request.
A Synthesize Request contains the information need to perform a text to speech conversion.
| Field | Type | Label | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| text | string | Required. Represents the text that will be transformed to speech. The text may be plain text, or it may embed SSML markup, phonemes and voice-control tags to
shape how it is spoken. The sections below list every supported form with a copy-paste example.
Which forms take effect depends on the pipeline (model) selected via
1. Plain text
2. SSML Rewrites the enclosed text into its spoken form (spelled out letters, digits, symbols, ...). Supported by the local normalization pipeline and forwarded to the cloud providers.
3. Pauses / breaks Inserts a pause of the given duration into the spoken text. Supported by the local pipelines and
forwarded to the cloud providers. The duration is written either with a unit -
4. Phonemes / pronunciation control The phoneme alphabet depends exclusively on the model type: 4a. IPA phonemes (vits and cloud providers only) - the vits models and the cloud
providers (Amazon Polly, Microsoft Azure and Google Cloud TTS) control pronunciation with the SSML
4b. Arpabet phonemes (glow model only) - the glow model controls pronunciation with
Arpabet phonemes, supplied through the same SSML
4c. qwen3-tts has no phonemes - use the verbalized form instead - the qwen3-tts models
do not support Arpabet or IPA phonemes; the
5. Voice control for qwen3-tts (style / prosody) These ONDEWO-namespaced tags are compiled into the model instruction and stripped from the spoken text, so the transcription stays the plain sentence while the delivery changes. They only take effect on the qwen3-tts CustomVoice model; on the base and voicedesign models they are stripped from the text without changing the delivery. qwen3-tts is steered by a natural-language instruction rather than by numeric parameters, so every dimension has exactly one step per direction and the values listed below are the whole vocabulary. Any other value is reported in the server log and then ignored.
Styles supported per voice A style is rendered by the voice, not by the markup, and no voice renders all of them. The
table below lists what each qwen3-tts speaker supports; the speaker is fixed by the pipeline
selected through The table applies to both ways of asking for a style. The
The server does not check your request against this table. If you ask a voice for a style it cannot render, the request still succeeds: audio is returned, no error is raised and nothing is written to the log. The only symptom is that the voice sounds exactly as it would have without the style. Use the table to choose a suitable voice before sending the request. This is not the same as writing a style name that does not exist, which is reported:
Notes on the table:
Prosody supported per voice Rate and volume are limited per voice in the same way, and the same caveat applies: the server
does not check this table either, so asking for a step a voice cannot render succeeds silently
and leaves the delivery unchanged. Only the two steps of each dimension are listed -
Notes on the table:
Every control is positional - it colours exactly the text it wraps - and a delivery change may only land on a sentence boundary. Markup wrapping part of a sentence is widened to the whole sentence, because a sentence fragment sent as a complete utterance makes the model hallucinate. Each delivery change also costs one additional inference call, so marking up whole sentences, or leaving the text unmarked, synthesises fastest. See also 6. Provider-specific SSML (cloud pipelines only) Each cloud provider documents its own SSML vocabulary; use the elements matching the provider
behind the selected pipeline. Standard
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| config | RequestConfig | Required. Represents the specifications needed to do the text to speech transformation. |
Represents a Synthesize Response.
A Synthesize Response contains the generated audio, requested text and all other properties of this generated audio.
| Field | Type | Label | Description |
| audio_uuid | string | Required. The unique identifier (UUID) assigned to the generated audio. |
|
| audio | bytes | Required. Generated file with the parameters described in request. |
|
| generation_time | float | Required. Time taken to generate the audio, in seconds. |
|
| audio_length | float | Required. Length (duration) of the generated audio, in seconds. |
|
| text | string | Required. Text from which audio was generated. |
|
| config | RequestConfig | Required. Configuration from which audio was generated. |
|
| normalized_text | string | Optional. Normalized text. |
|
| sample_rate | float | Optional. Sampling rate of the generated audio, in Hertz (Hz). |
T2SCustomLengthScales message contains custom length scales for text types.
| Field | Type | Label | Description |
| text | float | The custom length scale for general text. |
|
| float | The custom length scale for email text. |
||
| url | float | The custom length scale for URL text. |
|
| phone | float | The custom length scale for phone number text. |
|
| spell | float | The custom length scale for spelled-out text. |
|
| spell_with_names | float | The custom length scale for spelled-out text with names. |
|
| callsign_long | float | The custom length scale for long callsigns. |
|
| callsign_short | float | The custom length scale for short callsigns. |
T2SDescription message is used to describe the text-to-speech service.
| Field | Type | Label | Description |
| language | string | The language supported by the service. |
|
| speaker_sex | string | The speaker's sex or gender. |
|
| pipeline_owner | string | The owner of the text-to-speech pipeline. |
|
| comments | string | Additional comments or notes. |
|
| speaker_name | string | The name of the speaker. |
|
| domain | string | The domain or context of the service. |
Version information of the service
| Field | Type | Label | Description |
| version | string | version number |
T2SInference message is used to specify the text-to-speech inference settings.
| Field | Type | Label | Description |
| type | string | The type of inference, selecting which of the settings below is applied: composite_inference (two-stage text-to-mel then mel-to-audio) or single_inference (single-stage text-to-audio). |
|
| composite_inference | CompositeInference | Composite (two-stage) inference settings, used when type selects composite inference. |
|
| single_inference | SingleInference | Single (one-stage) inference settings, used when type selects single inference. |
|
| caching | Caching | Caching settings. |
Represents the configuration for text-to-speech normalization.
| Field | Type | Label | Description |
| language | string | The language for which the normalization is applied. |
|
| pipeline | string | repeated | The pipeline(s) used for normalization. |
| custom_phonemizer_id | string | The ID of the custom phonemizer, if used. |
|
| custom_length_scales | T2SCustomLengthScales | Custom length scales for different text types. |
|
| arpabet_mapping | string | The mapping for Arpabet phonemes. |
|
| numeric_mapping | string | The mapping for numeric expressions. |
|
| callsigns_mapping | string | The mapping for callsigns. |
|
| phoneme_correction_mapping | string | The mapping for phoneme correction. |
Configuration for cloud provider settings for Text-to-Speech (T2S).
| Field | Type | Label | Description |
| t2s_cloud_provider_config_elevenlabs | T2sCloudProviderConfigElevenLabs | Configuration for Eleven Labs text-to-speech provider. |
|
| t2s_cloud_provider_config_google | T2sCloudProviderConfigGoogle | Configuration for Google text-to-speech provider. |
|
| t2s_cloud_provider_config_microsoft | T2sCloudProviderConfigMicrosoft | Configuration for Microsoft text-to-speech provider. |
Configuration details specific to the Eleven Labs text-to-speech provider.
| Field | Type | Label | Description |
| stability | float | Stability level for inference, influencing consistency of generated speech. It is in the range [0.0, 1.0]. |
|
| similarity_boost | float | Boost value for similarity to enhance the similarity of the generated voice to a target voice. It is in the range [0.0, 1.0]. |
|
| style | float | Style parameter to control the expression or emotion in speech. It is in the range [0.0, 1.0]. |
|
| use_speaker_boost | bool | Enables or disables speaker boost for emphasis on clarity and loudness. |
|
| apply_text_normalization | string | Specifies type of text normalization to apply during processing. Available options are 'auto', 'on', and 'off'. |
Configuration details specific to the Google text-to-speech provider.
| Field | Type | Label | Description |
| speaking_rate | float | Speaking rate for inference, controlling the speed of generated speech. It is in the range [0.25, 4.0]. |
|
| volume_gain_db | float | Volume gain in dB applied to the generated speech. It is in the range [-96.0, 16.0]. |
|
| pitch | float | Pitch adjustment for inference, allowing control over voice pitch. It is in the range in the range [-20.0, 20.0]. |
Configuration details specific to the Microsoft text-to-speech provider.
| Field | Type | Label | Description |
| use_default_speaker | bool | Determines whether to use the default speaker voice. |
T2sCloudServiceAmazon message contains settings for the Amazon Cloud service inference.
| Field | Type | Label | Description |
| voice_id | string | Voice ID indicating the speaker |
|
| model_id | string | Model id for the inference server. |
T2sCloudServiceElevenLabs message contains settings for the ElevenLabs Cloud service inference.
| Field | Type | Label | Description |
| language_code | string | Language of the generated audio. It should be 4-Letter language code. |
|
| model_id | string | Model ID indicating the name of the model |
|
| voice_id | string | Voice ID indicating the speaker |
|
| voice_settings | VoiceSettings | Voice setting of the inference |
|
| apply_text_normalization | string | Flag to indicate applying text normalization |
T2sCloudServiceGoogle message contains settings for the Google Cloud service inference.
| Field | Type | Label | Description |
| voice_id | string | Voice ID indicating the speaker |
|
| speaking_rate | float | Speaking rate to control the speed of audio. |
|
| volume_gain_db | float | Volume gain in db to control volume of the audio. |
|
| pitch | float | pitch value of the audio |
|
| speaker_language | string | speaker_language indicating the speaker language code |
T2sCloudServiceMicrosoft message contains settings for the Microsoft Cloud service inference.
| Field | Type | Label | Description |
| voice_id | string | Voice ID indicating the speaker. |
|
| use_default_speaker | bool | Flag to indicate using the default speaker. |
Pipeline Id representation.
Used in the creation, deletion and getter of pipelines.
| Field | Type | Label | Description |
| id | string | Required. Defines the id of the pipeline. |
Text2Audio message contains settings for text-to-audio inference.
| Field | Type | Label | Description |
| type | string | The type of text-to-audio inference, selecting which of the settings below is applied: a local model (vits, vits_triton) or a cloud / neural service (t2s_cloud_service_elevenlabs, t2s_cloud_service_amazon, t2s_cloud_service_google, t2s_cloud_service_microsoft, qwen3_tts_custom_voice, qwen3_tts_base). |
|
| vits | Vits | Vits inference settings. |
|
| vits_triton | VitsTriton | Vits Triton inference settings. |
|
| t2s_cloud_service_elevenlabs | T2sCloudServiceElevenLabs | ElevenLabs cloud service inference settings. |
|
| t2s_cloud_service_amazon | T2sCloudServiceAmazon | Amazon cloud service inference settings. |
|
| t2s_cloud_service_google | T2sCloudServiceGoogle | Google cloud service inference settings. |
|
| t2s_cloud_service_microsoft | T2sCloudServiceMicrosoft | Microsoft cloud service inference settings. |
|
| qwen3_tts_custom_voice | Qwen3TtsCustomVoice | Qwen3-TTS-custom-voice inference settings. |
|
| qwen3_tts_base | Qwen3TtsBase | Qwen3-TTS-base inference settings for voice cloning. |
Text2Mel message contains settings for text-to-mel inference.
| Field | Type | Label | Description |
| type | string | The type of text-to-mel inference, selecting which of the settings below is applied (glow_tts or glow_tts_triton). |
|
| glow_tts | GlowTTS | GlowTTS inference settings. |
|
| glow_tts_triton | GlowTTSTriton | GlowTTS Triton inference settings. |
Configuration of text-to-speech models representation.
| Field | Type | Label | Description |
| id | string | Required. Defines the id of the pipeline. |
|
| description | T2SDescription | Required. Defines the description of the pipeline representation. |
|
| active | bool | Required. Defines if the pipeline is active or inactive. |
|
| inference | T2SInference | Required. Defines the inference of the pipeline representation. |
|
| normalization | T2SNormalization | Required. Defines the normalization process of the pipeline representation. |
|
| postprocessing | Postprocessing | Required. Defines the postprocessing process of the pipeline representation. |
UpdateCustomPhonemizerRequest message represents the request for updating a custom phonemizer.
| Field | Type | Label | Description |
| id | string | The ID of the custom phonemizer to be updated. |
|
| update_method | UpdateCustomPhonemizerRequest.UpdateMethod | The update method. |
|
| maps | Map | repeated | Repeated field of Map messages representing word-to-phoneme mappings. |
Vits message contains settings for the Vits inference.
| Field | Type | Label | Description |
| batch_size | int64 | The batch size for inference. |
|
| use_gpu | bool | Flag indicating whether to use GPU for inference. |
|
| length_scale | float | The length scale for inference. |
|
| noise_scale | float | The noise scale for inference. |
|
| path | string | The path to the Vits model. |
|
| cleaners | string | repeated | Repeated field containing the cleaners for text normalization. |
| param_config_path | string | The path to the parameter configuration. |
VitsTriton message contains settings for the Vits Triton inference.
| Field | Type | Label | Description |
| batch_size | int64 | The batch size for inference. |
|
| length_scale | float | The length scale for inference. |
|
| noise_scale | float | The noise scale for inference. |
|
| cleaners | string | repeated | Repeated field containing the cleaners for text normalization. |
| max_text_length | int64 | The maximum text length allowed. |
|
| param_config_path | string | The path to the parameter configuration. |
|
| triton_model_name | string | The name of the Triton model. |
|
| triton_server_host | string | The host of the Triton inference server which serves the model. |
|
| triton_server_port | int64 | The port of the Triton inference server which serves the model. |
VoiceCloningRequest message represents the request for cloning a voice.
A VoiceCloningRequest contains a sample audio of the speaker to be cloned together with
its transcription and the information about the speaker and the model to use for cloning.
| Field | Type | Label | Description |
| sample_audio | bytes | Required. The sample audio of the speaker whose voice should be cloned. |
|
| transcription | string | Required. The transcription of the sample audio. |
|
| speaker_name | string | Required. The name of the speaker to associate with the cloned voice. |
|
| speaker_language | string | Required. The language of the speaker in the sample audio. |
|
| model_name | string | Required. The name of the model used for voice cloning. |
VoiceSettings message contains settings for ElevenLabs inference.
| Field | Type | Label | Description |
| stability | float | stability value for elevenlabs inference |
|
| similarity_boost | float | similarity boost value for ElevenLabs inference. |
|
| style | float | style boost value for ElevenLabs inference. |
|
| use_speaker_boost | bool | Flag to indicate speaker boost |
Wiener message contains settings for Wiener postprocessing.
| Field | Type | Label | Description |
| frame_len | int64 | The frame length. |
|
| lpc_order | int64 | The LPC order. |
|
| iterations | int64 | The number of iterations. |
|
| alpha | float | The alpha value. |
|
| thresh | float | The threshold value. |
AudioFormat enum represents various audio file formats for storing digital audio data.
| Name | Number | Description |
| wav | 0 | Waveform Audio File Format (WAV) |
| flac | 1 | Free Lossless Audio Codec (FLAC) |
| caf | 2 | Core Audio Format (CAF) |
| mp3 | 3 | MPEG Audio Layer III (MP3) |
| aac | 4 | Advanced Audio Coding (AAC) |
| ogg | 5 | Ogg Vorbis (OGG) |
| wma | 6 | Windows Media Audio (WMA) |
Represents a pulse-code modulation technique.
| Name | Number | Description |
| PCM_16 | 0 | 16-bit pulse-code modulation. |
| PCM_24 | 1 | 24-bit pulse-code modulation. |
| PCM_32 | 2 | 32-bit pulse-code modulation. |
| PCM_S8 | 3 | Signed 8-bit pulse-code modulation. |
| PCM_U8 | 4 | Unsigned 8-bit pulse-code modulation. |
| FLOAT | 5 | Floating-point (32-bit) pulse-code modulation. |
| DOUBLE | 6 | Floating-point (64-bit) pulse-code modulation. |
The update method to be used.
UpdateMethod enum defines the method for updating custom phonemizers.
| Name | Number | Description |
| extend_hard | 0 | Add new words, replacing existing ones. |
| extend_soft | 1 | Add new words if they are not already present. |
| replace | 2 | Replace all words in the phonemizer with new ones. |
Answering machine detection (AMD) of an outbound call: in the first seconds after the callee answered, the call decides who or what picked up (a person, an answering machine, a fax, an automated menu (IVR), a call screening assistant or a network announcement such as "the number is not reachable") and can hang up on the ones that are not a person, or leave a voice message on a mailbox.
How the call behaves while AMD decides: detection LISTENS first. The bot stays silent and nothing the callee says reaches the NLU until a verdict is reached or the decision window ends; the bot's greeting therefore starts only after the verdict. The possible verdicts and what happens with each:
initial_silence_ms) or no verdict in time (UNKNOWN): the call continues with the bot's greeting like any other call; it is never hung upHANG_UP; under LEAVE_VOICE_MESSAGE a voice message is spoken firstLEAVE_VOICE_MESSAGE, without a message) only when its switch hang_up_on_fax / hang_up_on_network_announcement / hang_up_on_ivr / hang_up_on_call_screening is on; otherwise the call continues like a call to a personDETECT_ONLY nothing is ever hung upReporting: the verdict is reported as ondewo.sip.SipStatus.amd_result. A verdict that would hang up (MACHINE, or a verdict whose hang_up_on_* switch is on) sets the non-terminal status ondewo.sip.SipStatus.StatusType.OUTGOING_CALL_ANSWERING_MACHINE_DETECTED (the call is still up), also under DETECT_ONLY. A call ended by AMD reaches the terminal status OUTGOING_CALL_FINISHED exactly once, with one of these descriptions, also recorded on the call as Call.answering_machine_detection_end_description:
Where it is accepted: only on a caller served by the caller pool (a pooled persistent caller), i.e. StartCaller / StartCallers and the callers of a campaign while the deployment setting ONDEWO_VTSI_CALLER_PERSISTENT is on (the default). On a listener (also in UpdateListener), a scheduled caller, an UpdateCaller of a caller that is not pooled, or while ONDEWO_VTSI_CALLER_PERSISTENT is off the request is refused with INVALID_ARGUMENT (reason=amd-requires-persistent-caller) instead of placing calls that are silently not screened. The settings are part of the pooled caller's configuration: callers with different AMD settings are never pooled together, so a pooled caller is only reused for calls with identical settings.
Defaults and precedence: every scalar is optional. A field left unset inherits the deployment's ONDEWO_VTSI_AMD_<FIELD> setting when the operator set one (e.g. ONDEWO_VTSI_AMD_SENSITIVITY), else the built-in default listed per field. A set value always wins over the deployment setting. Leaving the whole message unset runs no detection unless the deployment switched it on with ONDEWO_VTSI_AMD_ACTIVE. A value outside a documented range is refused with INVALID_ARGUMENT.
Example: screen a campaign and hang up on mailboxes and faxes, with the built-in tuning:
answering_machine_detection_config { active: true action: HANG_UP }To calibrate first, run the same campaign with action: DETECT_ONLY: every call is detected and reported but every callee is greeted.
Compliance: leaving a recorded message on a consumer's mailbox for marketing purposes requires the consent of the callee in many jurisdictions (e.g. in Germany § 7 UWG). HANG_UP is therefore the default action.
| Field | Type | Label | Description |
| active | bool | optional | Optional: Master switch: |
| action | AnsweringMachineDetectionConfig.AmdAction | optional | Optional: What the call does on a verdict that is not a person (default: |
| sensitivity | AnsweringMachineDetectionConfig.AmdSensitivity | optional | Optional: How readily a machine is detected (default: |
| max_decision_time_ms | int32 | optional | Optional: Milliseconds after the callee answered by which a verdict must be reached when nothing so far
pointed to a machine (default: 4000, valid range: 1500 - 10000; deployment setting
|
| max_machine_wait_ms | int32 | optional | Optional: Milliseconds after the callee answered by which a verdict must be reached once something pointed
to a machine, e.g. a long greeting, a weaker machine phrase or beep, or continuous music (default: 11000,
valid range: 4000 - 20000; deployment setting |
| beep_wait_after_greeting_ms | int32 | optional | Optional: Milliseconds to keep listening for a mailbox beep after a long greeting ended (default: 1500, valid
range: 0 - 4000; deployment setting |
| initial_silence_ms | int32 | optional | Optional: Milliseconds of silence after the callee answered, without any speech, after which the verdict is
NO_SPEECH (default: 3500, valid range: 1000 - 10000; deployment setting
|
| max_human_greeting_ms | int32 | optional | Optional: Milliseconds of continuous speech beyond which a greeting points to a machine (default: 2400,
valid range: 1000 - 6000; deployment setting |
| greeting_end_silence_ms | int32 | optional | Optional: Milliseconds of silence after the callee's first words that end a short, person-like greeting
(default: 900, valid range: 300 - 3000; deployment setting
|
| beep_detection_active | bool | optional | Optional: Whether the tone detector listens for the beep of an answering machine (default: |
| additional_machine_phrases | string | repeated | Phrases that indicate an answering machine, added to the built-in German and English phrase lists (at most
50 phrases, each 1 - 80 characters and not blank; otherwise refused with |
| additional_human_phrases | string | repeated | Phrases that indicate a person, added to the built-in German and English phrase lists (at most 50 phrases,
each 1 - 80 characters and not blank; otherwise refused with |
| hang_up_on_fax | bool | optional | Optional: Hang up on a FAX verdict (default: |
| hang_up_on_network_announcement | bool | optional | Optional: Hang up on a NETWORK_ANNOUNCEMENT verdict, e.g. "the number is not reachable" or a special
information tone (default: |
| hang_up_on_ivr | bool | optional | Optional: Hang up on an IVR verdict, i.e. an automated menu such as "press 1 for ..." (default:
|
| hang_up_on_call_screening | bool | optional | Optional: Hang up on a CALL_SCREENING verdict, i.e. a call screening assistant asking for the reason of the
call (default: |
| voice_message_intent | string | optional | Optional: Name of the NLU intent whose fulfillment is the voice message under
|
| voice_message_max_beep_wait_ms | int32 | optional | Optional: Under |
| voice_message_timeout_ms | int32 | optional | Optional: Under |
| keyword_detection_active | bool | optional | Optional: Whether the words of the transcribed greeting are used as evidence, i.e. the built-in phrase lists
plus |
| cadence_detection_active | bool | optional | Optional: Whether the rhythm of speech and silence of the greeting is used as evidence, e.g. its length and
the silence after it (default: |
Storage of the call audio: the caller's audio of every final transcription and the bot's audio of every answer as it was played (an answer the caller interrupted is stored as far as it played) are stored as audio files of the call's NLU session, next to the session's text.
Nothing is stored unless activate_audio_object_storage AND the flag of the side are true. Every unset flag counts as false; there is no deployment-wide default for these flags.
Example: activate_audio_object_storage=true, audio_object_storage_services_activation_config.activate_s2t=true and activate_t2s=true store both sides of the conversation. With only activate_audio_object_storage=true nothing is stored.
The audio of a warm-transfer intro call is governed by WarmTransferConfig.store_intro_audio instead.
| Field | Type | Label | Description |
| activate_audio_object_storage | bool | optional | Optional: Master switch of the audio storage of the call. Unset or |
| audio_object_storage_services_activation_config | AudioObjectStorageServicesActivationConfig | Which side of the conversation is stored while |
Which side of the conversation is stored. Only takes effect while AudioObjectStorageConfig.activate_audio_object_storage is true; every unset flag counts as false
| Field | Type | Label | Description |
| activate_s2t | bool | optional | Optional: Store the caller's audio (the audio sent to speech-to-text), one file per final transcription.
Unset: |
| activate_t2s | bool | optional | Optional: Store the bot's audio (the synthesized answers as they were played). Unset: |
Address and server trust of one upstream service of a call: the speech-to-text (S2T), NLU and text-to-speech (T2S) services of a CommonServicesConfig, and the Asterisk of an AsteriskConfig.
For S2T, NLU and T2S the request is checked LIVE when the caller or listener is started: VTSI connects to the service with these values (the S2T pipeline and the NLU agent are read), so an address that cannot be reached, or a certificate the service's certificate does not chain to, refuses the request instead of failing later inside the call.
| Field | Type | Label | Description |
| host | string | Host name or IP address of the service, as the call reaches it, e.g. |
|
| port | int32 | TCP port of the service's gRPC server, 1 to 65535. A value of 0 or below (also an unset port) or above
65535 is refused with |
|
| grpc_cert | string | Optional: The PEM certificate(s) the service's gRPC server certificate chains to (its CA, or its
self-signed certificate), with real or escaped ( Empty (the default): the server is verified against the deployment's CA bundle,
Only |
The transfers the bot of a call starts itself, i.e. a transfer the NLU agent or an LLM agent decides on during the conversation. A transfer a client requests with TransferCall is not affected (its wait is the deployment's ONDEWO_VTSI_TRANSFER_OUTCOME_TIMEOUT_MS).
What the caller experiences: the bot sends the transfer to the phone system and waits up to outcome_timeout_ms for its answer. Accepted: the caller is handed over to the target and the bot leaves the call. Rejected (e.g. the target does not exist): the call stays up and failed_action decides what happens next. No answer in time: the call stays up as well (if the phone system accepts the transfer later, the caller is still handed over and the bot leaves); continue and exit then keep the call with the bot, hangup ends it. A transfer refused because invited participants are in the call always keeps the call, whatever failed_action says. When the call's warm transfer configuration asks for warm intros on the bot's transfers, the bot's transfer is handed to that warm intro instead and the call stays with the bot meanwhile.
Scope and precedence as in VoiceInteractionConfig; these fields have no deployment setting, so unset means the built-in default. Every field is optional, and a value outside its range is refused with INVALID_ARGUMENT.
Example: to send a caller whose transfer failed to the project's exit extension (e.g. a queue) rather than back to the bot, and to wait up to 8 s for the phone system: outcome_timeout_ms: 8000, failed_action: "exit"
| Field | Type | Label | Description |
| outcome_timeout_ms | uint32 | optional | Optional: Milliseconds a bot transfer waits for the phone system to accept or reject it before the call is
treated as not transferred (default: 5000, valid range: 0 - 10000). |
| failed_action | string | optional | Optional: What happens when a transfer the bot started fails while the call is still up (default:
|
| warm_transfer_outcome_commit_timeout_seconds | float | optional | Optional: Only used with warm intros ( |
The service configuration of a call: speech-to-text (S2T), NLU, text-to-speech (T2S), the speech-to-speech service (CSI), the voice interaction (turn-taking, interruptions, response timing, AMD, DTMF, transfers) and the media behaviour of the call's SIP container. The same message is used by callers, listeners, scheduled callers and campaigns.
Unset means inherit. Every optional field and every message left unset sends nothing to the call, so the call runs with the deployment's setting where the operator configured one (an ONDEWO_VTSI_* setting of the VTSI server, named at the field) and otherwise with the built-in default documented at the field. A value set here always wins over both: per-call value > deployment setting > built-in default. A value outside its documented range is refused with INVALID_ARGUMENT and nothing is started.
Scope.
UpdateListener changes the stored configuration only (see there).campaign_common_services_config is the default of every call of the campaign; each call's own configuration is merged over it, so a field the call sets wins (see Campaign).Example: to let the caller interrupt (barge in on) the bot, set voice_interaction_config.interruption_handling_config.enabled = true and leave everything else unset to keep the defaults; add e.g. min_interruption_duration_seconds = 0.8 to let short noises pass. (How many words interrupt depends on the turn detection mode, see InterruptionHandlingConfig.)
| Field | Type | Label | Description |
| s2t_vtsi_config | S2tVtsiConfig | Speech-to-text configuration (see |
|
| nlu_vtsi_config | NluVtsiConfig | NLU configuration: the agent, its login and its language (see |
|
| t2s_vtsi_config | T2sVtsiConfig | Text-to-speech configuration (see |
|
| csi_vtsi_config | CsiVtsiConfig | Speech-to-speech service (CSI) configuration: callbacks, message broker, audio storage and preemptive
generation (see |
|
| voice_interaction_config | VoiceInteractionConfig | Optional: How the bot talks with the caller: turn detection, interruption (barge-in) handling, response
timing, answering machine detection, DTMF keys and transfers (see |
|
| sip_vtsi_config | SipVtsiConfig | Optional: Media and SIP behaviour of the call's SIP container: audio buffering, the media clock,
statistics logging, hangup and dial timeouts, the SIP registration and live call audio streams (see
|
|
| max_call_duration_seconds | uint32 | optional | Optional: Seconds a call may last at most, counted from when it was connected; then VTSI hangs it up (an
outbound call of a caller, and each inbound call of a listener). Valid range: 1 - 86400; 0 and any value
outside the range are refused with |
User name and password the call logs in to the NLU service with (the NLU credentials of NluVtsiConfig), usually the project's technical user.
They are checked when the caller or listener is started: VTSI reads the configured NLU agent with them, so credentials the NLU service (or its login server) refuses refuse the request. Where the deployment logs in through Keycloak, the same login also authorizes the S2T and T2S checks of that request. The password is never logged, and read responses may withhold it depending on the reader's role (see GetCaller).
Pooled callers: credentials are not part of the configuration a pooled caller is matched by, but they are compared exactly before one is reused, so a changed password always gets a caller that logs in with it.
| Field | Type | Label | Description |
| account_name | string | Account name the call logs in with, usually an email address, e.g. |
|
| password | string | Password of |
Preemptive (speculative) generation of the answer: on a stable partial transcription a draft answer is generated before the caller's final transcription arrives, and played only when the final transcription matches it; a draft that does not match is discarded and the caller hears nothing of it. A matching draft answers the caller sooner; every draft costs an extra NLU request (and, unless switched off, a speech synthesis), also when it is discarded. It never ends the caller's turn early.
Every field is optional. An unset enabled keeps the deployment's setting (see the field); an unset commit_wait_timeout_seconds keeps the built-in default given at the field. A value outside its range is refused with INVALID_ARGUMENT. The NLU bounds (how many drafts a turn may start) are set with NluVtsiConfig.preemptive_generation_config, the speech synthesis of a draft with T2sVtsiConfig.preemptive_synthesis_config.
Example: enabled=false switches speculation off for this call, e.g. to save NLU requests on an agent whose answers are expensive.
| Field | Type | Label | Description |
| enabled | bool | optional | Optional: Enable preemptive generation on this call. Precedence: this field, else the deprecated
|
| commit_wait_timeout_seconds | float | optional | Optional: Seconds a draft that matches the final transcription may still take before it is discarded and the
turn is answered normally. While the bot waits here the caller hears nothing, so a long wait on a slow draft
adds to the silence instead of saving time. Unset: 3.0. Valid range: 0 - 3. While
|
Configuration of the speech-to-speech service of a call (the service that streams the caller's audio to speech-to-text, sends the transcriptions to the NLU and plays the synthesized answers): control messages, preemptive generation, storage of the call audio and publishing of call events to a RabbitMQ message broker.
Scope: the configuration of a LISTENER applies to every inbound call that listener deployment serves; the configuration of a caller, a campaign or a scheduled caller applies to its own calls. A pooled (persistent) caller is only reused for a request whose configuration is identical.
Unset fields inherit: the deployment-wide ONDEWO_VTSI_* setting where a field names one, else the built-in default. A value set here wins over both for this call.
| Field | Type | Label | Description |
| s2t_vtsi_callbacks | S2tVtsiCallbacks | Speech-to-text callbacks. Accepted and validated, but they have no effect: see |
|
| nlu_vtsi_callbacks | NluVtsiCallbacks | NLU callbacks. Accepted and validated, but they have no effect: see |
|
| t2s_vtsi_callbacks | T2sVtsiCallbacks | Text-to-speech callbacks. Accepted and validated, but they have no effect: see |
|
| audio_object_store_config | AudioObjectStorageConfig | Optional: Store the audio of the call (what the caller said and what the bot said) as audio files of the
call's NLU session. Unset: nothing is stored. See |
|
| message_broker_config | MessageBrokerConfig | Optional: Publish the events of the call (transcriptions, NLU answers, synthesized answers, SIP status) to a
RabbitMQ message broker and receive control messages for the call from it. Unset: nothing is published. See
|
|
| activate_control_messages | bool | optional | Optional: Execute the control messages the NLU agent returns with an answer. A control message is an
intent's webhook payload that names a Unset is NOT the same as |
| preemptive_generation_config | CsiPreemptiveGenerationConfig | Optional: Preemptive (speculative) generation of the answer: whether it runs on this call and how long a
matching draft may still take. Unset keeps the deployment's setting. See
|
Configuration of the dictation hold of a call. A caller who dictates a value often pauses 1 - 2.5 s between its groups ("null sechs sechs vier ... eins zwei drei ..."), and the speech-to-text service ends an utterance at every such pause, so without the hold the bot answers half a phone number. With the hold, a final transcription whose dictated value is not complete yet is held until the caller continues, and the groups reach the NLU as ONE turn; a complete value is released at once (a value that is only weakly complete is held at most hold_generic_max_seconds). The value recognition is German (number words, spelled letters, months); the hold is never applied while the bot speaks, and a caller who is not dictating costs no latency.
The hold is ON by default, but only for a turn whose NLU answer asks for a dictated value (an expected slot, read with expected_input_enabled, also on by default): a turn that asks for no value is never held, so the default adds no latency there. How long a value is held depends on what the bot asked for: the expected value's category cap applies. The generic rule, a hold WITHOUT an expected value (a trailing digit group after a lead-in such as "Kundennummer", or a trailing "Stiege", "Stock", "Tür", "am", "um", ...), is a guess and stays off unless hold_enabled is set to true.
Presence and precedence: every field is applied only when it is set; an unset field keeps the deployment setting (the ONDEWO_VTSI_CSI_DICTATION_* variable named at the field), else the default. A set per-call value wins over the deployment setting. A field that is out of range, and an unknown category, are refused with INVALID_ARGUMENT.
Example, a line that collects IBANs from an agent whose prompts ask for them and gives an IBAN 4 s (the hold under the expected value is on by default):
hold_max_seconds_by_category { key: "iban" value: 4.0 }
| Field | Type | Label | Description |
| hold_enabled | bool | optional | Optional: Hold a final transcription whose dictated value is unfinished, up to the cap of its category (or
the generic cap), instead of committing the turn at the caller's pause. Unset (the default): the hold
applies only to a turn whose NLU answer asks for a value (an expected slot, see
|
| expected_input_enabled | bool | optional | Optional: Read the expected value (slot) from every NLU answer, so that the hold applies the rule and cap of
the value the bot asked for (default: true; false leaves the default hold nothing to hold under, and with
|
| read_back_from_bot_text_enabled | bool | optional | Optional: With |
| hold_generic_max_seconds | float | optional | Optional: Seconds the generic rule (no expected value; only with |
| hold_max_seconds_by_category | DictationConfig.HoldMaxSecondsByCategoryEntry | repeated | Optional: Seconds an unfinished value of a category is held at most, keyed by the category (valid range: 0 - 4
each; 0 = no hold for that category). Categories and their defaults: |
| hold_invalid_checksum_seconds | float | optional | Optional: Seconds a full-length value whose checksum fails (an IBAN, a card number, ...) is held at most, so
that the caller can still correct it but the bot soon gets the turn to ask again instead of waiting out the
category's cap (valid range: 0 - 4; default: 1.5; never longer than the category's cap). Deployment setting:
|
| early_commit_on_complete_value | bool | optional | Optional: Commit the turn as soon as a stable partial transcription shows the expected value complete (and its
checksum valid, where it has one), instead of waiting for the speech-to-text service's end-of-utterance
silence (default: false). Saves the silence wait after a dictated value. Needs the hold (not
|
| s2t_slot_min_duration_off_seconds | float | optional | Optional: Minimum silence in seconds the speech-to-text service waits before it ends an utterance while a value
is expected, so that the speech-to-text service itself stops cutting between the groups (valid: 0 = off, or
0.5 - 4; default: 0). Applies while an expected value other than a read-back confirmation is known, so it
needs |
| s2t_slot_min_duration_off_restore_seconds | float | optional | Optional: Minimum silence in seconds restored on the speech-to-text service after a turn with an expected value
(valid range: 0.05 - 4; default: the minimum silence of the call's speech-to-text configuration). Set it to
the pipeline's normal minimum silence when the speech-to-text configuration carries none; without any
restore value, |
| Field | Type | Label | Description |
| key | string |
|
|
| value | float |
|
How the call treats the DTMF keys (the telephone keypad) the caller presses. Keys let a caller answer a menu ("for sales press 1, for support press 2") or type a value such as a PIN or a customer number instead of speaking it.
A key reaches the bot only when the bot's LAST answer asked for keys: a key menu or a key entry, declared in the ONDEWO NLU agent by the intent tags ondewo-voice:dtmf-menu:<id> / ondewo-voice:dtmf-digits:<id> (or by an AI team through its c-voice-turn context). The finished choice or entry is then sent to the NLU as the caller's turn, by default as the text [DTMF:<keys>] (* and # spelled STAR and HASH, an invalid entry as [DTMF:INVALID]), together with a one-turn context c-dtmf. A menu key is sent at once; a key entry is sent when the caller presses the terminator (# by default), reaches the declared maximum number of keys, or stops pressing for inter_digit_timeout_ms. Keys are never written to a log in clear.
While a key entry is open, and shortly after a key turn, the caller's speech is not sent to the NLU: a key wins its turn. Keys are also ignored while answering machine detection is still deciding on an outbound call.
Scope: applies to every call of the deployment it is set on: every inbound call a listener serves, every call of a caller, a campaign or a scheduled caller. A pooled persistent caller is only reused for a call with an identical configuration.
Every field is optional. A field left unset inherits: the deployment's ONDEWO_VTSI_CSI_DTMF_* / ONDEWO_VTSI_SIP_DTMF_FORWARD_ACTIVE setting where one exists and is set, else the built-in default listed per field. A set value always wins over the deployment setting. Leaving the whole message unset keeps the deployment settings, and without them gives the built-in behaviour: keys on, a key interrupts the bot, keys the bot did not ask for are ignored.
Example: a bot that must let the caller finish listening before keys count, and that treats every key as a menu choice even when no menu was declared:
dtmf_config { barge_in: false undeclared_policy: "COMMIT_SINGLE" }
| Field | Type | Label | Description |
| enabled | bool | optional | Optional: Whether the caller's keys are used at all (default: |
| barge_in | bool | optional | Optional: Whether a key pressed while the bot speaks stops the bot at once, like a spoken interruption
(default: A key interruption is always treated as a real one (a key is never mistaken for a cough), and it
applies even when spoken interruptions are switched off for the call
(
|
| inter_digit_timeout_ms | uint32 | optional | Optional: Milliseconds of no further key after which an open key entry (e.g. a PIN or a customer number) is
considered finished and sent to the NLU, when the caller presses no terminator (default: 2000, valid range:
300 - 10000; deployment setting It applies to key entries only, never to a menu (a menu key is taken at once), and only to an entry
whose declaration names no timeout of its own: the tag option Example: |
| undeclared_policy | string | optional | Optional: What a key does that the bot did not ask for, i.e. when the bot's last answer declared no menu
and no entry, or the declared one was already used (default:
drop in lower case) is refused with INVALID_ARGUMENT |
| speech_guard_ms | uint32 | optional | Optional: Milliseconds after a key turn was sent during which a spoken sentence of the caller is NOT sent to
the NLU, so a word the caller says while pressing does not become a second turn (default: 300, valid range:
0 - 5000; no deployment setting). A value outside the range is refused with |
| text_template | string | optional | Optional: The text a key choice or key entry is sent to the NLU as, with Rules: 1 - 64 characters, no control character; Change it only together with the training phrases of the NLU agent: the ONDEWO NLU recognises a key turn
by the default |
Interruption (barge-in) handling: what happens when the caller speaks while the bot is speaking. Off by default: the caller is not listened to while the bot speaks, and speech never stops the bot. A DTMF key the bot asked for still stops it (DtmfConfig.barge_in, on by default; set it to false as well for a disclaimer that must be heard in full).
With enabled=true, caller speech over the bot goes through these steps:
(1) Is it an interruption? Speech within first_message_protected_seconds after the greeting started, speech shorter than min_interruption_duration_seconds and sounds without words ("hmm", "mhm") are ignored. Otherwise, with the turn detection mode VAD (and whenever no semantic turn detection runs for the call), any recognised speech interrupts; with SEMANTIC_MODEL or AUDIO_MODEL a final transcription with at least one word interrupts at once, and a partial transcription interrupts once it has min_interruption_words words. Speech that does not interrupt is dropped: the bot keeps talking and the speech is not answered. One exception: a final transcription with at least one word that is refused only because it was shorter than min_interruption_duration_seconds does not stop the bot either, but it is kept and answered as the caller's next turn once the bot has finished speaking.
(2) The bot pauses: its voice fades out over interruption_fade_out_ms, and the rest of its answer is kept.
(3) Real or false? If the caller's speech becomes a complete turn (a final transcription) within false_interruption_timeout_seconds, the interruption is REAL: the rest of the answer is discarded, the bot stays silent for backoff_seconds and then answers what the caller said. Its synthesis is cancelled (t2s_cancel_on_barge_in), and an NLU that supports it is told which turn was cut and what the caller heard of it (nlu_turn_control_enabled, heard_report_enabled). If no turn is committed in time, the interruption is FALSE (a cough, a short noise): with resume_after_false_interruption the bot continues where its fade-out ended, so nothing is heard twice, else the rest of the answer is dropped, and then, as after a real one, its synthesis is cancelled and a call action it carries is dropped (t2s_cancel_on_barge_in). The window waits for a caller who is still speaking: each partial transcription that changes what the caller said extends it, up to twice false_interruption_timeout_seconds (at most 9 s) after the interruption.
Example: let the caller interrupt, ignore anything shorter than 0.6 s, and never interrupt the first 3 s of the greeting: enabled: true, min_interruption_duration_seconds: 0.6, first_message_protected_seconds: 3
Scope and precedence as in VoiceInteractionConfig: unset means inherit, i.e. the deployment's ONDEWO_VTSI_* setting where a field names one, else the default given at the field. A value outside a field's range is refused with INVALID_ARGUMENT.
| Field | Type | Label | Description |
| enabled | bool | optional | Optional: Let the caller interrupt (barge in on) the bot by speaking while it speaks (default: false). False:
the caller's speech is not heard while the bot speaks, and speech never stops the bot. A DTMF key the bot
asked for still stops it (see |
| min_interruption_duration_seconds | float | optional | Optional: Minimum duration in seconds the caller must have been speaking over the bot before it counts as an interruption, measured from the start of the caller's speech (noise gate) (default: 0.5, valid range: 0 - 10). Raise it (e.g. 0.8) to let short noises pass without stopping the bot. A final transcription with at least one word that is too short to interrupt is not lost: it is answered as the caller's next turn once the bot has finished speaking |
| min_interruption_words | int32 | optional | Optional: Minimum number of words a PARTIAL transcription of caller speech over the bot needs to interrupt
it early (default: 2, valid range: 0 - 10; 0 and 1 both let one word interrupt). Only used with the turn
detection modes |
| false_interruption_timeout_seconds | float | optional | Optional: Seconds after an interruption within which the caller's speech must become a complete turn for
the interruption to be REAL; otherwise it is FALSE (a cough, brief noise) and
|
| resume_after_false_interruption | bool | optional | Optional: After a FALSE interruption, continue the paused answer where the bot's fade-out ended, with a
short fade-in, so nothing the caller already heard is played twice, whatever
|
| backoff_seconds | float | optional | Optional: Seconds of silence after a REAL interruption before the bot's next answer plays, so the caller keeps the floor for a moment (default: 1.0, valid: 0 or more) |
| first_message_protected_seconds | float | optional | Optional: Seconds, counted from the start of the greeting, during which caller speech never interrupts the bot (default: 0 = no protection, valid: 0 or more). Speech in that window is ignored, not answered. Example: 5 makes sure the first 5 s of a greeting are heard |
| transcribe_on_disabled_interruptions | bool | optional | Optional: Transcribe the caller while the bot speaks although interruptions are disabled (default: false).
The speech neither stops the bot nor is answered. Only matters when |
| interruption_fade_out_ms | int32 | optional | Optional: Milliseconds over which the bot's voice fades out (raised cosine) when the caller interrupts it,
so the bot trails off like a person instead of stopping with a click (default: 100, valid range: 0 - 500;
0 = stop at once). Any value above 0 also gives every other stop of the bot's voice a 5 ms ramp and fades
a resumed answer back in over 20 ms. A set value wins over the deployment's
|
| cancel_on_speech_while_thinking | bool | optional | Optional: Let the caller replace a turn the bot is still thinking about (default: false). When a caller turn is committed while the bot is still working on the previous one (its answer is being generated and nothing of it plays yet), that answer is cancelled and never spoken, and the new turn is answered at once; the earlier turn stays in the conversation history. Example: the caller says "I need a taxi" and, before the bot answers, "for tomorrow morning": with true the bot answers only the second turn; with false it first speaks its answer to "I need a taxi", then answers the second. Trade-off: a caller who says one sentence in two parts with a pause gets only the second part answered.
Works whether or not |
| ai_teams_cancel_pending_on_interrupt | bool | optional | Optional: Whether a turn that was cut cancels the AI Teams asynchronous tool calls it dispatched that have
not started yet. A turn is cut by a caller's interruption, by a turn replaced through
Only tools, agents or members whose team document declares |
| t2s_cancel_on_barge_in | bool | optional | Optional: When an interruption discards the rest of the bot's answer, stop producing it (default: true).
That is a REAL interruption, or a FALSE one while |
| nlu_turn_control_enabled | bool | optional | Optional: Tell an NLU that supports turn control which turn was cancelled (default: true): the turn a real
interruption cut, a turn replaced by |
| heard_report_enabled | bool | optional | Optional: Report to an NLU that supports turn control what the caller actually heard of an interrupted
answer, so the conversation history and the agent's memory hold what was said rather than everything that
was generated (default: true). Example: the bot is cut after "Your appointment is on Monday" of a
longer answer; the agent's next turn knows the caller heard only that much. Needs
|
| heard_text_alignment_enabled | bool | optional | Optional: Place the cut of an interrupted answer on the sentence or word it fell in, using the timings the
text-to-speech service returns, instead of estimating it proportionally over the whole message (default:
true). Makes the heard report ( |
Publishing of call events to a RabbitMQ message broker, and receiving control messages for the call from it.
While activate_message_broker is true, the call publishes its NLU project and session with every NLU answer, starts listening for control messages addressed to its session after the first final transcription (they are executed in the call), and publishes the events of every service whose flag in message_broker_services_activation_config is true. Every unset flag counts as false; there is no deployment-wide default for these flags.
Activating the broker requires a complete rabbit_mq_config: host, both ports, user and password must be set. When the request is validated the broker must be reachable over TLS, present a certificate for host that the deployment trusts, accept VTSI's client certificate and accept the credentials; otherwise the request is refused with INVALID_ARGUMENT. The call connects to the broker over TLS as well.
Example: activate_message_broker=true with message_broker_services_activation_config.activate_s2t=true publishes every final transcription of the call, e.g. for a live transcript in another application.
| Field | Type | Label | Description |
| activate_message_broker | bool | optional | Optional: Master switch of the message broker for the call. Unset or |
| message_broker_services_activation_config | MessageBrokerServicesActivationConfig | Which services publish their events while |
|
| rabbit_mq_config | RabbitMqConfig | Address and credentials of the RabbitMQ server. Required while |
Which services of the call publish their events to RabbitMQ. Only takes effect while MessageBrokerConfig.activate_message_broker is true; every unset flag counts as false
| Field | Type | Label | Description |
| activate_s2t | bool | optional | Optional: Publish every final transcription of the caller. Unset: |
| activate_nlu | bool | optional | Optional: Publish every NLU answer. Unset: |
| activate_t2s | bool | optional | Optional: Publish every synthesized answer. Unset: |
| activate_sip | bool | optional | Optional: Publish the SIP information of the call with every NLU answer. Unset: |
Bounds of the preemptive (speculative) NLU requests. While preemptive generation is on (CsiVtsiConfig.preemptive_generation_config.enabled), the bot asks the NLU for the answer of a stable partial transcription BEFORE the caller's final transcription arrives, and uses that draft only when the final transcription matches it; otherwise the draft is discarded and the caller hears nothing of it. A draft never ends the caller's turn early; it only saves time when it matches. Every extra draft is an extra NLU request, and these bounds limit how many a turn may cost.
Every field is optional; an unset field keeps the built-in default (there is no deployment-wide setting for these). A value outside its range is refused with INVALID_ARGUMENT.
Example: max_drafts_per_turn=1 and min_stable_dwell_seconds=0.5 allow one draft per turn, started only after the partial transcription stayed unchanged for half a second: fewer extra NLU requests, less time saved.
| Field | Type | Label | Description |
| max_drafts_per_turn | int32 | optional | Optional: Number of drafts one caller turn may start at most. Unset: 2. Valid range: 0 - 5; 0 starts no draft at all, i.e. preemptive generation does nothing on this call |
| min_stable_dwell_seconds | float | optional | Optional: Seconds a partial transcription must stay unchanged before the first draft of a turn starts. A longer wait drafts less often on a caller who only paused to breathe. Unset: 0.25. Valid range: 0 - 2; 0 = no wait |
| min_interval_seconds | float | optional | Optional: Minimum seconds between the starts of two drafts within one turn, so a caller whose transcription
keeps changing cannot use up |
Callbacks for the NLU platform.
Each entry is a non-empty string (an empty entry is INVALID_ARGUMENT) naming a callback. The callbacks are accepted and validated but currently NOT executed: no component of the call consumes them, and a call behaves exactly the same with or without them. The field is kept for wire compatibility and reserved for a future callback mechanism, whose naming scheme will be documented then; do not rely on any effect.
| Field | Type | Label | Description |
| pre_nlu_callbacks | string | repeated | Names of callbacks to run before a request is sent to the NLU. No effect (see the message comment) |
| post_nlu_callbacks | string | repeated | Names of callbacks to run after the NLU answered. No effect (see the message comment) |
NLU configuration of a call: which NLU agent answers the caller, in which language, how the call authenticates to the NLU, how the conversation is opened, and how the bot behaves when the NLU is slow or unreachable.
Scope: the configuration of a LISTENER applies to every inbound call that listener deployment serves; the configuration of a caller, a campaign or a scheduled caller applies to its own calls. A pooled (persistent) caller is only reused for a request whose configuration is identical (the credentials are compared exactly, so a changed password deploys a new caller).
Unless a field says otherwise, an unset optional field means "inherit": the call keeps the built-in default of the speech-to-speech service. A value set here wins for the calls this configuration serves.
The request is validated before any call is placed: the NLU must be reachable and the agent must exist and be readable with the given credentials. A missing agent_name, an unknown agent or rejected credentials are refused with INVALID_ARGUMENT; an NLU that does not answer at all is UNAVAILABLE (retryable).
| Field | Type | Label | Description |
| nlu_base_config | BaseServiceConfig | Required: Address of the NLU gRPC server (host, port and the certificate its server certificate chains to).
See |
|
| credentials | Credentials | Account name and password of the NLU user the call talks to the NLU as (typically a technical user of the project). Used twice: once when the request is validated (the agent is read with these credentials) and once inside the call, which logs in with them. This is the authentication current deployments use. The values are never logged and can be withheld when the call configuration is read back |
|
| auth_token | string | Authentication token. Kept for wire compatibility only: VTSI does not validate the request with it, and
the speech-to-speech service of current SIP images does not read it, so it has no effect there. It is
still handed to the call, so a call running an older SIP image ( |
|
| agent_name | string | Required: Resource name of the NLU agent that answers the caller. An empty or unknown agent is refused with
|
|
| language_code | string | Language of the NLU requests of the call: an ISO 639-1 code (e.g. |
|
| initial_intent | string | Display name of the intent that opens the conversation, e.g. |
|
| contexts | ondewo.nlu.Context | repeated | Contexts created in the call's NLU session before the first NLU request, e.g. to hand the agent the
customer number of an outbound call. Only the last segment of a context's |
| http_basic_auth_token | string | HTTP basic auth token. Kept for wire compatibility only: it is not forwarded to the call and has no effect |
|
| platform | ondewo.nlu.Intent.Message.Platform | optional | Optional: Platform of the response messages the bot speaks. An NLU answer can carry messages for several
platforms; the bot speaks only the text messages of this platform and skips every other one. Unset:
|
| preemptive_generation_config | NluPreemptiveGenerationConfig | Optional: Bounds of the preemptive (speculative) NLU requests of the call. Unset keeps the built-in
defaults. The bounds only matter while preemptive generation is on, which is set with
|
|
| ai_teams_fillers_audible | bool | optional | Optional: Speak the filler sentences an AI Teams agent of the NLU sends while it is still working on a slow
answer (e.g. "One moment, I am checking that for you."), so the caller does not hear dead air. A
filler is spoken before the answer of its turn, and a final answer that repeats a filler already spoken is not
spoken a second time. |
| failure_apology_message | string | optional | Optional: Text the bot speaks when an NLU request of a turn still fails after its retries (the NLU is
unreachable), so the caller hears a request to repeat instead of silence. Unset: a built-in apology in the
language of |
| session_id_from_sip_context | bool | optional | Optional: Take the call's SIP context into the NLU session. |
| ai_teams_push_max_age_seconds | float | optional | Optional: Seconds a result an AI Teams agent delivers on its own (a push, e.g. the later result of a tool that
ran in the background) may wait at most to be spoken. A push is held while the caller speaks or the bot is
still answering, and spoken once the floor is free; a push that has waited longer than this by then is dropped
without being spoken and reported as dropped with the reason |
| ai_teams_push_max_spoken | int32 | optional | Optional: Number of held pushes (see |
Address and credentials of the RabbitMQ server the call publishes to. Validated only while MessageBrokerConfig.activate_message_broker is true: then every field is required, and the server is contacted with these credentials when the request is validated
| Field | Type | Label | Description |
| host | string | Host name or IP address of the RabbitMQ server. Required while the broker is activated; empty is
|
|
| port | int32 | AMQP port of the RabbitMQ server (typically |
|
| port_2 | int32 | Management (HTTP API) port of the RabbitMQ server (typically |
|
| user | string | User name on the RabbitMQ server. Required while the broker is activated; empty is
|
|
| password | string | Password of |
Response timing of the call: what the bot does while the caller stays silent, how it bridges a slow answer, and how an answer is requested from the NLU and streamed to the caller.
Every scalar is optional: an unset field inherits, i.e. the call keeps the deployment's value where a replica-wide ONDEWO_VTSI_* setting exists for it (named per field), and the built-in default listed per field otherwise. A set value always wins over the deployment setting. A value outside its range is refused with INVALID_ARGUMENT.
Scope: the configuration of a listener applies to every inbound call that listener deployment serves; the configuration of a caller, a campaign or a scheduled caller applies to its own calls. A pooled persistent caller is reused only for a request with the identical configuration.
The caller-silence windows (turn_timeout_seconds, silence_end_call_timeout_seconds) restart whenever the caller speaks, presses a key or the bot plays audio, and never elapse while the bot is speaking, an answer is being prepared or an interruption is being decided. While listening is paused through call control, neither window and no soft-timeout filler fires.
| Field | Type | Label | Description |
| turn_timeout_seconds | float | optional | Optional: Seconds of caller silence after which the bot re-engages the caller by triggering
|
| silence_end_call_timeout_seconds | float | optional | Optional: Seconds of caller silence after which the bot hangs up (default: off). Any value above 0 is
accepted; -1 is also accepted as an explicit off, and 0 or any other negative value is refused with
|
| soft_timeout_config | SoftTimeoutConfig | Optional: Filler messages the bot speaks while an answer takes long to prepare (default: off). See
|
|
| preemptive_generation_enabled | bool | optional | Optional, DEPRECATED: use |
| t2s_chunked_streaming_enabled | bool | optional | Optional: Start playing an answer as soon as its first audio chunk is synthesized, instead of waiting until the
speech synthesis of the whole answer has finished (default: true). Shortens the pause before the bot answers,
the more the longer the answer. |
| streaming_enabled | bool | optional | Optional: Ask the NLU for each answer with its streaming request instead of the unary one (default: the
deployment's |
| nlu_call_stream_enabled | bool | optional | Optional: Keep ONE streaming NLU request open for the whole call instead of opening one per caller turn
(default: the deployment's |
| turn_timeout_intent | string | optional | Optional: Display name of the NLU intent the bot triggers to re-engage a silent caller after
|
| t2s_max_edge_silence_ms | int32 | optional | Optional: Milliseconds of silence kept at most at the start and at the end of every synthesized bot utterance;
longer silence at the edges is cut off, so the bot starts speaking sooner and the caller is not kept waiting
after it (default: 40, valid range: -1 - 1000). Silence inside an utterance is never changed. 0 keeps no edge
silence at all; -1 turns the trimming off and plays the audio exactly as synthesized. A value outside the range
is refused with |
| nlu_call_stream_turn_timeout_seconds | float | optional | Optional: Seconds a caller turn waits at most for the first answer of the NLU on the call-length NLU request
( |
| nlu_call_stream_turn_quiet_seconds | float | optional | Optional: Seconds of silence on the call-length NLU request after a turn was already answered that end the turn
when the NLU never marks it finished (default: 5, valid range: 1 - 60). While a turn is open the next caller
turn waits behind it, so a lower value frees it sooner; it must stay above the longest pause the agent makes
between two parts of one answer, or the rest of the answer is lost. Only matters with
|
Callbacks for the Speech-2-Text platform.
Each entry is a non-empty string (an empty entry is INVALID_ARGUMENT) naming a callback. The callbacks are accepted and validated but currently NOT executed: no component of the call consumes them, and a call behaves exactly the same with or without them. The field is kept for wire compatibility and reserved for a future callback mechanism, whose naming scheme will be documented then; do not rely on any effect.
| Field | Type | Label | Description |
| pre_s2t_callbacks | string | repeated | Names of callbacks to run before the audio is sent to speech-to-text. No effect (see the message comment) |
| post_s2t_callbacks | string | repeated | Names of callbacks to run after speech-to-text returned a transcription. No effect (see the message comment) |
Speech-to-text (S2T) configuration of a call: which S2T service and pipeline transcribe the caller, how each utterance is transcribed, and what happens when the S2T service becomes unreachable during the call.
Checked when the caller or listener is started: the S2T service must be reachable and the pipeline named in s2t_transcribe_request_config.s2t_pipeline_id must exist and be active, otherwise the request is refused.
| Field | Type | Label | Description |
| s2t_base_config | BaseServiceConfig | Address and server trust of the S2T service (see |
|
| s2t_transcribe_request_config | ondewo.s2t.TranscribeRequestConfig | The transcription request the call sends to the S2T service for the caller's audio, e.g. the pipeline,
the voice activity detection and which results are returned. VTSI adds what the call's |
|
| failure_sip_trigger | string | optional | Optional: What the call does when the S2T service stays unreachable after all retries, i.e. when the bot can no longer hear the caller:
HANGUP is accepted; any other value is refused with
INVALID_ARGUMENT. There is no deployment-wide setting for it: unset always means
hangup. |
SIP side of a listener or caller: which version of the SIP container image carries the call. A listener is started with this message alone (StartListenerRequest.sip_base_config); a caller needs the callee as well and carries it inside SipCallerConfig.
| Field | Type | Label | Description |
| sip_sim_version | string | Optional: Tag of the SIP container image the call runs in, e.g. a semantic version ( |
SIP side of an outbound call: the SIP container image, whom to dial and the SIP headers of the INVITE. Used by StartCaller, scheduled callers and campaigns (Campaign.campaign_sip_caller_config, merged under each call's own value).
Pooled persistent callers: callee_id and sip_headers are sent with each call and are NOT part of the configuration a pooled caller is matched by, so calls to different callees, or with different headers, can reuse the same caller; sip_base_config is part of it.
| Field | Type | Label | Description |
| sip_base_config | SipBaseConfig | SIP container image of the call (see |
|
| callee_id | string | The callee to dial: a phone number, e.g.
(an optional + or 00 country prefix of 1 to 4 digits, then 9 to 20 digits; no spaces
or separators). A value containing a letter or an @ is passed to the Asterisk as it is and only
its length is checked. Violations are INVALID_ARGUMENT. Of a campaign call, the
callee_id is resolved once when the call is added (see
Campaign.campaign_sip_caller_config). |
|
| sip_headers | SipCallerConfig.SipHeadersEntry | repeated | SIP headers sent on the outbound INVITE, header name to value, e.g.
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Media and SIP behaviour of the SIP container that carries the call. A container serves one call, one listener deployment (all its inbound calls) or one pooled persistent caller, and a pooled caller is reused only for a request with the same configuration, so every field applies to the call(s) of exactly this configuration.
Every field is optional. An unset field sends nothing, and the container's built-in default applies. register_interval_seconds has a deployment-wide setting (ONDEWO_VTSI_SIP_REGISTER_INTERVAL_S), which a set value wins over. For the two live call audio stream limits the deployment's own limit applies in addition, so the stricter of the two wins. A value outside its range (including NaN for a float field) is refused with INVALID_ARGUMENT naming the field.
The defaults are the recommended values; most integrations leave this message unset.
| Field | Type | Label | Description |
| playback_latency_ms | uint32 | optional | Optional: Milliseconds of audio the sound device's playback buffer holds for the caller's audio on its way to the speech-to-text service (and to a live LISTEN stream of the call). A smaller buffer lets the bot hear the caller sooner (faster turn ends and interruptions); a larger one rides out short stalls of the host better, at the price of that delay. Unit: milliseconds. Default: 60. Valid range: 40 - 1000; 140 is the previous default and the rollback value. Values below 60 save little and tolerate stalls worse. |
| software_clock_enabled | bool | optional | Optional: Whether the call's media (sending RTP and reading the caller's audio) is clocked by a software clock instead of the sound device. The software clock keeps the call's audio running in real time when the sound device stalls; with the sound device's clock a stall delays or drops audio in both directions. Default: true; false is the rollback to the sound device's clock. |
| rtp_stats_sample_interval_seconds | float | optional | Optional: Seconds between two RTP statistics log lines (packets, loss, jitter per direction) of a live call. Diagnostics only: it changes nothing about the audio. Unit: seconds. Default: 10. Valid: 0 (no periodic lines; the statistics line at the end of each audio stream is still written) or 1 - 3600. |
| hangup_wait_for_playback_timeout_seconds | float | optional | Optional: Seconds a graceful hangup waits at most for audio files still playing into the call before it ends the call anyway. A hangup that ends the call at once does not wait. Unit: seconds. Default: 5.0. Valid range: 0 - 60; 0 hangs up without waiting. |
| outgoing_dial_watchdog_seconds | float | optional | Optional: Seconds an outbound call of a pooled persistent caller may stay at
|
| register_interval_seconds | uint32 | optional | Optional: Seconds the container asks the Asterisk to keep its SIP registration; the Asterisk may grant less
(it grants no less than 60 s and, by default, no more than 7200 s), and the registration is renewed 30 s
before the GRANTED time expires. A listener can be reached by inbound calls only while it is registered.
Unit: seconds. Default: 600. Valid range: 60 - 86400; a value above the Asterisk's maximum behaves like
that maximum. A set value wins over the deployment's |
| call_audio_stream_max_concurrent | uint32 | optional | Optional: Live call audio streams ( |
| call_audio_stream_max_duration_seconds | uint32 | optional | Optional: Seconds a live call audio stream of the call may last at most; it then ends with
|
Soft timeout of the call: filler messages (e.g. "One moment please.") the bot speaks while the answer to a caller turn takes longer than timeout_seconds to prepare, so that the caller does not hear a silent line. The timer starts when the NLU is asked for the answer and is stopped as soon as the answer starts playing; a filler is never played after the answer. With interruptions enabled, the caller can interrupt a filler like any other bot utterance.
Example: timeout_seconds=3, messages=["One moment please.", "Let me check that."] and max_per_generation=1 speak "One moment please." when an answer is not ready after 3 s, "Let me check that." the next time it happens in the call, and then start over.
| Field | Type | Label | Description |
| timeout_seconds | float | optional | Optional: Seconds an answer may take before a filler message is played (default: off; valid range:
0.5 - 8.0, and -1 as an explicit off). Any other value is refused with |
| messages | string | repeated | Filler messages, spoken one per filler in the order given and starting over after the last one; the rotation
runs over the whole call. At most 7 messages, each 1 - 200 characters and not blank; anything else is refused
with |
| max_per_generation | int32 | optional | Optional: Maximum number of filler messages played while one answer is prepared (default: 1; 0 or more, a
negative value is refused with |
Speech synthesis of the answer of a preemptive (speculative) draft. With preemptive generation on, the NLU is asked for the answer of a stable partial transcription while the caller is still finishing the sentence; when the final transcription matches that draft, its answer is used instead of asking again, which shortens the pause before the bot speaks. These two switches decide how much of the speech synthesis is done ahead of time as well.
Every field is optional; an unset field keeps the built-in default listed per field. Neither field has a value that is refused, and both are ignored while preemptive generation is off (CsiVtsiConfig.preemptive_generation_config.enabled).
| Field | Type | Label | Description |
| enabled | bool | optional | Optional: Synthesize the answer of a draft already while the caller is still speaking (default: true).
|
| chunked | bool | optional | Optional: Play the answer of a matching draft chunk by chunk while it is still being synthesized, instead of
waiting until its whole speech synthesis has finished (default: false). Only takes effect when
|
Callbacks for the Text-2-Speech platform.
Each entry is a non-empty string (an empty entry is INVALID_ARGUMENT) naming a callback. The callbacks are accepted and validated but currently NOT executed: no component of the call consumes them, and a call behaves exactly the same with or without them. The field is kept for wire compatibility and reserved for a future callback mechanism, whose naming scheme will be documented then; do not rely on any effect.
| Field | Type | Label | Description |
| pre_t2s_callbacks | string | repeated | Names of callbacks to run before a text is synthesized. No effect (see the message comment) |
| post_t2s_callbacks | string | repeated | Names of callbacks to run after a text was synthesized. No effect (see the message comment) |
Text-to-speech configuration of the call: which text-to-speech service and pipeline voices the bot, and how the answers of preemptive drafts are synthesized.
Scope: the configuration of a listener applies to every inbound call that listener deployment serves; the configuration of a caller, a campaign or a scheduled caller applies to its own calls. A pooled persistent caller is reused only for a request with the identical configuration, so callers with different values are never shared.
The service and the pipeline are checked when the request arrives: an empty t2s_pipeline_id, a pipeline the text-to-speech service does not know and an inactive pipeline are refused with INVALID_ARGUMENT; a text-to-speech service that does not answer is reported as UNAVAILABLE (a campaign then retries the call later).
| Field | Type | Label | Description |
| t2s_base_config | BaseServiceConfig | Host, port and trust anchor of the text-to-speech service the call uses. Required; see
|
|
| t2s_request_config | ondewo.t2s.RequestConfig | Request configuration sent with the speech synthesis of the bot's utterances. |
|
| preemptive_synthesis_config | T2sPreemptiveSynthesisConfig | Optional: Whether and how the answer of a preemptive (speculative) draft is synthesized before the final
transcription arrives. Unset keeps the built-in defaults listed in |
|
| synthesize_timeout_seconds | float | optional | Optional: Seconds one speech synthesis request of the call may take before it is given up (default: 20, valid range: 1 - 120). A failed or timed-out request of an answer is retried, so a slow text-to-speech service can keep the caller waiting for several times this value; a lower value gives up sooner. The opening message of the call stops retrying when the time the caller is kept muted at the start of the call runs out, and an audible AI Teams filler gets one attempt of at most 1 s, never more than this value. There is no deployment-wide setting for it; a value set here wins |
| cache_retention | string | optional | Optional: How long the synthesized audio of the bot's answers is kept for reuse (case-insensitive):
INVALID_ARGUMENT. There is no deployment-wide setting for it; a
value set here wins |
Configuration of the turn detection of a call, i.e. how the bot decides that the caller has finished speaking and that it is its turn to answer. Too eager, and the bot answers a caller who only paused ("Ich möchte ... einen Termin am Dienstag" becomes two turns); too patient, and the caller waits in silence for every answer.
Two services take part: the speech-to-text service ends an utterance after a silence (voice activity detection) and, with a turn detection model, judges whether the words so far are a finished turn; the speech-to-speech service of the call decides which final transcription becomes ONE turn for the NLU, and when the caller may interrupt the bot.
Presence and precedence: every optional field is applied only when it is set; an unset field inherits, in this order, the deployment setting of the VTSI server (the ONDEWO_VTSI_* variable named at the field, where one exists), then the built-in default of the service that applies it. A set per-call value wins over the deployment setting. Leaving the whole message unset keeps the deployment's turn detection: the deployment-wide turn detection model when the operator switched it on (ONDEWO_VTSI_S2T_TURN_DETECTION_ACTIVE), else the speech-to-text pipeline's own silence detection. Setting the message at all also asks the speech-to-text service for partial transcriptions and the start of speech, which every timer of the turn detection needs.
Scope: the configuration of a LISTENER applies to every inbound call that listener deployment serves; the one of a caller, a campaign or a scheduled caller to each of its own calls. A pooled persistent caller is only reused for a call with an identical configuration.
Validation: a value outside its range, and a field that only the semantic turn detection model reads set together with the mode VAD or AUDIO_MODEL, are refused with INVALID_ARGUMENT.
Example, a line that collects phone numbers and wants patient turn taking:
mode: SEMANTIC_MODEL
turn_eagerness: PATIENT
final_merge_window_seconds: 0.7
dictation_config { hold_max_seconds_by_category { key: "phone" value: 3.0 } }
| Field | Type | Label | Description |
| mode | TurnDetectionConfig.TurnDetectionMode | How the end of the caller's turn is detected (see |
|
| min_endpointing_delay_seconds | float | optional | Optional: Seconds of caller silence after which the speech-to-text service ends an utterance and sends its
final transcription (its minimum silence; valid range: 0 - 10). Applies in every mode and is scaled by
|
| max_endpointing_delay_seconds | float | optional | Optional: Safety net for a slow end of turn: once the caller's partial transcription has stopped changing,
the turn is committed from it after this many seconds even if the speech-to-text service has not sent its
final transcription yet (valid range: 0 - 10; scaled by |
| turn_eagerness | TurnDetectionConfig.TurnEagerness | How eagerly the bot takes the turn: scales |
|
| turn_detection_system_prompt | string | optional | Optional: System prompt for a chat-LLM turn detection model of the speech-to-text service (the model that
answers yes or no to "is this turn finished?"). Unset uses the model's built-in prompt. Only a
chat-LLM model reads it; the other turn detection models ignore it. Only valid with the mode
|
| turn_detection_user_prompt | string | optional | Optional: User prompt for a chat-LLM turn detection model of the speech-to-text service, with the rules of
|
| conversation_context_turns | uint32 | optional | Optional: Number of the latest conversation turns (the caller's committed turns and the bot's
utterances as the caller heard them, cut where the caller interrupted) handed to the turn detection model
together with the utterance it judges, so that a bare "vierzehn" is judged as the answer to
"Wie alt sind Sie?" (valid range: 0 - 10; default: 0 = off). Use it only where the speech-to-text
service serves a turn detection model trained with conversation context (an end-of-utterance model); a
chat-LLM model and the audio Smart Turn model ignore it. Each turn sent adds up to 1000 characters to every
speech-to-text request. Only valid with the mode |
| semantic_model_name | string | optional | Optional: Name of the turn detection model the speech-to-text service uses for this call; the name also
selects the kind of model: |
| end_of_turn_probability_threshold | float | optional | Optional: End-of-turn probability at or above which the turn detection model takes the caller to have
finished the turn (valid range: 0 - 1). Higher means more patient: a turn needs a more certain
"finished" to be committed. Unset uses the speech-to-text service's configured threshold for
the language of the call. Read by every turn detection model that computes a probability; a chat-LLM model,
which answers yes or no, ignores it. Only valid with the mode |
| hold_bands | TurnDetectionConfig.EndOfTurnHoldBands | Optional: Hold bands of an end-of-utterance turn detection model: a turn judged finished, but only with a
probability below a band's upper bound, waits for that band's silence before it is committed, and is
judged again if the caller speaks on. Unset uses the speech-to-text service's configured bands for the
language of the call; set with NO bands, every turn at or above the threshold is committed without a hold.
At most 10 bands, with the ranges of |
|
| uncertain_min_words | uint32 | optional | Optional: Minimum number of words a turn needs before a hold band may hold it; a shorter turn judged finished
is committed without the hold, so that short answers such as "ja" are answered quickly (valid
range: 0 - 20; unset uses the speech-to-text service's default, 3). Only an end-of-utterance model reads
it. Only valid with the mode |
| incomplete_max_silence_seconds | float | optional | Optional: Seconds of silence after which a turn the turn detection model judged NOT finished is committed
anyway, so that a caller who really stopped is still answered (valid range: 0 - 4). Unset uses the
speech-to-text service's configured value, else its minimum silence; the speech-to-text service raises a
value below the minimum silence to it. It also caps every hold band. Read with every kind of turn detection
model. Only valid with the mode |
| exact_probability | bool | optional | Optional: Compute the exact end-of-turn probability instead of reading it from the model's returned top
log probabilities (default: false). Requires a model deployment that returns prompt log probabilities (vLLM
|
| final_merge_window_seconds | float | optional | Optional: Seconds a final transcription that looks like half a sentence is held, so that it is sent to the NLU
together with the caller's continuation as ONE turn instead of being answered on its own (valid range:
0 - 2; default: 0 = off). A final is held only when it ends on a continuation word ("und",
"oder", "and", ...), is a single short word that is not a complete answer, or was cut at
the speech-to-text service's maximum utterance length; never while the bot is speaking. When the caller
goes on inside the window, the held part waits for the next final (up to 4 s after the last sign of speech);
otherwise it is sent alone when the window ends, so an answer such as "ja" is delayed by at most the
window, never dropped. Every second is added latency on such finals; 0.5 - 1.0 is a typical value. Valid with
every mode. A value outside the range is refused with |
| dictation_config | DictationConfig | Optional: Configuration of the dictation hold: waiting for the rest of a dictated value (digits, a phone or
card number, an IBAN, an address, a date, ...) instead of ending the turn at the caller's pause between
its groups (see |
|
| s2t_emit_ms | uint32 | optional | Optional: Milliseconds of caller audio the call sends to the speech-to-text service per request (valid range:
20 - 1000; default: 40). Smaller values let the speech-to-text service react sooner at the cost of more
requests; larger values bundle audio and add up to that much latency to every transcription. Unset keeps the
deployment's |
| s2t_request_partials | bool | optional | Optional: Ask the speech-to-text service for partial transcriptions and the start of speech wherever the
call's speech-to-text configuration says nothing about them (default: true). The interruption noise
gate, |
| s2t_request_end_of_speech_candidate | bool | optional | Optional: Ask the speech-to-text service for an early end-of-speech candidate while preemptive generation is
active, so that the bot can start preparing its answer while the turn detection model still holds the
caller's turn open, before the final transcription (default: true). The candidate is sent only with a
speech-to-text turn detection model and never shortens the turn: a prepared answer is only used when the
final transcription confirms it. |
| smart_turn_threshold | float | optional | Optional: End-of-turn probability threshold of the audio-native turn detection of the mode
|
| post_unmute_phantom_window_seconds | float | optional | Optional: Phantom-turn guard after the bot stops speaking (valid range: 0 - 1; default: 0.3; 0 = off). While
the caller's audio is muted during the bot's speech (interruptions disabled and
|
One hold band of an end-of-utterance turn detection model
| Field | Type | Label | Description |
| upper_probability | float | Exclusive upper bound of the end-of-turn probabilities the band covers (valid range: 0 - 1); the lower bound is the next lower band's upper bound, or the end-of-turn threshold |
|
| max_silence_seconds | float | Seconds of silence a turn in the band waits before it is committed; speech inside it resumes the turn
(valid range: 0 - 4, and at most |
Hold bands of an end-of-utterance turn detection model (see hold_bands). The message is a wrapper so that "no bands" can be told apart from "unset"
| Field | Type | Label | Description |
| bands | TurnDetectionConfig.EndOfTurnHoldBand | repeated | The bands (at most 10, in any order). They are sorted by |
How the bot of a call takes turns, lets the caller interrupt it, times its answers, reads the caller's keypad and transfers the call: turn detection, interruption (barge-in) handling, response timing, answering machine detection, DTMF keys, warm intros and the transfers the bot starts itself.
Scope: set in the CommonServicesConfig of a listener, it applies to every inbound call that listener deployment serves; set for a caller, a campaign or a scheduled caller, it applies to each of its own calls. A pooled persistent caller is reused only for a request with an identical configuration, so two requests that differ here never share a caller.
Precedence: every sub-message and every field is optional, and unset means inherit. A set per-call value wins over the deployment's ONDEWO_VTSI_* setting for the same behaviour (where one exists), which wins over the built-in default. A value outside its documented range is refused with INVALID_ARGUMENT.
| Field | Type | Label | Description |
| turn_detection_config | TurnDetectionConfig | When the caller's turn is over and the bot may answer: turn detection mode, endpointing delays, partial
transcriptions and dictation holds (see |
|
| interruption_handling_config | InterruptionHandlingConfig | Whether and how the caller can interrupt (barge in on) the bot while it speaks, and what happens to the
interrupted answer (see |
|
| response_timing_config | ResponseTimingConfig | When and how the bot responds, e.g. after caller silence, with fillers while it is thinking, and how its
answers are streamed (see |
|
| answering_machine_detection_config | AnsweringMachineDetectionConfig | Configuration of the answering machine detection (AMD) of an outbound call. Only accepted for pooled persistent callers: a listener or a one-shot caller that carries it is rejected with INVALID_ARGUMENT |
|
| dtmf_config | DtmfConfig | Configuration of the DTMF keys the CALLER presses (keypad input to the bot). Unset keeps the deployment's behaviour (keys on, a key barges in, undeclared keys dropped) |
|
| warm_transfer_config | WarmTransferConfig | Configuration of the warm intro of a WARM transfer of this call (see |
|
| bot_transfer_config | BotTransferConfig | How the transfers the bot starts itself behave: a transfer the NLU agent or an LLM agent decides on during
the conversation, not one a client asks for with |
Audit of one warm intro, in CallTransferRecord.warm_intro. Output only. Holds NO intro text and NO decline reason text.
| Field | Type | Label | Description |
| intro_id | string | Id of the intro: the participant id of the target's leg (the |
|
| decision | WarmIntroDecision | The target's decision |
|
| decided_by | WarmIntroDecidedBy | How it was taken |
|
| decline_reason_present | bool | Whether the target gave a reason for a decline (the reason itself never leaves the intro bot's NLU
session); |
|
| intro_call_name | string | The intro bot's call, labelled |
|
| ring_duration | google.protobuf.Duration | From the start of the ring to the target's answer |
|
| intro_duration | google.protobuf.Duration | From the target's answer to the decision or the end of the intro |
|
| text_source | WarmIntroTextSource | The text source actually requested (UNSPECIFIED resolved); see |
|
| text_fell_back | bool | Whether the LLM summary could not be written (no LLM, failed, too slow, empty) and the built-in template was spoken instead |
|
| cause | string | Bounded kebab-case token naming why the intro ended or did not run, e.g. |
|
| notice_delivered | bool | Whether the caller's bot queued the outcome notice (decline / unreachable) for the caller. Only meaningful
when a notice was owed (every decision but |
|
| intro_started | bool | Whether the intro started (an intro bot answered). |
Warm intro of a WARM transfer: after the human target answered and before the target is joined, an ONDEWO bot (a free listener of the project, in an NLU session of its own) greets the target, confirms that a person is on the line, briefs them (who calls and why), asks whether they accept the call and, on a decline, asks what to tell the caller. Meanwhile the caller stays with the paused bot of the call and hears only what caller_disclosure_message, caller_hold_message and caller_hold_music configure (silence by default). On accept the caller hears caller_accepted_message, the target is joined and the bot leaves as in every WARM transfer; on a decline, no decision or an unreachable target the target is hung up and the call stays with the bot, which tells the caller (caller_declined_message / caller_unreachable_message) and goes on with the conversation.
The conversation with the target, step by step, with the default settings:
1. ready_question "... Ich habe einen Anruf für Sie. Sind Sie am Apparat? Sagen Sie ja oder drücken
Sie 1."
yes / key 1: go on; anything else: asked once more; no answer within decision_timeout_s or
a second unclear answer: NO_DECISION (a mailbox is suspected)
2. briefing + accept_question
"{caller_name} möchte mit Ihnen sprechen. Es geht um {topic}. Möchten Sie das Gespräch
übernehmen? Ja oder 1, nein oder 2."
yes / key 1: ACCEPTED; no / key 2: step 3; unclear: asked once more, then NO_DECISION
3. decline_reason_question "Was darf ich dem Anrufer ausrichten?"
whatever the target says next is the reason; silence: a decline without a reason
Levels: unset fields inherit, the most specific level winning per field (protobuf MergeFrom): TransferCallRequest.warm_transfer_config (one transfer) > VoiceInteractionConfig.warm_transfer_config of the call (listener, caller, campaign, scheduled caller) > VtsiProject.warm_transfer_defaults > the built-in defaults documented at each field. The texts ready_question, accept_question, decline_reason_question, caller_declined_message and caller_unreachable_message have one more level between the project and the built-in text: the warm transfer settings of the ONDEWO NLU agent, in the intro's language. The built-in texts exist in German and English; any other language gets the English one. The deployment settings ONDEWO_VTSI_WARM_TRANSFER_* are not field defaults: they switch the feature on and off and govern how many listeners are kept free (below). A LISTENER's config applies to every inbound call that listener serves, a caller's, campaign's or scheduled caller's config to its own calls; a pooled persistent caller is only reused for a call with an identical configuration.
Example: the project sets warm_transfer_defaults { enabled: true caller_hold_message: "Einen Moment bitte, ich kündige Sie an." }; one campaign sets warm_transfer_config { decision_timeout_s: 30 }. A WARM transfer of that campaign then runs an intro with the project's hold message and a 30 s decision timeout, and every other field at its default.
Requires the deployment switch ONDEWO_VTSI_WARM_TRANSFER_ENABLED=true (default false); otherwise an explicit enabled=true is refused with FAILED_PRECONDITION reason=warm-intro-disabled, at every level (also on UpdateVtsiProject), and a value stored before the switch was turned off is ignored: every WARM transfer behaves exactly as before 9.5.0. VtsiProject.feature_availability.warm_intro says up front whether warm intros can run in a project. Fields marked phase B (intro_text_source = WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY, caller_hold_music = true, a non-empty llm_ccai_service_name) are refused with FAILED_PRECONDITION reason=phase-b-not-enabled while the deployment has not enabled phase B (ONDEWO_VTSI_WARM_TRANSFER_PHASE_B, VtsiProject.feature_availability.warm_intro_phase_b).
A WARM transfer with an enabled intro is refused before anything rings when the target is not a person (INVALID_ARGUMENT reason=warm-intro-target-not-human: only a phone number or a softphone account can be briefed) and with FAILED_PRECONDITION when in-call control is not configured (ONDEWO_VTSI_CALL_CONTROL_KEY, reason=call-control-disabled), the call has no live NLU session (no-nlu-session), the project has no listener to spare (warm-intro-needs-listener), a listener the intro may reach uses another NLU project than the call (warm-intro-cross-project) or the call cannot tell the caller the outcome (warm-intro-notice-unsupported: an older component, or a listener or pooled caller deployed before warm intros were switched on in the deployment; such a container refuses warm intros until it is redeployed). What can only fail once the transfer runs (no listener free at that moment, the NLU agent has warm intros switched off, the intro could not be prepared within ONDEWO_VTSI_WARM_TRANSFER_PREPARE_TIMEOUT_S, default 6 s) makes the intro unavailable, and on_intro_unavailable decides.
Texts are spoken by text-to-speech: what the target hears in the voice and language of the intro bot, what the caller hears (caller_disclosure_message, caller_hold_message, caller_accepted_message) in the voice and language of the call. The placeholders are {project}, {caller_name}, {callee_name}, {topic}, {summary} and {reason}, where a field lists them; any other placeholder is refused with INVALID_ARGUMENT reason=unknown-placeholder. A text must not contain SIP markup (<SIP:): refused with INVALID_ARGUMENT reason=sip-markup. No text of an intro (the briefing, the decline reason) is ever stored by VTSI, logged, sent in an event or a SIP header: it lives only in the intro bot's NLU session.
Every scalar is optional: unset inherits, a set value (also "" or 0) is that level's value. Values outside a documented range are refused with INVALID_ARGUMENT (reason=out-of-range, text-too-long, ...), naming the field.
| Field | Type | Label | Description |
| enabled | bool | optional | Master switch of the warm intro: |
| intro_prompt | string | optional | With |
| intro_text_source | WarmIntroTextSource | How the briefing is produced. |
|
| ready_question | string | optional | The first sentence the target hears, before anything about the caller: it carries no personal data, so a
mailbox that answers records nothing about the caller. Placeholder |
| confirm_human_before_intro | bool | optional | Whether the briefing is spoken only after the target confirmed being there, by saying yes or pressing
|
| accept_question | string | optional | The question after the briefing. Unset or empty: the NLU agent's text, else the built-in one, (de)
"Möchten Sie das Gespräch übernehmen? Ja oder 1, nein oder 2." (the effective
|
| decline_reason_question | string | optional | Asked after a decline, to learn what to tell the caller. Unset: the NLU agent's text, else the built-in
one, (de) "Was darf ich dem Anrufer ausrichten?", (en) "What may I tell the caller?".
|
| caller_declined_message | string | optional | What the caller hears after a decline, placeholders |
| caller_unreachable_message | string | optional | What the caller hears when the target was busy, did not answer, gave no decision, hung up during the intro, or
the intro could not run with |
| accept_dtmf | string | optional | The key the target presses to accept, which also answers the |
| decline_dtmf | string | optional | The key the target presses to decline. Default |
| decision_timeout_s | uint32 | optional | Seconds the target has to answer each question ( |
| max_intro_duration_s | uint32 | optional | Hard cap in seconds from the moment the target answered the call to the decision, whatever the questions do.
Past it the intro bot is hung up and the intro ends with |
| callee_display_name | string | optional | Who the target is, spoken as |
| callee_description | string | optional | The target's role and context, handed to the briefing (LLM_SUMMARY). Unset or empty: the target softphone
account's |
| on_intro_unavailable | WarmIntroUnavailablePolicy | What happens when the intro cannot run although the transfer was accepted: no listener free at that moment, the
NLU agent has warm intros switched off, or the intro could not be prepared in time. Not consulted for the
refusals before anything rings (see the message). |
|
| apply_to_bot_transfers | bool | optional | Whether the bot's OWN transfers to a person (a transfer or human handover the NLU answer asks for, to a
phone number or a softphone account) get a warm intro too: the bot does not send the transfer itself but hands
it to VTSI, which runs it as a WARM transfer with an intro. Only when |
| caller_hold_message | string | optional | Spoken to the caller while the intro runs, after |
| caller_hold_music | bool | optional | Phase B: music on hold for the caller between the hold messages while the intro runs. Default
|
| caller_reassure_interval_s | uint32 | optional | Repeat |
| llm_ccai_service_name | string | optional | Phase B: the resource name of the LLM service of the ONDEWO NLU project that writes the briefing of an
LLM_SUMMARY intro (and decides a spoken answer to its |
| caller_disclosure_message | string | optional | Spoken to the caller FIRST when the intro starts, e.g. that the call is being announced to the target: "Ich kündige Sie jetzt bei der Kollegin an." Default empty: none. At most 1000 characters |
| caller_accepted_message | string | optional | Spoken to the caller after the target accepted and before the target is joined, placeholder
|
| store_intro_audio | bool | optional | Whether the intro bot's NLU session may store the intro audio (the target's voice and the
bot's). Default |
| intro_listener_names | string | repeated | Project level only: listeners ( )
reserved as intro bots. Empty (default): any free listener of the project takes the intro, but only while more
than ONDEWO_VTSI_WARM_TRANSFER_RESERVED_LISTENERS (default 1) listeners are ready, so customer calls
keep that many. Listed: only these listeners take intros, and they no longer answer customer calls (no reserve
is kept); a project whose listed listeners are none of them deployed refuses an intro with
FAILED_PRECONDITION reason=warm-intro-needs-listener. At most 50 distinct listeners
of this project; set on another level it is refused with INVALID_ARGUMENT |
What the call does once a verdict is reached that is not a person
| Name | Number | Description |
| AMD_ACTION_UNSPECIFIED | 0 | Not set explicitly. As a value of |
| HANG_UP | 1 | Hang up at once on an answering machine, and on a fax, a network announcement, an IVR or a call
screening assistant whose |
| DETECT_ONLY | 2 | Shadow mode: detect and report the verdict, never hang up.
|
| LEAVE_VOICE_MESSAGE | 3 | Leave a voice message on an answering machine, then hang up. Only a MACHINE verdict gets a message: a
fax, a network announcement, an IVR or a call screening assistant is not a mailbox and is hung up on at
once, without a message, when its The fulfillment of |
How readily the detection decides that a machine answered. It selects which detection rules may hang up; the timing fields below are not changed by it. Whatever the sensitivity, a person-like answer, silence and an undecided call are never hung up on
| Name | Number | Description |
| AMD_SENSITIVITY_UNSPECIFIED | 0 | Not set explicitly. As a value of |
| LOW | 1 | Most conservative towards people (default): a machine verdict needs one piece of strong evidence on its own, e.g. a clear mailbox beep or a mailbox phrase such as "leave a message after the beep". Fewest people hung up on; some machines are missed and greeted |
| MEDIUM | 2 | Balanced: in addition, a long greeting together with a weaker machine phrase is enough |
| HIGH | 3 | Most aggressive: in addition, a long greeting together with a weaker beep is enough. Detects the most machines, at the highest risk of hanging up on a person |
How the end of the caller's turn is detected
| Name | Number | Description |
| TURN_DETECTION_MODE_UNSPECIFIED | 0 | No mode chosen: the speech-to-text side is configured as for |
| VAD | 1 | The turn ends on silence alone: the speech-to-text service commits a final transcription once the caller
was silent for its minimum silence ( |
| SEMANTIC_MODEL | 2 | The speech-to-text service asks a turn detection model whether the words so far are a finished turn, so
that a caller who pauses mid-sentence keeps the turn. The model must be provided by the deployment (a
turn detection endpoint configured with |
| AUDIO_MODEL | 3 | Reserved for an audio-native turn detection model run by the speech-to-speech service on the caller
audio. The released speech-to-speech service does not run such a model yet: a call in this mode ends its
turns on the speech-to-text silence detection, as with |
How eagerly the bot takes the turn
| Name | Number | Description |
| TURN_EAGERNESS_UNSPECIFIED | 0 | No eagerness chosen: the same as |
| PATIENT | 1 | Patient turn taking, e.g. for collecting structured information: both endpointing delays are multiplied by 1.7 |
| NORMAL | 2 | Normal turn taking: both endpointing delays are used as set (factor 1.0) |
| EAGER | 3 | Eager turn taking, for quick exchanges: both endpointing delays are multiplied by 0.6 |
How the decision of a warm intro was taken
| Name | Number | Description |
| WARM_INTRO_DECIDED_BY_UNSPECIFIED | 0 | Not decided |
| WARM_INTRO_DECIDED_BY_DTMF | 1 | A key ( |
| WARM_INTRO_DECIDED_BY_SPEECH | 2 | A spoken answer |
| WARM_INTRO_DECIDED_BY_TIMEOUT | 3 | No answer within |
The target's decision in a warm intro
| Name | Number | Description |
| WARM_INTRO_DECISION_UNSPECIFIED | 0 | No decision: the intro still runs, it never started, the target never answered or hung up before deciding |
| WARM_INTRO_DECISION_ACCEPTED | 1 | The target accepted and was joined; the bot leaves the call |
| WARM_INTRO_DECISION_DECLINED | 2 | The target declined and was hung up; the call stays with the bot, which tells the caller
|
| WARM_INTRO_DECISION_NO_DECISION | 3 | The target answered but gave no decision: no answer within |
How the briefing of a warm intro is produced
| Name | Number | Description |
| WARM_INTRO_TEXT_SOURCE_UNSPECIFIED | 0 | Chosen by the deployment: |
| WARM_INTRO_TEXT_SOURCE_TEMPLATE | 1 |
|
| WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY | 2 | Phase B: an LLM summary of the call so far, instructed by |
What a WARM transfer does when its warm intro cannot run
| Name | Number | Description |
| WARM_INTRO_UNAVAILABLE_POLICY_UNSPECIFIED | 0 | Same as |
| WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO | 1 | Ring the target and join them directly, as a WARM transfer without an intro
( |
| WARM_INTRO_UNAVAILABLE_POLICY_RETURN_TO_CALLER | 2 | Hang up the target (or ring nothing) and keep the call with the bot, which tells the caller
|
ONDEWO VTSI API
rpc StartCaller (StartCallerRequest) returns (StartCallerResponse)
Starts one caller in a VTSI project: an ondewo-sip container that places one outbound call to
sip_caller_config.callee_id (or a pooled caller of the server's caller pool that runs the same
configuration). The configuration is validated first, including live checks against the upstream services;
nothing is started when it fails. Not idempotent: every successful request places a new call (send it as a
batch of one with an idempotency_key to make it idempotent). validate_only runs the
validation alone.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed or invalid request or
configuration (also when the NLU credentials are refused) or an unknown field_mask path;
NOT_FOUND for an unknown project; FAILED_PRECONDITION when an upstream config lacks
the required TLS certificate (UPSTREAM_TLS_REQUIRED) or the project is not deployed;
RESOURCE_EXHAUSTED when the project reached its caller limit; UNAVAILABLE when an
upstream service could not be reached; with authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_CALLER_STARTED or VTSI_EVENT_CALLER_START_FAILED, then the
events of the call (VTSI_EVENT_CALL_*). None with validate_only.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StartCallers (StartCallersRequest) returns (StartCallersResponse)
Starts several callers, each like StartCaller. Not atomic: every caller is started on its own;
a caller that fails to start is rolled back and has no entry in the response, which accounts for it in
StartCallersResponse.error_message. The project's caller limit is checked for the batch as a
whole before anything is started (RESOURCE_EXHAUSTED, nothing started). Idempotent per
idempotency_key.
Authorization: as StartCaller.
rpc ListCallers (ListCallersRequest) returns (ListCallersResponse)
Lists the callers of a VTSI project, ordered by the caller's uuid (the last segment of
name), ascending: a stable order, not a chronological one. Paged with page_size /
page_token; total_size counts every match.
With campaign_name or campaign_display_name set, lists only the callers of that
campaign: the callers that placed at least one attempt of one of its campaign calls (see
ListCallersRequest.campaign_name). active_only and sip_status_types
narrow the listing further.
Errors: INVALID_ARGUMENT for a malformed request, an invalid selector, a negative
page_size, a page_token of another listing or an unknown field_mask
path; NOT_FOUND for an unknown project or campaign; with authorization enforced
PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc GetCaller (GetCallerRequest) returns (Caller)
Gets a caller, populated according to call_view and field_mask.
Errors: INVALID_ARGUMENT for a malformed name or an unknown field_mask path;
NOT_FOUND for an unknown project or caller, or a caller of another project; with authorization
enforced PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc UpdateCaller (UpdateCallerRequest) returns (UpdateCallerResponse)
Updates the STORED configuration of a caller: the fields named in update_mask, i.e.
sip_caller_config and common_services_config or any nested sub-path of them.
Allowed whether or not the caller has a call running.
A running call and its container are NEVER changed: nothing is restarted, redeployed or reconfigured, and the call goes on with the configuration its container was deployed with.
When the stored configuration takes effect: a caller is ONE call (every StartCaller creates
a new caller carrying its own configuration, and no RPC redeploys an existing one), so for a caller that
is not pooled the update changes ONLY the stored and returned configuration and never any present or
future call. The one case in which the server deploys a container from a caller's stored
configuration is a POOLED (persistent) caller, which the server keeps warm between calls: when the server
recycles the pooled callers of a project onto its Asterisk (an UpdateVtsiProject of a
deployed project, the recovery after the project's Asterisk restarted, a change of the project's
TLS trust anchor), the pooled caller it starts in place of this one is deployed from the stored, i.e.
updated, configuration. An in-place restart of a pooled caller's container (the call monitor's
health recovery) keeps the configuration the container was deployed with. Until it is recycled, an idle
pooled caller is matched to later StartCaller requests by the configuration its container
RUNS, never by an updated stored configuration it does not run.
Updating a caller never changes a campaign: the attempts of a campaign call take their configuration
from the campaign and the campaign call, never from a Caller.
A STOPPED caller (its call ended and its configuration was released) has no stored configuration left:
the update starts from an empty one, so it must state a complete configuration
(sip_caller_config and common_services_config), and a partial one is refused as a
configuration a StartCallerRequest would be refused for. Nothing is deployed.
Credentials follow their endpoint: an update that MOVES an upstream (the host,
port or grpc_cert of the NLU, S2T or T2S *_base_config, or the
host / ports of csi_vtsi_config.message_broker_config.rabbit_mq_config) must
also write every credential path of that upstream that holds a stored value -- the NLU
credentials, auth_token, http_basic_auth_token and
contexts, the S2T s2t_transcribe_request_config, the T2S
t2s_request_config, the RabbitMQ user and password -- named itself
or by a shorter path, with the values to use. A stored credential is never sent to an endpoint the request
moved without restating it, also not for the live validation of the result.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed caller.name,
an empty update_mask, an unknown, output-only or immutable update_mask path, an
update that moves an upstream without restating its stored credentials (naming the paths to add), a
resulting configuration that a StartCallerRequest carrying it would be refused for, or an
unknown field_mask path (each naming the path or field); NOT_FOUND for an
unknown caller or project; ABORTED when concurrent updates kept changing the caller, or while
an update, deploy or undeploy of its project is still running (an update waits for it, for a bounded time,
so that a recycle of the project cannot lose it), nothing being written (retry the request); with
authorization enforced PERMISSION_DENIED for a project the caller holds no role on.
Events: VTSI_EVENT_CALLER_UPDATED (none with validate_only).
Authorization: the role that may start and stop callers of the project (PROJECT_EXECUTOR
or higher).
rpc UpdateCallers (UpdateCallersRequest) returns (UpdateCallersResponse)
Updates several callers, each like UpdateCaller. Not atomic: every entry is applied on its
own and reported in UpdateCallersResponse.update_caller_responses, in request order; an entry
that fails changes nothing and does not stop the others. Errors of the request as a whole (see
UpdateCallersRequest) are gRPC status codes, and then no entry is applied.
Authorization: as UpdateCaller.
rpc DeleteCaller (DeleteCallerRequest) returns (DeleteCallerResponse)
Deletes a caller: stops it if it still runs (hanging up its call) and removes it, so it is no longer
listed or returned. Its call records (and their participants) are deleted with it and are no longer returned
by GetCall / ListCalls; stop it instead to keep them.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown caller, a caller of another project, or a
caller that was already deleted (so deleting is NOT idempotent: a repeat answers NOT_FOUND);
with authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_CALLER_DELETED (and VTSI_EVENT_CALL_STOPPED for a call that
was hung up).
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc DeleteCallers (DeleteCallersRequest) returns (DeleteCallersResponse)
Deletes several callers, each like DeleteCaller. Not atomic: every caller is deleted on its own
and reported in its own entry, whose error_message carries the gRPC status code name
DeleteCaller would have answered (e.g. NOT_FOUND: ...); an entry that fails does not
stop the others. The request as a whole is refused, nothing being deleted, for no entry or more than 1000
distinct names, and, when vtsi_project_name is set, as described there.
Authorization: as DeleteCaller.
rpc StopCaller (StopCallerRequest) returns (StopCallerResponse)
Stops a caller: hangs up its call if one is up and releases its container and SIP account. The caller
stays listed (with active = false) until it is deleted, and its stored configuration stays
updatable (see UpdateCaller). A pooled caller is taken out of the pool.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown caller, a caller of another project, or a
caller that is already stopped (so stopping is NOT idempotent: a repeat answers NOT_FOUND); with
authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_CALLER_STOPPED (and VTSI_EVENT_CALL_STOPPED for a call that
was hung up).
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StopCallers (StopCallersRequest) returns (StopCallersResponse)
Stops several callers, each like StopCaller, with the per-entry results and the request-level
errors of DeleteCallers.
Authorization: as StopCaller.
rpc StartListener (StartListenerRequest) returns (StartListenerResponse)
Starts one listener in a VTSI project: an ondewo-sip container registered on the project's Asterisk
that answers inbound calls, one after the other (persistent). Validation, validate_only, errors
(RESOURCE_EXHAUSTED for the project's listener limit) and idempotency as for
StartCaller.
Events: VTSI_EVENT_LISTENER_STARTED or VTSI_EVENT_LISTENER_START_FAILED. None with
validate_only.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StartListeners (StartListenersRequest) returns (StartListenersResponse)
Starts several listeners, each like StartListener, with the batch semantics of
StartCallers (a listener that fails to start has no entry and is accounted for in
StartListenersResponse.error_message).
Authorization: as StartListener.
rpc StopListener (StopListenerRequest) returns (StopListenerResponse)
Stops a listener: hangs up its call if one is up and releases its container and SIP account. A stopped
listener has no stored configuration left (see UpdateListener). Errors and idempotency as for
StopCaller (a listener that is already stopped is NOT_FOUND).
Events: VTSI_EVENT_LISTENER_STOPPED (and VTSI_EVENT_CALL_STOPPED for a call that
was hung up).
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StopListeners (StopListenersRequest) returns (StopListenersResponse)
Stops several listeners, each like StopListener, with the per-entry results and the
request-level errors of DeleteCallers.
Authorization: as StopListener.
rpc ListListeners (ListListenersRequest) returns (ListListenersResponse)
Lists the listeners of a VTSI project, ordered by the listener's uuid (the last segment of
name), ascending. Paging, total_size, filters and errors as for
ListCallers (without a campaign selector).
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc GetListener (GetListenerRequest) returns (Listener)
Gets a listener, populated according to call_view and field_mask. Errors as for
GetCaller.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc UpdateListener (UpdateListenerRequest) returns (UpdateListenerResponse)
Updates the STORED configuration of a listener: the fields named in update_mask, i.e.
sip_base_config and common_services_config or any nested sub-path of them.
Allowed whether or not the listener's container is running or has a call, as long as the listener is
DEPLOYED: a stopped listener has no stored configuration (it is deployed again only by a
StartListener carrying a complete one) and is NOT_FOUND, unlike a stopped caller,
which UpdateCaller accepts with a complete configuration.
A running container and every call it takes are NEVER changed: nothing is restarted, redeployed or reconfigured, and the running container answers its calls with the configuration it was deployed with until it is replaced.
When the stored configuration takes effect: only when the server RECREATES the listener from it, i.e.
when it recycles the listeners of the project onto its Asterisk: an UpdateVtsiProject of a
deployed project, the recovery after the project's Asterisk restarted, or a change of the
project's TLS trust anchor. The listener the server starts in place of this one is deployed from the
stored, i.e. updated, configuration. An in-place restart of the listener's container (the
server's restore of listener containers when it starts, the call monitor's restart of an
unhealthy container, a docker restart) keeps the configuration the container was deployed
with. A listener that is never recycled keeps the update only as its stored (and returned)
configuration.
Errors as for UpdateCaller (the credential rule included), with
StartListenerRequest as the validation of the resulting configuration, and
NOT_FOUND also for a stopped listener.
Events: VTSI_EVENT_LISTENER_UPDATED (none with validate_only).
Authorization: the role that may start and stop listeners of the project (PROJECT_EXECUTOR
or higher).
rpc UpdateListeners (UpdateListenersRequest) returns (UpdateListenersResponse)
Updates several listeners, each like UpdateListener, with the per-entry results and the
request-level errors of UpdateCallers.
Authorization: as UpdateListener.
rpc DeleteListener (DeleteListenerRequest) returns (DeleteListenerResponse)
Deletes a listener: stops it if it still runs (hanging up its call) and removes it, with its call
records, like DeleteCaller. Errors and idempotency as for DeleteCaller (a repeat
answers NOT_FOUND).
Events: VTSI_EVENT_LISTENER_DELETED (and VTSI_EVENT_CALL_STOPPED for a call that
was hung up).
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc DeleteListeners (DeleteListenersRequest) returns (DeleteListenersResponse)
Deletes several listeners, each like DeleteListener, with the per-entry results and the
request-level errors of DeleteCallers.
Authorization: as DeleteListener.
rpc StartScheduledCaller (StartScheduledCallerRequest) returns (StartScheduledCallerResponse)
Creates a scheduled caller: a caller that the server starts at or after scheduled_time, like a
StartCaller of the stored request. The request is checked structurally now; the live checks of
the configuration run when it fires, and a failure then leaves the scheduled caller
SCHEDULED_CALLER_STATUS_FAILED with its error_message. A scheduled_time in
the past is due at once. Not idempotent (use StartScheduledCallers with an
idempotency_key).
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed request, a missing
scheduled_time, a nested request with its own field_mask or
validate_only, or an unknown field_mask path; NOT_FOUND for an unknown
project; RESOURCE_EXHAUSTED when the project reached its caller limit; with authorization
enforced PERMISSION_DENIED.
Events: VTSI_EVENT_SCHEDULED_CALLER_CREATED; later VTSI_EVENT_SCHEDULED_CALLER_FIRED,
VTSI_EVENT_SCHEDULED_CALLER_RETRY_SCHEDULED or VTSI_EVENT_SCHEDULED_CALLER_FAILED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StartScheduledCallers (StartScheduledCallersRequest) returns (StartScheduledCallersResponse)
Creates several scheduled callers, each like StartScheduledCaller, at most 1000. Not atomic: an
entry that fails is reported in its own error_message and does not stop the others. Idempotent
per idempotency_key.
Authorization: as StartScheduledCaller.
rpc AddCallersToCampaign (AddCallersToCampaignRequest) returns (AddCallersToCampaignResponse)
Adds callers to a campaign instead of starting them. The campaign then starts them, at most
max_parallel_calls at a time. The request is atomic: either the campaign (when new), every
campaign call is stored, or nothing is. Errors are gRPC status codes (see CampaignAssignment).
Rolling updates: a VTSI server that predates this RPC answers UNIMPLEMENTED and starts
nothing. Do not fall back to StartCallers on UNIMPLEMENTED; retry later.
rpc AddScheduledCallersToCampaign (AddScheduledCallersToCampaignRequest) returns (AddScheduledCallersToCampaignResponse)
Adds scheduled callers to a campaign: each fires at or after its scheduled time AND when the campaign has a
free slot, and follows the campaign's retries, stop and hard stop. Same atomicity, errors and rolling-update
behaviour as AddCallersToCampaign.
rpc GetScheduledCaller (GetScheduledCallerRequest) returns (ScheduledCaller)
Gets a scheduled caller, populated according to call_view and field_mask.
Errors: INVALID_ARGUMENT for a malformed name or an unknown field_mask path;
NOT_FOUND for an unknown project or scheduled caller, or one of another project; with
authorization enforced PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc ListScheduledCallers (ListScheduledCallersRequest) returns (ListScheduledCallersResponse)
Lists the scheduled callers of a VTSI project, ordered by scheduled_time, oldest first,
optionally narrowed by state, campaign and a scheduled_time window. Paging,
total_size and errors as for ListCallers.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc UpdateScheduledCaller (UpdateScheduledCallerRequest) returns (ScheduledCaller)
Changes the scheduled_time and/or the sip_caller_config.sip_headers of a scheduled
caller that has not fired yet; the only updatable update_mask paths (see
UpdateScheduledCallerRequest.update_mask). Allowed only while the status is
SCHEDULED_CALLER_STATUS_PENDING; for a scheduled caller of a campaign only while its campaign call
is CAMPAIGN_CALL_STATE_NOT_STARTED (a retry of a campaign call is timed by the campaign's
retry_delay). The check and the write are one atomic step, so a scheduled caller that fires
concurrently is either updated before it fires or refused. Updating to the stored values is accepted and
changes nothing.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed name, an empty
update_mask, a path that is not updatable, an unset scheduled_time named by the
mask, invalid sip_headers, or an unknown field_mask path (each naming the path);
NOT_FOUND for an unknown project or scheduled caller, or one of another project;
FAILED_PRECONDITION when it is no longer PENDING (reason=not-pending) or its campaign
call has started (reason=campaign-call-started); with authorization enforced
PERMISSION_DENIED.
Events: VTSI_EVENT_SCHEDULED_CALLER_UPDATED when something changed.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc CancelScheduledCaller (CancelScheduledCallerRequest) returns (CancelScheduledCallerResponse)
Cancels a scheduled caller that has not fired yet: a PENDING scheduled caller becomes
SCHEDULED_CALLER_STATUS_CANCELLED and never fires. A scheduled caller that is no longer PENDING
(firing, done, failed or already cancelled) is not an error: the response says cancelled = false
and carries its current status, so cancelling is idempotent.
A scheduled caller of a campaign can be cancelled while its campaign call is
CAMPAIGN_CALL_STATE_NOT_STARTED or CAMPAIGN_CALL_STATE_RETRY_PENDING;
the campaign call then becomes CAMPAIGN_CALL_STATE_CANCELLED. While an attempt is
DISPATCHING or IN_PROGRESS the request is refused:
cancelled = false, an error_message saying why, and the scheduled caller keeps its
status.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or scheduled caller, or one of
another project; with authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_SCHEDULED_CALLER_CANCELLED, only when cancelled = true.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc CancelScheduledCallers (CancelScheduledCallersRequest) returns (CancelScheduledCallersResponse)
Cancels several scheduled callers, each like CancelScheduledCaller, at most 1000. Not atomic:
every entry is applied on its own and reported in CancelScheduledCallersResponse, in request
order; a failed entry carries an error_message prefixed with the gRPC status code name
CancelScheduledCaller would have answered (e.g. NOT_FOUND: ...) and does not stop
the others. Errors of the request as a whole (see CancelScheduledCallersRequest) are gRPC status
codes, and then nothing is cancelled.
Events: one VTSI_EVENT_SCHEDULED_CALLER_CANCELLED per entry with cancelled = true.
Authorization: as CancelScheduledCaller.
rpc RetryScheduledCaller (RetryScheduledCallerRequest) returns (ScheduledCaller)
Retries a FAILED scheduled caller by creating a NEW scheduled caller from its stored request: the same
sip_caller_config and common_services_config, status = PENDING, the
scheduled_time of the request (unset: now), and retry_of_scheduled_caller_name naming
the failed one, whose retried_by_scheduled_caller_name is set to the new one in the same atomic
step. The failed scheduled caller itself is not changed otherwise, so its error_message and
fired_at stay as the history of the failed attempt. Returns the new scheduled caller.
Idempotency: a FAILED scheduled caller is retried at most once. A repeat of the request answers
ALREADY_EXISTS naming the retry in its message (read
retried_by_scheduled_caller_name); to retry again after the retry failed too, retry the new
one.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or scheduled caller, or one of
another project; FAILED_PRECONDITION for a scheduled caller that is not
SCHEDULED_CALLER_STATUS_FAILED (reason=not-failed) or that belongs to a campaign
(reason=campaign-scheduled-caller: a campaign call is retried by the campaign's
max_attempts); ALREADY_EXISTS when it was already retried;
RESOURCE_EXHAUSTED when the project reached its caller limit; with authorization enforced
PERMISSION_DENIED.
Events: VTSI_EVENT_SCHEDULED_CALLER_CREATED for the new scheduled caller.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StopCall (StopCallRequest) returns (StopCallResponse)
Stops a call: hangs it up if it is still active and stops (releases) the listener or caller that serves
it, like StopCaller / StopListener. A call that already ended is not an error: its
listener or caller is still released if it is deployed, and when there was nothing left to release the
response carries error_message = Call ... was not released, so a repeat succeeds with that
message.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed request or an unknown
field_mask path; NOT_FOUND for an unknown project or call, or a call of another
project; with authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_CALL_STOPPED, and VTSI_EVENT_CALLER_STOPPED /
VTSI_EVENT_LISTENER_STOPPED for the released resource.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc StopCalls (StopCallsRequest) returns (StopCallsResponse)
Stops several calls of one project, each like StopCall, at most 1000 distinct names. Not
atomic: every call is stopped on its own and reported in its own entry, in request order; a failed entry
carries an error_message prefixed with the gRPC status code name StopCall would have
answered and does not stop the others. No entry, more than 1000 names or a malformed
vtsi_project_name is INVALID_ARGUMENT, an unknown project NOT_FOUND, and
then nothing is stopped.
Authorization: as StopCall.
rpc StopAllCalls (StopAllCallsRequest) returns (StopCallsResponse)
Stops every call of a VTSI project (listener and caller calls alike), or, with
call_filter, those it matches, each like StopCall. Not atomic and not bounded in
size; a project with nothing to stop answers an empty response, so the RPC is idempotent. If a stop fails
part-way, the remaining calls are still stopped one by one and every call gets its own entry.
Errors: INVALID_ARGUMENT for a malformed request, an invalid call_filter or an
unknown field_mask path; NOT_FOUND for an unknown project or campaign; with
authorization enforced PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc TransferCall (TransferCallRequest) returns (TransferCallResponse)
Transfer a call to a phone number, a softphone account, another listener, the listener queue or a published IVR menu.
The target is either the typed target or the legacy raw transfer_id, never both. It is
resolved and validated before anything is sent; an invalid target is answered with
TRANSFER_OUTCOME_TARGET_INVALID and an error_reason, and the call is untouched.
TRANSFER_MODE_BLIND (default) sends a SIP REFER and reports its outcome: a refused REFER keeps the
call with the bot. TRANSFER_MODE_WARM rings the target into the call first, and the bot leaves only
after the target joined (Asterisk 22 only).
A WARM transfer whose effective WarmTransferConfig is enabled runs a WARM INTRO: once the human
target answers, an ONDEWO bot asks whether a person is on the line, briefs them and asks whether they accept;
only an accepting target is joined. It answers TRANSFER_OUTCOME_PENDING, and the final outcome
(TRANSFER_OUTCOME_ACCEPTED, _DECLINED, _NO_DECISION,
_TARGET_UNAVAILABLE, _INTRO_UNAVAILABLE, or a busy / unanswered target's
usual outcome) arrives in Call.last_transfer and the events. See
TransferCallRequest.warm_transfer_config for its refusals.
Telephony outcomes (busy, no answer, REFER rejected) are successful RPCs carrying an outcome.
Refusals before any side effect also return a gRPC status with reason=<token> in its details:
INVALID_ARGUMENT (both targets set, malformed target), NOT_FOUND (call or target not
found, including another project's), FAILED_PRECONDITION (call-not-connected,
amd-in-progress, call-not-yet-identified, participants-present,
asterisk-version-unsupported, sip-image-too-old), ABORTED
(transfer-in-progress), UNAVAILABLE (sip-unreachable).
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
rpc TransferCalls (TransferCallsRequest) returns (TransferCallsResponse)
Transfer several calls, each like TransferCall, at most 1000. Not atomic: every transfer is
run on its own and reported in its own entry, in request order; an entry TransferCall would have
refused with a gRPC status carries that refusal in its error_message (prefixed with the status
code name) and does not stop the others. Idempotent per entry request_id.
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
rpc GetCall (GetCallRequest) returns (Call)
Gets a call, populated according to call_view and field_mask (the call's log
lines are read with Logs.ListCallLogs). FULL also returns every participant ever
invited into the call (see Call.participants).
Errors: INVALID_ARGUMENT for a malformed name or an unknown field_mask path;
NOT_FOUND for an unknown project or call, or a call of another project; with authorization
enforced PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc ListCalls (ListCallsRequest) returns (ListCallsResponse)
Lists the calls of a VTSI project, ended ones included, narrowed by call_filter, ordered by
call_sorting (default: by start_time, oldest first) and paged with
page_size / page_token; total_size counts every match.
With call_filter.campaign_name or call_filter.campaign_display_name set, lists
only the calls of that campaign: the calls placed by the attempts of its campaign calls.
Errors: INVALID_ARGUMENT for a malformed request, an invalid filter, a negative
page_size, a page_token of another listing or an unknown field_mask
path; NOT_FOUND for an unknown project or campaign; with authorization enforced
PERMISSION_DENIED.
Authorization: PROJECT_EXECUTOR or higher on the project.
rpc GetCallStatistics (GetCallStatisticsRequest) returns (CallStatistics)
Aggregate figures (totals, active calls, counts by SIP status type, by call type, by AMD verdict and by
transfer outcome, durations, redial recommendations) over the calls of a VTSI project that
call_filter matches; see CallStatistics. Read only, no side effect.
Errors: as for ListCalls (an invalid filter is INVALID_ARGUMENT, an unknown project
or campaign NOT_FOUND).
Authorization: as ListCalls (PROJECT_EXECUTOR or higher on the project).
rpc UpdateCall (UpdateCallRequest) returns (UpdateCallResponse)
Updates the descriptive metadata of a call: the only updatable update_mask path is
labels. Allowed on active and ended calls. Refused for the WAITING call of a persistent
listener or a pooled caller (status NO_ONGOING_CALL, not active: the record that waits for the
next call, which ListCalls returns too) with FAILED_PRECONDITION and
reason=call-not-started in the details: label the call once it has started. It changes only
the stored call record: the live call, its SIP container, its status and its media are never touched, and
nothing is sent to the call. Idempotent: writing the stored labels again changes nothing.
Events: VTSI_EVENT_CALL_UPDATED when the labels changed.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed call.name, an
empty update_mask, any path other than labels (every other field of a
Call is output only), a path below labels, labels outside the bounds of
Call.labels, or an unknown field_mask path (each naming the path or label);
NOT_FOUND for an unknown call or project; FAILED_PRECONDITION
(reason=call-not-started) for a waiting call; with authorization enforced
PERMISSION_DENIED for a project the caller holds no role on.
Authorization: the role that may stop calls of the project (PROJECT_EXECUTOR or
higher).
rpc UpdateCalls (UpdateCallsRequest) returns (UpdateCallsResponse)
Updates several calls, each like UpdateCall, with the per-entry results and the
request-level errors of UpdateCallers.
Authorization: as UpdateCall.
rpc StreamCallerStatus (StreamCallerStatusRequest) returns (stream StreamCallResourceStatusResponse)
Streams the status of the callers of a project: a snapshot first
(snapshot = true), then every caller whose call or SIP status changed, plus
keep-alive messages. Ends when the client disconnects or at the server-side maximum stream
duration.
Errors: NOT_FOUND for an unknown project; RESOURCE_EXHAUSTED when
the server has no free stream slot.
rpc StreamListenerStatus (StreamListenerStatusRequest) returns (stream StreamCallResourceStatusResponse)
Streams the status of the listeners of a project, like StreamCallerStatus.
rpc StreamScheduledCallerStatus (StreamScheduledCallerStatusRequest) returns (stream StreamCallResourceStatusResponse)
Streams the status of the scheduled callers of a project, like
StreamCallerStatus. The snapshot holds every PENDING and FIRING scheduled caller
and those that finished in the last hour.
rpc InviteToCall (InviteToCallRequest) returns (InviteToCallResponse)
Invite a registered softphone account of the project into a connected call. Returns the participant in
PARTICIPANT_STATE_RINGING; follow Call.participants or the events
VTSI_EVENT_CALL_PARTICIPANT_* for JOINED, FAILED and LEFT.
PARTICIPANT_MODE_CONFERENCE (default) joins the softphone into the call: Asterisk mixes the caller,
the bot and the participant, and by default the bot keeps talking and listening
(BOT_POLICY_ON_JOIN_KEEP). PARTICIPANT_MODE_MONITOR lets the participant listen only.
When the bot's leg ends, every participant is hung up; the caller is handed over only by a WARM
TransferCall. Idempotent per request_id.
Errors: INVALID_ARGUMENT, NOT_FOUND (call or softphone account, including another
project's), FAILED_PRECONDITION (call-not-connected, amd-in-progress,
softphone-not-registered, softphone-disabled, softphone-unrouted,
call-not-yet-identified, bot-channel-ambiguous, asterisk-not-local,
asterisk-version-unsupported), ALREADY_EXISTS (the softphone is already ringing or joined),
ABORTED (transfer-in-progress), RESOURCE_EXHAUSTED (participant cap),
UNAVAILABLE (asterisk-unreachable).
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
rpc RemoveCallParticipant (RemoveCallParticipantRequest) returns (RemoveCallParticipantResponse)
Hang up a participant of a call (ringing or joined). The participant ends as
PARTICIPANT_STATE_LEFT with end_reason = REMOVED; the call and the bot are not
affected. Returns the participant after the request.
Idempotent: a participant that already FAILED or LEFT (for whatever reason) is returned unchanged with OK, and nothing is sent.
Errors: INVALID_ARGUMENT for a malformed request; NOT_FOUND with
reason=call-not-found for an unknown call or a call of another project, and with
reason=participant-not-found for an unknown participant_id or a participant of
another call; ABORTED with reason=call-control-busy while another call-control
request for the call runs (retry); UNAVAILABLE with reason=asterisk-unreachable when
the hang-up could not be sent; with authorization enforced PERMISSION_DENIED.
Events: VTSI_EVENT_CALL_PARTICIPANT_LEFT (or VTSI_EVENT_CALL_PARTICIPANT_FAILED
for a participant that was still ringing).
Authorization: PROJECT_EXECUTOR or higher. Audited like InviteToCall.
rpc SetCallMediaControl (SetCallMediaControlRequest) returns (SetCallMediaControlResponse)
Mute the bot of a connected call and/or stop it listening to the caller, or undo either. Every request sets a
desired level and never toggles: a repeat answers changed = false. The bot stays muted while
anything else (a TALK take-over of StreamCallAudio, a participant bot policy) also holds it muted.
Both settings CALL_MEDIA_SETTING_UNCHANGED is a valid read of the current state: it answers
the effective state with changed = false, changes nothing, and writes no audit record
and no event (see SetCallMediaControlRequest.bot_voice).
Events: VTSI_EVENT_CALL_BOT_MUTED / VTSI_EVENT_CALL_BOT_UNMUTED /
VTSI_EVENT_CALL_LISTENING_PAUSED / VTSI_EVENT_CALL_LISTENING_RESUMED when the
effective state changed.
Errors as for InviteToCall, plus FAILED_PRECONDITION reason=sip-image-too-old,
ABORTED reason=call-control-busy (another call-control request for the call is running)
and UNAVAILABLE reason=sip-unreachable or reason=csi-media-control-failed (the
bot did not apply the level: a requested pause is rolled back, a requested mute is kept).
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
rpc SendCallDtmf (SendCallDtmfRequest) returns (SendCallDtmfResponse)
Press DTMF keys on a connected call, e.g. to navigate the IVR an outbound call reached or to enter a code on
the caller's behalf. The keys go out as RFC 4733 telephone events from the bot's leg, one every
250 ms, in order; a later request for the same call follows the earlier one and never interleaves with it.
No tone is played into the call audio, so the bot does not hear the keys. The response means the keys were
queued: if the call ends meanwhile, the remaining keys are dropped. A peer that did not negotiate
telephone-event receives no key.
Events: VTSI_EVENT_CALL_DTMF_SENT. The keys are never written to a log, an event or an audit
record: only their number is.
Errors: INVALID_ARGUMENT (reason=invalid-digits: digits empty, longer
than 64 or outside 0-9 * # A-D), NOT_FOUND (reason=call-not-found),
FAILED_PRECONDITION (call-not-connected, amd-in-progress,
call-not-yet-identified, sip-image-too-old, no-audio-stream),
ABORTED (call-control-busy), UNAVAILABLE (sip-unreachable).
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, number of keys). No announcement is played to the caller.
rpc StreamCallAudio (stream StreamCallAudioRequest) returns (stream StreamCallAudioResponse)
Live audio of a connected call, both ways. The first request MUST be config (within 2 seconds).
LISTEN receives the caller mixed with the bot. TALK sends the agent's audio to the caller and REQUIRES
take_over: the bot is muted and does not listen while the stream is connected, and resumes when it
ends; in TALK the agent hears the caller only. Audio is LINEAR16 little-endian mono in 20 ms frames.
Bidirectional streaming: available to native gRPC clients (python, nodejs) only. Browser (grpc-web) clients
use ListenCallAudio, plus a softphone (InviteToCall) to talk.
Errors: INVALID_ARGUMENT (no or invalid config, TALK without
take_over, wrong frame size), NOT_FOUND, FAILED_PRECONDITION
(call-not-connected, amd-in-progress, call-not-yet-identified,
bot-still-speaking, sip-image-too-old), RESOURCE_EXHAUSTED (stream cap, a
second TALK). A normal end sends one ended message, then OK. A second config or audio
sent in LISTEN mode ends the stream with INVALID_ARGUMENT. A client half-close ends the stream
(CALL_AUDIO_END_REASON_CLIENT_CLOSED), so a listening client keeps its request stream open.
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
rpc ListenCallAudio (ListenCallAudioRequest) returns (stream StreamCallAudioResponse)
Listen-only live audio of a connected call, like StreamCallAudio in LISTEN mode, as a server
stream that grpc-web (browser) clients can consume. config.mode must be LISTEN or unspecified and
config.take_over must be false, otherwise INVALID_ARGUMENT reason=listen-only.
Authorization: requires the role PROJECT_DEVELOPER or higher on the project, and the server's
Keycloak auth mode ENFORCE; otherwise PERMISSION_DENIED, or
FAILED_PRECONDITION with reason=call-supervision-requires-auth when auth is not enforced.
Every action writes an audit record (who, call, when, mode, target). No announcement is played to the caller.
The request message for Calls.AddCallersToCampaign.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the callers and the campaign. The format is: |
|
| caller_requests | StartCallerRequest | repeated | Callers to add, at least one. The project's caller limit is checked per started call, not for the request. Each entry is one campaign call. Its configuration is merged OVER the campaign's call defaults
( |
| campaign_assignment | CampaignAssignment | Required. Which campaign, and whether it starts dialling. |
|
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means no
deduplication. A retry carrying the same key returns the response of the first successful attempt instead
of running the request a second time, whichever server replica it reaches, for as long as the server
retains the key (24 hours by default). The key is scoped to the VTSI project and to this RPC. Reusing a
key with a different request is refused with |
The response message for Calls.AddCallersToCampaign.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the callers and the campaign. The format is: |
|
| campaign | Campaign | The campaign the callers were added to. Its call defaults ( |
|
| campaign_call_names | string | repeated | The campaign calls created by this request, in request order. |
The request message for Calls.AddScheduledCallersToCampaign.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the scheduled callers and the campaign. The format is: |
|
| scheduled_caller_requests | StartScheduledCallerRequest | repeated | Scheduled callers to add, at least one. A scheduled caller of a campaign can be cancelled with
Each entry's configuration ( |
| campaign_assignment | CampaignAssignment | Required. Which campaign, and whether it starts dialling. |
|
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means no
deduplication. A retry carrying the same key returns the response of the first successful attempt instead
of running the request a second time, whichever server replica it reaches, for as long as the server
retains the key (24 hours by default). The key is scoped to the VTSI project and to this RPC. Reusing a
key with a different request is refused with |
The response message for Calls.AddScheduledCallersToCampaign.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the scheduled callers and the campaign. The format is: |
|
| scheduled_caller_responses | StartScheduledCallerResponse | repeated | The scheduled callers created, in request order. |
| campaign | Campaign | The campaign the scheduled callers were added to. Its call defaults
( |
|
| campaign_call_names | string | repeated | The campaign calls created by this request, in request order. |
Status of ondewo-sip instance
| Field | Type | Label | Description |
| status_sip | ServiceStatus | health status for sip |
|
| status_asterisk | ServiceStatus | status of the associated asterisk server |
|
| status_nlu | ServiceStatus | status of the nlu instance associated with the call |
|
| status_stt | ServiceStatus | status of the associated speech-to-text service |
|
| status_tts | ServiceStatus | status of the associated text-to-speech service |
Number of calls with one answering machine detection verdict, an entry of CallStatistics.amd_verdict_counts.
| Field | Type | Label | Description |
| verdict | ondewo.sip.AnsweringMachineDetectionResult.Verdict | The verdict, read from |
|
| count | int32 | Number of matching calls with that verdict. |
Asterisk configuration
| Field | Type | Label | Description |
| asterisk_base_config | BaseServiceConfig | Host, Port, and [Optional] GRPC cert |
A call of a listener or caller: one record per call, kept after the call ended. Every field is output only except labels (see UpdateCall). The WAITING record of a persistent listener or pooled caller (status NO_ONGOING_CALL, not active, no start time) is a Call too.
| Field | Type | Label | Description |
| name | string | call name For listener this is
For callers this is |
|
| sip_account | string | The SIP account (on the project's Asterisk) the call's container registered with, e.g.
|
|
| container_name | string | Name of the call's ondewo-sip container, as |
|
| call_type | CallType |
|
|
| phone_number | string | The callee (outbound call) or the calling party (inbound call): a phone number or a VoIP id, as dialled or as received |
|
| start_time | google.protobuf.Timestamp | When the call started (the SIP call was set up); unset for the waiting record of a persistent listener or pooled caller |
|
| end_time | google.protobuf.Timestamp | When the call ended; unset while the call is active |
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | The call's current SIP status type, or its last one once the call ended |
|
| sip_status | ondewo.sip.SipStatus | optional | current sip status |
| sip_status_history | ondewo.sip.SipStatusHistoryResponse | optional | sip status history |
| services_statuses | AllServicesStatuses | optional | All container health statuses |
| active | bool | Whether the call is active, i.e. set up or connected |
|
| vtsi_project_name | string | VTSI project of the call, of the form |
|
| common_services_config | CommonServicesConfig | optional | Detailed configuration of the services used for the call such as S2T, T2S, NLU, SIP and CSI |
| sip_port | int32 | optional | Port (1 to 65535) of the gRPC server of the call's ondewo-sip container |
| csi_port | int32 | optional | Port (1 to 65535) of the gRPC server of the call's CSI (speech-to-speech) process |
| nlu_session_name | string | optional | NLU session name |
| platforms | ondewo.nlu.Intent.Message.Platform | optional | Messages for each of the Intent.Message.Platform were sent to the user |
| redial_recommended | bool | optional | Optional: Whether the callee should be called again later, set only when the answering machine detection (AMD) ended the call: true for an answering machine or a network announcement hung up on without a voice message, false once a voice message was left and false for a fax. Unset when AMD did not end the call. The AMD verdict, cause and confidence of the call are in sip_status.amd_result. No call is redialled automatically; the marker is for the campaign logic of the client |
| redial_reason | string | optional | Optional: Reason of redial_recommended, set together with it. One of "answering_machine", "network_announcement" or "fax" |
| answering_machine_detection_end_description | string | optional | Optional: Description of how a call ended by the answering machine detection (AMD) ended, i.e. the description of its terminal ondewo.sip.SipStatus.StatusType.OUTGOING_CALL_FINISHED status. One of "Answering machine detected with hang up", "Answering machine detected with left voice message and hang up", "Answering machine detected, call ended by the answering machine" or "Answering machine detected, call ended by the answering machine after leaving a voice message". Unset when AMD did not end the call |
| media_control | CallMediaControlState | Media control state of the call (bot muted, listening paused, connected audio streams, joined participants). Set in the SHALLOW and FULL views |
|
| participants | CallParticipant | repeated | Participants invited into the call ( |
| last_transfer | CallTransferRecord | The last transfer attempt of the call; unset if there was none. Set in the SHALLOW and FULL views |
|
| sip_call_id | string | Identifier the call's SIP container minted for the call ( |
|
| labels | Call.LabelsEntry | repeated | Client-defined descriptive labels of the call, e.g. , starting
with a letter; a value of at most 256 characters. These are exactly the bounds of
SoftphoneAccount.labels.
Stored with the call record, so they survive the end of the call and are kept as long as the record.
The waiting call of a persistent listener or pooled caller (status NO_ONGOING_CALL, not
active) cannot be labelled: FAILED_PRECONDITION with reason=call-not-started.
This is the only mutable field of a Call: it exists so that a call can be annotated without
anything about the live call being changed. Set in the SHALLOW and FULL views. |
| ivr_menu_display_name | string | Output only. The display name of the IVR menu the caller came through before the bot took the call (from
|
|
| ivr_path | string | Output only. The option labels the caller took through the IVR menus, e.g. |
|
| ivr_menu_name | string | Output only. Resource name of the IVR menu that handled the call's IVR leg, i.e. the menu
Empty when the call did not pass an IVR menu. Set in the SHALLOW and FULL views |
|
| dialed_number | string | Output only. The inbound phone number the caller dialled, as the project's Asterisk received it from the
carrier trunk (from |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Sent once when a call audio stream ends normally
| Field | Type | Label | Description |
| reason | CallAudioEndReason | Why the stream ended |
|
| detail | string | Optional detail, a stable token |
One 20 ms frame of call audio
| Field | Type | Label | Description |
| pcm_s16le | bytes | LINEAR16 little-endian mono samples, |
|
| sequence | uint64 | Monotonic sequence number of the frame within its direction of the stream |
Sent once when a call audio stream is connected
| Field | Type | Label | Description |
| stream_id | string | Identifier of the stream (audit correlation) |
|
| sample_rate_hz | int32 | Sample rate in Hz in both directions |
|
| frame_ms | int32 | Frame length in milliseconds |
|
| mode | CallAudioMode | Mode of the stream |
Counters of a call audio stream, sent periodically
| Field | Type | Label | Description |
| frames_sent | uint64 | Frames sent to the client |
|
| frames_dropped | uint64 | Frames to the client dropped because the client read too slowly |
|
| frames_received | uint64 | Frames received from the client |
|
| underruns | uint64 | Playback underruns of the agent audio |
|
| frames_discarded | uint64 | Frames from the client discarded because the playback buffer was full |
Narrows a set of calls of one project: the calls ListCalls lists, GetCallStatistics counts and StopAllCalls stops. Every field is optional; an unset field, or an empty repeated field or map, does not filter. Fields are combined with AND, the values within one repeated field with OR (except caller_names and listener_names, which are OR-ed with each other), and the entries of labels with AND. The project is the enclosing request's vtsi_project_name. An invalid value is rejected with INVALID_ARGUMENT naming the field, before anything is read or stopped.
| Field | Type | Label | Description |
| call_names | string | repeated | Optional: Filter by call names ( |
| nlu_session_names | string | repeated | Optional: Filter by NLU session names ( |
| sip_accounts | string | repeated | Optional: Filter by SIP accounts ( |
| phone_numbers | string | repeated | Optional: Filter by phone numbers ( |
| container_names | string | repeated | Optional: Filter by container names ( |
| sip_ports | string | repeated | Deprecated. Deprecated: use |
| csi_ports | string | repeated | Deprecated. Deprecated: use |
| call_types | CallType | repeated | Optional: Filter by call types ( |
| sip_status_types | ondewo.sip.SipStatus.StatusType | repeated | Optional: Filter by the call's current or last SIP status type ( |
| call_status | CallStatus | optional | Optional: Only active ( |
| start_time | google.protobuf.Timestamp | optional | Optional: Only calls that STARTED at or after this instant: The window is on two different instants, the start and the end of the call; it is NOT an overlap test.
With both bounds set a call matches when it started at or after |
| end_time | google.protobuf.Timestamp | optional | Optional: Only calls that ENDED at or before this instant: |
| duration_in_s_min | float | optional | Optional: Match only calls whose duration in seconds is larger than or equal to this value (inclusive). The
duration is |
| duration_in_s_max | float | optional | Optional: Match only calls whose duration in seconds is smaller than or equal to this value (inclusive),
computed as for |
| platforms | ondewo.nlu.Intent.Message.Platform | repeated | Optional: Filter by the NLU message platform of the call ( |
| campaign_name | string | Resource name of the campaign. The format is: |
|
| campaign_display_name | string | Exact, case-sensitive |
|
| labels | CallFilter.LabelsEntry | repeated | Optional: Only calls carrying every one of these labels ( |
| caller_names | string | repeated | Optional: Only calls placed by one of these callers (the calls whose ; a malformed name or a
caller of another project is INVALID_ARGUMENT, while a well-formed name that names no caller
(also a deleted one) simply matches no call. Combined with listener_names by OR: a call matches
when it belongs to one of the named callers or one of the named listeners. Both empty does not filter. |
| listener_names | string | repeated | Optional: Only calls taken by one of these listeners, with the rules of |
| redial_recommended | bool | optional | Optional: Only calls whose |
| transfer_outcomes | TransferOutcome | repeated | Optional: Only calls whose last transfer attempt ( |
| sip_port_numbers | int32 | repeated | Optional: Filter by SIP ports ( |
| csi_port_numbers | int32 | repeated | Optional: Filter by CSI ports ( |
| Name | Option |
| sip_ports | true |
| csi_ports | true |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Effective media control state of a call
| Field | Type | Label | Description |
| bot_muted | bool | The bot is muted (by an operator, a TALK take-over or a participant bot policy) |
|
| listening_paused | bool | The bot does not listen to the caller |
|
| connected_audio_streams | int32 | Number of connected |
|
| joined_participants | int32 | Number of joined participants |
A participant invited into a call
| Field | Type | Label | Description |
| participant_id | string | Identifier of the participant, 9 digits, unique among the project's live invites |
|
| softphone_account_name | string | The invited softphone account: |
|
| mode | ParticipantMode | How the participant takes part |
|
| state | ParticipantState | State of the participant |
|
| invited_at | google.protobuf.Timestamp | When the participant was invited |
|
| joined_at | google.protobuf.Timestamp | When the participant joined; unset if it never joined |
|
| left_at | google.protobuf.Timestamp | When the participant failed or left; unset while ringing or joined |
|
| end_reason | string | Why the participant failed or left: |
|
| invited_by | string | Identity of who invited the participant (audit) |
|
| bot_policy | BotPolicyOnJoin | Bot policy applied while this participant is ringing or joined |
|
| end_reason_type | ParticipantEndReason | Output only. The typed form of |
The status of one caller, listener or scheduled caller, as streamed by the status streams.
| Field | Type | Label | Description |
| resource_name | string | The caller, listener or scheduled caller. |
|
| call_type | CallType | CALLER, LISTENER or SCHEDULED_CALLER. |
|
| call_name | string | Its current or last call. Empty when it has none. |
|
| active | bool | Whether its call is active. |
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | SIP status of its current or last call. |
|
| sip_status_description | string | Description of that SIP status. |
|
| start_time | google.protobuf.Timestamp | Start of its current or last call. |
|
| end_time | google.protobuf.Timestamp | End of its last call. Unset while a call runs. |
|
| phone_number | string | Callee or caller number of its current or last call. |
|
| scheduled_caller_status | ScheduledCallerStatus | For SCHEDULED_CALLER: its lifecycle state. |
|
| scheduled_time | google.protobuf.Timestamp | For SCHEDULED_CALLER: its scheduled time. |
|
| campaign_name | string | The campaign it belongs to, if any. |
|
| error_message | string | For SCHEDULED_CALLER: why it failed. |
Sorting of a ListCalls listing.
| Field | Type | Label | Description |
| sorting_field | CallSorting.CallSortingField | The sorting field. Unset means |
|
| sorting_mode | VtsiProjectSortingMode | The sorting mode: |
Aggregate figures over the calls of a project that a CallFilter matches, as returned by Calls.GetCallStatistics.
Every figure is computed in ONE read of the call records, so the figures are consistent with each other at the moment of that read (e.g. the entries of sip_status_type_counts add up to total). Every *_counts list holds one entry per value that occurs at least once (a value with count 0 is left out), ordered by the enum number, ascending.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the request. The format is: |
|
| total | int32 | Number of matching calls: the |
|
| active | int32 | Number of matching calls that are active ( |
|
| sip_status_type_counts | SipStatusTypeCount | repeated | Matching calls by their current or last SIP status type. The counts add up to |
| call_type_counts | CallTypeCount | repeated | Matching calls by type ( |
| ended_calls | int32 | Number of matching calls that have a duration, i.e. that started and ended ( |
|
| total_duration_s | double | Sum of the durations ( |
|
| average_duration_s | double |
|
|
| redial_recommended | int32 | Number of matching calls with |
|
| amd_verdict_counts | AmdVerdictCount | repeated | Matching calls by the verdict of their answering machine detection
( |
| transfer_outcome_counts | TransferOutcomeCount | repeated | Matching calls by the outcome of their last transfer attempt ( |
Target of a transfer
| Field | Type | Label | Description |
| phone_number | string | Phone number in E.164 form, e.g. |
|
| softphone_account_name | string | A softphone account of the same project: . It must be enabled,
routed and registered |
|
| listener_name | string | A listener of the same project: .
The call goes to that listener's idle container; a busy listener is refused (listener-busy) |
|
| listener_queue | ListenerQueueTarget | The project's listener queue: any idle listener of the project takes the call |
|
| ivr_menu_name | string | A PUBLISHED IVR menu of the same project: . The caller enters
the menu's published revision at its entry node. TRANSFER_MODE_BLIND only; with
TRANSFER_MODE_WARM it is refused with INVALID_ARGUMENT. A menu that is not
published is refused with FAILED_PRECONDITION reason=menu-not-published, and a
deployment without IVR menus with UNIMPLEMENTED reason=ivr-disabled |
Record of the last transfer attempt of a call
| Field | Type | Label | Description |
| target | CallTarget | Requested typed target; unset for a legacy |
|
| resolved_target | string | The dialplan extension the target resolved to |
|
| mode | TransferMode | Mode of the transfer |
|
| outcome | TransferOutcome | Outcome of the transfer |
|
| sip_response_code | int32 | SIP response code of the REFER where known, else |
|
| time | google.protobuf.Timestamp | When the outcome was recorded |
|
| warm_intro | WarmIntroRecord | The warm intro of the transfer; unset when the transfer ran no intro and tried none. A busy, unanswered or
unreachable target keeps the outcome it had before 9.5.0 ( |
|
| effective_warm_transfer_config | WarmTransferConfig | The RESOLVED warm intro configuration the transfer ran with (every level merged, defaults filled in), for support. Holds configuration texts only, never a briefing or a decline reason. Unset when no intro was enabled |
Number of calls of one type, an entry of CallStatistics.call_type_counts.
| Field | Type | Label | Description |
| call_type | CallType |
|
|
| count | int32 | Number of matching calls of that type. |
Caller represents a caller instance that initiates outbound calls
Its configuration (sip_caller_config, common_services_config) is the configuration of the outbound call(s) it places. A ONE-SHOT caller is exactly one call: the configuration applies to that call and to nothing else. A POOLED caller (pooled, deployment setting ONDEWO_VTSI_CALLER_PERSISTENT, on by default) is kept warm after its call and reused for a later StartCaller only when that request asks for the IDENTICAL configuration: everything except sip_caller_config.callee_id and sip_caller_config.sip_headers, which are sent per call, must match, the SIP image version and the credentials included. A request that differs in any other field is served by a newly deployed caller, so a pooled caller never places a call with another request's configuration.
| Field | Type | Label | Description |
| name | string | Resource name of the caller, of the form
Output only. Identifies the caller on UpdateCaller. |
|
| call_name | string | The call name that was assigned to the call
Output only. |
|
| sip_caller_config | SipCallerConfig | SIP configuration of the caller's call: the callee it dials ( |
|
| common_services_config | CommonServicesConfig | Service configuration of the caller's call(s): speech-to-text, NLU agent, text-to-speech, CSI and, in
A field left unset here was left unset by the request, and the call INHERITS for it: the deployment-wide
Updatable with |
|
| vtsi_project_name | string | Output only. VTSI project of the caller, the project segment of
Set in every view. A 9.0.0 server leaves it empty. |
|
| active | bool | Output only. Whether the caller's current call is active (set up or connected), i.e.
|
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | Output only. SIP status type of the caller's current or last call ( |
|
| created_at | google.protobuf.Timestamp | Output only. When the caller was created ( |
|
| pooled | bool | Output only. Whether the caller is a POOLED (persistent) caller, which the server keeps warm between calls
and reuses for later |
|
| campaign_name | string | Output only. The campaign of the caller's current or last campaign attempt
(
Empty when the caller never placed a campaign attempt. A pooled caller can place attempts of several
campaigns one after the other; this field names only the latest one (ListCallers with a campaign
selector finds every caller of a campaign). Set in the SHALLOW and FULL views. |
Represents a request to cancel a scheduled caller that has not fired yet.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| name | string | The name of the scheduled caller to cancel of the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to cancelling a scheduled caller, and one entry of CancelScheduledCallersResponse.
| Field | Type | Label | Description |
| name | string | The name of the scheduled caller of the form
Always populated, also for a failed entry of CancelScheduledCallers. |
|
| status | ScheduledCallerStatus | The state of the scheduled caller AFTER this request. A scheduled caller that was already firing, done, failed or cancelled keeps the state it had |
|
| cancelled | bool | True when this request performed the transition to SCHEDULED_CALLER_STATUS_CANCELLED.
False means the scheduled caller was already in a state it cannot be cancelled from -
read status to find out which one, this is not an error. Cancelling an already cancelled scheduled caller
is therefore idempotent: |
|
| error_message | string | Why the scheduled caller was not cancelled, where there is more to say than |
The request message for Calls.CancelScheduledCallers.
Rejected as a whole, nothing being cancelled, with: INVALID_ARGUMENT for a malformed vtsi_project_name, no entry, more than 1000 entries, a name given twice, a name that is malformed or whose project segment differs from vtsi_project_name, or an unknown field_mask path (each naming the entry index or the path); NOT_FOUND for an unknown project; with authorization enforced PERMISSION_DENIED for a project the caller holds no role on or a role below the one CancelScheduledCaller requires. Every other error is reported per entry, e.g. a well-formed name of the right project that names no scheduled caller is that entry's NOT_FOUND.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of every scheduled caller of the request. The format is: |
|
| names | string | repeated | The scheduled callers to cancel, 1 to 1000 distinct names of the form |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
The response message for Calls.CancelScheduledCallers.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the request. The format is: |
|
| cancel_scheduled_caller_responses | CancelScheduledCallerResponse | repeated | One entry per name of the request, in request order, each like the response of
|
| error_message | string | A summary when at least one entry failed, i.e. carries an |
Represents a request to delete a specific caller.
| Field | Type | Label | Description |
| name | string | The name of the caller to delete in the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to deleting a caller, and one entry of DeleteCallersResponse.
| Field | Type | Label | Description |
| name | string | The name of the deleted caller in the form |
|
| error_message | string | Empty on success. |
Represents a request to delete multiple callers.
| Field | Type | Label | Description |
| names | string | repeated | The names of the callers to delete, 1 to 1000 distinct names, in the form |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
|
| vtsi_project_name | string | Optional. VTSI project of every caller of the request, of the form
When set, the request is checked as a whole like UpdateCallersRequest before anything is
deleted, and refused with INVALID_ARGUMENT (naming the entry index) for a malformed
vtsi_project_name, a name given twice, or a name that is malformed or whose project segment
differs from vtsi_project_name; with NOT_FOUND for an unknown project; and with
authorization enforced with PERMISSION_DENIED for a project the caller holds no role on. Empty
keeps the behaviour of 9.0.0 clients, which do not send it: each name is checked on its own (a name of
another project is that entry's NOT_FOUND) and a name given twice is deleted once and
reported once. Either way, no entry and more than 1000 distinct names are INVALID_ARGUMENT. |
Response to delete multiple callers
| Field | Type | Label | Description |
| delete_caller_responses | DeleteCallerResponse | repeated | One entry per distinct name of the request, in request order (a name given twice is reported once), each
with its own |
| error_message | string | A summary when at least one entry failed (e.g. |
Represents a request to delete a specific listener.
| Field | Type | Label | Description |
| name | string | The name of the listener to delete in the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to deleting a listener, and one entry of DeleteListenersResponse.
| Field | Type | Label | Description |
| name | string | The name of the deleted listener in the form |
|
| error_message | string | Empty on success. |
Represents a request to delete multiple listeners.
| Field | Type | Label | Description |
| names | string | repeated | The names of the listeners to delete, 1 to 1000 distinct names, in the form |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
|
| vtsi_project_name | string | Optional. VTSI project of every listener of the request, of the form
When set, the request is checked as a whole like UpdateListenersRequest before anything is
deleted, and refused with INVALID_ARGUMENT (naming the entry index) for a malformed
vtsi_project_name, a name given twice, or a name that is malformed or whose project segment
differs from vtsi_project_name; with NOT_FOUND for an unknown project; and with
authorization enforced with PERMISSION_DENIED for a project the caller holds no role on. Empty
keeps the behaviour of 9.0.0 clients, which do not send it: each name is checked on its own (a name of
another project is that entry's NOT_FOUND) and a name given twice is deleted once and
reported once. Either way, no entry and more than 1000 distinct names are INVALID_ARGUMENT. |
Response to delete multiple listeners
| Field | Type | Label | Description |
| delete_listener_responses | DeleteListenerResponse | repeated | One entry per distinct name of the request, in request order (a name given twice is reported once), each
with its own |
| error_message | string | A summary when at least one entry failed (e.g. |
Request to get a call
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the call, of the form
Required. Redundant with the project segment of call_name, by the rule of
GetCallerRequest.vtsi_project_name. |
|
| call_name | string | call name For listener this is
For callers this is |
|
| call_view | CallView | optional | Optional. How much of the call to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned |
The request message for Calls.GetCallStatistics.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose calls are counted. The format is: |
|
| call_filter | CallFilter | Optional. Counts only the calls this filter matches, with exactly the semantics, validation and errors of
|
Represents a request to get a specific caller.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the caller, of the form
Required (empty or malformed is INVALID_ARGUMENT, an unknown project NOT_FOUND).
Redundant with the project segment of |
|
| name | string | The name of the caller to retrieve, of the form |
|
| call_view | CallView | optional | Optional. How much of the caller to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned |
Represents a request to get a specific listener.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the listener, of the form
Required. Redundant with the project segment of name, by the rule of
GetCallerRequest.vtsi_project_name. |
|
| name | string | The name of the listener to retrieve, of the form |
|
| call_view | CallView | optional | Optional. How much of the listener to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned |
Represents a request to get a specific scheduled caller.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form
Redundant with the project segment of name: when set it must name the same project (see
GetCallerRequest.vtsi_project_name). |
|
| name | string | The name of the scheduled caller to retrieve of the form |
|
| call_view | CallView | optional | Optional. How much of the scheduled caller to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned |
Request to invite a softphone account into a call
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the connected call to invite into For listener this is
For callers this is |
|
| softphone_account_name | string | Softphone account of the same project to invite: |
|
| mode | ParticipantMode | How the participant takes part. Unspecified means |
|
| ring_timeout_s | int32 | How long the softphone may ring, in seconds, |
|
| bot_policy | BotPolicyOnJoin | What the bot does while the participant is ringing or joined. Unspecified means |
|
| caller_id_display_name | string | Caller-ID display name shown on the softphone. Sanitized by the server; default
|
|
| request_id | string | Optional idempotency key: 1 to 255 visible ASCII characters, scoped to |
Response of InviteToCall
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the call |
|
| participant | CallParticipant | The invited participant |
|
| error_message | string | Always empty: errors are reported as gRPC status codes with |
Represents a request to list callers.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to perform the call. The format is: |
|
| page_token | string | optional | Optional. The |
| call_view | CallView | optional | Optional. How much of each caller to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| campaign_name | string | Resource name of the campaign. It must be a campaign of |
|
| campaign_display_name | string | Exact, case-sensitive |
|
| page_size | int32 | Optional. Maximum number of callers per page. |
|
| active_only | bool | Optional. Only callers whose current call is active ( |
|
| sip_status_types | ondewo.sip.SipStatus.StatusType | repeated | Optional. Only callers whose current or last call has one of these SIP status types
( |
Represents the response for listing callers.
| Field | Type | Label | Description |
| callers | Caller | repeated | The callers of this page, ordered by the caller's uuid (the last segment of |
| next_page_token | string | Token to retrieve the next page of results. Opaque. Empty when there are no more results. |
|
| total_size | int32 | The number of callers the request matches across all pages (its selector and filters, not
|
Request to list calls
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name with which to perform the call of the form |
|
| call_view | CallView | optional | Optional. How much of each call to populate; see |
| call_filter | CallFilter | optional | Optional. A filter to narrow the response down to calls of interest; see |
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| page_size | int32 | Optional. Maximum number of calls per page. |
|
| call_sorting | CallSorting | Optional. Sorting of the listing. Unset keeps the default order (see |
Response to list the calls of a project
| Field | Type | Label | Description |
| calls | Call | repeated | The calls of this page, in the order |
| next_page_token | string | Token to retrieve the next page of results. Opaque. Empty when there are no more results. |
|
| total_size | int32 | The number of calls the request matches across all pages (its filter, not |
Represents a request to list listeners.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to perform the call. The format is: |
|
| page_token | string | optional | Optional. The |
| call_view | CallView | optional | Optional. How much of each listener to populate; see |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| page_size | int32 | Optional. Maximum number of listeners per page, with the default, cap and validation of
|
|
| active_only | bool | Optional. Only listeners whose current call is active ( |
|
| sip_status_types | ondewo.sip.SipStatus.StatusType | repeated | Optional. Only listeners whose current or last call has one of these SIP status types
( |
Represents the response for listing listeners.
| Field | Type | Label | Description |
| listeners | Listener | repeated | The listeners of this page, ordered by the listener's uuid (the last segment of |
| next_page_token | string | Token to retrieve the next page of results. Opaque. Empty when there are no more results. |
|
| total_size | int32 | The number of listeners the request matches across all pages (its filters, not |
Represents a request to list the scheduled callers of a VTSI project.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to perform the call. The format is: |
|
| page_token | string | optional | Optional. The |
| call_view | CallView | optional | Optional. How much of each scheduled caller to populate; see |
| statuses | ScheduledCallerStatus | repeated | Optional. Only return scheduled callers in one of these states. An empty list returns every state. |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned
|
|
| page_size | int32 | Optional. Maximum number of scheduled callers per page. |
|
| campaign_name | string | Optional. Only the scheduled callers of this campaign ( |
|
| scheduled_after | google.protobuf.Timestamp | Optional. Only scheduled callers whose |
|
| scheduled_before | google.protobuf.Timestamp | Optional. Only scheduled callers whose |
Represents the response for listing scheduled callers.
| Field | Type | Label | Description |
| scheduled_callers | ScheduledCaller | repeated | The scheduled callers of this page, ordered by |
| next_page_token | string | Token to retrieve the next page of results. Opaque. Empty when there are no more results. |
|
| total_size | int32 | The number of scheduled callers the request matches across all pages (its filters, not
|
Request of ListenCallAudio
| Field | Type | Label | Description |
| config | StreamCallAudioConfig | Configuration of the stream; |
Listener represents a listener instance that waits for incoming calls.
A listener is persistent: its container takes one call after the other, and call_name names the current call (or the record that waits for the next one). Listeners are never pooled, so a Listener has no pooled field.
Its configuration (sip_base_config, common_services_config) is applied ONCE, when the listener's container is deployed, and then governs EVERY inbound call that container answers: the same agent, voices, turn taking, interruption handling and timing for the first call and for the hundredth. Each call still starts clean (its own NLU session, nothing carried over from the previous call); only the configuration is shared.
| Field | Type | Label | Description |
| name | string | Resource name of the listener, of the form
Output only. Identifies the listener on UpdateListener. |
|
| call_name | string | The call name that was assigned to the call
Output only. |
|
| sip_base_config | SipBaseConfig | SIP service configuration of the listener's container, i.e. which ondewo-sip image version
( |
|
| common_services_config | CommonServicesConfig | Service configuration of every call of the listener: speech-to-text, NLU agent, text-to-speech, CSI and,
in A field left unset here was left unset by the request, and the call INHERITS for it: the deployment-wide
Updatable with |
|
| vtsi_project_name | string | Output only. VTSI project of the listener, the project segment of
Set in every view. A 9.0.0 server leaves it empty. |
|
| active | bool | Output only. Whether the listener's current call is active (set up or connected), i.e.
|
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | Output only. SIP status type of the listener's current or last call ( |
|
| created_at | google.protobuf.Timestamp | Output only. When the listener was created ( |
The project's listener queue as a transfer target. Carries no fields
Request to hang up a participant of a call
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the call |
|
| participant_id | string | Identifier of the participant ( |
Response of RemoveCallParticipant
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the call |
|
| participant | CallParticipant | The participant after the request |
|
| error_message | string | Always empty: errors are reported as gRPC status codes with |
The request message for Calls.RetryScheduledCaller.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the scheduled caller. Redundant with the project segment of |
|
| name | string | The FAILED scheduled caller to retry, of the form |
|
| scheduled_time | google.protobuf.Timestamp | Optional. When the retry fires, in UTC. Unset means now: the retry is due at once and starts at the scheduler's next check. A time in the past is treated like unset. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned (new) |
ScheduledCaller message - a Caller with a schedule when to start calling
| Field | Type | Label | Description |
| name | string | Resource name of the scheduled caller |
|
| call_name | string | The call name that was assigned to the call For listener this is
For callers this is |
|
| sip_config | SipBaseConfig | SIP service configuration. This is the sip_base_config half of sip_caller_config below and is kept for wire compatibility with clients built before field 6 existed |
|
| common_services_config | CommonServicesConfig | Service configuration of the call this scheduled caller places when it fires (speech-to-text, NLU agent,
text-to-speech, CSI, voice interaction and the call's media), as stored from
|
|
| scheduled_time | google.protobuf.Timestamp | Time at or after which the call is started, in UTC (see
|
|
| sip_caller_config | SipCallerConfig | Full SIP caller configuration, including the callee_id that will be dialled and the sip_headers
that will be sent. sip_config (field 3) carries only the sip_base_config half of this message.
Applies to the one call placed when the scheduled caller fires. Only |
|
| status | ScheduledCallerStatus | Lifecycle state of this scheduled caller |
|
| vtsi_project_name | string | VTSI project name that owns this scheduled caller of the form |
|
| created_at | google.protobuf.Timestamp | Time the scheduled caller was created |
|
| fired_at | google.protobuf.Timestamp | Time the call was actually started, or the attempt failed. Unset while the status is SCHEDULED_CALLER_STATUS_PENDING, SCHEDULED_CALLER_STATUS_FIRING or SCHEDULED_CALLER_STATUS_CANCELLED |
|
| error_message | string | Why starting the call failed. Only populated when the status is SCHEDULED_CALLER_STATUS_FAILED |
|
| campaign_name | string | Resource name of the campaign this scheduled caller belongs to. Empty when it belongs to none.
A campaign's scheduled caller mirrors its campaign call: |
|
| retry_of_scheduled_caller_name | string | Output only. Set on a scheduled caller that
Empty for a scheduled caller created by StartScheduledCaller(s) or
AddScheduledCallersToCampaign. Kept when the retried scheduled caller is deleted. |
|
| retried_by_scheduled_caller_name | string | Output only. Set on a FAILED scheduled caller once |
Request of SendCallDtmf
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the connected call |
|
| digits | string | The keys to press, in order: 1 to 64 of |
Response of SendCallDtmf
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the call |
|
| queued_keys | int32 | Number of keys queued: the length of |
Status of service
| Field | Type | Label | Description |
| healthy | bool | Whether the service answered its health check |
|
| error_message | string | Why the service is unhealthy; empty when |
Request to mute the bot of a call and/or stop it listening
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the connected call |
|
| bot_voice | CallMediaSetting |
Both |
|
| bot_listening | CallMediaSetting |
|
Response of SetCallMediaControl
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the call |
|
| state | CallMediaControlState | Effective media control state after the request |
|
| changed | bool |
|
|
| error_message | string | Always empty: errors are reported as gRPC status codes with |
Number of calls with one SIP status type, an entry of CallStatistics.sip_status_type_counts.
| Field | Type | Label | Description |
| sip_status_type | ondewo.sip.SipStatus.StatusType | The SIP status type ( |
|
| count | int32 | Number of matching calls whose |
Request for starting a caller
One request is one outbound call, and its configuration applies to that call only. Example: to place a call whose bot the callee may interrupt, set common_services_config.voice_interaction_config.interruption_handling_config.enabled = true (the other fields of interruption_handling_config then tune when speech counts as an interruption); the next request without that block places its call with the default, in which the callee's speech does not interrupt the bot.
The same message is the entry of StartCallersRequest, of a scheduled caller (StartScheduledCallerRequest.request) and of a campaign (AddCallersToCampaignRequest), with the differences described at those fields.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| sip_caller_config | SipCallerConfig | SIP configuration of the call: |
|
| common_services_config | CommonServicesConfig | Service configuration of the call: speech-to-text, NLU agent, text-to-speech, CSI, the voice interaction
( Validated as a whole before anything is started, including live checks against the configured NLU, S2T
and T2S services (and RabbitMQ when configured); a refused configuration places no call and is answered
with Inheritance: every field left unset inherits the deployment-wide Pooled callers: the call is served by a warm pooled caller only when one runs exactly this
configuration (credentials included); otherwise a new caller is deployed for it, which takes longer to
connect but behaves the same. Answering machine detection
( |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in Read only by the RPC this message is the request of. Where it is an entry of another request
( |
|
| validate_only | bool | Optional. Dry run: when true, the request runs every validation Where this message is an entry of another request ( |
Response to start a caller, and one entry of StartCallersResponse
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| caller | Caller | The caller that was started (with |
|
| error_message | string | Always empty: |
Request to start multiple callers
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| caller_requests | StartCallerRequest | repeated | Callers that should be started, one outbound call each, each with its OWN configuration
( |
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means no
deduplication. A retry carrying the same key returns the response of the first successful attempt instead
of running the request a second time, whichever server replica it reaches, for as long as the server
retains the key (24 hours by default). The key is scoped to the VTSI project and to this RPC. Reusing a
key with a different request is refused with |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
|
| validate_only | bool | Optional. Dry run of the whole batch: every entry is validated like |
Response to the start callers request
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| caller_responses | StartCallerResponse | repeated | One entry per caller that was STARTED, in request order. A requested caller that failed to start was rolled
back and has NO entry here (so the list can be shorter than the request); |
| error_message | string | Empty when every requested caller was started. Otherwise an accounting of the batch: how many callers were requested, how many were started, and why each of the others was not |
Request for starting a listener
The listener's configuration is fixed when its container is deployed and then applies to EVERY inbound call the listener answers, one after the other, until the listener is stopped or the server recreates it (see UpdateListener). Example: to let callers of one hotline interrupt the bot, start its listeners with common_services_config.voice_interaction_config.interruption_handling_config.enabled = true; every call those listeners take then allows barge-in, while a listener started without the block keeps the default.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| sip_base_config | SipBaseConfig | SIP service configuration of the listener's container. |
|
| common_services_config | CommonServicesConfig | Service configuration of every call this listener will answer: speech-to-text, NLU agent, text-to-speech,
CSI, the voice interaction ( Validated as a whole before anything is started, including live checks against the configured NLU, S2T
and T2S services (and RabbitMQ when configured); a refused configuration starts nothing and is answered
with Inheritance: every field left unset inherits the deployment-wide |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in Read only by the RPC this message is the request of. Where it is an entry of another request
( |
|
| validate_only | bool | Optional. Dry run: when true, the request runs every validation Where this message is an entry of another request ( |
Response to start a listener, and one entry of StartListenersResponse
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| listener | Listener | The listener that was started (with |
|
| error_message | string | Always empty: |
Request to start multiple listeners
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| listener_requests | StartListenerRequest | repeated | Listeners that should be started, each with its OWN configuration ( |
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means no
deduplication. A retry carrying the same key returns the response of the first successful attempt instead
of running the request a second time, whichever server replica it reaches, for as long as the server
retains the key (24 hours by default). The key is scoped to the VTSI project and to this RPC. Reusing a
key with a different request is refused with |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
|
| validate_only | bool | Optional. Dry run of the whole batch: every entry is validated like |
Response to start multiple listeners
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| listener_responses | StartListenerResponse | repeated | One entry per listener that was STARTED, in request order. A requested listener that failed to start was rolled
back and has NO entry here (so the list can be shorter than the request); |
| error_message | string | Empty when every requested listener was started. Otherwise an accounting of the batch: how many listeners were requested, how many were started, and why each of the others was not |
Request for starting a scheduled call
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| request | StartCallerRequest | The caller to start at Its |
|
| scheduled_time | google.protobuf.Timestamp | Time at or after which the call is started, in UTC. The scheduler checks for due scheduled callers periodically, so the call starts at the first check at or after this time (typically within a few seconds), never before it. A time in the past is due at once. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in
Read only by the RPC this message is the request of. Where it is an entry of another request
( |
Response to start a scheduled caller, and one entry of StartScheduledCallersResponse
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| scheduled_caller | ScheduledCaller | The scheduled caller that was created, shaped by the request's |
|
| error_message | string | Empty on success, otherwise why the scheduled caller was not created (nothing was created for this entry) |
Request to start scheduled callers
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| scheduled_caller_requests | StartScheduledCallerRequest | repeated | The scheduled callers to create, 1 to 1000, each like |
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means no
deduplication. A retry carrying the same key returns the response of the first successful attempt instead
of running the request a second time, whichever server replica it reaches, for as long as the server
retains the key (24 hours by default). The key is scoped to the VTSI project and to this RPC. Reusing a
key with a different request is refused with |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
Response to start multiple scheduled callers
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| scheduled_caller_responses | StartScheduledCallerResponse | repeated | One entry per entry of the request, in request order: the scheduled caller that was created, or the entry's error |
Request to stop all calls of a VTSI project (hang them up and release their listeners and callers), or, with call_filter, those of them the filter matches.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose calls are stopped, of the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
|
| call_filter | CallFilter | Optional. Narrows the calls that are stopped: of the calls Rolling updates: a 9.0.0 server ignores this field and stops EVERY call of the project. A client that must not stop more than the filter selects checks that the server is 9.1.0 or newer first. |
Request to stop a call: hang it up and stop (release) the listener or caller that serves it.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the call, of the form
Required. Redundant with the project segment of call_name, by the rule of
GetCallerRequest.vtsi_project_name. |
|
| call_name | string | call name to stop For listener this is
For callers this is |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to stop a call, and one entry of StopCallsResponse.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the call, of the form |
|
| call_name | string | The call the request named For listener this is
For callers this is |
|
| error_message | string | Empty when the call's listener or caller was released. |
Represents a request to stop a specific caller.
| Field | Type | Label | Description |
| name | string | The name of the caller to stop in the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to stopping a caller, and one entry of StopCallersResponse.
| Field | Type | Label | Description |
| name | string | The name of the stopped caller in the form |
|
| error_message | string | Empty on success. |
Represents a request to stop multiple callers.
| Field | Type | Label | Description |
| names | string | repeated | The names of the callers to stop, 1 to 1000 distinct names, in the form |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
|
| vtsi_project_name | string | Optional. VTSI project of every caller of the request, of the form
When set, the request is checked as a whole like UpdateCallersRequest before anything is
stopped, and refused with INVALID_ARGUMENT (naming the entry index) for a malformed
vtsi_project_name, a name given twice, or a name that is malformed or whose project segment
differs from vtsi_project_name; with NOT_FOUND for an unknown project; and with
authorization enforced with PERMISSION_DENIED for a project the caller holds no role on. Empty
keeps the behaviour of 9.0.0 clients, which do not send it: each name is checked on its own (a name of
another project is that entry's NOT_FOUND) and a name given twice is stopped once and
reported once. Either way, no entry and more than 1000 distinct names are INVALID_ARGUMENT. |
Response to stop multiple callers
| Field | Type | Label | Description |
| stop_caller_responses | StopCallerResponse | repeated | One entry per distinct name of the request, in request order (a name given twice is reported once), each
with its own |
| error_message | string | A summary when at least one entry failed (e.g. |
Request to stop several calls, each like StopCall.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of every call of the request, of the form |
|
| call_names | string | repeated | The calls to stop, 1 to 1000 names (a name given twice is stopped and reported once) For listener this is
For callers this is |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
Response of StopCalls and StopAllCalls.
| Field | Type | Label | Description |
| stop_call_responses | StopCallResponse | repeated | One entry per stopped call: for |
| error_message | string | Empty when no entry carries an |
Represents a request to stop a specific listener.
| Field | Type | Label | Description |
| name | string | The name of the listener to stop in the form |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of |
Response to stopping a listener, and one entry of StopListenersResponse.
| Field | Type | Label | Description |
| name | string | The name of the stopped listener in the form |
|
| error_message | string | Empty on success. |
Represents a request to stop multiple listeners.
| Field | Type | Label | Description |
| names | string | repeated | The names of the listeners to stop, 1 to 1000 distinct names, in the form |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in EVERY entry of
|
|
| vtsi_project_name | string | Optional. VTSI project of every listener of the request, of the form
When set, the request is checked as a whole like UpdateListenersRequest before anything is
stopped, and refused with INVALID_ARGUMENT (naming the entry index) for a malformed
vtsi_project_name, a name given twice, or a name that is malformed or whose project segment
differs from vtsi_project_name; with NOT_FOUND for an unknown project; and with
authorization enforced with PERMISSION_DENIED for a project the caller holds no role on. Empty
keeps the behaviour of 9.0.0 clients, which do not send it: each name is checked on its own (a name of
another project is that entry's NOT_FOUND) and a name given twice is stopped once and
reported once. Either way, no entry and more than 1000 distinct names are INVALID_ARGUMENT. |
Response to stop multiple listeners
| Field | Type | Label | Description |
| stop_listener_responses | StopListenerResponse | repeated | One entry per distinct name of the request, in request order (a name given twice is reported once), each
with its own |
| error_message | string | A summary when at least one entry failed (e.g. |
Configuration of a call audio stream. The first request of StreamCallAudio
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name of the form |
|
| call_name | string | Name of the connected call |
|
| mode | CallAudioMode | Mode of the stream. Unspecified means LISTEN |
|
| sample_rate_hz | int32 | Sample rate in Hz in both directions: |
|
| take_over | bool | REQUIRED for TALK: the bot is muted and does not listen while the stream is connected |
|
| max_duration_s | int32 | Maximum duration of the stream in seconds. |
Request of StreamCallAudio
| Field | Type | Label | Description |
| config | StreamCallAudioConfig | Configuration; must be the first request and is accepted only once |
|
| audio | CallAudioFrame | Agent audio to send to the caller (TALK only) |
|
| agent_muted | bool |
|
Response of StreamCallAudio and ListenCallAudio
| Field | Type | Label | Description |
| started | CallAudioStarted | The stream is connected |
|
| audio | CallAudioFrame | Call audio |
|
| stats | CallAudioStats | Stream counters |
|
| ended | CallAudioEnded | The stream ended |
The response message of the three status streams.
| Field | Type | Label | Description |
| statuses | CallResourceStatus | repeated | Resources that changed (every matching resource in the snapshot). |
| removed_resource_names | string | repeated | Resources that no longer exist or no longer match. |
| snapshot | bool | True on the first message, which carries every matching resource. |
|
| snapshot_truncated | bool | True when the snapshot was cut at the server limit (5000 resources). |
|
| end_reason | string | Set on the last message when the server ended the stream. Empty otherwise. |
The request message for Calls.StreamCallerStatus.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is: |
|
| caller_names | string | repeated | Only these callers. Empty means every caller of the project. |
| active_only | bool | Only callers whose call is active. |
The request message for Calls.StreamListenerStatus.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is: |
|
| listener_names | string | repeated | Only these listeners. Empty means every listener of the project. |
| active_only | bool | Only listeners whose call is active. |
The request message for Calls.StreamScheduledCallerStatus.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is: |
|
| scheduled_caller_names | string | repeated | Only these scheduled callers. Empty means every scheduled caller of the project. |
| statuses | ScheduledCallerStatus | repeated | Only scheduled callers in these states. Empty means every state. |
| campaign_name | string | Only scheduled callers of this campaign. Empty means any. |
Request to transfer calls
An operator-initiated transfer of ONE live call, the one call_name names. It configures this transfer only: nothing here changes the call's configuration, a later transfer, or the transfers the bot itself starts from the NLU agent (those follow the call's VoiceInteractionConfig.bot_transfer_config). The call must be connected. The project's VtsiProject.transfer_phone_number_allowlist applies to every phone-number target, typed or raw.
Example, a warm handover (Asterisk 22 projects) to a human agent that first rings their phone for up to 45 seconds: target.phone_number = "+4312345678", mode = TRANSFER_MODE_WARM, ring_timeout_s = 45. If the agent does not answer, the caller stays with the bot.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name with which to perform the call of the form |
|
| call_name | string | call name to transfer For listener this is
For callers this is |
|
| transfer_id | string | LEGACY raw target: the dialplan extension, voip number or phone number to transfer the call to. Validated against
|
|
| target | CallTarget | Typed target of the transfer, resolved and validated by the server. Mutually exclusive with |
|
| mode | TransferMode | How to transfer. Unspecified means |
|
| headers | TransferCallRequest.HeadersEntry | repeated | Optional headers handed to the transfer target. Keys must match The call's own headers are the SIP headers it was started with; the merge ignores case, a header named
here replacing the call's header of the same name, and the same name given twice in different case is
refused. A key, count or value outside the limits, or a value with a control character, is refused before
anything is sent ( |
| ring_timeout_s | int32 | WARM only: how long the target may ring, in seconds, |
|
| request_id | string | Optional idempotency key, with the semantics of |
|
| warm_transfer_config | WarmTransferConfig | WARM only: the warm intro of this transfer, merged field by field over the call's
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Response to transfer a call to a phone number or voip number
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name with which to perform the call of the form |
|
| call_name | string | call name to transfer For listener this is
For callers this is |
|
| transfer_id | string | The legacy raw target of the request ( |
|
| error_message | string | Empty unless the transfer failed. |
|
| outcome | TransferOutcome | Outcome of the transfer. A WARM transfer with a warm intro answers |
|
| resolved_target | string | The dialplan extension the target resolved to, e.g. |
|
| sip_response_code | int32 | SIP response code of the REFER where known ( |
|
| error_reason | string | Stable reason token of a refusal or failure, e.g. |
Request to transfer multiple calls
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name with which to perform the call of the form |
|
| transfer_call_requests | TransferCallRequest | repeated | The transfers, 1 to 1000, applied one by one and each like |
Response to transfer a call to a phone number or voip number
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name with which to perform the call of the form |
|
| transfer_call_responses | TransferCallResponse | repeated | One entry per entry of the request, in request order: the outcome of that transfer, or its
|
| error_message | string | A summary when at least one entry failed (e.g. |
Number of calls whose last transfer attempt had one outcome, an entry of CallStatistics.transfer_outcome_counts.
| Field | Type | Label | Description |
| outcome | TransferOutcome | The outcome of the call's last transfer attempt ( |
|
| count | int32 | Number of matching calls whose last transfer attempt had that outcome. |
The request message for Calls.UpdateCall.
| Field | Type | Label | Description |
| call | Call | The call to update, identified by or
),
carrying the new labels. Every other field is ignored. |
|
| update_mask | google.protobuf.FieldMask | Required. Paths relative to |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in |
The response message for Calls.UpdateCall, and one entry of UpdateCallsResponse.
| Field | Type | Label | Description |
| name | string | The name of the call the request named. Always populated, also for a failed entry of
|
|
| call | Call | The call after the update, shaped by the request's |
|
| error_message | string | Empty on success; as |
The request message for Calls.UpdateCaller.
| Field | Type | Label | Description |
| caller | Caller | The caller to update, identified by ), carrying the new values
of the fields named in update_mask. Its fields that no path names are ignored.
What the new values change: the caller's STORED configuration, never a call. A call that is running
or was already placed keeps the configuration its container was deployed with. A one-shot caller places
no further call, so for it the update changes only what is stored and returned. A pooled caller is
deployed from the stored configuration only when the server recycles the project's pooled callers
(see |
|
| update_mask | google.protobuf.FieldMask | Required. Paths relative to The semantics are those of
The resulting stored configuration must be one a Credentials: values written to credential-bearing fields are stored like those of
|
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in |
|
| validate_only | bool | Optional. Dry run: when true, the request runs every validation |
The response message for Calls.UpdateCaller, and one entry of UpdateCallersResponse.
| Field | Type | Label | Description |
| name | string | The name of the caller the request named, in the form
Always populated, also for a failed entry of UpdateCallers. |
|
| caller | Caller | The caller after the update, shaped by the request's |
|
| error_message | string | Empty on success. |
The request message for Calls.UpdateCallers.
Rejected as a whole, nothing being written, with: INVALID_ARGUMENT for a malformed vtsi_project_name, no entry, more than 1000 entries, two entries naming the same caller, an entry whose caller.name is malformed or whose project segment differs from vtsi_project_name, an entry with its own field_mask or validate_only set, or an unknown field_mask path (each naming the entry index or the path); NOT_FOUND for an unknown project; with authorization enforced PERMISSION_DENIED for a project the caller holds no role on or a role below the one UpdateCaller requires. Every other error is reported per entry, e.g. a well-formed name of the right project that names no caller is that entry's NOT_FOUND.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of every caller of the request. The format is: |
|
| update_caller_requests | UpdateCallerRequest | repeated | The updates, applied one by one and each like |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
|
| validate_only | bool | Optional. Dry run of every entry, each like |
The response message for Calls.UpdateCallers.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the request. The format is: |
|
| update_caller_responses | UpdateCallerResponse | repeated | One entry per entry of the request, in request order. |
| error_message | string | A summary when at least one entry failed (e.g. |
The request message for Calls.UpdateCalls.
Rejected as a whole exactly like UpdateCallersRequest, with calls instead of callers and UpdateCall as the role reference (INVALID_ARGUMENT for a malformed vtsi_project_name, no entry, more than 1000 entries, two entries naming the same call, an entry whose call.name is malformed or whose project segment differs from vtsi_project_name, an entry with its own field_mask, an unknown field_mask path; NOT_FOUND for an unknown project; PERMISSION_DENIED); every other error is reported per entry, e.g. a well-formed name of the right project that names no call is that entry's NOT_FOUND.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of every call of the request. The format is: |
|
| update_call_requests | UpdateCallRequest | repeated | The updates, applied one by one and each like |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
The response message for Calls.UpdateCalls.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the request. The format is: |
|
| update_call_responses | UpdateCallResponse | repeated | One entry per entry of the request, in request order. |
| error_message | string | A summary when at least one entry failed, empty when every entry succeeded; as
|
The request message for Calls.UpdateListener.
| Field | Type | Label | Description |
| listener | Listener | The listener to update, identified by ), carrying the new
values of the fields named in update_mask. Its fields that no path names are ignored.
What the new values change: the listener's STORED configuration. |
|
| update_mask | google.protobuf.FieldMask | Required. Paths relative to |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in |
|
| validate_only | bool | Optional. Dry run, as |
The response message for Calls.UpdateListener, and one entry of UpdateListenersResponse.
| Field | Type | Label | Description |
| name | string | The name of the listener the request named, in the form
Always populated, also for a failed entry of UpdateListeners. |
|
| listener | Listener | The listener after the update, shaped by the request's |
|
| error_message | string | Empty on success; as |
The request message for Calls.UpdateListeners.
Rejected as a whole exactly like UpdateCallersRequest, with listeners instead of callers and UpdateListener as the role reference; every other error is reported per entry, e.g. a well-formed name of the right project that names no listener is that entry's NOT_FOUND.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of every listener of the request. The format is: |
|
| update_listener_requests | UpdateListenerRequest | repeated | The updates, applied one by one and each like |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the |
|
| validate_only | bool | Optional. Dry run of every entry, each like |
The response message for Calls.UpdateListeners.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project of the request. The format is: |
|
| update_listener_responses | UpdateListenerResponse | repeated | One entry per entry of the request, in request order. |
| error_message | string | A summary when at least one entry failed, empty when every entry succeeded; as
|
The request message for Calls.UpdateScheduledCaller.
| Field | Type | Label | Description |
| scheduled_caller | ScheduledCaller | The scheduled caller to update, identified by ),
carrying the new values of the fields named in update_mask. Its fields that no path names are
ignored. |
|
| update_mask | google.protobuf.FieldMask | Required. Paths relative to
status,
sip_caller_config as a whole, sip_caller_config.callee_id,
common_services_config), is rejected with INVALID_ARGUMENT naming the path, and
nothing is written. To change anything else, cancel the scheduled caller and start a new one. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in the returned |
What the bot does while a CONFERENCE participant is ringing or joined
| Name | Number | Description |
| BOT_POLICY_ON_JOIN_UNSPECIFIED | 0 | Same as |
| BOT_POLICY_ON_JOIN_PAUSE | 1 | The bot is muted and does not listen while at least one participant is ringing or joined |
| BOT_POLICY_ON_JOIN_PAUSE_LISTENING | 2 | The bot may still speak, but does not hear the participant (nor the caller) |
| BOT_POLICY_ON_JOIN_KEEP | 3 | The bot keeps talking and listening, and it WILL answer what the participant says |
Why a call audio stream ended
| Name | Number | Description |
| CALL_AUDIO_END_REASON_UNSPECIFIED | 0 | No reason recorded |
| CALL_AUDIO_END_REASON_CLIENT_CLOSED | 1 | The client cancelled or half-closed the stream |
| CALL_AUDIO_END_REASON_CALL_ENDED | 2 | The call ended |
| CALL_AUDIO_END_REASON_CALL_TRANSFERRED | 3 | The call was transferred |
| CALL_AUDIO_END_REASON_MAX_DURATION | 4 | The maximum duration was reached |
| CALL_AUDIO_END_REASON_STALLED | 5 | The client did not read the audio in time |
| CALL_AUDIO_END_REASON_INTERNAL | 6 | An internal error ended the stream |
Mode of a call audio stream
| Name | Number | Description |
| CALL_AUDIO_MODE_UNSPECIFIED | 0 | Same as |
| CALL_AUDIO_MODE_LISTEN | 1 | Receive the call audio only |
| CALL_AUDIO_MODE_TALK | 2 | Receive the caller's audio and send audio to the caller. Requires |
Desired setting of one media control flag of a call
| Name | Number | Description |
| CALL_MEDIA_SETTING_UNCHANGED | 0 | Leave the flag as it is |
| CALL_MEDIA_SETTING_ON | 1 | On: the bot speaks ( |
| CALL_MEDIA_SETTING_OFF | 2 | Off: the bot is muted ( |
The field by which calls are sorted.
| Name | Number | Description |
| NO_CALL_SORTING | 0 | The default order of |
| SORT_CALL_BY_START_TIME | 1 | Sort by |
Whether a call is active (set up or connected) or not, as a filter value of CallFilter.call_status.
| Name | Number | Description |
| CALL_STATUS_UNSPECIFIED | 0 | Unspecified call status: does not filter |
| CALL_STATUS_ACTIVE | 1 | Call is active ( |
| CALL_STATUS_INACTIVE | 2 | Call is inactive ( |
The kind of resource a call, a status or a statistics bucket belongs to.
Quirk kept for wire compatibility: the zero value is BOTH, not an *_UNSPECIFIED sentinel. It is never the type of a stored call: Call.call_type is LISTENER, CALLER or, for a call placed by a scheduled caller, SCHEDULED_CALLER. In CallFilter.call_types an empty list, or a list holding BOTH, matches every call.
| Name | Number | Description |
| BOTH | 0 | Both listener and caller: the zero value, used only as "any type" in a filter; never a stored call's type |
| LISTENER | 1 | Listener |
| CALLER | 2 | Caller |
| SCHEDULED_CALLER | 3 | Scheduled Caller |
How much of a Call, Caller, Listener or ScheduledCaller a read RPC populates. The call_view fields that take it are optional, so an unset view can be told apart from MINIMUM; each request documents what an unset view means. Quirk kept for wire compatibility: the zero value is MINIMUM, not an *_UNSPECIFIED sentinel, so a client that SETS the field to its zero value asks for the minimum view.
| Name | Number | Description |
| MINIMUM | 0 | Gives only minimum info about the call |
| SHALLOW | 1 | Gives further basic info like call name, start_time, end_time, current sip status |
| FULL | 2 | Gives you the full info with status history and the services statuses |
Why an invited participant failed or left: the typed form of CallParticipant.end_reason, one value per string that field documents. New values may be added; a client that meets a value it does not know reads CallParticipant.end_reason instead.
| Name | Number | Description |
| PARTICIPANT_END_REASON_UNSPECIFIED | 0 | No end reason: the participant is still ringing or joined, or its end reason is a string this enum has no
value for (read |
| PARTICIPANT_END_REASON_NO_ANSWER | 1 |
|
| PARTICIPANT_END_REASON_BUSY | 2 |
|
| PARTICIPANT_END_REASON_CHANNEL_UNAVAILABLE | 3 |
|
| PARTICIPANT_END_REASON_CALL_ENDED | 4 |
|
| PARTICIPANT_END_REASON_REMOVED | 5 |
|
| PARTICIPANT_END_REASON_HANGUP | 6 |
|
| PARTICIPANT_END_REASON_HANDED_OVER | 7 |
|
| PARTICIPANT_END_REASON_JOIN_FAILED | 8 |
|
| PARTICIPANT_END_REASON_TIMEOUT | 9 |
|
How an invited participant takes part in a call
| Name | Number | Description |
| PARTICIPANT_MODE_UNSPECIFIED | 0 | Same as |
| PARTICIPANT_MODE_CONFERENCE | 1 | The participant is joined into the call: Asterisk mixes the caller, the bot and the participant |
| PARTICIPANT_MODE_MONITOR | 2 | The participant listens only; the caller and the bot do not hear it |
State of an invited participant
| Name | Number | Description |
| PARTICIPANT_STATE_UNSPECIFIED | 0 | No state recorded |
| PARTICIPANT_STATE_RINGING | 1 | The participant's softphone is ringing |
| PARTICIPANT_STATE_JOINED | 2 | The participant answered and is in the call |
| PARTICIPANT_STATE_FAILED | 3 | The participant never joined; |
| PARTICIPANT_STATE_LEFT | 4 | The participant left the call; |
Lifecycle state of a ScheduledCaller
| Name | Number | Description |
| SCHEDULED_CALLER_STATUS_UNSPECIFIED | 0 | Unspecified status |
| SCHEDULED_CALLER_STATUS_PENDING | 1 | Created and waiting for its scheduled_time to arrive |
| SCHEDULED_CALLER_STATUS_FIRING | 2 | Claimed by a server replica and being dialled right now |
| SCHEDULED_CALLER_STATUS_DONE | 3 | The call was started successfully |
| SCHEDULED_CALLER_STATUS_FAILED | 4 | Starting the call failed; see error_message |
| SCHEDULED_CALLER_STATUS_CANCELLED | 5 | Cancelled before it fired |
How a call is transferred
| Name | Number | Description |
| TRANSFER_MODE_UNSPECIFIED | 0 | Same as |
| TRANSFER_MODE_BLIND | 1 | SIP REFER: the caller is handed to the dialplan, which dials the target. A refused REFER keeps the call with the bot; once the REFER is accepted the bot leaves, and a target that is then busy or does not answer loses the caller |
| TRANSFER_MODE_WARM | 2 | The target is rung into the call first; the bot leaves only after the target joined, and keeps the call when the target is busy or does not answer. Requires an Asterisk 22 project |
Outcome of a transfer
| Name | Number | Description |
| TRANSFER_OUTCOME_UNSPECIFIED | 0 | No outcome recorded |
| TRANSFER_OUTCOME_ACCEPTED | 1 | BLIND: the REFER was accepted and the bot left the call. WARM: the target answered and was bridged, and the bot left the call |
| TRANSFER_OUTCOME_PENDING | 2 | WARM: the target is ringing (with a warm intro: the target is ringing or being briefed). Follow
|
| TRANSFER_OUTCOME_TARGET_INVALID | 3 | Refused before anything was sent; the call is untouched. |
| TRANSFER_OUTCOME_REFER_REJECTED | 4 | The SIP server refused the REFER (including an unknown target extension); the call is KEPT with the bot.
|
| TRANSFER_OUTCOME_TIMEOUT | 5 | No answer to the REFER in time, or (WARM) the target did not answer; the call is KEPT with the bot |
| TRANSFER_OUTCOME_CALL_ENDED | 6 | The far end left the call during the attempt |
| TRANSFER_OUTCOME_CALL_SCOPE_MISMATCH | 7 | The call this request names is no longer the call the container is serving (e.g. the next call of a persistent listener); nothing was sent |
| TRANSFER_OUTCOME_SIP_UNREACHABLE | 8 | The call's SIP container could not be reached |
| TRANSFER_OUTCOME_DECLINED | 9 | Warm intro: the target declined; the call stays with the bot, which tells the caller |
| TRANSFER_OUTCOME_NO_DECISION | 10 | Warm intro: the target answered but gave no decision in time; the call stays with the bot |
| TRANSFER_OUTCOME_TARGET_UNAVAILABLE | 11 | Warm intro: the target answered but is gone (hung up during the intro, a mailbox is suspected); the call
stays with the bot. |
| TRANSFER_OUTCOME_INTRO_UNAVAILABLE | 12 | Warm intro: the intro could not run and |
ONDEWO VTSI API
Manages the CAMPAIGNS of a VTSI project. A campaign is a named set of outbound calls that VTSI places for the client while keeping at most max_parallel_calls of them running at the same time. If 100 callers are added to a campaign with max_parallel_calls = 10, at any moment at most 10 of those calls are being set up or are connected; the next one starts when one ends.
Calls are added to a campaign with Calls.AddCallersToCampaign or Calls.AddScheduledCallersToCampaign (a server that predates them answers UNIMPLEMENTED and starts nothing); a scheduled call of a campaign is started at or after its scheduled time AND when the campaign has a free slot.
A call that fails is retried up to max_attempts times in total, waiting retry_delay between attempts. A call counts as failed only after its last attempt. A failure that cannot succeed by repetition (for example a rejected credential, an invalid configuration) is never retried.
Lifecycle: StartCampaign starts a created campaign; StopCampaign lets the ongoing calls finish and starts no new ones; HardStopCampaign ends the ongoing calls immediately and starts no new ones; ResumeCampaign continues a stopped or hard stopped campaign with the calls that have not finished yet.
Every RPC about ONE campaign accepts either its resource name or its display name. Display names are unique within a project, so a display name is resolved within the project named by the request's top-level vtsi_project_name, which is REQUIRED with a display name (INVALID_ARGUMENT when it is empty or malformed) and checked against the campaign when a resource name is used. (The CampaignDisplayName message of 9.0.0, which carried the project and the display name together, was removed in 9.1.0; its field numbers are reserved.)
A malformed selector is INVALID_ARGUMENT for every authenticated caller, with or without authorization enforced (also when authorization could resolve no project from it): neither the resource name nor the display name set (also how an old 9.0.0 client's removed CampaignDisplayName arrives), a malformed resource name, a display name with an empty or malformed vtsi_project_name, and a vtsi_project_name that is not the project of the resource name. With authorization enforced, a well-formed request naming a project the caller holds no role on (an unknown project included) is refused with PERMISSION_DENIED before any lookup, so it is not answered NOT_FOUND, and a caller without a credential is UNAUTHENTICATED whatever it sent.
Campaign-level call defaults: campaign_common_services_config and campaign_sip_caller_config of a Campaign are the defaults of EVERY call of the campaign. They are read LIVE when a campaign call is dispatched (every attempt, retries included): the effective configuration of the call is a copy of the campaign's config with the call's own StartCallerRequest config merged over it (protobuf MergeFrom), see Campaign. The one exception is the callee: campaign_sip_caller_config.callee_id is resolved and FIXED when a call is added (it is that call's CampaignCall.phone_number), so every attempt of a call dials the number its campaign call reports.
How a campaign call behaves: every setting of the effective configuration acts on that one call exactly as if a StartCallerRequest had carried it (the call settings are explained at CommonServicesConfig). For each single-valued setting the first of these that is present decides (a list setting combines the campaign's entries and the call's, a map such as sip_headers merges by key, and a deployment-wide limit or master switch applies on top of any value; see Campaign.campaign_common_services_config):
AddCallersToCampaign / AddScheduledCallersToCampaign); for a warm transfer, the TransferCall request's own warm_transfer_config wins over all of these;campaign_common_services_config / campaign_sip_caller_config);VtsiProject.warm_transfer_defaults for a warm transfer);ONDEWO_VTSI_* setting of the server, where the operator set one;So a campaign default is a per-call value for every call that does not set its own: it wins over the deployment-wide setting. Example: a campaign whose campaign_common_services_config.voice_interaction_config.interruption_handling_config sets enabled = true lets the callee interrupt the bot on every call of the campaign; an entry that sets enabled = false turns it off for that one call only.
Partial responses: ListCampaigns, ListCampaignCalls, CreateCampaign, GetCampaign, UpdateCampaign, DeleteCampaign (paths of DeleteCampaignResponse), the four lifecycle RPCs StartCampaign, StopCampaign, HardStopCampaign and ResumeCampaign, CloneCampaign and GetCampaignCall accept an optional field_mask naming the field paths of the returned resource (for a listing: of each listed element) to populate. A mask never changes what the RPC does. Unset or empty returns every field (one exception: ListCampaigns returns campaign_callers and campaign_callers_truncated only when its mask names them); the identifying name is always populated; an unknown path is rejected with INVALID_ARGUMENT naming it; nested paths through singular message fields (e.g. statistics.completed) are allowed, a path below a repeated or map field is not. The mask is applied after any role-based redaction, so it can only narrow what the caller may see.
Callers and calls of a campaign: Campaign.campaign_callers names the callers that placed its calls (bounded); Calls.ListCallers with ListCallersRequest.campaign_name / campaign_display_name lists them paginated as Caller resources, and Calls.ListCalls with CallFilter.campaign_name / campaign_display_name lists the calls they placed as Call resources.
Calling window: a campaign with a calling_window starts calls (first attempts, retries and due scheduled calls alike) only inside one of the window's weekly slots, in the window's time zone. Outside every slot it stays RUNNING and reports outside_calling_window = true; calls already running are never ended by a slot ending. See CampaignCallingWindow.
Limits and defaults of the server (environment variables of ondewo-vtsi, read at start-up): at most ONDEWO_VTSI_CAMPAIGN_MAX_CALLS (100000) calls per campaign; max_parallel_calls defaults to ONDEWO_VTSI_CAMPAIGN_DEFAULT_MAX_PARALLEL_CALLS (1) and is at most ONDEWO_VTSI_CAMPAIGN_MAX_PARALLEL_CALLS_LIMIT (1000); max_attempts defaults to 1 and is at most ONDEWO_VTSI_CAMPAIGN_MAX_ATTEMPTS_LIMIT (10); retry_delay defaults to ONDEWO_VTSI_CAMPAIGN_DEFAULT_RETRY_DELAY_S (60 s); one AddCallersToCampaign / AddScheduledCallersToCampaign request carries at most 1000 entries (a fixed server limit, INVALID_ARGUMENT above it); CancelCampaignCalls and RetryCampaignCalls act on at most 1000 calls per request. The status stream is bounded by ONDEWO_VTSI_STATUS_STREAM_MAX_DURATION_S (3600 s), sends a keep-alive after ONDEWO_VTSI_STATUS_STREAM_KEEPALIVE_S (15 s) without a change and at most ONDEWO_VTSI_STATUS_STREAM_MAX_CONCURRENT (16) status streams are open per server replica.
Authorization (when enforced): every RPC of this service needs PROJECT_EXECUTOR or a higher role (PROJECT_DEVELOPER, PROJECT_ADMIN) on the campaign's project, or SERVER_ADMIN; credential-bearing call defaults are returned only to the roles named at Campaign.campaign_common_services_config.
Errors are reported as gRPC status codes: INVALID_ARGUMENT for a malformed name, filter, field mask or value; NOT_FOUND for an unknown project, campaign or campaign call (with authorization enforced: PERMISSION_DENIED for a project the caller holds no role on, or a role below PROJECT_EXECUTOR); UNAUTHENTICATED for a request without a valid credential while authorization is enforced; ALREADY_EXISTS for a display_name already used in the project; FAILED_PRECONDITION for a state that does not allow the operation (each RPC names its cases); ABORTED when a concurrent change won, nothing was stored and the request can be retried; DEADLINE_EXCEEDED for a forced DeleteCampaign whose hang-ups were not confirmed in time (the hard stop stays in effect, retry the request); RESOURCE_EXHAUSTED when the server has no free stream slot.
rpc CreateCampaign (CreateCampaignRequest) returns (Campaign)
Creates a campaign in state CAMPAIGN_STATE_CREATED. Calls are added with
AddCallersToCampaign / AddScheduledCallersToCampaign; nothing is dialled before
StartCampaign.
With an idempotency_key, a retry of the same request returns the first attempt's
campaign instead of creating a second one (see CreateCampaignRequest.idempotency_key).
Emits VTSI_EVENT_CAMPAIGN_CREATED.
Errors: NOT_FOUND if the project does not exist; ALREADY_EXISTS if
the display_name is used in the project; INVALID_ARGUMENT for a malformed
vtsi_project_name, an output-only field that was set, an out-of-range value, an invalid
calling_window, a malformed idempotency_key, an idempotency_key
reused with a different request or an unknown field_mask path; ABORTED while
a first attempt with the same idempotency_key is still running.
rpc GetCampaign (GetCampaignRequest) returns (Campaign)
Returns a campaign including its statistics, its call defaults and its callers
(campaign_callers).
Errors: NOT_FOUND; INVALID_ARGUMENT for a malformed name, a
display_name without vtsi_project_name or an unknown
field_mask path.
rpc UpdateCampaign (UpdateCampaignRequest) returns (Campaign)
Updates the fields named in update_mask: display_name,
max_parallel_calls, max_attempts, retry_delay,
campaign_common_services_config, campaign_sip_caller_config and
calling_window (each also by a nested sub-path). Allowed in every state. A changed
calling_window applies from the next dispatch decision (within about one second); it never
ends a running call. Lowering max_parallel_calls
never ends a running call: the campaign starts no new call until fewer than the new maximum are
running. A changed call default applies to every campaign call dispatched after the update,
retries included; a call already dispatched keeps the configuration it was started with. The
exception is campaign_sip_caller_config.callee_id, which is fixed per call when the call
is added and therefore applies only to calls added after the update.
Emits VTSI_EVENT_CAMPAIGN_UPDATED (attribute updated_fields) and, when
max_parallel_calls changed, VTSI_EVENT_CAMPAIGN_MAX_PARALLEL_CALLS_CHANGED.
Errors: NOT_FOUND; INVALID_ARGUMENT for an empty mask, an unknown,
output-only or immutable path, an out-of-range value, an invalid calling_window or an
unknown field_mask path; ALREADY_EXISTS for a
display_name used by another campaign of the project; ABORTED when a concurrent
update of the same campaign won (nothing was written; retry).
rpc DeleteCampaign (DeleteCampaignRequest) returns (DeleteCampaignResponse)
Deletes a campaign and its campaign calls. Its scheduled callers that have not fired yet are
cancelled. Calls that already ran are not touched and stay visible through
ListCalls, but no longer as calls OF the campaign: the attempt history that linked them
to it is deleted with it, so ListCalls with CallFilter.campaign_name /
campaign_display_name of a deleted campaign answers NOT_FOUND (list them by
caller or without the campaign selector), and Calls.ListCallers with the campaign selector
likewise.
With force, a campaign that is RUNNING, STOPPING or
HARD_STOPPING is hard stopped first (exactly as by HardStopCampaign) and deleted
as soon as the end of each of its calls is confirmed. The RPC waits for that, at most
ONDEWO_VTSI_CAMPAIGN_FORCE_DELETE_WAIT_S (30 s by default) and never past the client's
deadline; when the hang-ups are not confirmed by then it answers DEADLINE_EXCEEDED, the
campaign stays HARD_STOPPING (then HARD_STOPPED) and is NOT deleted: repeat the
request. Idempotent: a repeated forced delete of a campaign that is still hard stopping waits again.
Emits VTSI_EVENT_CAMPAIGN_DELETED (preceded, with force on a running
campaign, by VTSI_EVENT_CAMPAIGN_HARD_STOP_REQUESTED and
VTSI_EVENT_CAMPAIGN_HARD_STOPPED).
Errors: NOT_FOUND; FAILED_PRECONDITION without force while
the campaign is RUNNING, STOPPING or HARD_STOPPING (stop or hard
stop it first, or set force); DEADLINE_EXCEEDED with force as
described above; INVALID_ARGUMENT for a malformed name, a display_name without
vtsi_project_name or an unknown field_mask path.
rpc ListCampaigns (ListCampaignsRequest) returns (ListCampaignsResponse)
Lists the campaigns of a project, filtered, ordered by ListCampaignsRequest.order_by
(newest first by default) and paged, each with its
statistics. campaign_callers and campaign_callers_truncated are left empty
unless field_mask names them, and a page that carries them holds at most 20 campaigns (see
ListCampaignsRequest.field_mask).
Errors: NOT_FOUND if the project does not exist; INVALID_ARGUMENT
for a malformed vtsi_project_name, a negative page_size, a foreign
page_token (also one issued for another filter or order_by), an unknown
order_by or states value, created_after not before
created_before or an unknown field_mask path.
rpc GetCampaignStatistics (GetCampaignStatisticsRequest) returns (CampaignStatistics)
Returns the progress of a campaign: how many of its calls are not started, in progress, waiting for a retry, completed, failed and cancelled, and how many attempts were made.
Errors: NOT_FOUND; INVALID_ARGUMENT for a malformed name or a
display_name without vtsi_project_name.
rpc ListCampaignCalls (ListCampaignCallsRequest) returns (ListCampaignCallsResponse)
Lists the calls of a campaign in the order they were added, filtered and paged, each with its current SIP status, the SIP status description and its attempts.
The filters of ListCampaignCallsRequest are combined by AND; the values of one
repeated filter by OR.
Errors: NOT_FOUND; INVALID_ARGUMENT for a negative
page_size, a foreign page_token (also one issued for another filter), a
display_name without vtsi_project_name, a malformed campaign call name or one
of another campaign in campaign_call_names, more than 1000 phone_numbers or
campaign_call_names, a negative min_attempts, an unknown enum value in
states / sources, finish_time_min not before
finish_time_max or an unknown field_mask path.
rpc StartCampaign (StartCampaignRequest) returns (Campaign)
Starts a CAMPAIGN_STATE_CREATED campaign. Idempotent on a
RUNNING campaign.
A campaign with a calling_window started outside every slot is RUNNING
with outside_calling_window = true and dials from the next slot on. Emits
VTSI_EVENT_CAMPAIGN_STARTED (nothing on the idempotent repeat).
Errors: NOT_FOUND; FAILED_PRECONDITION in any other state (use
ResumeCampaign for a stopped campaign); INVALID_ARGUMENT for a malformed name, neither selector set, a
display_name without vtsi_project_name or a vtsi_project_name
that is not the campaign's project, or an unknown field_mask path.
rpc StopCampaign (StopCampaignRequest) returns (Campaign)
Stops a campaign gracefully: no new call is started, the calls that are running continue
until they end, then the campaign is CAMPAIGN_STATE_STOPPED. Returns the campaign
in STOPPING (or already STOPPED when no call was running).
Idempotent on STOPPING, STOPPED, HARD_STOPPING and
HARD_STOPPED.
Errors: NOT_FOUND; FAILED_PRECONDITION on a
COMPLETED campaign; INVALID_ARGUMENT for a malformed name, neither selector set, a
display_name without vtsi_project_name or a vtsi_project_name
that is not the campaign's project, or an unknown field_mask path.
rpc HardStopCampaign (HardStopCampaignRequest) returns (Campaign)
Stops a campaign immediately: no new call is started and the server hangs up every running
call of the campaign right away. The campaign stays CAMPAIGN_STATE_HARD_STOPPING
until the end of each of those calls is CONFIRMED (its call record is no longer active), then
becomes CAMPAIGN_STATE_HARD_STOPPED; with a reachable call infrastructure this
takes seconds, scaled by the number of running calls. A hang-up that fails is repeated every
few seconds, and the campaign does not report HARD_STOPPED while one of its calls
is still up. Calls ended this way are CAMPAIGN_CALL_STATE_CANCELLED; a call that
finished on its own before the hard stop keeps its own outcome. Calls not started yet stay
NOT_STARTED / RETRY_PENDING and run after ResumeCampaign.
Returns the campaign in HARD_STOPPING (or already HARD_STOPPED).
Idempotent on HARD_STOPPING and HARD_STOPPED.
Errors: NOT_FOUND; FAILED_PRECONDITION on a
COMPLETED campaign; INVALID_ARGUMENT for a malformed name, neither selector set, a
display_name without vtsi_project_name or a vtsi_project_name
that is not the campaign's project, or an unknown field_mask path.
rpc ResumeCampaign (ResumeCampaignRequest) returns (Campaign)
Resumes a STOPPING, STOPPED or HARD_STOPPED
campaign: it becomes RUNNING and continues with the calls that are not finished.
Idempotent on RUNNING.
Errors: NOT_FOUND; FAILED_PRECONDITION on CREATED
(use StartCampaign), HARD_STOPPING (wait until it is
HARD_STOPPED) and COMPLETED; INVALID_ARGUMENT for a malformed name, neither selector set, a
display_name without vtsi_project_name or a vtsi_project_name
that is not the campaign's project, or an unknown field_mask path.
rpc StreamCampaignStatus (StreamCampaignStatusRequest) returns (stream StreamCampaignStatusResponse)
Streams the status and progress of the campaigns of a project. The first message is a
snapshot (snapshot = true) of every matching campaign; every later message
carries only the campaigns (and, with include_calls, the campaign calls) that
changed. Changes are polled every ONDEWO_VTSI_STATUS_STREAM_POLL_INTERVAL_S (1 s by
default). An empty message is sent as a keep-alive when nothing changed for
ONDEWO_VTSI_STATUS_STREAM_KEEPALIVE_S (15 s by default).
The stream ends when the client disconnects, or the server ends it with a last message carrying
end_reason and end_reason_type: at the maximum stream duration
ONDEWO_VTSI_STATUS_STREAM_MAX_DURATION_S (3600 s by default,
STREAM_END_REASON_MAX_DURATION), when the server shuts down
(STREAM_END_REASON_SERVER_SHUTDOWN) and when the project is deleted
(STREAM_END_REASON_PROJECT_DELETED). Reconnect and treat the new snapshot as authoritative.
A client that blocks one send for longer than ONDEWO_VTSI_STREAM_STALL_TIMEOUT_S (30 s by
default) is disconnected without a last message (the RPC ends CANCELLED). While
authorization is enforced, the caller's role is re-checked periodically; a revoked role ends the
RPC with PERMISSION_DENIED, an expired credential with UNAUTHENTICATED.
Errors: NOT_FOUND if the project does not exist; INVALID_ARGUMENT for a
malformed vtsi_project_name, a malformed entry of campaign_names, a campaign
name of another project, or an unknown value or CAMPAIGN_STATE_UNSPECIFIED in
states (a well-formed campaign name of the project that names no campaign is accepted and
matches nothing); RESOURCE_EXHAUSTED when the server has no free stream slot
(ONDEWO_VTSI_STATUS_STREAM_MAX_CONCURRENT, 16 per replica by default).
rpc GetCampaignCall (GetCampaignCallRequest) returns (CampaignCall)
Returns one call of a campaign, with its current SIP status and, with
include_attempts, its attempts. Read-only, no event.
Errors: INVALID_ARGUMENT for a malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project, campaign or campaign call
(also one deleted with its campaign); PERMISSION_DENIED / UNAUTHENTICATED as
for every RPC of this service.
rpc CancelCampaignCalls (CancelCampaignCallsRequest) returns (CancelCampaignCallsResponse)
Cancels calls of a campaign that have not started an attempt that is still running: each selected
call in CAMPAIGN_CALL_STATE_NOT_STARTED or CAMPAIGN_CALL_STATE_RETRY_PENDING
becomes CAMPAIGN_CALL_STATE_CANCELLED (its finish_time set, counted in
CampaignStatistics.cancelled); the scheduled caller of a call added by
AddScheduledCallersToCampaign is cancelled with it. Mirrors
Calls.CancelScheduledCaller: a call whose attempt is DISPATCHING or
IN_PROGRESS is NOT cancelled (and its call is not hung up; use
HardStopCampaign or Calls.StopCall) and is reported in refused,
like a call that is already finished; a refusal is not an error.
Selection: campaign_call_names, states, or both (then a named call must
also be in one of the states). At most 1000 calls are acted on per request: with states
the first 1000 matching calls by position, and remaining_count says how many
more match; repeat the request until it is 0. Each call is cancelled atomically on its own (the request
as a whole is not atomic); a call that a replica starts dispatching while the request runs is refused,
never cancelled half-way. Allowed in every campaign state. When it leaves a RUNNING
campaign without an unfinished call, the campaign becomes COMPLETED at the next engine
tick. Idempotent: a repeat refuses the calls it already cancelled with
reason=already-finished.
Emits VTSI_EVENT_CAMPAIGN_CALL_CANCELLED per cancelled call,
VTSI_EVENT_SCHEDULED_CALLER_CANCELLED per cancelled scheduled caller, and the usual
throttled VTSI_EVENT_CAMPAIGN_PROGRESS.
Errors: INVALID_ARGUMENT for a malformed selector (as GetCampaign), neither
campaign_call_names nor states set, more than 1000 names, a malformed campaign
call name or one of another campaign, a state other than NOT_STARTED /
RETRY_PENDING in states; NOT_FOUND for an unknown project or
campaign (an unknown but well-formed campaign call name of the campaign is a refusal with
reason=not-found, not an error).
rpc RetryCampaignCalls (RetryCampaignCallsRequest) returns (RetryCampaignCallsResponse)
Puts FAILED or CANCELLED calls of a campaign back into the queue with a fresh attempt budget: each
selected call gets additional_attempts more attempts on top of the attempts it already
made, and becomes CAMPAIGN_CALL_STATE_RETRY_PENDING with next_attempt_time =
the later of now and not_before (or CAMPAIGN_CALL_STATE_NOT_STARTED when it
never made an attempt, e.g. a scheduled call cancelled before it fired). finish_time and
last_error are cleared; attempt_history is kept and continues with the next
attempt_number. The call keeps its phone_number and its own configuration;
the campaign's call defaults are read live at the next dispatch as for every attempt.
A call added by AddScheduledCallersToCampaign keeps following its scheduled caller,
which returns to SCHEDULED with its scheduled time moved to the call's
next_attempt_time (VTSI_EVENT_SCHEDULED_CALLER_UPDATED).
Effect on the campaign: a COMPLETED campaign becomes RUNNING again (as when
calls are added by a CampaignAssignment); every other state is kept, so a stopped campaign
runs the calls after ResumeCampaign and a CREATED one after
StartCampaign. The calls are dispatched under max_parallel_calls and the
calling_window like any other.
Selection exactly as CancelCampaignCalls (names, states or both; at most 1000 calls per
request, remaining_count); a selected call that is not FAILED or
CANCELLED is reported in refused. A failure that cannot succeed by repetition
(e.g. a rejected credential) is retried too: fix its cause first, otherwise the campaign may be
auto-stopped again. Not idempotent: each request adds a new budget to the calls it requeues, but a
repeat finds them RETRY_PENDING / NOT_STARTED and refuses them.
Emits VTSI_EVENT_CAMPAIGN_CALL_REQUEUED per requeued call (attributes
attempt_limit, next_attempt_time), VTSI_EVENT_CAMPAIGN_RESUMED
when a COMPLETED campaign became RUNNING, and the throttled
VTSI_EVENT_CAMPAIGN_PROGRESS.
Errors: INVALID_ARGUMENT as CancelCampaignCalls, except that
states may only hold FAILED / CANCELLED, plus
additional_attempts outside 0 to ONDEWO_VTSI_CAMPAIGN_MAX_ATTEMPTS_LIMIT (10)
and not_before more than 7 days ahead; NOT_FOUND for an unknown project or
campaign; FAILED_PRECONDITION when the campaign is HARD_STOPPING (wait until it
is HARD_STOPPED).
rpc CloneCampaign (CloneCampaignRequest) returns (Campaign)
Creates a new campaign in the same project as a copy of an existing one, server side, so the
stored credentials of its call defaults are preserved without ever being returned to the client (a
Get-then-Create round trip would copy the REDACTED defaults). Copied: max_parallel_calls,
max_attempts, retry_delay, campaign_common_services_config,
campaign_sip_caller_config and calling_window. Not copied: the state (the
clone is CAMPAIGN_STATE_CREATED), statistics, callers and every other output-only
field.
With include_calls, the source's calls whose state is in call_states
(empty: every state) are copied as new NOT_STARTED calls in their original order
(position renumbered from 1), each with its own stored configuration and its fixed
phone_number, no attempt and no history. A copied call that was added by
AddScheduledCallersToCampaign gets a new scheduled caller with the same scheduled time
(a time in the past is due as soon as the clone runs). The whole clone is atomic: the campaign and every
copied call (and scheduled caller) are stored, or nothing is. The source is read in one consistent
snapshot and is not changed.
With an idempotency_key, a retry of the same request returns the first attempt's
clone (see CreateCampaignRequest.idempotency_key). Emits
VTSI_EVENT_CAMPAIGN_CREATED for the clone with the attributes cloned_from
(the source's resource name) and copied_call_count, and, when calls were copied,
VTSI_EVENT_CAMPAIGN_CALLS_ADDED and one VTSI_EVENT_SCHEDULED_CALLER_CREATED per
new scheduled caller.
Errors: INVALID_ARGUMENT for a malformed source selector (as GetCampaign),
a new_display_name over 128 characters, call_states without
include_calls or holding an unknown value, a malformed or reused
idempotency_key or an unknown field_mask path; NOT_FOUND for an
unknown project or source campaign; ALREADY_EXISTS when new_display_name is used
in the project; FAILED_PRECONDITION when the copied calls would exceed
ONDEWO_VTSI_CAMPAIGN_MAX_CALLS; ABORTED while a first attempt with the same
idempotency_key is still running.
One weekly slot of a CampaignCallingWindow: on day_of_week, from start_minute (inclusive) to end_minute (exclusive), counted in minutes after local midnight of CampaignCallingWindow.time_zone. Example: Monday 09:00 to 17:30 is {day_of_week: CALLING_WINDOW_DAY_OF_WEEK_MONDAY, start_minute: 540, end_minute: 1050}.
| Field | Type | Label | Description |
| day_of_week | CallingWindowDayOfWeek | Required. The day, in the window's time zone. |
|
| start_minute | int32 | Start of the slot in minutes after local midnight, inclusive: 0 to 1439. |
|
| end_minute | int32 | End of the slot in minutes after local midnight, exclusive: 1 to 1440 (1440 = the end of the day),
greater than |
A campaign: a set of outbound calls started with a limit on how many run at the same time.
Besides when and how often calls are placed (max_parallel_calls, max_attempts, retry_delay, calling_window), a campaign can carry call defaults (campaign_common_services_config, campaign_sip_caller_config) that decide how each of its calls behaves: which agent answers, which voice, whether the callee may interrupt the bot, and so on. Every call takes them unless it sets its own value.
| Field | Type | Label | Description |
| name | string | Output only. Resource name of the campaign. The format is:
Ignored on create; identifies the campaign on update. |
|
| campaign_id | string | Output only. The |
|
| vtsi_project_name | string | Output only. Resource name of the VTSI project the campaign belongs to. The format is: |
|
| display_name | string | Human-readable name, unique within the project, at most 128 characters. Empty on create means
|
|
| max_parallel_calls | int32 | Maximum number of calls of this campaign that are being started or are running at the same
time. |
|
| max_attempts | int32 | Maximum number of attempts per call, the first one included. |
|
| retry_delay | google.protobuf.Duration | Time to wait after a failed attempt before the next one is started. Unset on create means the
server default ( |
|
| state | CampaignState | Output only. Lifecycle state. |
|
| state_reason | string | Output only. Why the campaign is in its state when the server changed it on its own, e.g.
|
|
| statistics | CampaignStatistics | Output only. Progress of the campaign. |
|
| created_by | string | Output only. The user who created the campaign. |
|
| created_at | google.protobuf.Timestamp | Output only. Creation time. |
|
| modified_by | string | Output only. The user who last modified the campaign. |
|
| modified_at | google.protobuf.Timestamp | Output only. Last modification time, including state changes made by the server. |
|
| started_at | google.protobuf.Timestamp | Output only. When the campaign was first started. |
|
| stopped_at | google.protobuf.Timestamp | Output only. When the campaign last reached |
|
| completed_at | google.protobuf.Timestamp | Output only. When the campaign reached |
|
| campaign_common_services_config | CommonServicesConfig | Optional. Default Read LIVE, never snapshotted per call: whenever a campaign call is dispatched (its first
attempt and every retry) the server reads the campaign's CURRENT value. The effective
i.e. protobuf
What this means for the call-behaviour settings: almost every one of them (turn detection,
interruptions, response timing, DTMF, dictation, bot transfers, Example: with
every call of the campaign lets the callee interrupt the bot and, after 8 s of callee silence, plays the
answer of the intent Validation: the default itself is NOT checked when it is created or updated (it may be partial; the
calls may supply the rest). The effective configuration of each call is validated exactly as a
Pooled callers: when the server keeps callers warm between calls (a pooled, persistent caller), a call reuses an idle pooled caller only when its effective configuration is the same as the one that caller was deployed with, apart from the callee and the SIP headers. Calls of one campaign that do not set their own call-behaviour values can therefore share warm callers; a call with values of its own, and every call dispatched after an update that changed its effective configuration, cannot reuse a warm caller of another configuration and is placed by a caller of its own. Returned by Credentials: the credential-bearing fields (NLU credentials and tokens, gRPC certificates,
message broker and object store settings, callbacks, transcribe and synthesize request configs)
are stored like the |
|
| campaign_sip_caller_config | SipCallerConfig | Optional. Default Read LIVE at every dispatch and merged exactly like
Validation: what this default sets is checked when it is created or updated
( EXCEPT Returned by the same RPCs as |
|
| campaign_callers | string | repeated | Output only. Resource names ( ) of the callers of the
campaign: the callers that placed at least one attempt of one of its campaign calls
(CampaignCallAttempt.caller_name), whichever way the call was added. A scheduled campaign
call is placed by a caller too and counts; its ScheduledCaller is not a
Caller and is in CampaignCall.scheduled_caller_name instead. A caller that was
deleted is not listed (its name stays in the attempt history), and a caller that placed attempts of
several campaigns (a pooled caller can) is listed in each of them. Exactly the set
Calls.ListCallers returns with ListCallersRequest.campaign_name.
Order: by the start of the first attempt each caller placed for the campaign, oldest first, each name
once. Bounded: at most the first 1000 names; On Populated by |
| campaign_callers_truncated | bool | Output only. True when |
|
| calling_window | CampaignCallingWindow | Optional. When calls of the campaign may be started: weekly slots in an IANA time zone, see
CampaignCallingWindow. Unset (the default)
means at any time, as before this field existed. Settable on |
|
| outside_calling_window | bool | Output only. True while the campaign is |
Assigns the callers of an AddCallersToCampaign / AddScheduledCallersToCampaign request to a campaign. The calls are NOT started by the request itself but added to the campaign, which starts them under its max_parallel_calls limit.
The whole request is applied atomically: either the campaign (when new), every campaign call and every scheduled caller of the request are stored, or nothing is.
Effect per state of an EXISTING campaign: CREATED, RUNNING, STOPPING, STOPPED, HARD_STOPPING and HARD_STOPPED accept the calls as NOT_STARTED and keep their state (a stopped campaign runs them after ResumeCampaign; see start_mode for CREATED); COMPLETED accepts them and becomes RUNNING.
Errors, as gRPC status codes of the AddCallersToCampaign / AddScheduledCallersToCampaign RPC: NOT_FOUND for an unknown campaign_name / display_name or a campaign deleted while the request ran; INVALID_ARGUMENT for a campaign of another project, an invalid new_campaign (an output-only field set, a value out of range) or an invalid caller entry (the message names its index); ALREADY_EXISTS for a new_campaign.display_name used in the project; FAILED_PRECONDITION when the campaign would exceed the server's maximum number of calls per campaign.
The project of the campaign is the project of the enclosing request: AddCallersToCampaignRequest.vtsi_project_name / AddScheduledCallersToCampaignRequest.vtsi_project_name. It is where a new campaign is created, where display_name is resolved, and the project a campaign_name must belong to.
Every caller entry of the request is validated against its EFFECTIVE configuration, i.e. the campaign's campaign_common_services_config / campaign_sip_caller_config with the entry's own config merged over it (see Campaign), so an entry may leave out what the campaign supplies.
| Field | Type | Label | Description |
| campaign_name | string | Add the calls to this existing campaign. The format is: |
|
| new_campaign | Campaign | Create a new campaign with these settings, in the enclosing request's project, and add the
calls to it. Only |
|
| display_name | string | Add the calls to the existing campaign with this exact, case-sensitive display name, resolved
within the enclosing request's project
( |
|
| start_mode | CampaignStartMode | Whether the campaign starts dialling; see |
One call of a campaign. Every field is output only.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign call. The format is: |
|
| campaign_name | string | Resource name of the campaign. |
|
| position | int32 | Position of the call in the campaign, in the order calls were added, starting at 1. |
|
| state | CampaignCallState | State of the call. |
|
| phone_number | string | The callee: |
|
| source | CampaignCallSource | How the call was added. |
|
| scheduled_caller_name | string | For |
|
| scheduled_time | google.protobuf.Timestamp | For |
|
| attempts | int32 | Attempts started so far. |
|
| max_attempts | int32 | The attempt limit of this call: the campaign's CURRENT |
|
| caller_name | string | Caller of the current or last attempt. |
|
| call_name | string | Call of the current or last attempt. |
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | Current or last SIP status of the call. |
|
| sip_status_description | string | Description of the current or last SIP status of the call. |
|
| last_error | string | Why the last attempt failed, empty otherwise. |
|
| next_attempt_time | google.protobuf.Timestamp | For |
|
| first_attempt_time | google.protobuf.Timestamp | When the first attempt started. |
|
| last_attempt_time | google.protobuf.Timestamp | When the last attempt started. |
|
| finish_time | google.protobuf.Timestamp | When the call reached |
|
| created_at | google.protobuf.Timestamp | When the call was added to the campaign. |
|
| modified_at | google.protobuf.Timestamp | Last change of any field above. |
|
| attempt_history | CampaignCallAttempt | repeated | The attempts, oldest first. Populated only when requested
( |
One attempt of a campaign call.
| Field | Type | Label | Description |
| attempt_number | int32 | 1 for the first attempt. |
|
| caller_name | string | Resource name of the caller that placed the attempt, empty when starting it failed. |
|
| call_name | string | Resource name of the call of the attempt, empty when starting it failed. The format is: |
|
| start_time | google.protobuf.Timestamp | When the attempt was started. |
|
| end_time | google.protobuf.Timestamp | When the attempt ended. Unset while it is in progress. |
|
| outcome | CampaignCallAttemptOutcome | Outcome of the attempt. |
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | Last SIP status of the attempt's call. |
|
| sip_status_description | string | Description of the last SIP status of the attempt's call. |
|
| error_message | string | Why the attempt failed. Empty unless |
One campaign call a CancelCampaignCalls / RetryCampaignCalls request did not act on, and why. A refusal is a result, not an error.
| Field | Type | Label | Description |
| campaign_call_name | string | Resource name of the campaign call, as named in the request or as matched by its states. |
|
| state | CampaignCallState | State of the call when it was refused; |
|
| reason | string | Why, a stable kebab-case token: |
When the calls of a campaign may be started: a set of weekly slots, each a day of the week and a range of minutes of that day, in one time zone.
Effect: the campaign engine starts an attempt (a first attempt, a retry, or a due scheduled call) only while the current time, converted to time_zone, lies inside a slot. Outside every slot a RUNNING campaign stays RUNNING, reports Campaign.outside_calling_window = true and starts nothing; calls keep their state (NOT_STARTED / RETRY_PENDING) and are started from the next slot on, under max_parallel_calls, in their usual order. A call already started when a slot ends is NEVER ended by it and may run past the slot; its retry, if any, waits for the next slot. Statistics and the campaign's state machine are otherwise unaffected; stop, hard stop and resume work as without a window.
Validation (INVALID_ARGUMENT naming the problem, on CreateCampaign, UpdateCampaign, CampaignAssignment.new_campaign): time_zone must be a name of the IANA time zone database known to the server (e.g. Europe/Vienna, UTC; not an offset such as +02:00); at least one and at most 50 slots; each slot with a day other than CALLING_WINDOW_DAY_OF_WEEK_UNSPECIFIED, 0 <= start_minute < end_minute <= 1440. A slot cannot span midnight: split it into two slots on consecutive days. Slots may overlap or touch; the window is their union.
Local time: slot boundaries are wall-clock times in time_zone, so they follow daylight saving changes. A boundary that does not exist on a given day (the hour skipped when clocks go forward) takes effect at the first instant after it that exists; a boundary that occurs twice (the hour repeated when clocks go back) takes effect at its first occurrence.
| Field | Type | Label | Description |
| time_zone | string | Required. IANA time zone name in which the slots are read, e.g. |
|
| slots | CallingWindowSlot | repeated | Required. The weekly slots, 1 to 50. Order is irrelevant. |
| next_window_start | google.protobuf.Timestamp | Output only. The start of the next slot strictly after the moment the campaign was read, as an
absolute time (UTC); while inside a slot, the start of the slot after the current one ends (the end of
a run of overlapping or touching slots). Unset when the window has no future slot (cannot happen for a
valid window) and in requests. Computed when read, also when the campaign is not |
Filter of a campaign listing.
| Field | Type | Label | Description |
| states | CampaignState | repeated | Only campaigns in one of these states. Empty means every state. |
| display_name_contains | string | Only campaigns whose |
|
| display_name | string | Only the campaign whose |
|
| created_after | google.protobuf.Timestamp | Only campaigns created at or after this time ( |
|
| created_before | google.protobuf.Timestamp | Only campaigns created strictly before this time ( |
|
| created_by | string | Only campaigns whose |
|
| modified_since | google.protobuf.Timestamp | Only campaigns modified at or after this time ( |
Progress of a campaign. Every call of the campaign is counted in exactly one of not_started, in_progress, retry_pending, completed, failed and cancelled; their sum is total.
Read as the four buckets "completed / failed / in progress / not started" (e.g. 100 calls: 20 completed, 30 failed, 10 in progress, 40 not started):
completedfailed + cancelled (finished without completing; a hard stop or a cancelled schedule is reported separately in cancelled)in_progress + retry_pending (started at least once and not finished: a call waiting for its next attempt is still being worked on)not_startedBounds: every call counter is at most the campaign's number of calls, itself at most ONDEWO_VTSI_CAMPAIGN_MAX_CALLS (100000 by default); total_attempts and answering_machine_detected are at most that times the attempt limit (10 by default, plus the budgets added by RetryCampaignCalls), far below the int32 range. total_attempts, calls_retried and answering_machine_detected never decrease; the state buckets move as calls change state (RetryCampaignCalls moves calls out of failed / cancelled). The statistics are computed when read, from one consistent snapshot.
| Field | Type | Label | Description |
| campaign_name | string | Resource name of the campaign. |
|
| total | int32 | Number of calls in the campaign. |
|
| not_started | int32 | Calls with no attempt started yet ( |
|
| in_progress | int32 | Calls being started or running ( |
|
| retry_pending | int32 | Calls whose attempt failed and that wait for their next attempt. |
|
| completed | int32 | Calls that connected and ended normally. |
|
| failed | int32 | Calls that failed after their last attempt. |
|
| cancelled | int32 | Calls cancelled by a hard stop or by cancelling their scheduled caller. |
|
| total_attempts | int32 | Attempts started in total, over every call. |
|
| progress_percent | float | Share of calls that are finished (completed + failed + cancelled), 0 to 100. |
|
| scheduled_not_due | int32 | Of |
|
| calls_retried | int32 | Calls that needed more than one attempt ( |
|
| average_connected_duration | google.protobuf.Duration | Mean connected time of the campaign's FINISHED attempts that were connected: from the moment the
attempt's call reached |
|
| answering_machine_detected | int32 | Attempts whose call reported |
The request message for Campaigns.CancelCampaignCalls.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| campaign_call_names | string | repeated | The calls to cancel, by resource name ( ),
at most 1000, duplicates ignored. Each must be a call name of this campaign (a malformed name or one
of another campaign is INVALID_ARGUMENT). Empty with non-empty states means
every call in those states. |
| states | CampaignCallState | repeated | Cancel the calls in one of these states: only |
The response message for Campaigns.CancelCampaignCalls.
| Field | Type | Label | Description |
| campaign_name | string | Resource name of the campaign. |
|
| cancelled_campaign_call_names | string | repeated | The calls this request cancelled (now |
| refused | CampaignCallRefusal | repeated | The selected calls this request did not cancel, with the reason, by |
| remaining_count | int32 | With |
The request message for Campaigns.CloneCampaign.
The clone gets the source's campaign_common_services_config and campaign_sip_caller_config as they are stored, credentials included, so its calls behave as the source's calls would; change a setting of the clone afterwards with UpdateCampaign. A copied call keeps its own stored entry, whose own settings still win over the clone's defaults.
| Field | Type | Label | Description |
| source_name | string | Resource name of the source campaign. The format is: |
|
| source_display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the source AND of the clone: a campaign is only cloned within its project (its stored credentials never move to another project). The format is:
REQUIRED with source_display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
source_name: when set, it must be the project of the source (INVALID_ARGUMENT
otherwise). |
|
| new_display_name | string | Display name of the clone, unique within the project, at most 128 characters. Empty means
|
|
| include_calls | bool | Also copy the source's calls (see |
|
| call_states | CampaignCallState | repeated | With |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths of the returned clone to populate, exactly as CreateCampaignRequest.field_mask. |
|
| idempotency_key | string | Optional client idempotency key with the semantics of CreateCampaignRequest.idempotency_key (scoped to the project and to this RPC; a replayed clone carries no call defaults). |
The request message for Campaigns.CreateCampaign.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project in which to create the campaign. The format is: |
|
| campaign | Campaign | The campaign to create. Output-only fields must be unset. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| idempotency_key | string | Optional client idempotency key, with the semantics of
|
The request message for Campaigns.DeleteCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| force | bool | Optional. Delete also a campaign that is |
The response message for Campaigns.DeleteCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the deleted campaign. |
|
| deleted_campaign_call_count | int32 | How many campaign calls were deleted with it. |
|
| cancelled_scheduled_caller_count | int32 | How many pending scheduled callers of the campaign were cancelled. |
The request message for Campaigns.GetCampaignCall.
| Field | Type | Label | Description |
| name | string | Required. Resource name of the campaign call. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT; authorization is checked on its
project segment. |
|
| include_attempts | bool | Populate |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.GetCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.GetCampaignStatistics.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
The request message for Campaigns.HardStopCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.ListCampaignCalls.
| Field | Type | Label | Description |
| campaign_name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
campaign_name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| states | CampaignCallState | repeated | Only calls in one of these states. Empty means every state. |
| phone_number | string | Only calls to this callee (exact match on |
|
| page_size | int32 | Optional. Maximum calls per page. |
|
| page_token | string | optional | Optional. The |
| include_attempts | bool | Populate |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned
|
|
| phone_numbers | string | repeated | Only calls to one of these callees (exact match on |
| sources | CampaignCallSource | repeated | Only calls added in one of these ways. Empty means every source. An unknown value or
|
| finish_time_min | google.protobuf.Timestamp | Only calls that finished ( |
|
| finish_time_max | google.protobuf.Timestamp | Only calls that finished strictly before this time. Unset means no upper bound. When both are set,
|
|
| modified_since | google.protobuf.Timestamp | Only calls whose |
|
| min_attempts | int32 | Only calls with at least this many attempts started ( |
|
| campaign_call_names | string | repeated | Only these calls, by resource name ( ),
at most 1000. Each must be a call name of the request's campaign: a malformed name or one of
another campaign is rejected with INVALID_ARGUMENT; a well-formed name of the campaign
that names no call matches nothing. Empty means no constraint. |
The response message for Campaigns.ListCampaignCalls.
| Field | Type | Label | Description |
| campaign_calls | CampaignCall | repeated | The calls of this page, by |
| next_page_token | string | Token for the next page. Empty when there are no more results. |
The request message for Campaigns.ListCampaigns.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose campaigns to list. The format is: |
|
| filter | CampaignFilter | Optional. Narrows the listing. |
|
| page_size | int32 | Optional. Maximum campaigns per page. |
|
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| order_by | CampaignOrderBy | Optional. Order of the listing; unset means newest first ( |
The response message for Campaigns.ListCampaigns.
| Field | Type | Label | Description |
| campaigns | Campaign | repeated | The campaigns of this page, in the request's |
| next_page_token | string | Token for the next page. Empty when there are no more results. |
The request message for Campaigns.ResumeCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.RetryCampaignCalls.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| campaign_call_names | string | repeated | The calls to requeue, by resource name, at most 1000, duplicates ignored; same rules as
|
| states | CampaignCallState | repeated | Requeue the calls in one of these states: only |
| additional_attempts | int32 | Attempts each requeued call may make from now on, on top of the attempts it already made: its attempt
limit becomes |
|
| not_before | google.protobuf.Timestamp | Optional. The first new attempt starts no earlier than this time (and, with a
|
The response message for Campaigns.RetryCampaignCalls.
| Field | Type | Label | Description |
| campaign_name | string | Resource name of the campaign. |
|
| requeued_campaign_call_names | string | repeated | The calls this request requeued (now |
| refused | CampaignCallRefusal | repeated | The selected calls this request did not requeue, with the reason (see
|
| remaining_count | int32 | With |
|
| campaign_state | CampaignState | State of the campaign after the request (a |
The request message for Campaigns.StartCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.StopCampaign.
| Field | Type | Label | Description |
| name | string | Resource name of the campaign. The format is: |
|
| display_name | string | Exact, case-sensitive |
|
| vtsi_project_name | string | VTSI project of the campaign. The format is:
REQUIRED with display_name: empty or malformed is rejected with
INVALID_ARGUMENT, an unknown project with NOT_FOUND. Optional with
name: when set, it must be the project of the campaign
(INVALID_ARGUMENT otherwise). |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Campaigns.StreamCampaignStatus.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose campaigns to stream. The format is: |
|
| campaign_names | string | repeated | Only these campaigns (resource names). Empty, together with an empty
|
| campaign_display_names | string | repeated | Only the campaigns with these exact display names (in this project). A name that matches no
campaign yet matches a campaign created later under it. Combined with
|
| include_calls | bool | Also stream every campaign call that changes after the stream opened. The snapshot never
contains campaign calls; read them with |
|
| states | CampaignState | repeated | Only campaigns in one of these states. Empty means every state. Combined with
|
The response message for Campaigns.StreamCampaignStatus.
| Field | Type | Label | Description |
| campaigns | Campaign | repeated | Campaigns that changed (every matching campaign in the snapshot), with their statistics. The call
defaults |
| campaign_calls | CampaignCall | repeated | Campaign calls that changed, when |
| deleted_campaign_names | string | repeated | Campaigns deleted since the previous message. |
| snapshot | bool | True on the first message, which carries every matching campaign. |
|
| end_reason | string | Set on the last message when the server ended the stream, e.g. at the maximum stream
duration. Empty otherwise. Human-readable; branch on |
|
| end_reason_type | StreamEndReason | Set on the last message when the server ended the stream, next to |
The request message for Campaigns.UpdateCampaign.
| Field | Type | Label | Description |
| campaign | Campaign | The campaign to update, identified by |
|
| update_mask | google.protobuf.FieldMask | Required. Paths WITHOUT a The two call-default configs follow
For the Effect on calls: a changed default applies to every campaign call dispatched after the update, its
retries included; a call already running keeps the configuration it was started with, and an idle
pooled caller is reused only while a call's new effective configuration is the one that caller
runs. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
Day of the week of a CallingWindowSlot, in the window's time zone. Defined here rather than reusing google.type.DayOfWeek so that this file needs no further import in any generated client; the numbering is the same (ISO 8601, Monday = 1).
| Name | Number | Description |
| CALLING_WINDOW_DAY_OF_WEEK_UNSPECIFIED | 0 | Unspecified. Refused in a slot with |
| CALLING_WINDOW_DAY_OF_WEEK_MONDAY | 1 | Monday. |
| CALLING_WINDOW_DAY_OF_WEEK_TUESDAY | 2 | Tuesday. |
| CALLING_WINDOW_DAY_OF_WEEK_WEDNESDAY | 3 | Wednesday. |
| CALLING_WINDOW_DAY_OF_WEEK_THURSDAY | 4 | Thursday. |
| CALLING_WINDOW_DAY_OF_WEEK_FRIDAY | 5 | Friday. |
| CALLING_WINDOW_DAY_OF_WEEK_SATURDAY | 6 | Saturday. |
| CALLING_WINDOW_DAY_OF_WEEK_SUNDAY | 7 | Sunday. |
Outcome of one attempt of a campaign call.
| Name | Number | Description |
| CAMPAIGN_CALL_ATTEMPT_OUTCOME_UNSPECIFIED | 0 | Unspecified. |
| CAMPAIGN_CALL_ATTEMPT_OUTCOME_IN_PROGRESS | 1 | The attempt is being started or its call is running. |
| CAMPAIGN_CALL_ATTEMPT_OUTCOME_COMPLETED | 2 | The call connected and ended normally. |
| CAMPAIGN_CALL_ATTEMPT_OUTCOME_FAILED | 3 | Starting the call failed, or the call ended without being connected. |
| CAMPAIGN_CALL_ATTEMPT_OUTCOME_CANCELLED | 4 | Its call was ended by |
How a call was added to a campaign.
| Name | Number | Description |
| CAMPAIGN_CALL_SOURCE_UNSPECIFIED | 0 | Unspecified. |
| CAMPAIGN_CALL_SOURCE_CALLER | 1 | Added by |
| CAMPAIGN_CALL_SOURCE_SCHEDULED_CALLER | 2 | Added by |
State of one call of a campaign.
| Name | Number | Description |
| CAMPAIGN_CALL_STATE_UNSPECIFIED | 0 | Unspecified. |
| CAMPAIGN_CALL_STATE_NOT_STARTED | 1 | No attempt has been started yet (includes scheduled calls whose time has not come). |
| CAMPAIGN_CALL_STATE_DISPATCHING | 2 | A server replica is starting the call right now. |
| CAMPAIGN_CALL_STATE_IN_PROGRESS | 3 | The call was started and has not ended yet. |
| CAMPAIGN_CALL_STATE_RETRY_PENDING | 4 | An attempt failed and another one will be started at |
| CAMPAIGN_CALL_STATE_COMPLETED | 5 | The call was connected and ended normally. |
| CAMPAIGN_CALL_STATE_FAILED | 6 | The last attempt failed, or a failure that cannot succeed by repetition occurred. |
| CAMPAIGN_CALL_STATE_CANCELLED | 7 | Its running call was ended by |
Order of a ListCampaigns listing. Every order breaks ties by the campaign's resource name, ascending, so paging is stable.
| Name | Number | Description |
| CAMPAIGN_ORDER_BY_UNSPECIFIED | 0 | The default: |
| CAMPAIGN_ORDER_BY_CREATED_AT_DESC | 1 |
|
| CAMPAIGN_ORDER_BY_MODIFIED_AT_DESC | 2 |
|
| CAMPAIGN_ORDER_BY_DISPLAY_NAME_ASC | 3 |
|
Whether adding calls to a campaign also starts it.
Note: unlike most enums of this API, the zero value CAMPAIGN_START_MODE_UNSPECIFIED is not "no value" but a behaviour of its own (the default described below), which differs from both named values for an existing CREATED campaign. It keeps its released name for wire and source compatibility; send it (or leave the field unset) to get that default.
| Name | Number | Description |
| CAMPAIGN_START_MODE_UNSPECIFIED | 0 | The default: a NEW campaign is created |
| CAMPAIGN_START_MODE_START | 1 | Start the campaign: a new one is created |
| CAMPAIGN_START_MODE_DO_NOT_START | 2 | Do not start: a new campaign is created |
Lifecycle state of a campaign.
| Name | Number | Description |
| CAMPAIGN_STATE_UNSPECIFIED | 0 | Unspecified. |
| CAMPAIGN_STATE_CREATED | 1 | Created; calls may be added, nothing is dialled until |
| CAMPAIGN_STATE_RUNNING | 2 | Calls are being started, at most |
| CAMPAIGN_STATE_STOPPING | 3 |
|
| CAMPAIGN_STATE_STOPPED | 4 | Stopped (reached from |
| CAMPAIGN_STATE_HARD_STOPPING | 5 |
|
| CAMPAIGN_STATE_HARD_STOPPED | 6 | Hard stopped. No call is running. Can be resumed. |
| CAMPAIGN_STATE_COMPLETED | 7 | Every call of the campaign is completed, failed or cancelled. Adding calls to a completed
campaign makes it |
Why the SERVER ended a stream. Carried, next to the free-text end_reason, on the last message of Campaigns.StreamCampaignStatus (StreamCampaignStatusResponse.end_reason_type) and of Events.SubscribeVtsiEvents (SubscribeVtsiEventsResponse.end_reason_type). A stream ended by the client, by a gRPC status or by a broken connection carries no last message at all. Defined in this file because events.proto imports it and not the other way round. New values may be added: treat an unknown value like STREAM_END_REASON_UNSPECIFIED (reconnect).
| Name | Number | Description |
| STREAM_END_REASON_UNSPECIFIED | 0 | Not ended by the server (every message but the last one), or a server that predates this field
(then only |
| STREAM_END_REASON_MAX_DURATION | 1 | The server's maximum stream duration was reached. Reconnect (with the
|
| STREAM_END_REASON_CLIENT_TOO_SLOW | 2 | The client read too slowly and the server's buffer for the stream overflowed; events were
skipped ( |
| STREAM_END_REASON_SUBSCRIPTION_DELETED | 3 | The event subscription the stream was opened with was deleted. Do not reconnect with it. |
| STREAM_END_REASON_SUBSCRIPTION_DISABLED | 4 | The event subscription the stream was opened with was disabled. Reconnecting with it is refused
with |
| STREAM_END_REASON_PROJECT_DELETED | 5 | The project of the stream was deleted. Do not reconnect. |
| STREAM_END_REASON_SERVER_SHUTDOWN | 6 | The server replica serving the stream is shutting down. Reconnect (another replica serves it). |
ONDEWO VTSI API
Notifies other systems of VTSI events: calls, callers, listeners, scheduled callers, campaigns, VTSI projects, the project's Asterisk and softphone accounts. Every event is one value of VtsiEvent and is delivered as a VtsiEventMessage.
Two delivery paths: the server-streaming SubscribeVtsiEvents RPC, and WEBHOOKS (an HTTP request per event to a URL of the client's choice). Which events go to which webhooks is configured per project with EVENT SUBSCRIPTIONS.
Webhooks are best effort. Each event is sent to a webhook as at most ONDEWO_VTSI_WEBHOOK_MAX_ATTEMPTS HTTP requests (3 by default) with backoff between them; after the last one fails, the event is dropped for that webhook. Pending webhook requests live in the memory of the server replica that produced the event and are lost when it restarts. An overloaded server, or a webhook that keeps timing out, drops events rather than slowing calls down. The same event can arrive more than once (a request whose answer was lost is sent again): de-duplicate by event_id. Requests of one webhook can arrive out of order, because several server replicas send independently: order by resource_sequence per resource_name, then event_time. Events a webhook missed can be sent again from the journal with RedeliverWebhookEvents.
Webhook requests. One HTTP request per event, with the webhook's http_method (POST by default), the VtsiEventMessage as the body (proto3 JSON, original field names, UTF-8) and these headers, set by the server (a custom header can never use these names):
Content-Type: application/jsonUser-Agent: ondewo-vtsi/<server version>X-Ondewo-Vtsi-Event: the VtsiEvent name, e.g. VTSI_EVENT_CALL_CONNECTED (the decimal number for a value the server cannot name)X-Ondewo-Vtsi-Event-Id: the event_idX-Ondewo-Vtsi-Delivery-Attempt: the request's attempt number for this event, starting at 1 (a redelivery starts at 1 again)X-Ondewo-Vtsi-Webhook: the webhook's resource name, so one endpoint can serve several webhooksX-Ondewo-Vtsi-Signature: only when the webhook has a signing_secret: t=<unix seconds>,v1=<signature>, see Webhook.signing_secretX-Ondewo-Vtsi-Redelivery: true: only on requests sent by RedeliverWebhookEventsX-Ondewo-Vtsi-Test: true: only on requests sent by TestWebhookthen the webhook's custom_headers. A 2xx answer is a delivery; a 408, 425, 429 or 5xx answer, a timeout or a connection failure is retried; any other answer (a 3xx included: redirects are never followed) fails the event for that webhook at once.
Streams can be resumed. While a project has an open SubscribeVtsiEvents stream (and for ONDEWO_VTSI_EVENT_STREAM_RESUME_WINDOW_S, 1 h by default, after the last one closed) or an enabled event subscription, its events are also written to a short-lived journal (ONDEWO_VTSI_EVENT_JOURNAL_RETENTION_S, 24 h by default). A stream that reconnects with its last resume_token, or opens with a start_time, receives the events it missed, provided they are still in the journal; RedeliverWebhookEvents reads the same journal. Nothing else is persisted for redelivery, and events of a period in which the project had neither a stream nor an enabled subscription were never journaled.
Use the status RPCs (GetCampaign, ListCalls, the status streams) to reconcile.
Custom header values and signing secrets are write-only. They are returned as ******** by every RPC and are never logged or put on an event.
Names. Event subscriptions are named projects/<project_uuid>/event_subscriptions/<subscription_uuid>, webhooks projects/<project_uuid>/webhooks/<webhook_uuid>, projects projects/<project_uuid>/project. Display names of webhooks and subscriptions are free text of at most 128 characters, NOT unique (two webhooks may share one) and may be empty; an empty display name stays empty (no default is generated). Resources are always addressed by resource name.
Partial responses. Every RPC returning a VtsiEventSubscription or a Webhook, the listings and the two Delete* RPCs (paths of their response) accept a field_mask with the convention of GetCampaignRequest.field_mask: paths relative to the returned message, name always populated, unset or empty returns every field, an unknown path or a path below a repeated or map field is INVALID_ARGUMENT naming it, applied after the masking of secrets so a masked value stays ********. A mask never changes what the RPC does.
Authorization (when enforced): the subscription and webhook RPCs, TestWebhook and RedeliverWebhookEvents need PROJECT_DEVELOPER or a higher role (PROJECT_ADMIN) on the project, or SERVER_ADMIN: a webhook is a standing outbound integration, i.e. administration. SubscribeVtsiEvents reads the project's events and needs PROJECT_EXECUTOR or higher.
Errors are gRPC status codes: INVALID_ARGUMENT for a malformed resource name (also one of another collection), a request field out of range, a resource of another project than the request's vtsi_project_name, an output-only field that was set, an unknown update_mask or field_mask path; NOT_FOUND for an unknown project, subscription or webhook; PERMISSION_DENIED with authorization enforced for a project on which the caller holds no sufficient role (an unknown project included, so it is not answered NOT_FOUND); UNAUTHENTICATED for a request without a valid credential while authorization is enforced; FAILED_PRECONDITION for a disabled subscription or webhook where the RPC needs an enabled one; ABORTED when a concurrent change of the same subscription or webhook won (nothing was written; retry); OUT_OF_RANGE for a start_time older than the journal's retention; RESOURCE_EXHAUSTED when the server has no free stream slot (ONDEWO_VTSI_EVENT_STREAM_MAX_CONCURRENT, 16 per replica by default); UNAVAILABLE when event streams are not available on the replica reached (retry).
rpc CreateVtsiEventSubscription (CreateVtsiEventSubscriptionRequest) returns (VtsiEventSubscription)
Creates an event subscription: which events of the project are delivered to which
webhooks. A subscription without webhooks is usable by SubscribeVtsiEvents. Takes effect
within a few seconds on every server replica. Not idempotent: a repeat creates a second subscription.
Emits VTSI_EVENT_EVENT_SUBSCRIPTION_CREATED.
Errors: NOT_FOUND for an unknown project or webhook; INVALID_ARGUMENT
for a malformed vtsi_project_name, no events and all_events unset,
events together with all_events, VTSI_EVENT_UNSPECIFIED or a
reserved value in events or excluded_events, an event both in
events and excluded_events, a webhook or a campaign name of another project, a
malformed webhook or campaign name, more entries than a list allows, a display_name over 128
characters, an output-only field that was set or an unknown field_mask path. A campaign
named in campaign_names need not exist (it may be created later or deleted since).
rpc GetVtsiEventSubscription (GetVtsiEventSubscriptionRequest) returns (VtsiEventSubscription)
Returns an event subscription. Read-only.
Errors: INVALID_ARGUMENT for an empty or malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or subscription.
rpc UpdateVtsiEventSubscription (UpdateVtsiEventSubscriptionRequest) returns (VtsiEventSubscription)
Updates the fields named in update_mask: display_name,
events, all_events, excluded_events,
resource_name_prefixes, campaign_names, webhook_names,
disabled. Takes effect within a few seconds on every server replica; disabling it ends
the open SubscribeVtsiEvents streams that name it (STREAM_END_REASON_SUBSCRIPTION_DISABLED).
The result is validated as a whole, as on create. Emits
VTSI_EVENT_EVENT_SUBSCRIPTION_UPDATED (attribute updated_fields).
Errors: INVALID_ARGUMENT for a malformed event_subscription.name, an empty
mask, an unknown or output-only path, a result that would be invalid on create, or an unknown
field_mask path; NOT_FOUND for an unknown project, subscription or webhook;
ABORTED when a concurrent update won.
rpc DeleteVtsiEventSubscription (DeleteVtsiEventSubscriptionRequest) returns (DeleteVtsiEventSubscriptionResponse)
Deletes an event subscription. Open SubscribeVtsiEvents streams that name it
end with end_reason set (STREAM_END_REASON_SUBSCRIPTION_DELETED). Its webhooks
are not deleted. Emits VTSI_EVENT_EVENT_SUBSCRIPTION_DELETED.
Errors: INVALID_ARGUMENT for an empty or malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or subscription (also on a
repeated delete).
rpc ListVtsiEventSubscriptions (ListVtsiEventSubscriptionsRequest) returns (ListVtsiEventSubscriptionsResponse)
Lists the event subscriptions of a project, newest first, paged.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, a negative
page_size, a foreign page_token or an unknown field_mask path;
NOT_FOUND for an unknown project.
rpc CreateWebhook (CreateWebhookRequest) returns (Webhook)
Creates a webhook: an HTTP(S) endpoint that receives one request per event, with a JSON
body holding the VtsiEventMessage (proto3 JSON, original field names; see the service
documentation for the headers). A webhook receives events only once an event subscription names it.
Not idempotent. Emits VTSI_EVENT_WEBHOOK_CREATED.
Errors: NOT_FOUND for an unknown project; INVALID_ARGUMENT for a
malformed vtsi_project_name, a URL that is not http(s), has no host, carries user
information (use a custom header for credentials) or exceeds 2048 characters; for a reserved or
malformed header name, a header value with a line break, too many or too long headers; for a timeout
outside 1 s to 30 s; for a signing_secret that is not 32 to 256 printable ASCII characters
without whitespace (or is the mask ********); for a display_name over 128
characters, an output-only field that was set or an unknown field_mask path.
rpc GetWebhook (GetWebhookRequest) returns (Webhook)
Returns a webhook. Custom header values and the signing secret are masked. Read-only.
Errors: INVALID_ARGUMENT for an empty or malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or webhook.
rpc UpdateWebhook (UpdateWebhookRequest) returns (Webhook)
Updates the fields named in update_mask: display_name,
url, http_method, custom_headers, disabled,
timeout, signing_secret. custom_headers replaces the whole map; a
value equal to the mask ******** keeps the stored value of that header, so a
Get-modify-Update round trip does not overwrite secrets with the mask. signing_secret
follows the same rule (see Webhook.signing_secret for rotation).
Moving the webhook to another origin (scheme, host or port of url) while custom
headers are stored requires re-sending custom_headers in the same request, with
their REAL values (or an empty map to drop them): the stored values are never carried to a new
origin, and an update that leaves custom_headers out of the mask or sends the mask
value ******** for any header is rejected with INVALID_ARGUMENT naming
the headers. A new path on the same origin keeps the stored values. The signing secret is kept on a
new origin (it is never sent, only used to sign). Takes effect within a few seconds on every replica.
Emits VTSI_EVENT_WEBHOOK_UPDATED (attribute
updated_fields).
Errors: INVALID_ARGUMENT for a malformed webhook.name, an empty mask, an
unknown or output-only path, a value invalid on create, the origin rule above, or an unknown
field_mask path; NOT_FOUND for an unknown project or webhook;
ABORTED when a concurrent update won.
rpc DeleteWebhook (DeleteWebhookRequest) returns (DeleteWebhookResponse)
Deletes a webhook and removes it from every event subscription; requests of it still queued are
dropped. Emits VTSI_EVENT_WEBHOOK_DELETED.
Errors: INVALID_ARGUMENT for an empty or malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project or webhook (also on a
repeated delete).
rpc ListWebhooks (ListWebhooksRequest) returns (ListWebhooksResponse)
Lists the webhooks of a project, newest first, paged. Custom header values and signing secrets are masked.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, a negative
page_size, a foreign page_token or an unknown field_mask path;
NOT_FOUND for an unknown project.
rpc TestWebhook (TestWebhookRequest) returns (TestWebhookResponse)
Sends one test event to a webhook now, without retries, and reports the outcome: a
VTSI_EVENT_WEBHOOK_TEST event, or, with sample_event, an event shaped like that
real event (see TestWebhookRequest.sample_event). The request carries every header of a real
delivery (signature included) plus X-Ondewo-Vtsi-Test: true. Works on a disabled webhook
too, and ignores an open circuit. The test event is not journaled, not counted in
delivery_statistics and not delivered anywhere else.
Errors: INVALID_ARGUMENT for an empty or malformed name, or a
sample_event that is reserved or unknown to the server; NOT_FOUND for an
unknown project or webhook. A failed delivery is reported in the response, not as an error status.
rpc RedeliverWebhookEvents (RedeliverWebhookEventsRequest) returns (RedeliverWebhookEventsResponse)
Sends events from the server's event journal to a webhook again: the events named by
event_ids, or the events of a time window that the webhook's event subscriptions select
(optionally narrowed by filter). Each event is queued for the webhook like a new delivery
(same body and event_id, so a receiver de-duplicates as usual, attempt numbers from 1,
retries and backoff as configured, header X-Ondewo-Vtsi-Redelivery: true) on the replica
that serves the request, oldest first. Best effort like every webhook delivery: the RPC answers once the
events are queued, not delivered; follow delivery_statistics or the receiver.
Only what the journal still holds can be sent: events older than
ONDEWO_VTSI_EVENT_JOURNAL_RETENTION_S (24 h by default) and events of a period in which the
project had neither an open stream nor an enabled event subscription are not available and are counted
in not_in_journal_count when named. At most 1000 events are queued per request
(not_enqueued_count and next_start_time say how to continue). Not idempotent: a
repeat sends the events again. Emits no event.
Errors: INVALID_ARGUMENT for an empty or malformed webhook_name, neither or
both of event_ids and start_time, more than 1000 event_ids, an
event_id that is not a uuid, end_time without start_time or not
after it, a window longer than the journal retention, or an invalid filter (as on
SubscribeVtsiEvents); NOT_FOUND for an unknown project or webhook;
FAILED_PRECONDITION for a disabled webhook (enable it first; TestWebhook works
on a disabled one); OUT_OF_RANGE for a start_time older than the journal
retention; RESOURCE_EXHAUSTED when the server's webhook queue cannot take a single
event now (retry later).
rpc SubscribeVtsiEvents (SubscribeVtsiEventsRequest) returns (stream SubscribeVtsiEventsResponse)
Streams the events of a project as they happen, selected either by a named event
subscription or by an inline filter. An empty message is sent as a keep-alive after
ONDEWO_VTSI_EVENT_STREAM_KEEPALIVE_S (15 s by default) without an event. After a
disconnect, pass the last resume_token to continue where the stream stopped, or open
with a start_time to replay from a point in time;
events older than the server's retention (24 h by default) are no longer available, and
the journal records a project's events only while it has an open stream (and for 1 h
after the last one closed) or an enabled event subscription. A stream sees events of other
server replicas from at most a few seconds after it opened. A client that stops reading for
longer than the server's stall timeout (ONDEWO_VTSI_STREAM_STALL_TIMEOUT_S, 30 s by
default) is disconnected; one that reads so slowly that the stream's buffer
(ONDEWO_VTSI_EVENT_STREAM_BUFFER_SIZE, 1000 events) overflows gets a last message with
STREAM_END_REASON_CLIENT_TOO_SLOW; reconnect with the resume_token in both
cases.
The server ends the stream with a last message carrying end_reason,
end_reason_type and a final resume_token: at the maximum stream duration
ONDEWO_VTSI_EVENT_STREAM_MAX_DURATION_S (3600 s by default), on server shutdown, when the
client is too slow, when the named subscription is deleted or disabled, and when the project is deleted
(after delivering VTSI_EVENT_VTSI_PROJECT_DELETED). While authorization is enforced, the
caller's role is re-checked periodically; a revoked role ends the RPC with
PERMISSION_DENIED, an expired credential with UNAUTHENTICATED.
Errors: NOT_FOUND for an unknown project or subscription;
INVALID_ARGUMENT for a malformed vtsi_project_name, a malformed or foreign
event_subscription_name (of another project), a malformed resume_token or
one issued for another project, resume_token together with start_time, a
start_time in the future, or an invalid filter (a reserved or unspecified
event, an event both selected and excluded, all_events with events, a malformed
campaign name or one of another project, more than 50 prefixes or campaign names);
OUT_OF_RANGE for a start_time older than the journal retention;
FAILED_PRECONDITION for a disabled subscription; RESOURCE_EXHAUSTED
when the server has no free stream slot; UNAVAILABLE when the replica reached serves no
event streams (retry).
The request message for Events.CreateVtsiEventSubscription.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with
NOT_FOUND. |
|
| event_subscription | VtsiEventSubscription | The subscription to create. Output-only fields ( |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Events.CreateWebhook.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with
NOT_FOUND. |
|
| webhook | Webhook | The webhook to create. Output-only fields ( |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Events.DeleteVtsiEventSubscription.
| Field | Type | Label | Description |
| name | string | Resource name of the subscription. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The response message for Events.DeleteVtsiEventSubscription.
| Field | Type | Label | Description |
| name | string | Resource name of the deleted subscription. |
The request message for Events.DeleteWebhook.
| Field | Type | Label | Description |
| name | string | Resource name of the webhook. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The response message for Events.DeleteWebhook.
| Field | Type | Label | Description |
| name | string | Resource name of the deleted webhook. |
|
| detached_subscription_count | int32 | How many event subscriptions referenced it and no longer do. |
The request message for Events.GetVtsiEventSubscription.
| Field | Type | Label | Description |
| name | string | Resource name of the subscription. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Events.GetWebhook.
| Field | Type | Label | Description |
| name | string | Resource name of the webhook. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Events.ListVtsiEventSubscriptions.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with
NOT_FOUND. |
|
| page_size | int32 | Optional. |
|
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned
|
The response message for Events.ListVtsiEventSubscriptions.
| Field | Type | Label | Description |
| event_subscriptions | VtsiEventSubscription | repeated | The subscriptions of this page, newest first. |
| next_page_token | string | Token for the next page. Empty when there are no more results. |
The request message for Events.ListWebhooks.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with
NOT_FOUND. |
|
| page_size | int32 | Optional. |
|
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
The response message for Events.ListWebhooks.
| Field | Type | Label | Description |
| webhooks | Webhook | repeated | The webhooks of this page, newest first. Custom header values are masked. |
| next_page_token | string | Token for the next page. Empty when there are no more results. |
The request message for Events.RedeliverWebhookEvents.
| Field | Type | Label | Description |
| webhook_name | string | Required. Resource name of the webhook to send the events to; it must be enabled. The format is: |
|
| event_ids | string | repeated | The events to send again, by |
| start_time | google.protobuf.Timestamp | Start of a time window, inclusive, on the event's |
|
| end_time | google.protobuf.Timestamp | End of the window, exclusive. Unset means now. Must be after |
|
| filter | VtsiEventFilter | Optional. Narrows the selection further (AND), with the semantics of the inline filter of
|
The response message for Events.RedeliverWebhookEvents.
| Field | Type | Label | Description |
| enqueued_count | int32 | Events queued for the webhook by this request. |
|
| not_in_journal_count | int32 | Named |
|
| not_enqueued_count | int32 | Selected events that were NOT queued: beyond the per-request bound of 1000, or because the
server's webhook queue ( |
|
| next_start_time | google.protobuf.Timestamp | For a window with |
The request message for Events.SubscribeVtsiEvents.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with
NOT_FOUND. |
|
| event_subscription_name | string | Select events exactly as this subscription does: its |
|
| filter | VtsiEventFilter | An inline filter. |
|
| resume_token | string | optional | Optional. The |
| start_time | google.protobuf.Timestamp | Optional. Replay from the server's event journal: the stream first delivers the journaled events of
the project that occurred at or after this time and match the selector, oldest first (journal order),
then continues live without a gap or a duplicate at the seam. Mutually exclusive with
|
The response message for Events.SubscribeVtsiEvents.
| Field | Type | Label | Description |
| events | VtsiEventMessage | repeated | Events, oldest first. Empty on a keep-alive. |
| resume_token | string | Pass this as |
|
| dropped_event_count | int64 | Events this stream skipped because the client read too slowly (the server buffer was full). |
|
| end_reason | string | Set on the last message when the server ended the stream. Empty otherwise. Human-readable; branch on
|
|
| end_reason_type | StreamEndReason | Set on the last message when the server ended the stream, next to |
The request message for Events.TestWebhook.
| Field | Type | Label | Description |
| name | string | Resource name of the webhook. The format is:
Empty or malformed is rejected with INVALID_ARGUMENT. |
|
| sample_event | VtsiEvent | Optional. Send an event shaped like this real event instead of |
The response message for Events.TestWebhook.
| Field | Type | Label | Description |
| success | bool | True when the endpoint answered with a 2xx status. |
|
| http_status_code | int32 | HTTP status of the answer, 0 when none was received. |
|
| latency | google.protobuf.Duration | Time until the answer or the failure. |
|
| error_message | string | Why the request failed (no header value, no URL query). Empty on success. |
|
| event_id | string |
|
The request message for Events.UpdateVtsiEventSubscription.
| Field | Type | Label | Description |
| event_subscription | VtsiEventSubscription | The subscription, identified by |
|
| update_mask | google.protobuf.FieldMask | Required. Paths without prefix: |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Events.UpdateWebhook.
| Field | Type | Label | Description |
| webhook | Webhook | The webhook, identified by |
|
| update_mask | google.protobuf.FieldMask | Required. Paths without prefix: |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
Selects events for SubscribeVtsiEvents without a stored subscription, and narrows a RedeliverWebhookEvents window. Every set field narrows the selection (AND); the entries of one list are alternatives (OR).
| Field | Type | Label | Description |
| events | VtsiEvent | repeated | Only these events. Empty means every event (unlike |
| resource_name_prefixes | string | repeated | Only events whose |
| campaign_names | string | repeated | Only events of these campaigns. Same semantics as
|
| all_events | bool | Every event, explicitly; equivalent to an empty |
|
| excluded_events | VtsiEvent | repeated | Events NOT to select, subtracted from the selection of |
One event. This is the body of a webhook request (proto3 JSON with the original field names) and the unit of the SubscribeVtsiEvents stream.
| Field | Type | Label | Description |
| event_id | string | Unique id of the event (uuid). A retried webhook request carries the same id, and a call status change observed by several server replicas carries one id, so it identifies a duplicate. |
|
| event | VtsiEvent | The event. |
|
| vtsi_project_name | string | VTSI project of the event. The format is: |
|
| resource_name | string | The resource the event is about (call, caller, listener, scheduled caller, campaign, campaign call, project, softphone account, IVR menu). |
|
| event_time | google.protobuf.Timestamp | When the event happened. |
|
| sip_status_type | ondewo.sip.SipStatus.StatusType | optional | SIP status after the change, for call and campaign call events. |
| sip_status_description | string | SIP status description, where the event has one. |
|
| previous_sip_status_type | ondewo.sip.SipStatus.StatusType | optional | SIP status before the change, for |
| call_name | string | The call the event is about or produced, where there is one. |
|
| campaign_name | string | The campaign the event belongs to, where known. |
|
| description | string | Human-readable description, e.g. why something failed. |
|
| attributes | VtsiEventMessage.AttributesEntry | repeated | Further event-specific values, e.g. |
| campaign_statistics | CampaignStatistics | Statistics of the campaign, on campaign events. |
|
| resource_sequence | int64 | Increases with every change of |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Which events of a project are delivered to which webhooks.
| Field | Type | Label | Description |
| name | string | Output only. Resource name. The format is: |
|
| vtsi_project_name | string | Output only. VTSI project of the subscription. The format is: |
|
| display_name | string | Human-readable name, at most 128 characters. NOT unique within the project; may be empty, and an empty display name stays empty (no default is generated). Updatable. |
|
| events | VtsiEvent | repeated | The events to deliver. Required unless |
| all_events | bool | Deliver every event, including events added in later versions, except
|
|
| resource_name_prefixes | string | repeated | Deliver only events whose |
| webhook_names | string | repeated | Webhooks of the same project the events are sent to. Empty means none (the subscription is
then only useful to |
| disabled | bool |
|
|
| created_by | string | Output only. The user who created the subscription. |
|
| created_at | google.protobuf.Timestamp | Output only. Creation time. |
|
| modified_by | string | Output only. The user who last modified the subscription. |
|
| modified_at | google.protobuf.Timestamp | Output only. Last modification time. |
|
| campaign_names | string | repeated | Deliver only events whose |
| excluded_events | VtsiEvent | repeated | Events NOT to deliver, subtracted from the selection of |
An HTTP(S) endpoint that receives one request per event.
| Field | Type | Label | Description |
| name | string | Output only. Resource name. The format is: |
|
| vtsi_project_name | string | Output only. VTSI project of the webhook. The format is: |
|
| display_name | string | Human-readable name, at most 128 characters. NOT unique within the project; may be empty, and an empty display name stays empty (no default is generated). Updatable. |
|
| url | string | Required. http:// or https:// URL, at most 2048 characters, without user information. Any host is allowed. Updatable. |
|
| http_method | WebhookHttpMethod | HTTP method. Unset means POST. Updatable. |
|
| custom_headers | Webhook.CustomHeadersEntry | repeated | Optional extra request headers, e.g. |
| disabled | bool |
|
|
| timeout | google.protobuf.Duration | Request timeout. Unset means the server default (5 s); allowed 1 s to 30 s. Updatable. |
|
| delivery_statistics | WebhookDeliveryStatistics | Output only. Delivery counters. |
|
| created_by | string | Output only. The user who created the webhook. |
|
| created_at | google.protobuf.Timestamp | Output only. Creation time. |
|
| modified_by | string | Output only. The user who last modified the webhook. |
|
| modified_at | google.protobuf.Timestamp | Output only. Last modification time. |
|
| signing_secret | string | Optional. Secret with which the server SIGNS every request to this webhook, so the receiver can verify
that a request comes from this VTSI server and was not changed. WRITE-ONLY: every RPC returns
Signature: each request carries the header
where
To verify: recompute it over the raw body as received (before any JSON parsing), compare in constant
time with each Rotation: |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Delivery counters of a webhook. Approximate: summed over every server replica and flushed every few seconds.
| Field | Type | Label | Description |
| delivered_count | int64 | Requests answered with a 2xx status. |
|
| failed_count | int64 | Events given up after the last retry. |
|
| dropped_count | int64 | Events dropped without a request because the server's webhook queue was full, or because the webhook's circuit was open after repeated failures. |
|
| last_delivery_time | google.protobuf.Timestamp | Time of the last request. |
|
| last_success_time | google.protobuf.Timestamp | Time of the last 2xx answer. |
|
| last_http_status_code | int32 | HTTP status of the last answer, 0 when no answer was received. |
|
| last_error | string | Why the last request failed, e.g. |
Every event VTSI reports. Values are grouped by resource in blocks of 100; numbers are stable.
Attributes. VtsiEventMessage.attributes carries the event-specific values listed at each value below; a key whose value is unknown is left out, and keys not listed are never sent. Formats: counts and numbers are base-10 integers without separators (3); booleans are true / false; times are RFC 3339 in UTC with a numeric offset (2026-10-11T12:00:00+00:00, fractional seconds possible); resource names are complete (projects/<project_uuid>/callers/<caller_uuid>); updated_fields is a comma-separated list of update_mask paths without spaces (display_name,url); a campaign state / previous_state is the CampaignState name WITHOUT its CAMPAIGN_STATE_ prefix (RUNNING). An event carries at most 20 attributes and a value at most 256 characters (longer values are cut); description and sip_status_description at most 1024 characters.
Call status attributes, on every event derived from a change of a call's SIP status (marked "call status attributes" below): caller_name, listener_name or scheduled_caller_name (the resource that owns the call, the one that applies) and phone_number (the callee or caller number in clear, where recorded; treat it as personal data). Such an event also sets call_name, sip_status_type, previous_sip_status_type (unset for a new call record), sip_status_description and resource_sequence (the call's status change number), and has a deterministic event_id, so replicas observing the same change report one event.
Campaign call attributes, on the VTSI_EVENT_CAMPAIGN_CALL_* events: attempt_number (attempts started so far), phone_number (the callee in clear) and caller_name (caller of the current or last attempt). They also set call_name, campaign_name, sip_status_type, sip_status_description and resource_sequence; never campaign_statistics.
| Name | Number | Description |
| VTSI_EVENT_UNSPECIFIED | 0 | Unspecified. Never emitted; refused in a subscription. |
| VTSI_EVENT_CALL_CREATED | 100 | A call record was created: an outbound call was placed, or a listener received a call. Call status attributes. |
| VTSI_EVENT_CALL_INITIATED | 101 | The call is ringing: |
| VTSI_EVENT_CALL_CONNECTED | 102 | The call was answered: |
| VTSI_EVENT_CALL_FINISHED | 103 | The call ended normally: |
| VTSI_EVENT_CALL_FAILED | 104 | The call failed: |
| VTSI_EVENT_CALL_TRANSFER_INITIATED | 105 | A transfer of the call started: Attributes: |
| VTSI_EVENT_CALL_TRANSFERRED | 106 |
Attributes: |
| VTSI_EVENT_CALL_TRANSFER_FAILED | 107 | A transfer failed and the call was KEPT with the bot: Attributes: as |
| VTSI_EVENT_CALL_HANGUP_INITIATED | 108 | A hang-up started: |
| VTSI_EVENT_CALL_ANSWERING_MACHINE_DETECTED | 109 | An answering machine was detected: |
| VTSI_EVENT_CALL_STOPPED | 110 | The call was ended by |
| VTSI_EVENT_CALL_SIP_STATUS_CHANGED | 111 | The SIP status of the call changed (emitted for EVERY change, in addition to the specific
events above). |
| VTSI_EVENT_CALL_PARTICIPANT_INVITED | 112 | A participant was invited into the call ( Attributes (the participant attributes, also on 113 to 115): |
| VTSI_EVENT_CALL_PARTICIPANT_JOINED | 113 | An invited participant answered and joined the call. The participant attributes (see 112);
|
| VTSI_EVENT_CALL_PARTICIPANT_FAILED | 114 | An invited participant never joined (busy, no answer, unavailable, the call ended, ...). The
participant attributes (see 112), with |
| VTSI_EVENT_CALL_PARTICIPANT_LEFT | 115 | A joined participant left the call. The participant attributes (see 112), with
|
| VTSI_EVENT_CALL_BOT_MUTED | 116 | The bot of the call was muted. Attributes: |
| VTSI_EVENT_CALL_BOT_UNMUTED | 117 | The bot of the call was unmuted. Attributes as |
| VTSI_EVENT_CALL_LISTENING_PAUSED | 118 | The bot of the call stopped listening to the caller. Attributes as
|
| VTSI_EVENT_CALL_LISTENING_RESUMED | 119 | The bot of the call listens to the caller again. Attributes as
|
| VTSI_EVENT_CALL_AUDIO_STREAM_CONNECTED | 120 | A live call audio stream ( |
| VTSI_EVENT_CALL_AUDIO_STREAM_DISCONNECTED | 121 | A live call audio stream disconnected. Attributes as
|
| VTSI_EVENT_CALL_UPDATED | 122 | The stored record of the call was updated ( |
| VTSI_EVENT_CALL_DTMF_SENT | 123 | DTMF keys were queued on the call ( |
| VTSI_EVENT_CALL_WARM_INTRO_STARTED | 124 | The warm intro of a WARM transfer started: the target answered and an intro bot greets it. Attributes (the warm intro attributes, also on 125 to 128): |
| VTSI_EVENT_CALL_WARM_INTRO_ACCEPTED | 125 | The target of a warm intro accepted. |
| VTSI_EVENT_CALL_WARM_INTRO_DECLINED | 126 | The target of a warm intro declined; the call stays with the bot, which tells the caller. The warm intro attributes (see 124). |
| VTSI_EVENT_CALL_WARM_INTRO_NO_DECISION | 127 | The target of a warm intro gave no decision in time; the call stays with the bot. The warm intro attributes (see 124). |
| VTSI_EVENT_CALL_WARM_INTRO_TARGET_UNAVAILABLE | 128 | The target of a warm intro answered but is gone, or the intro could not run with
|
| VTSI_EVENT_CALL_WARM_TRANSFER_OUTCOME_NOTICE_UNDELIVERED | 129 | WARNING: the outcome of a warm intro (a decline, no decision, an unreachable target) could not be handed to
the call's bot, so the caller may not be told; |
| VTSI_EVENT_CALLER_STARTED | 200 | A caller started and placed its call. No attributes; sets |
| VTSI_EVENT_CALLER_START_FAILED | 201 | A caller could not be started; |
| VTSI_EVENT_CALLER_STOPPED | 202 | A caller was stopped ( |
| VTSI_EVENT_CALLER_DELETED | 203 | A caller was deleted. No attributes. |
| VTSI_EVENT_CALLER_RESTARTED | 204 | A caller's container was restarted by the server. Attributes: |
| VTSI_EVENT_CALLER_UNHEALTHY | 205 | A caller's container was found not running or unhealthy. Attribute |
| VTSI_EVENT_CALLER_HEALTHY | 206 | A caller reported unhealthy is healthy again (its container answers its health check, or its
restart succeeded). Best effort: reported by the replica that reported it unhealthy. No
attributes; sets |
| VTSI_EVENT_CALLER_UPDATED | 207 | The stored configuration of a caller was updated ( |
| VTSI_EVENT_LISTENER_STARTED | 300 | A listener started and is waiting for calls. No attributes; sets |
| VTSI_EVENT_LISTENER_START_FAILED | 301 | A listener could not be started; |
| VTSI_EVENT_LISTENER_STOPPED | 302 | A listener was stopped ( |
| VTSI_EVENT_LISTENER_DELETED | 303 | A listener was deleted. No attributes. |
| VTSI_EVENT_LISTENER_RESTARTED | 304 | A listener's container was restarted by the server. Attribute |
| VTSI_EVENT_LISTENER_UNHEALTHY | 305 | A listener's container was found not running or unhealthy. Attribute |
| VTSI_EVENT_LISTENER_HEALTHY | 306 | A listener reported unhealthy is healthy again (its container answers its health check, or its restart succeeded). Best effort: reported by the replica that reported it unhealthy. No attributes. |
| VTSI_EVENT_LISTENER_UPDATED | 307 | The stored configuration of a listener was updated ( |
| VTSI_EVENT_SCHEDULED_CALLER_CREATED | 400 | A scheduled caller was created. Attribute |
| VTSI_EVENT_SCHEDULED_CALLER_FIRED | 401 | A scheduled caller fired: its call was started ( |
| VTSI_EVENT_SCHEDULED_CALLER_FAILED | 402 | A scheduled caller failed for good; |
| VTSI_EVENT_SCHEDULED_CALLER_CANCELLED | 403 | A scheduled caller was cancelled. No attributes. |
| VTSI_EVENT_SCHEDULED_CALLER_RETRY_SCHEDULED | 404 | A scheduled caller failed and will be retried. Attributes: outside a campaign |
| VTSI_EVENT_SCHEDULED_CALLER_UPDATED | 405 | A scheduled caller was updated: its stored configuration (an update RPC of scheduled callers, where
the server offers one) or, for a scheduled call of a campaign requeued by
|
| VTSI_EVENT_CAMPAIGN_CREATED | 500 | A campaign was created ( |
| VTSI_EVENT_CAMPAIGN_UPDATED | 501 | A campaign's settings were updated. Attribute |
| VTSI_EVENT_CAMPAIGN_DELETED | 502 | A campaign was deleted. Attributes: |
| VTSI_EVENT_CAMPAIGN_STARTED | 503 | A campaign was started. Attributes: |
| VTSI_EVENT_CAMPAIGN_STOP_REQUESTED | 504 |
|
| VTSI_EVENT_CAMPAIGN_STOPPED | 505 | A campaign is stopped: it reached |
| VTSI_EVENT_CAMPAIGN_HARD_STOP_REQUESTED | 506 |
|
| VTSI_EVENT_CAMPAIGN_HARD_STOPPED | 507 | A campaign is hard stopped. Attributes as |
| VTSI_EVENT_CAMPAIGN_RESUMED | 508 | A campaign was resumed ( |
| VTSI_EVENT_CAMPAIGN_COMPLETED | 509 | Every call of a campaign is finished. Attributes: |
| VTSI_EVENT_CAMPAIGN_PROGRESS | 510 | The statistics of a running campaign changed (throttled, at most once per
|
| VTSI_EVENT_CAMPAIGN_MAX_PARALLEL_CALLS_CHANGED | 511 |
|
| VTSI_EVENT_CAMPAIGN_CALLS_ADDED | 512 | Calls were added to a campaign (an |
| VTSI_EVENT_CAMPAIGN_CALL_DISPATCHED | 513 | An attempt of a campaign call was started ( |
| VTSI_EVENT_CAMPAIGN_CALL_COMPLETED | 514 | A campaign call completed. Campaign call attributes. |
| VTSI_EVENT_CAMPAIGN_CALL_FAILED | 515 | A campaign call failed after its last attempt. Campaign call attributes; |
| VTSI_EVENT_CAMPAIGN_CALL_RETRY_SCHEDULED | 516 | An attempt of a campaign call failed and the call will be retried. Campaign call attributes;
|
| VTSI_EVENT_CAMPAIGN_CALL_CANCELLED | 517 | A campaign call was cancelled (hard stop, cancelled scheduled caller, or
|
| VTSI_EVENT_CAMPAIGN_AUTO_STOPPED | 518 | The SERVER stopped a campaign (it is now |
| VTSI_EVENT_CAMPAIGN_CALL_REQUEUED | 519 | A FAILED or CANCELLED campaign call was put back into the queue by |
| VTSI_EVENT_CAMPAIGN_CALLING_WINDOW_OPENED | 520 | A RUNNING campaign with a |
| VTSI_EVENT_CAMPAIGN_CALLING_WINDOW_CLOSED | 521 | A RUNNING campaign with a |
| VTSI_EVENT_VTSI_PROJECT_UPDATED | 601 | A VTSI project was updated. No attributes. |
| VTSI_EVENT_VTSI_PROJECT_DELETED | 602 | A VTSI project was deleted. Delivered to the webhooks subscribed to it at the moment of the deletion (their configuration is captured before it is deleted with the project) and to the project's open streams, which then end. It is the last event of the project. No attributes. |
| VTSI_EVENT_VTSI_PROJECT_DEPLOYED | 603 | A VTSI project was deployed. No attributes. |
| VTSI_EVENT_VTSI_PROJECT_DEPLOY_FAILED | 604 | Deploying a VTSI project failed; |
| VTSI_EVENT_VTSI_PROJECT_UNDEPLOYED | 605 | A VTSI project was undeployed. No attributes. |
| VTSI_EVENT_VTSI_PROJECT_STATUS_CHANGED | 606 | The |
| VTSI_EVENT_VTSI_PROJECT_UNDEPLOY_FAILED | 607 | Undeploying a VTSI project failed; |
| VTSI_EVENT_ASTERISK_DEPLOYED | 700 | The project's Asterisk container was deployed. Attribute |
| VTSI_EVENT_ASTERISK_REMOVED | 701 | The project's Asterisk container was removed. Attribute |
| VTSI_EVENT_ASTERISK_RESTARTED | 702 | The project's Asterisk was restarted. Attribute |
| VTSI_EVENT_ASTERISK_CONFIG_RELOADED | 703 | The project's Asterisk configuration was reloaded in place. Attribute |
| VTSI_EVENT_ASTERISK_UNHEALTHY | 704 | The project's Asterisk container is not running or unhealthy. Attribute
|
| VTSI_EVENT_ASTERISK_HEALTHY | 705 | The project's Asterisk container is healthy again. Attribute |
| VTSI_EVENT_ASTERISK_TRUNK_REGISTERED | 706 | The SIP trunk registered with the carrier. Attribute |
| VTSI_EVENT_ASTERISK_TRUNK_UNREGISTERED | 707 | The SIP trunk is no longer registered (rejected, unregistered or failed); attributes
|
| VTSI_EVENT_ASTERISK_DEPLOY_FAILED | 708 | Deploying the project's Asterisk container failed; |
| VTSI_EVENT_ASTERISK_RESTART_FAILED | 709 | Restarting the project's Asterisk failed; |
| VTSI_EVENT_ASTERISK_CONFIG_RELOAD_FAILED | 710 | Reloading the project's Asterisk configuration in place failed; |
| VTSI_EVENT_SOFTPHONE_ACCOUNT_CREATED | 800 | A softphone account was created. No attributes. |
| VTSI_EVENT_SOFTPHONE_ACCOUNT_UPDATED | 801 | A softphone account was updated. Attribute |
| VTSI_EVENT_SOFTPHONE_ACCOUNT_DELETED | 802 | A softphone account was deleted. Attribute |
| VTSI_EVENT_SOFTPHONE_CREDENTIALS_ROTATED | 803 | The credentials of a softphone account were rotated. Attribute |
| VTSI_EVENT_SOFTPHONE_CERTIFICATE_REVOKED | 804 | A softphone certificate was revoked (resource_name: the certificate). Attribute
|
| VTSI_EVENT_WEBHOOK_TEST | 900 | Sent by |
| VTSI_EVENT_WEBHOOK_CREATED | 901 | A webhook was created (resource_name: the webhook). Never carries a header value or the signing secret. No attributes. |
| VTSI_EVENT_WEBHOOK_UPDATED | 902 | A webhook was updated; attribute |
| VTSI_EVENT_WEBHOOK_DELETED | 903 | A webhook was deleted. No attributes. |
| VTSI_EVENT_EVENT_SUBSCRIPTION_CREATED | 904 | An event subscription was created (resource_name: the subscription). No attributes. |
| VTSI_EVENT_EVENT_SUBSCRIPTION_UPDATED | 905 | An event subscription was updated; attribute |
| VTSI_EVENT_EVENT_SUBSCRIPTION_DELETED | 906 | An event subscription was deleted. No attributes. |
| VTSI_EVENT_IVR_MENU_CREATED | 1001 | An IVR menu was created ( |
| VTSI_EVENT_IVR_MENU_UPDATED | 1002 | An IVR menu was updated; attribute |
| VTSI_EVENT_IVR_MENU_DELETED | 1003 | An IVR menu was deleted. |
| VTSI_EVENT_IVR_MENU_PUBLISHED | 1004 | A revision of an IVR menu was published and its phone numbers route to it. |
| VTSI_EVENT_IVR_MENU_PUBLISH_FAILED | 1005 | A publish of an IVR menu failed; the previous published revision stays live. |
| VTSI_EVENT_IVR_MENU_TESTED | 1006 | A test call of an IVR menu finished; attributes |
HTTP method of a webhook request.
Note: the zero value WEBHOOK_HTTP_METHOD_UNSPECIFIED is not "no method" but means POST, the default. It keeps its released name for wire and source compatibility; a webhook written with it is stored and sent as POST, and Webhook.http_method then reads back WEBHOOK_HTTP_METHOD_POST.
| Name | Number | Description |
| WEBHOOK_HTTP_METHOD_UNSPECIFIED | 0 | Unspecified: |
| WEBHOOK_HTTP_METHOD_POST | 1 | POST. |
| WEBHOOK_HTTP_METHOD_PUT | 2 | PUT. |
ONDEWO VTSI API
Manages the IVR MENUS of a VTSI project: keypad (DTMF) menus that a caller dialling one of the project's inbound phone numbers goes through BEFORE a bot or a person takes the call ("press 1 for sales, 2 for billing"). A menu is a graph of nodes (IvrNode): MENU (a prompt and one key), PLAY (a prompt), SCHEDULE (opening hours), ROUTE (to a listener, the listener queue, a softphone account or a phone number), GOTO_MENU (into another menu of the project) and HANGUP. The project's Asterisk executes a menu as generated dialplan: a menu keeps running while VTSI is down, and no user text ever reaches the dialplan.
Lifecycle: CreateIvrMenu / UpdateIvrMenu save a DRAFT revision (every save is validated; ValidateIvrMenu returns every issue at once). Nothing routes until PublishIvrMenu renders a revision into the project's Asterisk and switches the menu's inbound_phone_numbers to it; a failed publish leaves the previous published revision live. A caller inside a menu during a publish finishes on the revision they entered. TestIvrMenu runs a scripted test call through the published revision inside the Asterisk, and GetIvrMenuTest reports it.
A bot reached through a menu learns the path: the headers X-ondewo-ivr-menu (the menu's display name, sanitized), X-ondewo-ivr-path (the option labels taken, e.g. main:1>billing:2) and X-ondewo-dialed-number become parameters of the bot's SIP context, and the call records them in Call.ivr_menu_display_name / Call.ivr_path, and the menu's resource name in Call.ivr_menu_name. Labels therefore must never carry a secret.
Deployment switch: with ONDEWO_VTSI_IVR_ACTIVE=false (the default) every RPC of this service answers UNIMPLEMENTED with reason=ivr-disabled. VtsiProject.ivr_menus_enabled switches the routes of one project off, and VtsiProject.feature_availability.ivr says whether a project can use IVR menus at all (a project whose Asterisk is not run by this server cannot: Publish is refused with FAILED_PRECONDITION reason=asterisk-not-local).
Limits: ONDEWO_VTSI_IVR_MAX_NODES nodes per menu (100), ONDEWO_VTSI_IVR_MAX_MENUS_PER_PROJECT menus (50), ONDEWO_VTSI_IVR_MAX_PROMPT_BYTES per uploaded prompt (1048576), ONDEWO_VTSI_IVR_MAX_PROMPTS_TOTAL_BYTES per menu (52428800), ONDEWO_VTSI_IVR_MAX_HOPS node entries per call across menus (50; the call is then hung up).
Every RPC about ONE menu accepts its resource name; Get and Delete also accept its display name, unique within a project and resolved within vtsi_project_name, which is then REQUIRED.
Authorization (Keycloak auth mode ENFORCE, as Campaigns): PROJECT_DEVELOPER or higher for Create, Update, Delete, Publish, Clone and Test; PROJECT_EXECUTOR or higher for Get, List, Validate, ListRevisions, GetDialplan and GetIvrMenuTest. Every change emits its VTSI_EVENT_IVR_MENU_* event; a request with validate_only emits nothing.
rpc CreateIvrMenu (CreateIvrMenuRequest) returns (IvrMenu)
Creates an IVR menu as a DRAFT (revision 1). Nothing routes until it is published.
Errors: INVALID_ARGUMENT with the code and path of the FIRST error issue (see
IvrMenuIssue; ValidateIvrMenu returns all of them), a set output-only field, or a
malformed idempotency_key; ALREADY_EXISTS for a display name the project already has;
RESOURCE_EXHAUSTED beyond ONDEWO_VTSI_IVR_MAX_MENUS_PER_PROJECT;
NOT_FOUND for an unknown project.
rpc GetIvrMenu (GetIvrMenuRequest) returns (IvrMenu)
Returns an IVR menu at its current revision.
rpc UpdateIvrMenu (UpdateIvrMenuRequest) returns (IvrMenu)
Updates the fields named in update_mask and saves a new DRAFT revision (+1) when a graph field
changed. layout alone is saved without a new revision.
Errors: as CreateIvrMenu, plus ABORTED reason=revision-mismatch when
expected_revision is set and not the current revision.
rpc DeleteIvrMenu (DeleteIvrMenuRequest) returns (DeleteIvrMenuResponse)
Deletes an IVR menu and all its revisions; its bound phone numbers fall back to the project's routing without a menu at once.
Errors: FAILED_PRECONDITION reason=menu-published for a PUBLISHED menu with bound
phone numbers unless force; FAILED_PRECONDITION reason=menu-referenced
while a GOTO_MENU node of another menu names it; NOT_FOUND for an unknown menu.
rpc ListIvrMenus (ListIvrMenusRequest) returns (ListIvrMenusResponse)
Lists the IVR menus of a project.
rpc ValidateIvrMenu (ValidateIvrMenuRequest) returns (ValidateIvrMenuResponse)
Runs every check of Create, Update and Publish on the given draft and returns ALL issues with their node paths. Writes nothing and emits nothing.
rpc PublishIvrMenu (PublishIvrMenuRequest) returns (IvrMenu)
Renders the given (or the current) revision into the project's Asterisk: prompts synthesized or copied,
the dialplan reloaded and read back, every prompt checked, and only then the bound phone numbers switched to
it. Any failure restores the previous dialplan, leaves the previous published revision live and answers the
menu with IVR_MENU_STATE_PUBLISH_FAILED and state_message. Re-validates first,
because the allowlist, the softphone accounts or the listeners may have changed since the save. Binding or
unbinding a phone number ends no call.
Errors: INVALID_ARGUMENT for an error issue; ABORTED
reason=revision-mismatch for a revision that is not current; FAILED_PRECONDITION
reason=asterisk-not-local, reason=project-not-deployed or
reason=ivr-entry-hook-missing (a project whose own dialplan lacks the IVR entry hook);
FAILED_PRECONDITION reason=target-menu-not-published when a GOTO_MENU node names a
menu that is not published.
rpc CloneIvrMenu (CloneIvrMenuRequest) returns (IvrMenu)
Copies a menu (its current or a given revision) into a new DRAFT menu without phone numbers.
rpc ListIvrMenuRevisions (ListIvrMenuRevisionsRequest) returns (ListIvrMenuRevisionsResponse)
Lists the saved revisions of a menu, newest first.
rpc TestIvrMenu (TestIvrMenuRequest) returns (IvrMenuTest)
Starts a test call through the PUBLISHED revision of a menu and returns at once with the test in
IVR_MENU_TEST_STATE_RUNNING; poll GetIvrMenuTest for the result. The test call runs
INSIDE the project's Asterisk: a local channel enters the menu, presses the scripted keys and records the
nodes it passes. No SIP container, no bot and no NLU session take part, and every ROUTE node is a stub that
records the target and hangs up: a test NEVER dials a listener, a softphone or a phone number.
Errors: FAILED_PRECONDITION reason=menu-not-published,
reason=asterisk-not-local or reason=project-not-deployed;
INVALID_ARGUMENT for invalid steps or a max_duration_s above
ONDEWO_VTSI_IVR_TEST_MAX_DURATION_S.
rpc GetIvrMenuTest (GetIvrMenuTestRequest) returns (IvrMenuTest)
Returns a test started by TestIvrMenu: its state and the path traversed so far. A test is kept
for 24 hours after it finished, then NOT_FOUND.
rpc GetIvrMenuDialplan (GetIvrMenuDialplanRequest) returns (GetIvrMenuDialplanResponse)
Returns the rendered dialplan of one revision, read-only, for support.
Errors: FAILED_PRECONDITION reason=revision-not-rendered for a revision that is no
longer (or was never) in the project's Asterisk.
Request to clone an IVR menu. The clone has no inbound_phone_numbers, default_inbound false and the state DRAFT.
| Field | Type | Label | Description |
| name | string | Required. The source menu: |
|
| display_name | string | Required. The clone's display name, unique within the project. |
|
| revision | int64 | The source revision; |
|
| idempotency_key | string | Optional client idempotency key, as |
Request to create an IVR menu
| Field | Type | Label | Description |
| vtsi_project_name | string | Required. The project: |
|
| ivr_menu | IvrMenu | Required. The menu; its output-only fields must be unset. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| idempotency_key | string | Optional client idempotency key with the semantics of CreateCampaignRequest.idempotency_key: at most 255 printable ASCII characters, scoped to the project and to this RPC, kept 24 hours. |
|
| validate_only | bool | Optional. Run every check and return the would-be menu; write and emit nothing. |
Request to delete an IVR menu
| Field | Type | Label | Description |
| name | string | |
|
| display_name | string | The display name, resolved within |
|
| vtsi_project_name | string | The project, required with |
|
| force | bool |
|
Response to the deletion of an IVR menu
| Field | Type | Label | Description |
| unrouted_phone_numbers | int32 | How many phone numbers now fall back to the project's routing without a menu. |
|
| default_inbound_removed | bool | Whether the deleted menu was the project's |
Request to get the rendered dialplan of an IVR menu revision
| Field | Type | Label | Description |
| name | string | Required. |
|
| revision | int64 |
|
Response with the rendered dialplan of an IVR menu revision
| Field | Type | Label | Description |
| dialplan | string | The rendered dialplan contexts of that revision |
|
| prompt_files | string | repeated | Absolute paths of its prompt files inside the Asterisk container |
Request to get an IVR menu
| Field | Type | Label | Description |
| name | string | |
|
| display_name | string | The display name, resolved within |
|
| vtsi_project_name | string | The project: . Required with
display_name; checked against name when both are set. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response, as |
Request to get a test call of an IVR menu
| Field | Type | Label | Description |
| name | string | Required. The test, as |
An IVR menu of a VTSI project. The graph fields (entry_node_id, nodes, language_code, t2s_pipeline_id) are versioned by revision; the routing fields (inbound_phone_numbers, default_inbound, disabled) take effect on the next publish.
| Field | Type | Label | Description |
| name | string | Output only. Resource name of the menu. The format is: |
|
| display_name | string | Required. Unique within the project, 1 to 128 characters. Sent sanitized to a bot as
|
|
| description | string | At most 1000 characters. |
|
| entry_node_id | string | Required. The node a caller enters first; must name a node of |
|
| nodes | IvrNode | repeated | Required. The nodes, 1 to |
| language_code | string | Language of the text prompts for text-to-speech, e.g. |
|
| t2s_pipeline_id | string | Text-to-speech pipeline of the text prompts. Empty: the project's default pipeline. |
|
| inbound_phone_numbers | string | repeated | E.164 phone numbers (DIDs) of the project's SIP trunk routed into this menu once it is published. A number can be bound by one menu only. |
| default_inbound | bool | Whether this menu takes every inbound number no menu names. At most one menu per project. |
|
| disabled | bool |
|
|
| state | IvrMenuState | Output only. Publication state. |
|
| revision | int64 | Output only. The current revision, +1 per accepted graph change; 1 after create. |
|
| published_revision | int64 | Output only. The published revision; |
|
| state_message | string | Output only. Why the last publish failed (bounded text without personal data); empty otherwise. |
|
| layout | IvrMenu.LayoutEntry | repeated | Canvas positions of the nodes for the editor, keyed by |
| created_by | string | Output only. The user who created the menu. |
|
| created_at | google.protobuf.Timestamp | Output only. Creation time. |
|
| modified_by | string | Output only. The user who saved the current revision. |
|
| modified_at | google.protobuf.Timestamp | Output only. When the current revision was saved. |
|
| published_at | google.protobuf.Timestamp | Output only. When the published revision was published. |
|
| published_by | string | Output only. The user who published it. |
|
| node_stats | IvrMenu.NodeStatsEntry | repeated | Output only, and only with the |
| node_stats_updated_at | google.protobuf.Timestamp | Output only, with |
| Field | Type | Label | Description |
| key | string |
|
|
| value | IvrNodePosition |
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | IvrNodeStats |
|
Filter of ListIvrMenus; every set field must match
| Field | Type | Label | Description |
| display_name_contains | string | Case-insensitive substring of |
|
| state | IvrMenuState |
|
|
| inbound_phone_number | string | Exact E.164 number of |
One problem of an IVR menu draft
| Field | Type | Label | Description |
| severity | IvrMenuIssueSeverity | Whether the issue blocks a save or a publish |
|
| code | string | Stable kebab-case token, e.g. |
|
| path | string | Path of the offending field, e.g. |
|
| node_id | string | The node of the issue; empty for an issue of the whole menu. |
|
| message | string | English description for logs; a user interface translates by |
One saved revision of an IVR menu
| Field | Type | Label | Description |
| revision | int64 | The revision number |
|
| snapshot | IvrMenu | The graph fields as saved at that revision (no |
|
| modified_by | string | Who saved it |
|
| modified_at | google.protobuf.Timestamp | When it was saved |
|
| published | bool | Whether it was ever published |
|
| live | bool | Whether it is still rendered in the Asterisk (it is published, or a caller may still be inside it) |
A test call of an IVR menu, started by TestIvrMenu. Leaves no call record and no NLU session.
| Field | Type | Label | Description |
| name | string | Resource name of the test. The format is: |
|
| test_id | string | The test id: 32 lower-case hex characters. |
|
| state | IvrMenuTestState | The state of the test |
|
| revision | int64 | The revision traversed (the published revision when the test started) |
|
| path | IvrTraversalStep | repeated | The nodes entered so far, in order |
| final_node_id | string | The last node entered; empty before the first |
|
| route | string | What the terminal ROUTE stub recorded, |
|
| error_message | string | Why the test failed; empty otherwise |
|
| started_at | google.protobuf.Timestamp | When the test call started |
|
| finished_at | google.protobuf.Timestamp | When it ended; unset while it runs |
One node of an IVR menu. Which fields apply depends on type; a field set on a node type it does not apply to is refused with INVALID_ARGUMENT.
| Field | Type | Label | Description |
| node_id | string | Required. |
|
| display_name | string | At most 128 characters: the node's name in the editor and its label in |
|
| type | IvrNodeType | Required. The kind of node. |
|
| prompt | IvrPrompt | MENU (required) and PLAY (required): played when the node is entered. |
|
| options | IvrOption | repeated | MENU: one option per key, 1 to 12. |
| timeout_s | uint32 | MENU: seconds to wait for a key after the prompt; |
|
| max_retries | uint32 | MENU: how often an invalid key or a timeout replays the prompt before
|
|
| timeout_next_node_id | string | MENU: the node after the last retry without a key; empty: hang up. |
|
| invalid_next_node_id | string | MENU: the node after the last invalid key; empty: |
|
| next_node_id | string | PLAY: the node after the prompt. SCHEDULE: the node inside the opening hours. |
|
| route_target | CallTarget | ROUTE (required): |
|
| schedule | CampaignCallingWindow | SCHEDULE (required): the opening hours, as a time zone and weekly slots. |
|
| closed_next_node_id | string | SCHEDULE: the node outside the opening hours. |
|
| busy_next_node_id | string | ROUTE: the node when the target does not answer or is busy; empty: a busy announcement, then hang up. |
|
| reprompt | IvrPrompt | MENU: played on an invalid key or a timeout before the prompt is repeated; unset: none. |
|
| goto_menu_name | string | GOTO_MENU (required): another menu of the same project, . The caller enters
that menu's PUBLISHED revision at its entry node; the hop limit counts across menus, so a cycle of menus
ends after ONDEWO_VTSI_IVR_MAX_HOPS entries. Naming the menu itself is refused. |
Position of a node on the editor canvas
| Field | Type | Label | Description |
| x | double | Horizontal position |
|
| y | double | Vertical position |
Traffic counters of one node, in IvrMenu.node_stats. Approximate.
| Field | Type | Label | Description |
| published_revision_entries | int64 | Entries into the node in the published revision since it was published. |
|
| total_entries | int64 | Entries into the node over every revision still rendered in the Asterisk. |
One key of a MENU node
| Field | Type | Label | Description |
| dtmf | string | Required. Exactly one of |
|
| next_node_id | string | Required. The node the key leads to. |
|
| label | string | At most 64 characters: the edge label in the editor and in |
An audio prompt. Exactly one source must be set.
| Field | Type | Label | Description |
| text | string | Text, 1 to 1000 characters, synthesized by VTSI with text-to-speech at publish (cached by content). |
|
| wav | bytes | A RIFF WAV file: PCM 16 bit mono at 8000 or 16000 Hz (not transcoded), at most
|
|
| asterisk_sound | string | A stock Asterisk sound from the allowlist in |
|
| sha256 | string | Output only. SHA-256 (hex) of the rendered audio; empty before the first publish. |
One step of the key script of a test call
| Field | Type | Label | Description |
| wait_ms | uint32 | Milliseconds to wait after the previous step (for the first step: after the call entered the menu) before
|
|
| dtmf | string | The keys to press, |
One node entry of a test call
| Field | Type | Label | Description |
| node_id | string | The node entered (of the menu named by |
|
| input | string | What led out of the node: the key, |
|
| next_node_id | string | The node entered next; empty for the last node |
|
| entered_at | google.protobuf.Timestamp | When the node was entered, to the millisecond (the Asterisk's clock) |
|
| ivr_menu_name | string | The menu of |
Request to list the revisions of an IVR menu
| Field | Type | Label | Description |
| name | string | Required. |
|
| page_size | int32 | Optional. Maximum revisions per page. |
|
| page_token | string | optional | Optional. The |
Response to list the revisions of an IVR menu
| Field | Type | Label | Description |
| revisions | IvrMenuRevision | repeated | The revisions of this page, newest first |
| next_page_token | string | Token of the next page; empty on the last page. |
Request to list the IVR menus of a project
| Field | Type | Label | Description |
| vtsi_project_name | string | Required. The project: |
|
| filter | IvrMenuFilter | Optional. Narrows the listed menus. |
|
| page_size | int32 | Optional. Maximum menus per page. |
|
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| order_by | IvrMenuOrderBy | Optional. Sort order. |
Response to list the IVR menus of a project
| Field | Type | Label | Description |
| ivr_menus | IvrMenu | repeated | The menus of this page. |
| next_page_token | string | Token of the next page; empty on the last page. |
Request to publish an IVR menu
| Field | Type | Label | Description |
| name | string | Required. |
|
| revision | int64 |
|
Request to start a test call through the published revision of an IVR menu
| Field | Type | Label | Description |
| name | string | Required. |
|
| steps | IvrTestStep | repeated | The key script, at most 20 steps. Empty: no key is pressed. |
| max_duration_s | uint32 | Seconds the test call may last after its last step; |
Request to update an IVR menu
| Field | Type | Label | Description |
| ivr_menu | IvrMenu | Required. The menu, identified by |
|
| update_mask | google.protobuf.FieldMask | Required. Paths within |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response, as |
|
| validate_only | bool | Optional. Run every check and return the would-be menu; write and emit nothing. |
|
| expected_revision | int64 | Optional. |
Request to validate an IVR menu draft
| Field | Type | Label | Description |
| vtsi_project_name | string | Required. The project: |
|
| ivr_menu | IvrMenu | Required. The draft as edited; |
Response to validate an IVR menu draft
| Field | Type | Label | Description |
| issues | IvrMenuIssue | repeated | Every issue found |
| valid | bool | Whether no issue is an ERROR |
Severity of an IvrMenuIssue
| Name | Number | Description |
| IVR_MENU_ISSUE_SEVERITY_UNSPECIFIED | 0 | Not set |
| IVR_MENU_ISSUE_SEVERITY_ERROR | 1 | Create, Update and Publish refuse the menu |
| IVR_MENU_ISSUE_SEVERITY_WARNING | 2 | Accepted, but probably not intended |
Sort order of ListIvrMenus
| Name | Number | Description |
| IVR_MENU_ORDER_BY_UNSPECIFIED | 0 | Same as |
| IVR_MENU_ORDER_BY_DISPLAY_NAME | 1 | By display name, ascending |
| IVR_MENU_ORDER_BY_MODIFIED_AT_DESC | 2 | By |
Publication state of an IVR menu
| Name | Number | Description |
| IVR_MENU_STATE_UNSPECIFIED | 0 | Not set |
| IVR_MENU_STATE_DRAFT | 1 | The current revision is not published ( |
| IVR_MENU_STATE_PUBLISHED | 2 | The current revision is published |
| IVR_MENU_STATE_PUBLISH_FAILED | 3 | The last publish failed; the previous published revision, if any, stays live |
State of a test call of an IVR menu
| Name | Number | Description |
| IVR_MENU_TEST_STATE_UNSPECIFIED | 0 | Not set |
| IVR_MENU_TEST_STATE_RUNNING | 1 | The test call is still in the menu |
| IVR_MENU_TEST_STATE_SUCCEEDED | 2 | The test call reached a terminal node (ROUTE stub or HANGUP) |
| IVR_MENU_TEST_STATE_TIMED_OUT | 3 | The test call was still in a menu after |
| IVR_MENU_TEST_STATE_FAILED | 4 | The test call could not run or ended unexpectedly; |
The kind of an IVR node
| Name | Number | Description |
| IVR_NODE_TYPE_UNSPECIFIED | 0 | Not allowed |
| IVR_NODE_TYPE_MENU | 1 | A prompt and one key ( |
| IVR_NODE_TYPE_PLAY | 2 | A prompt, then |
| IVR_NODE_TYPE_ROUTE | 3 | Leave the menu to |
| IVR_NODE_TYPE_HANGUP | 4 | Hang up (terminal) |
| IVR_NODE_TYPE_SCHEDULE | 5 | Opening hours: |
| IVR_NODE_TYPE_GOTO_MENU | 6 | Continue in another published menu of the project ( |
ONDEWO VTSI API
Reads, follows, exports and erases the CONTAINER LOGS VTSI captures from the per-call ondewo-sip / ondewo-csi containers of a VTSI project. Entries are served from the VTSI database, not from the docker daemon, so the logs of a container that was already removed stay readable until retention or DeleteCallLogs removes them.
Secrets are redacted server-side in every RPC that returns log text (StreamCallLogs, ListCallLogs, ExportCallLogs): the project's SIP passwords, the call-control secrets and, unless the operator disabled it (ONDEWO_VTSI_LOG_MASK_IDENTIFIERS, default true), identifiers such as phone numbers. The redaction runs when the entry is read, so a redaction rule added later also applies to entries captured before it.
Errors are reported as gRPC status codes: INVALID_ARGUMENT for a malformed name, filter, cursor, page_token or field_mask (each naming the field); NOT_FOUND for an unknown project or log stream; RESOURCE_EXHAUSTED when the server already serves its maximum of concurrent streams or exports; UNAVAILABLE when the database cannot be reached.
Authorization (only when the server enforces it, see the Projects service): a caller without a credential is UNAUTHENTICATED; every RPC of this service requires PROJECT_DEVELOPER or higher on the project (PROJECT_EXECUTOR and PROJECT_USER are refused, because log text can carry conversation content), otherwise PERMISSION_DENIED, also for an unknown project. A long-running StreamCallLogs or ExportCallLogs re-checks the caller's role periodically and ends when it was revoked or the credential expired.
rpc StreamCallLogs (StreamCallLogsRequest) returns (stream StreamCallLogsResponse)
Streams the container logs of the ondewo-sip / ondewo-csi containers of a VTSI project as
they are captured, in the manner of docker logs --follow. The stream replays
tail_lines historical entries and then follows. It stays open until the capture
of every matching log stream has terminated, until the client disconnects, or until the
server-side maximum stream duration is reached.
Entries are served from the VTSI database rather than from the docker daemon, so a container that has already been removed still streams. Secrets are redacted server-side.
Limits: at most ONDEWO_VTSI_LOG_STREAM_MAX_DURATION_S (default 3600) seconds per
stream, after which the server sends a final message with end_reason_code =
LOG_STREAM_END_REASON_MAX_DURATION and a resume_token to reconnect with; at most
ONDEWO_VTSI_LOG_MAX_CONCURRENT_STREAMS (default 16) concurrent streams per server,
beyond which a new stream is RESOURCE_EXHAUSTED. New entries are polled every
ONDEWO_VTSI_LOG_STREAM_POLL_INTERVAL_S (default 0.5) seconds. The server sends NO
keep-alive message: a quiet container sends nothing, so a client must not treat silence as a dead
stream (use HTTP/2 keep-alive pings to detect a dead connection).
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, a filter
carrying start_time or end_time, an after_seq with a filter
that does not resolve to exactly one log stream, or a malformed resume_token;
NOT_FOUND for an unknown project; RESOURCE_EXHAUSTED as above. When the
caller's role is revoked or its credential expires during the stream, the server sends a final
message (LOG_STREAM_END_REASON_PERMISSION_REVOKED /
LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED, with a resume_token) and ends
the stream with PERMISSION_DENIED / UNAUTHENTICATED.
Authorization: PROJECT_DEVELOPER or higher on the project.
rpc ListCallLogs (ListCallLogsRequest) returns (ListCallLogsResponse)
Returns a bounded, filtered page of captured container log entries. Supports a time window, severity filtering, a regular expression, a plain-text search and cursor paging in both directions for infinite scrolling. Secrets are redacted server-side.
No time window is required: without start_time / end_time the window is
the newest max_lines matching entries (or, with oldest_first, the oldest
after the cursor). With include_counts the response also carries the number of matching
entries per severity.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, an invalid
or over-long regex, a start_time after end_time,
before_seq / after_seq combined with resume_token or with a
filter that does not resolve to exactly one log stream, a malformed resume_token or an
unknown field_mask path; NOT_FOUND for an unknown project.
Authorization: PROJECT_DEVELOPER or higher on the project.
rpc GetCallLogStream (GetCallLogStreamRequest) returns (CallLogStream)
Returns the capture state of a single log stream, i.e. of one capture generation of one container.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name or
name, for a log stream that belongs to another project than
vtsi_project_name, or for an unknown field_mask path;
NOT_FOUND for an unknown project or log stream.
Authorization: PROJECT_DEVELOPER or higher on the project.
rpc ListCallLogStreams (ListCallLogStreamsRequest) returns (ListCallLogStreamsResponse)
Lists the log streams VTSI has captured for a project. A single container yields a new log stream every time it is recreated, because a recreated container is a new docker container whose previous logs no longer exist.
Ordered by capture_started_at, newest first (ties by an internal id, so the order is
stable).
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, a negative
page_size, a malformed page_token,
LOG_CAPTURE_STATE_UNSPECIFIED in capture_states or an unknown
field_mask path; NOT_FOUND for an unknown project.
Authorization: PROJECT_DEVELOPER or higher on the project.
rpc DeleteCallLogs (DeleteCallLogsRequest) returns (DeleteCallLogsResponse)
Permanently deletes captured log entries matching a filter. This is the erasure path for data-subject requests: retention answers "delete everything older than N days", this answers "delete everything for this call or this phone number".
Only the identity filters and the time window apply; a time window ALONE (no identity filter)
is a valid filter and deletes every entry of the project inside it. The deletion is permanent and
runs in batches; a log stream whose last entry was deleted is removed too, unless it is still
LOG_CAPTURE_STATE_CAPTURING.
Race with live capture: the deletion removes what is stored when it runs. A container
whose capture is still running keeps being captured, so entries it emits AFTER the deletion are
stored again (there is no tombstone). To erase the logs of a call completely, delete them after
the call ended and its capture is LOG_CAPTURE_STATE_STOPPED, or repeat the deletion.
Idempotent: repeating a deletion succeeds and reports 0 deleted entries. With
validate_only nothing is deleted and the counts are what would be deleted.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, an empty
filter (a filter whose only field is call_types = [BOTH] counts as empty), a content
filter (text, regex, log_levels, min_log_level,
include_unleveled_lines, log_sources, channels,
emitter_prefixes, thread_names; presence alone counts) or a
start_time after end_time; NOT_FOUND for an unknown
project.
Authorization: PROJECT_DEVELOPER or higher on the project. Every deletion is logged
by the server with the project, the filter fields in scope and the deleted counts.
rpc ExportCallLogs (ExportCallLogsRequest) returns (stream ExportCallLogsResponse)
Exports the captured log entries matching a filter as a file: plain text, NDJSON or CSV,
streamed in chunks. Entries are exported oldest first, with the same filter semantics and the same
server-side secret redaction as ListCallLogs; unlike ListCallLogs the
content filters are applied to EVERY entry of the window, never only inside a page. Concatenating
the chunks of all messages in order yields the file.
A bounded time window is REQUIRED: filter.start_time AND
filter.end_time must both be set, with start_time before
end_time, because an export reads every entry of the window. (This is stricter than
ListCallLogs, which needs no window because it reads one bounded page.)
Limits: each chunk is at most 1 MiB; an export holds at most
ONDEWO_VTSI_LOG_EXPORT_MAX_ENTRIES (default 1000000) entries and at most
ONDEWO_VTSI_LOG_EXPORT_MAX_BYTES (default 1 GiB) of output. When a limit is reached the
export ends early with truncated = true on the last message; narrow the window (e.g.
start a new export at the timestamp of the last exported entry). At most
ONDEWO_VTSI_LOG_MAX_CONCURRENT_EXPORTS (default 2) exports run per server, beyond which
a new one is RESOURCE_EXHAUSTED. The export is a snapshot of what is stored when each
entry is read; entries captured during the export may or may not be included.
Errors: INVALID_ARGUMENT for a malformed vtsi_project_name, a missing,
empty or inverted time window, an invalid regex or an unknown
format value; NOT_FOUND for an unknown project;
RESOURCE_EXHAUSTED as above. A role revoked or a credential expired during the export
ends it with PERMISSION_DENIED / UNAUTHENTICATED and no last message.
Authorization: PROJECT_DEVELOPER or higher on the project.
A single captured container log record. One record may span several physical docker log lines: a Python traceback, a protobuf str() dump and a multi-line configuration banner are all one record, and are stored and returned as one entry.
| Field | Type | Label | Description |
| seq | int64 | Ordering cursor. Assigned by the database, monotonically increasing WITHIN ONE LOG STREAM.
It is NOT contiguous: values are drawn from a sequence shared by every stream, are consumed by
rolled-back write batches, and are removed by retention. Never compute the next cursor as
|
|
| timestamp | google.protobuf.Timestamp | The instant the docker daemon observed the first physical line of this record, in UTC. This is the authoritative clock: the timestamp the application itself prints is container-local and carries no timezone. |
|
| timestamp_is_exact | bool | False when |
|
| level | ondewo.nlu.LogSeverity | The severity of the record. |
|
| message | string | The log text, with ANSI escape sequences removed, continuation lines re-joined, and secrets redacted server-side. |
|
| container_id | string | Docker container id of the container this record came from. |
|
| container_name | string | Docker container name of the container this record came from. |
|
| log_source | LogSource | Which process inside the container emitted the record. |
|
| channel | LogStreamChannel | Which docker output channel the record arrived on. |
|
| emitter | string |
|
|
| thread_name | string | Name of the thread that emitted the record. Empty when not available. |
|
| log_stream | string | Resource name of the log stream this entry belongs to. The format is: |
|
| call | string | Resource name of the call this entry was attributed to. Empty when the entry falls outside any
call, which is normal and useful: a persistent listener's container start-up and its idle
time between calls belong to no call.
The format is the
and for a caller's call
|
|
| nlu_session_name | string | The NLU session the entry was attributed to. The format is: |
|
| physical_line_count | int32 | How many physical docker log lines were folded into |
Narrows a log query. Every field is optional; an empty repeated field means "do not filter on this". Fields are combined with AND; the values within one repeated field are combined with OR.
Filters fall into two groups. IDENTITY filters select which containers and which calls are of interest and are resolved against VTSI's own call records. CONTENT filters select which entries of those containers to return.
| Field | Type | Label | Description |
| call_names | string | repeated | Call resource names of the form |
| caller_names | string | repeated | Caller resource names of the form |
| listener_names | string | repeated | Listener resource names of the form |
| caller_ids | string | repeated | Caller uuids. |
| listener_ids | string | repeated | Listener uuids. |
| call_ids | string | repeated | Call uuids. |
| container_names | string | repeated | Docker container names. |
| container_ids | string | repeated | Docker container ids. |
| log_stream_names | string | repeated | Log stream resource names of the form |
| sip_accounts | string | repeated | Asterisk SIP account names, for example |
| sip_ports | string | repeated | Deprecated. Deprecated: use |
| csi_ports | string | repeated | Deprecated. Deprecated: use |
| asterisk_ports | string | repeated | Deprecated. Deprecated: use |
| phone_numbers | string | repeated | Phone numbers of the calls of interest. |
| callee_ids | string | repeated | Callee ids of the calls of interest. |
| nlu_session_names | string | repeated | NLU session names of the form |
| nlu_session_uuids | string | repeated | NLU session uuids. |
| nlu_project_uuids | string | repeated | NLU project uuids. |
| call_types | CallType | repeated | Restrict to callers, to listeners, or to both. |
| sip_headers | SipHeaderFilter | repeated | SIP header predicates. All entries must match. |
| log_sources | LogSource | repeated | Restrict to entries emitted by these processes. |
| channels | LogStreamChannel | repeated | Restrict to entries that arrived on these docker channels. |
| min_log_level | ondewo.nlu.LogSeverity | Only return entries at or above this severity. |
|
| log_levels | ondewo.nlu.LogSeverity | repeated | Exact severities to include. When non-empty this OVERRIDES |
| include_unleveled_lines | bool | optional | Keep entries whose severity could not be determined even when a severity bound is set.
Asterisk, PulseAudio, PJSIP and the gRPC C core do not log in a recognised format, so a
|
| text | string | optional | Case-insensitive substring match against the message. |
| regex | string | optional | Regular expression (Python |
| emitter_prefixes | string | repeated | Prefix match against |
| thread_names | string | repeated | Restrict to entries emitted by these threads. |
| start_time | google.protobuf.Timestamp | optional | Only return entries at or after this instant. A zero timestamp counts as unset. |
| end_time | google.protobuf.Timestamp | optional | Only return entries at or before this instant. A zero timestamp counts as unset. A
|
| sip_port_numbers | int32 | repeated | SIP ports of the per-call container (1..65535). Identity filter; replaces the deprecated string
|
| csi_port_numbers | int32 | repeated | ONDEWO CSI ports of the per-call container (1..65535). Identity filter, like
|
| asterisk_port_numbers | int32 | repeated | Asterisk ports of the project (1..65535). Identity filter, like |
| Name | Option |
| sip_ports | true |
| csi_ports | true |
| asterisk_ports | true |
One capture generation of one container on one docker channel. A container that is recreated yields a NEW log stream, because a recreated container is a different docker container and the previous container's logs no longer exist anywhere except here.
| Field | Type | Label | Description |
| name | string | Resource name of the log stream. The format is: |
|
| container_name | string | Docker container name. |
|
| container_id | string | Docker container id. |
|
| channel | LogStreamChannel | The docker channel this stream captures. |
|
| project_id | string | Uuid of the VTSI project owning the container. See also |
|
| voip_call_name | string | Resource name of the caller, listener or scheduled caller the container serves: ,
or
.
Empty for a container that serves none (e.g. the project's Asterisk). |
|
| call_type | CallType | Whether the container serves a caller or a listener. |
|
| sip_account | string | Asterisk SIP account the container registers with. |
|
| sip_port | int32 | SIP port of the container. |
|
| csi_port | int32 | ONDEWO CSI port of the container. |
|
| asterisk_port | int32 | Asterisk port of the project. |
|
| image | string | Docker image the container runs. |
|
| capture_state | LogCaptureState | State of VTSI's capture of this stream. |
|
| capture_error | string | Why capture failed, when |
|
| capture_started_at | google.protobuf.Timestamp | When VTSI STARTED CAPTURING this stream. This is not the container's start time: capture begins when the container is discovered, which for a container that was already running when VTSI started is later than the container's own start. |
|
| capture_finished_at | google.protobuf.Timestamp | When VTSI STOPPED CAPTURING this stream. |
|
| partial_capture | bool | True when capture attached to an already-running container, so entries emitted before the attach were never captured and are not recoverable. |
|
| min_available_seq | int64 | The smallest |
|
| max_available_seq | int64 | The largest |
|
| line_count | int64 | How many entries are currently stored for this stream. |
|
| dropped_line_count | int64 | How many physical log lines were deliberately not stored, summed over every reason: the ingest severity floor, the emitter denylist, the conversation-content denylist, an oversized line, and retention. A non-zero value is why a stream can be thinner than the container's own log. |
|
| vtsi_project_name | string | Resource name of the VTSI project owning the container, the resource-name form of
|
The request message for Logs.DeleteCallLogs.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to delete the logs. The format is: |
|
| filter | CallLogFilter | The entries to delete. Only the identity fields and the time window apply; content filters are rejected, because deleting by message content is not an auditable operation. At least one field must be set: an empty filter is rejected rather than treated as "delete everything". The time window alone counts as a set field. |
|
| validate_only | bool | Optional. Validate only: run every check of a real deletion and report in the response how many
entries and log streams WOULD be deleted now, but delete nothing. The counts are a snapshot; a later
deletion may count differently (live capture, retention). Default |
The response message for Logs.DeleteCallLogs.
| Field | Type | Label | Description |
| deleted_log_entry_count | int64 | How many log entries were deleted (with |
|
| deleted_log_stream_count | int64 | How many log streams were deleted because no entries remained (with |
The request message for Logs.ExportCallLogs.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose logs to export. The format is: |
|
| filter | CallLogFilter | The entries to export. Every field of
CallLogFilter applies, identity and content
filters alike, with the semantics of |
|
| format | LogExportFormat | The file format. Unset means |
|
| include_metadata | bool | Include every field of each entry rather than only the timestamp, the severity and the message
(see LogExportFormat for what each format
adds). Default |
One message of an ExportCallLogs stream.
| Field | Type | Label | Description |
| chunk | bytes | The next bytes of the exported file, at most 1 MiB. Chunk boundaries carry no meaning: an entry, a line or a multi-byte UTF-8 character may span two chunks. The last message may carry an empty chunk. |
|
| entry_count | int64 | The number of entries exported so far, including those of this chunk (an entry that spans two chunks is counted in the chunk where it ends). |
|
| last | bool | True on the last message of a complete export. A stream that ends without a message carrying
|
|
| truncated | bool | True on the last message when the export stopped early because it reached
|
The request message for Logs.GetCallLogStream.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name which to perform the call of the form |
|
| name | string | The name of the log stream to retrieve of the form
Its project must be the one of vtsi_project_name: a log stream of another project is
refused with INVALID_ARGUMENT, also when it exists. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Logs.ListCallLogStreams.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to list the log streams. The format is: |
|
| filter | CallLogFilter | optional | Optional. A filter to narrow the response down to the log streams of interest. Only the identity fields of the filter apply here; content fields and the time window are ignored. A filter on calls, NLU sessions or other per-call identities lists the streams holding at least one entry of them, and an empty list when none does. |
| page_token | string | optional | Optional. The |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| page_size | int32 | Optional. Maximum number of log streams per page. |
|
| capture_states | LogCaptureState | repeated | Optional. Only log streams in one of these capture states, e.g.
|
The response message for Logs.ListCallLogStreams.
| Field | Type | Label | Description |
| log_streams | CallLogStream | repeated | The log streams of this page, newest |
| next_page_token | string | Token to retrieve the next page of results. Opaque (see
|
The request message for Logs.ListCallLogs.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to list the logs. The format is: |
|
| filter | CallLogFilter | optional | Optional. A filter to narrow the response down to the entries of interest. |
| max_lines | int32 | optional | Return at most this many entries. |
| before_seq | int64 | optional | Optional cursor for infinite-scroll UP: return the newest entries with |
| after_seq | int64 | optional | Optional cursor for infinite-scroll DOWN: return entries with |
| resume_token | string | optional | Optional. An opaque, server-encoded per-log-stream cursor from a previous response. Use this
instead of |
| oldest_first | bool | optional | Walk forward from the cursor oldest-first instead of returning the most recent window. A client paging through a whole backlog must set this: the default window silently skips everything between the cursor and the newest entries. |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| include_counts | bool | Optional. Also count the matching entries: fills |
The response message for Logs.ListCallLogs.
| Field | Type | Label | Description |
| log_entries | CallLogEntry | repeated | The matching entries, oldest first. |
| truncated | bool | True when matching entries were dropped because |
|
| min_available_seq | int64 | The smallest |
|
| max_available_seq | int64 | The largest |
|
| has_more_older | bool | True when entries older than this window exist. |
|
| has_more_newer | bool | True when entries newer than this window exist. |
|
| next_resume_token | string | Cursor to fetch the next window, or to start a live stream that continues exactly here. |
|
| scope_limited_filters | CallLogFilterField | repeated | Filters that could only be applied WITHIN the returned window rather than across the whole history, because they are not indexed. A client displaying a match count must qualify it when this is non-empty. |
| total_matching_count | int64 | optional | The number of entries matching the filter over the whole stored history, regardless of the window
and the cursors. Set only when |
| count_by_level | ListCallLogsResponse.CountByLevelEntry | repeated | The matching entries counted per severity, keyed by the |
| Field | Type | Label | Description |
| key | string |
|
|
| value | int64 |
|
A key/value predicate over the SIP headers captured on a call.
| Field | Type | Label | Description |
| key | string | The SIP header key, for example |
|
| value | string | The value the header must have. Empty matches on the presence of the key alone. |
The request message for Logs.StreamCallLogs.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project name for which to stream the logs. The format is: |
|
| filter | CallLogFilter | optional | Optional. A filter to narrow the stream down to the entries of interest. The time-window
fields and paging cursors of the filter are meaningless for a live stream and are rejected
with |
| tail_lines | int32 | optional | Replay at most this many of the most recent stored entries before switching to live follow.
|
| resume_token | string | optional | Optional. Resume exactly where a previous stream or page stopped. This is an opaque,
server-encoded per-log-stream cursor and must be echoed back verbatim. Prefer it over
|
| after_seq | int64 | optional | Optional. Resume after this |
The response message for Logs.StreamCallLogs. The stream carries an envelope rather than a bare entry so that a viewer can tell a healthy quiet container from a capture that has died.
| Field | Type | Label | Description |
| log_entries | CallLogEntry | repeated | The entries in this batch, oldest first. May be empty, e.g. on the final message that carries
|
| capture_state | LogCaptureState | The capture state of the log streams being followed, aggregated: |
|
| capture_error | string | Why capture failed, when |
|
| dropped_line_count | int64 | Total entries deliberately not stored across the followed streams. See CallLogStream.dropped_line_count. |
|
| resume_token | string | Cursor to resume this stream. Echo it into
|
|
| end_reason | string | Set on the final message when the stream was ended by the server rather than by the client,
for example because the maximum stream duration was reached. Empty otherwise. Human-readable
text, not a contract: match on |
|
| end_reason_code | LogStreamEndReason | Set on the final message when the stream was ended by the server, together with
|
Identifies a field of CallLogFilter. Used by ListCallLogsResponse.scope_limited_filters to declare which filters could only be applied inside the returned window.
| Name | Number | Description |
| CALL_LOG_FILTER_FIELD_UNSPECIFIED | 0 | Unspecified. |
| CALL_LOG_FILTER_FIELD_TEXT | 1 |
|
| CALL_LOG_FILTER_FIELD_REGEX | 2 |
|
| CALL_LOG_FILTER_FIELD_LOG_SOURCES | 3 |
|
| CALL_LOG_FILTER_FIELD_CHANNELS | 4 |
|
| CALL_LOG_FILTER_FIELD_EMITTER_PREFIXES | 5 |
|
| CALL_LOG_FILTER_FIELD_THREAD_NAMES | 6 |
|
| CALL_LOG_FILTER_FIELD_SIP_HEADERS | 7 |
|
The state of VTSI's capture of one log stream. This describes the CAPTURE, not the container: a healthy container whose capture lease was lost is DETACHED, and a container that no longer exists but whose capture completed cleanly is STOPPED.
| Name | Number | Description |
| LOG_CAPTURE_STATE_UNSPECIFIED | 0 | Unspecified. |
| LOG_CAPTURE_STATE_CAPTURING | 1 | Capture is running. |
| LOG_CAPTURE_STATE_STOPPED | 2 | Capture ended cleanly; the stream is complete up to the container's removal. |
| LOG_CAPTURE_STATE_FAILED | 3 | Capture failed. The stored history is incomplete and |
| LOG_CAPTURE_STATE_DETACHED | 4 | Another VTSI replica holds the capture lease for this container. |
File format of an ExportCallLogs export. Every format is UTF-8 with \n line endings and one entry per record; a multi-line entry stays one record.
| Name | Number | Description |
| LOG_EXPORT_FORMAT_UNSPECIFIED | 0 | Unspecified: identical to |
| LOG_EXPORT_FORMAT_TEXT | 1 | Plain text in the manner of |
| LOG_EXPORT_FORMAT_NDJSON | 2 | Newline-delimited JSON: one JSON object per line, the proto3 JSON form of a
CallLogEntry (lowerCamelCase keys). Without
|
| LOG_EXPORT_FORMAT_CSV | 3 | Comma-separated values (RFC 4180, every field quoted, embedded quotes doubled, embedded line breaks
kept inside the quotes), with a header row. Columns without |
Which process inside the container emitted a log entry. All of these share a single docker log stream, because ondewo-csi runs as a child process of the ondewo-sip container.
| Name | Number | Description |
| LOG_SOURCE_UNSPECIFIED | 0 | Unspecified or unrecognised source. |
| LOG_SOURCE_SIP | 1 | The ondewo-sip server, i.e. an |
| LOG_SOURCE_CSI | 2 | The ondewo-csi server or its speech2speech child, i.e. an |
| LOG_SOURCE_ASTERISK | 3 | The Asterisk SIP server. |
| LOG_SOURCE_PULSEAUDIO | 4 | PulseAudio. |
| LOG_SOURCE_SYSTEM | 5 | Container start-up scripts, the Python standard-library logging module, the gRPC C core, and anything else that could not be attributed. |
The docker output channel an entry arrived on.
| Name | Number | Description |
| LOG_STREAM_CHANNEL_UNSPECIFIED | 0 | The channel is not known. This is the honest value for a container started with a TTY, where the pseudo-terminal genuinely merges both channels into one unframed stream. |
| LOG_STREAM_CHANNEL_STDOUT | 1 | Standard output. |
| LOG_STREAM_CHANNEL_STDERR | 2 | Standard error. The ondewo-sip and ondewo-csi loggers write here. |
Why the SERVER ended a StreamCallLogs stream. Carried by the final StreamCallLogsResponse beside the human-readable end_reason. A stream ended by the client has no final message.
| Name | Number | Description |
| LOG_STREAM_END_REASON_UNSPECIFIED | 0 | Not ended by the server: every message except the final one, and the final message of a 9.0.0
server (read |
| LOG_STREAM_END_REASON_ALL_CAPTURES_TERMINATED | 1 | The capture of every followed log stream has terminated ( |
| LOG_STREAM_END_REASON_MAX_DURATION | 2 | The server-side maximum stream duration ( |
| LOG_STREAM_END_REASON_SERVER_SHUTDOWN | 3 | The VTSI server is shutting down. Reconnect, to another replica if there is one, with the
|
| LOG_STREAM_END_REASON_PERMISSION_REVOKED | 4 | The caller lost the role the stream requires. The stream then ends with
|
| LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED | 5 | The caller's credential expired. The stream then ends with |
ONDEWO VTSI API
Manages VTSI (Virtual Telephone System Integration) PROJECTS: the per-project configuration of an Asterisk SIP server (its SIP trunk, its ports, its Asterisk version) together with the caller and listener capacity of the project and the ONDEWO NLU agents it serves. Deploying a project starts its Asterisk container; callers, listeners, campaigns and softphone accounts of the project need a DEPLOYED project to place or take calls.
Errors are reported as gRPC status codes. The error_message fields of the responses are never set, neither on success nor on failure (they predate the status codes and are kept for wire compatibility): INVALID_ARGUMENT for a malformed name, an unknown update_mask or field_mask path, a malformed page_token or an out-of-range value (each naming the field); NOT_FOUND for an unknown project; ALREADY_EXISTS when CreateVtsiProject names a project that exists; FAILED_PRECONDITION when the project is in a status that does not allow the operation (each RPC names its cases); ABORTED when another create, update, deploy, undeploy or delete of the same project held it for longer than the server waits (about 30 seconds), in which case nothing was changed and the request can be retried; UNAVAILABLE when the docker daemon or the database cannot be reached.
Authorization (only when the server enforces it, i.e. ONDEWO_VTSI_KEYCLOAK_AUTH_ENABLED and ONDEWO_VTSI_AUTH_REQUIRED are both true): a caller without a credential is UNAUTHENTICATED whatever it sent. A caller needs a server role (SERVER_ADMIN, SERVER_MANAGER or SERVER_USER), else every RPC is PERMISSION_DENIED. The project roles are derived from the caller's roles on the project's nlu_agent_names: CreateVtsiProject, GetVtsiProject, UpdateVtsiProject, DeleteVtsiProject, DeployVtsiProject and UndeployVtsiProject require PROJECT_DEVELOPER or higher (PROJECT_ADMIN); ListVtsiProjects is open to every project role and returns only the projects the caller holds a role on. SERVER_ADMIN passes every project check. With enforcement on, a well-formed request naming a project the caller holds no role on, an unknown project included, is answered PERMISSION_DENIED rather than NOT_FOUND, so the answer does not reveal whether the project exists; NOT_FOUND is then reserved to SERVER_ADMIN. With enforcement off (the default) every request is served and only logged.
Credentials. AsteriskConfigsVariables.sip_trunk_password is stored and returned as sent (it is not write-only): GetVtsiProject, CreateVtsiProject, UpdateVtsiProject and ListVtsiProjects return it to every caller allowed to call them with a view that populates asterisk_configs. With enforcement on, ListVtsiProjects withholds the whole asterisk_configs (and every other configuration field) from a caller whose highest role on the project is PROJECT_EXECUTOR or PROJECT_USER. Use a field_mask without asterisk_configs where the password is not needed.
Events: every change emits the matching VtsiEvent of the project (VTSI_EVENT_VTSI_PROJECT_UPDATED, _DEPLOYED, _DEPLOY_FAILED, _UNDEPLOYED, _UNDEPLOY_FAILED, _DELETED) and, for every change of vtsi_project_status, VTSI_EVENT_VTSI_PROJECT_STATUS_CHANGED. A request with validate_only emits nothing.
rpc CreateVtsiProject (CreateVtsiProjectRequest) returns (CreateVtsiProjectResponse)
Creates a VTSI project with its configuration. The project is created
UNDEPLOYED; nothing is started. max_callers caller and
max_listeners listener SIP accounts are provisioned for it and an Asterisk port is
assigned when none was given.
With validate_only every check of a real create runs (authorization included) and
nothing is written, reserved or emitted; the would-be project is returned.
Errors: INVALID_ARGUMENT for an empty or over-long (more than 256 characters)
display_name, a negative max_callers or max_listeners, a port
outside 0..65535, asterisk_port and asterisk_configs.asterisk_port both set
and different, a malformed name, an invalid asterisk_configs (each naming
the field); ALREADY_EXISTS when
vtsi_project.name names an existing project (also when two creates of the same name
race); ABORTED, UNAUTHENTICATED, PERMISSION_DENIED as in the
service description.
Authorization: PROJECT_DEVELOPER or higher on EVERY agent of
nlu_agent_names; a project with no agent can only be created by
SERVER_ADMIN.
Idempotency: none. A retry after a lost response creates a second project unless
vtsi_project.name is set, in which case the retry is answered
ALREADY_EXISTS.
rpc GetVtsiProject (GetVtsiProjectRequest) returns (VtsiProject)
Returns a VTSI project with its configuration.
Errors: INVALID_ARGUMENT for an empty or malformed name or an unknown
field_mask path; NOT_FOUND for an unknown project;
UNAUTHENTICATED, PERMISSION_DENIED as in the service description.
Authorization: PROJECT_DEVELOPER or higher on the project.
rpc UpdateVtsiProject (UpdateVtsiProjectRequest) returns (UpdateVtsiProjectResponse)
Updates a VTSI project: the fields named in update_mask, or, with no mask, the
fields vtsi_project sets (see UpdateVtsiProjectRequest.update_mask).
An update of an UNDEPLOYED project only writes it. An update of a
DEPLOYED project is applied to the running Asterisk by the cheapest path that applies
every change, chosen by the server: display_name, nlu_agent_names and
transfer_phone_number_allowlist, warm_transfer_defaults and
transfer_target_directory touch no Asterisk; ivr_menus_enabled only rewrites the
inbound routes in the running Asterisk's database and keeps every call; a configuration change that Asterisk
measurably applies on a reload is reloaded in place and keeps every call; every other change is a
RESTART of the Asterisk container or a REDEPLOY of the project (a changed max_callers,
max_listeners, Asterisk port, asterisk_version or managed account), and
ENDS EVERY CALL of the project: a redeploy undeploys and deploys the project and recycles its
listeners and pooled callers. Use validate_only to check an update first.
Errors: INVALID_ARGUMENT for an empty or malformed vtsi_project.name,
an unknown update_mask path (also the prefixed form vtsi_project.x), a mask
that clears the configuration source (asterisk_configs with no arm set), an out-of-range
value (as on create) or an unknown field_mask path; NOT_FOUND for an
unknown project; FAILED_PRECONDITION while the project is DELETING;
ABORTED when another lifecycle operation of the project held it too long or the
project changed concurrently, nothing being written; UNAUTHENTICATED,
PERMISSION_DENIED as in the service description. When a deployed project's
Asterisk cannot be reloaded, restarted or redeployed the RPC fails (INTERNAL or
UNAVAILABLE) and the project is left as the failure left it (see
status_message).
Authorization: PROJECT_DEVELOPER or higher on the project and on every agent of the
stored AND of the resulting nlu_agent_names (removing an agent needs the same role as
adding it).
Idempotency: an update is a set of absolute values, so a retry with the same request converges to the same project (a redeploying update ends the calls of the retry's moment too).
rpc DeleteVtsiProject (DeleteVtsiProjectRequest) returns (DeleteVtsiProjectResponse)
Deletes a VTSI project and its configuration. A project that is deployed, deploying,
undeploying or DEPLOY_FAILED is UNDEPLOYED FIRST, automatically, exactly as by UndeployVtsiProject:
every call of the project ends and its listeners, callers and Asterisk container are removed. The
undeploy is best effort: a failing teardown is logged and the deletion goes on. The project then
moves to DELETING, its stored configuration is removed and the project no longer
exists (DELETED is never returned: a deleted
project is NOT_FOUND). Deletion is permanent.
Errors: INVALID_ARGUMENT for an empty or malformed name;
NOT_FOUND for an unknown project, also for a retry of a deletion that succeeded (the
RPC is not idempotent); ABORTED, UNAUTHENTICATED,
PERMISSION_DENIED as in the service description.
Authorization: PROJECT_DEVELOPER or higher on the project.
Events: VTSI_EVENT_VTSI_PROJECT_UNDEPLOYED when it had to undeploy, then
VTSI_EVENT_VTSI_PROJECT_DELETED, the last event of the project.
rpc DeployVtsiProject (DeployVtsiProjectRequest) returns (DeployVtsiProjectResponse)
Deploys a VTSI project: starts its Asterisk container with the stored configuration and waits
until the container runs. SYNCHRONOUS: the RPC returns when the project is DEPLOYED
or the deployment failed. The status moves UNDEPLOYED (or DEPLOY_FAILED)
> DEPLOYING > DEPLOYED; on failure the half-started container is
removed, the status becomes DEPLOY_FAILED with the reason in
status_message, and the RPC fails. The server waits about 30 seconds for the container
to run, plus the docker API timeout of each docker call (ONDEWO_VTSI_DOCKER_API_TIMEOUT_S,
default 90 seconds); a client deadline of at least 3 minutes is recommended. Deploying applies the
project's softphone accounts to the new Asterisk. No caller or listener is started: start them
with the Calls service.
Idempotent: deploying a DEPLOYED project changes nothing and succeeds (nothing is
restarted); a deploy that arrives while another deploy of the project runs waits for it and then
finds the project DEPLOYED.
Errors: INVALID_ARGUMENT for an empty or malformed name;
NOT_FOUND for an unknown project; FAILED_PRECONDITION while the project is
DELETING, or DEPLOYING / UNDEPLOYING after the operation that
set the status was interrupted (undeploy the project first); INTERNAL or
UNAVAILABLE when the deployment failed (the project is then
DEPLOY_FAILED); ABORTED, UNAUTHENTICATED,
PERMISSION_DENIED as in the service description.
Authorization: PROJECT_DEVELOPER or higher on the project.
Events: VTSI_EVENT_VTSI_PROJECT_DEPLOYED or
VTSI_EVENT_VTSI_PROJECT_DEPLOY_FAILED, and
VTSI_EVENT_VTSI_PROJECT_STATUS_CHANGED per status change.
rpc UndeployVtsiProject (UndeployVtsiProjectRequest) returns (UndeployVtsiProjectResponse)
Undeploys a VTSI project. SYNCHRONOUS: the status moves to UNDEPLOYING, EVERY CALL
of the project is ended (callers and listeners alike, campaign calls included), the listeners and
the pooled callers are undeployed, the Asterisk container is removed, and the status becomes
UNDEPLOYED. The registrations of the project's softphone accounts end with the
container; the accounts themselves are kept and are applied again on the next deploy. The stored
configuration, callers, listeners and campaigns are kept. A failed undeploy restores the previous
status (or UNDEPLOYED when the container is already gone) and fails the RPC.
Idempotent: undeploying an UNDEPLOYED project changes nothing and succeeds.
Undeploying a DEPLOY_FAILED project removes what the failed deployment left and makes it
UNDEPLOYED.
Errors: INVALID_ARGUMENT for an empty or malformed name;
NOT_FOUND for an unknown project; FAILED_PRECONDITION while the project is
DELETING; INTERNAL or UNAVAILABLE when the teardown failed;
ABORTED, UNAUTHENTICATED, PERMISSION_DENIED as in the service
description.
Authorization: PROJECT_DEVELOPER or higher on the project.
Events: VTSI_EVENT_VTSI_PROJECT_UNDEPLOYED or
VTSI_EVENT_VTSI_PROJECT_UNDEPLOY_FAILED, and
VTSI_EVENT_VTSI_PROJECT_STATUS_CHANGED per status change.
rpc ListVtsiProjects (ListVtsiProjectsRequest) returns (ListVtsiProjectsResponse)
Lists VTSI projects, filtered, sorted and paged. With authorization enforced, only the projects
the caller holds a project role on are listed (every project for SERVER_ADMIN), and
the configuration fields are withheld from a PROJECT_EXECUTOR or
PROJECT_USER (see the service description); a caller without a usable credential gets an
empty page.
Errors: INVALID_ARGUMENT for a negative page_size, a malformed
page_token, an unspecified status in statuses, an over-long
display_name_contains, a created_after that is not before
created_before, or an unknown field_mask path;
UNAUTHENTICATED as in the service description.
Authorization: any project role (PROJECT_USER or higher).
Configurations object for the Asterisk server
| Field | Type | Label | Description |
| asterisk_configs_variables | AsteriskConfigsVariables | Configs as variables which will fill those variables using a blue print. |
|
| asterisk_configs_files | AsteriskConfigsFiles | Configs as files which will set up the configs using those files. |
|
| asterisk_configs_target_directory_name | string | Configs will be mapped in from a preconfigured asterisk target directory. |
|
| asterisk_port | int32 | OPTIONAL: The port where Asterisk should start. Authoritative copy of
|
|
| asterisk_version | string | optional | OPTIONAL: The Asterisk version to start, given as the docker image tag of the ONDEWO Asterisk image, e.g. .
The tag must match the docker tag grammar
.
Explicitly optional: when the field is not set, the server keeps using its configured
default (the environment variable).
The version a deployed project actually runs is VtsiProject.asterisk_version_effective.
Sending an empty string is NOT the same as leaving it unset and is rejected. |
Configuration files for the Asterisk server
| Field | Type | Label | Description |
| pjsip_conf_file_string | string | pjsip.conf file as string. Renamed from in 9.0.0: the chan_sip driver this field
was named after was removed in Asterisk 21, and the file an Asterisk 22 server reads is
. Field number 1 and type are
unchanged and no override was added, so the change is binary
wire-compatible in both directions and source-breaking only. |
|
| extensions_conf_file_string | string | extensions.conf file as string |
|
| queues_conf_file_string | string | queues.conf file as string |
|
| modules_conf_file_string | string | modules.conf file as string |
Configuration variables for the Asterisk server
| Field | Type | Label | Description |
| sip_trunk_username | string | SIP trunk username. |
|
| sip_trunk_password | string | SIP trunk password. A credential, but NOT write-only: it is stored as sent and returned in clear
to every caller allowed to read |
|
| sip_trunk_host | string | SIP trunk host. |
|
| transfer_number | string | Transfer number. |
|
| transfer_number_host | string | Transfer number host. |
|
| sip_trunk_phone_number | string | SIP trunk phone number / caller id. |
|
| sip_trunk_transport | SipTrunkTransport | OPTIONAL: transport for the SIP trunk. Unset ==
== : encryption is the default, so a caller that says
nothing gets an encrypted trunk. |
|
| sip_trunk_source_cidr | string | optional | OPTIONAL: the source address or CIDR the carrier sends from, e.g. .
REQUIRED when is
or ,
where the trunk is matched by source address rather than authenticated by a TLS certificate; ignored
otherwise. A hostname is REFUSED with : Asterisk drops a
section whose does not resolve,
and it does so silently, so an unresolvable name would read as a working trunk that never matches an
inbound call. |
| sip_trunk_ca_certificates_pem | string | optional | OPTIONAL: the PEM bundle of the CA certificate(s) the carrier's TLS certificate chains to, i.e. one or more blocks and nothing else.
Storing a bundle does NOT by itself turn verification on: Asterisk verifies the carrier's
certificate chain and host name only when is also
true. With verification off the bundle is validated and stored, so it can be staged before
verification is switched on, and the trunk behaves exactly as without it.
Applies only to the TLS trunk transport: setting it while
is or
is REFUSED with , as is a bundle that is not PEM, contains a
private key or any block other than a certificate, contains a certificate that is not a CA
(basicConstraints CA=true) or has expired, or exceeds the server's count and size limits.
This is PUBLIC data, not a secret: it is returned by Get and List like every other field here. |
| sip_trunk_verify_server | bool | optional | OPTIONAL: verify the carrier's TLS certificate. Default false (unset == false). When true, Asterisk verifies the carrier's certificate chain against and its host name against
(), and refuses a
carrier that fails either check. true WITHOUT a CA bundle is REFUSED with
, because the verification it asks for cannot happen.
false or unset: the carrier's certificate is NOT verified, whether or not a bundle is stored.
Applies only to the TLS trunk transport: true on a or
trunk is REFUSED with
; false there is accepted and changes nothing. |
| softphone_permit_cidrs | string | repeated | Optional: Source addresses that may reach this project's SOFTPHONE accounts, as IPv4/IPv6 CIDR networks
written in full with an explicit prefix length (e.g. |
Request for creating a VTSI project
| Field | Type | Label | Description |
| vtsi_project | VtsiProject | VTSI project Recommended is to leave "name" empty. The project name here is optional. If no name is given a new parent name is created. The parent has the format: |
|
| error_message | string | Deprecated. Deprecated: a request carries no error. Ignored by the server; leave it empty. Kept for wire compatibility. |
|
| validate_only | bool | Optional. Validate only: run every check of a real create (validation, authorization) and return
the would-be project in |
| Name | Option |
| error_message | true |
Response of the create project
| Field | Type | Label | Description |
| vtsi_project | VtsiProject | The created project, |
|
| error_message | string | Never set: errors are reported as gRPC status codes (see the |
Request to delete a VTSI project A deployed VTSI project is undeployed automatically before it is deleted (see DeleteVtsiProject).
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
Response to delete a VTSI project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
|
| error_message | string | Never set: errors are reported as gRPC status codes. Kept for wire compatibility. |
Request to deploy a vtsi project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
Response to deploy a vtsi project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
|
| error_message | string | Never set: errors are reported as gRPC status codes. Kept for wire compatibility. |
Request to retrieve a VTSI project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
|
| vtsi_project_view | VtsiProjectView | Optional. Specify the view of the returned VtsiProject (full view by default) |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
Request to list VTSI projects. The filters are combined with AND; the values within one repeated field are combined with OR; an unset field or an empty repeated field does not filter.
| Field | Type | Label | Description |
| vtsi_project_view | VtsiProjectView | Optional. Specify the view of the returned VtsiProject (full view by default) |
|
| page_token | string | optional | Optional. The |
| vtsi_project_sorting | VtsiProjectSorting | optional | Optional. Field to define the sorting of the list of VTSI projects in the response.
Unset or |
| nlu_agent_names | string | repeated | Optional. Only projects associated with at least one of these NLU agents. Format: |
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the field paths to populate in every returned |
|
| page_size | int32 | Optional. Maximum number of projects per page. |
|
| statuses | VtsiProjectStatus | repeated | Optional. Only projects in one of these statuses. |
| display_name_contains | string | Optional. Case-insensitive substring match against |
|
| created_after | google.protobuf.Timestamp | Optional. Only projects created at or after this instant. |
|
| created_before | google.protobuf.Timestamp | Optional. Only projects created strictly before this instant. A window whose start
( |
This is a protobuf message definition for the response of getting a list of VTSI projects.
| Field | Type | Label | Description |
| vtsi_projects | VtsiProject | repeated | The VTSI projects of this page. |
| next_page_token | string | Token to retrieve the next page of results. Opaque (see
|
One human transfer target of VtsiProject.transfer_target_directory: how a warm intro names and describes the person behind one phone number or softphone account. Both texts are given to the intro bot and may be spoken to the target; neither may contain SIP markup (<SIP:), which is refused with INVALID_ARGUMENT. Carries no secret.
| Field | Type | Label | Description |
| display_name | string | Required. Who the target is, spoken as |
|
| description | string | OPTIONAL: The target's role and context, given to the intro bot for its briefing, e.g.
|
Request to undeploy a vtsi project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
Response to undeploy a vtsi project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
|
| error_message | string | Never set: errors are reported as gRPC status codes. Kept for wire compatibility. |
Request to update a VTSI project
| Field | Type | Label | Description |
| vtsi_project | VtsiProject | The project to update, identified by ), carrying the new values. The
output-only fields (vtsi_project_status, the audit, counter and status fields) are
ignored. |
|
| update_mask | google.protobuf.FieldMask | OPTIONAL: The mask to control which fields get updated. Paths are field paths within and carry no leading
prefix, e.g. ,
, or
.
Semantics:
|
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| validate_only | bool | Optional. Validate only: merge the update over the stored project and run every check of a real
update (validation, authorization, the configuration render), and return the would-be project in
|
Response to the update of a VTSI project
| Field | Type | Label | Description |
| name | string | VTSI project name with which to perform the call of the form |
|
| error_message | string | Never set: errors are reported as gRPC status codes (see the |
|
| vtsi_project | VtsiProject | The project after the update (with |
The VTSI project with its configuration setting
| Field | Type | Label | Description |
| name | string | Required. The project name. Format:
Only when a new VtsiProject is created the name can be undefined/empty |
|
| display_name | string | OPTIONAL: The display name of the project |
|
| max_callers | int32 | The maximum number of callers that this project can have, i.e. the number of caller SIP accounts
provisioned on its Asterisk. |
|
| max_listeners | int32 | The maximum number of listeners that this project can have, i.e. the number of listener SIP
accounts provisioned on its Asterisk. Same semantics as |
|
| asterisk_configs | AsteriskConfigs | Configs to start the asterisk server. |
|
| vtsi_project_status | VtsiProjectStatus | The status of the VTSI project. |
|
| created_by | string | The user who created the vtsi project. Readonly. |
|
| created_at | google.protobuf.Timestamp | Creation time of the vtsi project. Readonly. |
|
| modified_by | string | The user who modified the vtsi project. Readonly. |
|
| modified_at | google.protobuf.Timestamp | Modification time of the vtsi project. Readonly. |
|
| active_callers | int32 | The number of active callers in this project. |
|
| active_listeners | int32 | The number of active listeners in this project. |
|
| asterisk_port | int32 | The port of the asterisk server. The same value as |
|
| nlu_agent_names | string | repeated | Associated NLU agents. Format: |
| deployed_callers | int32 | The number of deployed callers in this project. |
|
| deployed_listeners | int32 | The number of deployed listeners in this project. |
|
| transfer_phone_number_allowlist | string | repeated | OPTIONAL: The project's transfer phone-number allowlist: the phone numbers any call of this project may be
transferred to. Each entry is an E.164 number or a prefix of one ( Empty (the default): no project restriction. A Example: What it is checked against:
At most 256 entries; a malformed entry or a longer list is refused with |
| status_message | string | Output only. Human-readable detail of the current |
|
| status_changed_at | google.protobuf.Timestamp | Output only. When |
|
| trunk_registration_state | TrunkRegistrationState | Output only. Registration state of the project's SIP trunk with the carrier, as last observed
on the running Asterisk ( |
|
| asterisk_version_effective | string | Output only. The Asterisk version the project's container RUNS, i.e. the docker image tag of the
ONDEWO Asterisk image it was deployed from: |
|
| warm_transfer_defaults | WarmTransferConfig | OPTIONAL: The project's defaults for the warm intro of a WARM transfer (see WarmTransferConfig): before a human transfer target is joined, an ONDEWO bot greets the target, briefs them and asks whether they accept the call. How it combines with the call: every field is resolved on its own, the most specific level that SETS it
winning: Example: set When the deployment switch When it takes effect: the intro settings are read at the moment of each transfer, so an edit applies to the
next transfer of every running call. Whether the bot's OWN transfers to a human can get an intro is fixed
when a listener or caller is DEPLOYED: switching Unset: no project defaults; only the call's and the transfer's values and the built-in defaults
apply ( |
|
| feature_availability | VtsiProjectFeatureAvailability | Output only. Which optional call features can run in this project right now, given the deployment's
switches, where the project's Asterisk runs and the project's listener capacity. Computed on every
|
|
| ivr_menus_enabled | bool | optional | OPTIONAL: The project's master switch for IVR menus: whether its PUBLISHED IVR menus answer the inbound
phone numbers they are bound to. Unset means
Withheld from |
| transfer_target_directory | VtsiProject.TransferTargetDirectoryEntry | repeated | OPTIONAL: Directory of the project's HUMAN transfer targets: who a target is and what they do, so that a
warm intro can name the target ( Keyed by the target: an E.164 phone number ( How it combines: the name and the description are each taken from the first source that has one: the
transfer's effective Example (JSON):
Read at the moment of each warm intro, so an edit applies to the next transfer. At most 200 entries; a key
that is neither an allowed phone number nor a softphone user name of the project, or an invalid entry (see
|
| Field | Type | Label | Description |
| key | string |
|
|
| value | TransferTargetDirectoryItem |
|
Which optional call features can run in a VTSI project, and if not, why. Output only; computed from the deployment's switches, where the project's Asterisk runs and the project's listener capacity, never from a single call's configuration.
| Field | Type | Label | Description |
| warm_intro | WarmIntroAvailability | Whether a WARM transfer of this project can run a warm intro. Anything but
|
|
| warm_intro_phase_b | bool | Whether the phase-B fields of |
|
| ivr | IvrAvailability | Whether the project can publish IVR menus and route inbound numbers through them. Independent of the
project's own switch |
This protobuf message defines the sorting order for VTSI (Virtual Telephone System Integration) projects.
| Field | Type | Label | Description |
| sorting_field | VtsiProjectSorting.VtsiProjectSortingField | optional | sorting field for vtsi projects sorting |
| sorting_mode | VtsiProjectSortingMode | optional | Sorting mode |
Whether a project can use IVR menus, and if not, why. The same for every project of a deployment.
| Name | Number | Description |
| IVR_AVAILABILITY_UNSPECIFIED | 0 | Not computed, e.g. by a server older than IVR menus. Treat it as unknown, not as available. |
| IVR_AVAILABILITY_AVAILABLE | 1 | IVR menus can be published and route inbound numbers (unless the project switched its routes off with
|
| IVR_AVAILABILITY_DISABLED_BY_DEPLOYMENT | 2 | The operator switched IVR menus off for the whole deployment ( |
| IVR_AVAILABILITY_NEEDS_LOCAL_ASTERISK | 3 | The deployment runs on several hosts, where the server cannot reach the project's Asterisk directly to apply the routes. |
Transport for the SIP trunk of an Asterisk server.
| Name | Number | Description |
| SIP_TRUNK_TRANSPORT_UNSPECIFIED | 0 | Unspecified transport: identical to . Encryption is
the default, so the zero value is the secure one. |
| SIP_TRUNK_TRANSPORT_TLS | 1 | TLS transport with SRTP media. The trunk is authenticated by certificate and needs no source CIDR. |
| SIP_TRUNK_TRANSPORT_UDP | 2 | Plain UDP transport. Requires . |
| SIP_TRUNK_TRANSPORT_TCP | 3 | Plain TCP transport. Requires . |
Registration state of a VTSI project's SIP trunk with the carrier.
| Name | Number | Description |
| TRUNK_REGISTRATION_STATE_UNSPECIFIED | 0 | Not known: the project is not |
| TRUNK_REGISTRATION_STATE_REGISTERED | 1 | The carrier accepted the trunk's registration ( |
| TRUNK_REGISTRATION_STATE_UNREGISTERED | 2 | The trunk is configured to register but is not registered: the registration has not completed
yet, was stopped, or failed without a refusal by the carrier ( |
| TRUNK_REGISTRATION_STATE_REJECTED | 3 | The carrier refused the registration ( |
| TRUNK_REGISTRATION_STATE_NOT_CONFIGURED | 4 | The project's running Asterisk has no outbound trunk registration to observe (no
|
Enum to specify the sorting field for VTSI projects. Enum defining the field by which VTSI projects can be sorted
| Name | Number | Description |
| NO_VTSI_PROJECT_SORTING | 0 | The default order: by |
| SORT_VTSI_PROJECT_BY_NAME | 1 | Sort by project name such as . |
| SORT_VTSI_PROJECT_BY_DISPLAY_NAME | 2 | Sort by display name |
| SORT_VTSI_PROJECT_BY_CREATION_DATE | 3 | Sort by creation date |
| SORT_VTSI_PROJECT_BY_LAST_MODIFIED | 4 | Sort by last modified date |
Sorting mode. Note: unlike most enums of this API the zero value is a real mode, ASCENDING, not an ..._UNSPECIFIED placeholder, so an unset mode means ascending. Released this way and kept for wire and source compatibility (it is also reused by SoftphoneAccountSorting).
| Name | Number | Description |
| ASCENDING | 0 | The ascending sorting mode. When sorting using this mode, VtsiProject objects will be arranged in ascending order based on the specified criteria. |
| DESCENDING | 1 | The descending sorting mode. When sorting using this mode, VtsiProject objects will be arranged in descending order based on the specified criteria. |
Status of a VtsiProject. Released with unprefixed value names, which are package scoped in proto3 (so no other enum of ondewo.vtsi can declare e.g. UNSPECIFIED); kept for wire and source compatibility.
| Name | Number | Description |
| UNSPECIFIED | 0 | No status specified. Never returned for a stored project. |
| UNDEPLOYED | 1 | Project successfully created and undeployed |
| UPDATING | 2 | Project configuration is updating |
| DEPLOYING | 3 | Project is deploying |
| DEPLOYED | 4 | Project is deployed |
| UNDEPLOYING | 5 | Project is un-deploying |
| DELETING | 6 | Project is currently deleting |
| DELETED | 7 | Project is deleted. Never returned: a deleted project no longer exists and is
|
| DEPLOY_FAILED | 8 | The last deployment failed: its half-started container was removed and
|
Structure of VTSI_PROJECT view
| Name | Number | Description |
| VTSI_PROJECT_VIEW_UNSPECIFIED | 0 | Unspecified VTSI_PROJECT view: the view is defined by the call: |
| VTSI_PROJECT_VIEW_FULL | 1 | Full VTSI_PROJECT view: populate all the fields of the VTSI_PROJECT message including configs. |
| VTSI_PROJECT_VIEW_SHALLOW | 2 | Shallow VTSI_PROJECT view: populates all the fields except configs. |
| VTSI_PROJECT_VIEW_MINIMUM | 3 | Minimum view including only VTSI_PROJECT UUID and VTSI_PROJECT display name |
Whether a project can run warm intros, and if not, why. When several reasons apply, the first one in this order is reported: DISABLED_BY_DEPLOYMENT, NEEDS_CALL_CONTROL_KEY, NEEDS_LOCAL_ASTERISK, NEEDS_LISTENER.
| Name | Number | Description |
| WARM_INTRO_AVAILABILITY_UNSPECIFIED | 0 | Not computed, e.g. by a server older than warm intros. Treat it as unknown, not as available. |
| WARM_INTRO_AVAILABILITY_AVAILABLE | 1 | Warm intros can run: a WARM transfer whose effective |
| WARM_INTRO_AVAILABILITY_DISABLED_BY_DEPLOYMENT | 2 | The operator switched warm intros off for the whole deployment ( |
| WARM_INTRO_AVAILABILITY_NEEDS_LOCAL_ASTERISK | 3 | The deployment runs on several hosts, where the server cannot reach the project's Asterisk directly to run the intro. |
| WARM_INTRO_AVAILABILITY_NEEDS_LISTENER | 4 | The project cannot spare a listener to run the intro bot: its |
| WARM_INTRO_AVAILABILITY_NEEDS_CALL_CONTROL_KEY | 5 | The operator has not configured in-call control for the deployment (no
|
ONDEWO VTSI API
Manages the SOFTPHONE ACCOUNTS of a VTSI project: SIP accounts on the project's Asterisk that a human uses from a softphone such as Zoiper, to call into the project's listeners or to be reached by the project.
A softphone account is NEVER one of the ondewo000N accounts the per-call ondewo-sip containers register with: it has its own SIP credentials, its own endpoint on the Asterisk and, for SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, its own client certificate issued by the project's SOFTPHONE certificate authority.
Secrets are handed out exactly once. The SIP password and the password-protected PKCS#12 bundle carrying the client private key appear only in the responses of CreateSoftphoneAccount and RotateSoftphoneCredentials. VTSI keeps no copy of the private key or of the PKCS#12 password, and stores the SIP password only in the form the Asterisk needs to verify a SIP digest. No other RPC returns a secret; a lost private key or password is recovered by rotating it.
Errors are reported as gRPC status codes, not as error_message fields: INVALID_ARGUMENT for a malformed name, filter, field mask or value; NOT_FOUND for an unknown project, account or certificate; ALREADY_EXISTS for a sip_username already taken in the project; FAILED_PRECONDITION when the project or the account is in a state that does not allow the operation (each RPC names its cases); ABORTED when a concurrent change to the same account won, in which case nothing was stored and the request can be retried.
A change that reduces access is enforced before it is acknowledged. When UpdateSoftphoneAccount, DeleteSoftphoneAccount or RevokeSoftphoneCertificate is stored but the running Asterisk of a deployed project could not be updated, the RPC fails with FAILED_PRECONDITION; the stored change is applied by the next successful change or deployment. CreateSoftphoneAccount and RotateSoftphoneCredentials return their one-time secrets even then.
Authorization (only when the server enforces it, see the Projects service): a caller without a credential is UNAUTHENTICATED; every RPC of this service requires PROJECT_DEVELOPER or higher on the account's project, otherwise PERMISSION_DENIED, also for an unknown project.
rpc CreateSoftphoneAccount (CreateSoftphoneAccountRequest) returns (CreateSoftphoneAccountResponse)
Creates a softphone account in a VTSI project, generates its SIP password and, for
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, issues its first client certificate.
The response carries the ONE-TIME secrets; they cannot be retrieved again.
If the project is deployed the account is applied to the running Asterisk; otherwise it is applied on the next deployment.
Errors: NOT_FOUND if the project does not exist; ALREADY_EXISTS if the
sip_username is taken in the project; INVALID_ARGUMENT for an invalid or
reserved sip_username, an output-only field that was set, or an out-of-range value;
FAILED_PRECONDITION if the project is being deleted, or, for
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, if the project has no Asterisk port yet
or its SOFTPHONE certificate authority is unusable (a redeployment mints a new one).
The account is reachable on either TLS port only from the project's
softphone_permit_cidrs (default: the server's list, private networks unless the
operator changed it); see AsteriskConfigsVariables.softphone_permit_cidrs.
Idempotency: with idempotency_key a retry after a lost response does not create a
second account; it ROTATES the credentials of the account the first attempt created and returns
NEW one-time secrets (see CreateSoftphoneAccountRequest.idempotency_key). Without a key a
retry is answered ALREADY_EXISTS for the same sip_username; recover the
lost secrets then with RotateSoftphoneCredentials.
Events: VTSI_EVENT_SOFTPHONE_ACCOUNT_CREATED (a replayed key:
VTSI_EVENT_SOFTPHONE_CREDENTIALS_ROTATED).
rpc GetSoftphoneAccount (GetSoftphoneAccountRequest) returns (SoftphoneAccount)
Returns a softphone account. Never returns a secret.
Errors: NOT_FOUND if the account does not exist; INVALID_ARGUMENT for a
malformed name or an unknown field_mask path.
rpc UpdateSoftphoneAccount (UpdateSoftphoneAccountRequest) returns (SoftphoneAccount)
Updates the mutable fields of a softphone account named by update_mask. Credentials
are not changed here; use RotateSoftphoneCredentials.
Errors: NOT_FOUND if the account does not exist; INVALID_ARGUMENT for an
empty mask, an unknown, output-only or immutable path, or an out-of-range value;
FAILED_PRECONDITION when switching to
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE while the account has no
SOFTPHONE_CERTIFICATE_STATUS_ACTIVE certificate, or if the project is being deleted.
The account is reachable on either TLS port only from the project's
softphone_permit_cidrs (default: the server's list, private networks unless the
operator changed it); see AsteriskConfigsVariables.softphone_permit_cidrs.
rpc DeleteSoftphoneAccount (DeleteSoftphoneAccountRequest) returns (DeleteSoftphoneAccountResponse)
Deletes a softphone account. Its endpoint is removed from the Asterisk, its registrations are dropped, its calls in progress are hung up and every certificate it holds is revoked. Deletion is permanent.
Not idempotent: deleting an account that no longer exists (also a retry of a deletion that
succeeded) is NOT_FOUND. Allowed in every project status, also while the project is
being deleted.
Errors: NOT_FOUND if the account does not exist; INVALID_ARGUMENT for a
malformed name; FAILED_PRECONDITION when the deletion was STORED but the running
Asterisk of a deployed project could not be updated (reload failed, container unreachable, or the
project's Asterisk configuration stayed locked by another change for too long): the account is
gone from the database and its removal from the Asterisk is applied by the next successful change or
deployment, so a retry is NOT_FOUND; INTERNAL when the account was removed
but one of its calls could not be hung up. Never ABORTED: a deletion is not compared
against concurrent changes, it wins over them.
rpc ListSoftphoneAccounts (ListSoftphoneAccountsRequest) returns (ListSoftphoneAccountsResponse)
Lists the softphone accounts of a VTSI project, filtered, sorted and paged. Never returns a secret.
Errors: NOT_FOUND if the project does not exist; INVALID_ARGUMENT for an
invalid filter, an unknown field_mask path, a negative page_size or a
page_token that was not issued for the same project, filter and sorting.
rpc RotateSoftphoneCredentials (RotateSoftphoneCredentialsRequest) returns (RotateSoftphoneCredentialsResponse)
Rotates the SIP password and/or the client certificate of a softphone account and returns the new
ONE-TIME secrets. Every rotation rotates the SIP password, including one that asked only for
rotate_certificate: the Asterisk has no certificate revocation list, so a previous
certificate stops being usable for this account only because the password it was issued with
stops working. The new password takes effect immediately and drops the account's current
registrations, so every softphone using it must be reconfigured. A rotated certificate moves the
previous SOFTPHONE_CERTIFICATE_STATUS_ACTIVE certificate to
SOFTPHONE_CERTIFICATE_STATUS_SUPERSEDED. A rotation also unlocks an account that
RevokeSoftphoneCertificate locked (a SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE
account only once it again holds an ACTIVE certificate).
Rotating the certificate of a SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY account is
allowed: it issues the certificate that a later switch to
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE requires, and rotates the password too.
Errors: NOT_FOUND if the account does not exist; INVALID_ARGUMENT if
neither rotate_sip_password nor rotate_certificate is set;
FAILED_PRECONDITION if the project is being deleted, or, for
rotate_certificate, if the project has no Asterisk port yet or its SOFTPHONE
certificate authority is unusable.
rpc ListSoftphoneCertificates (ListSoftphoneCertificatesRequest) returns (ListSoftphoneCertificatesResponse)
Lists softphone client certificates, either of one softphone account or of a whole VTSI project, filtered and paged, newest first. Only public material is returned.
Errors: NOT_FOUND if the project or account does not exist;
INVALID_ARGUMENT if no scope is set, for an invalid filter, an unknown
field_mask path, a negative page_size or a foreign
page_token.
rpc GetSoftphoneCertificate (GetSoftphoneCertificateRequest) returns (SoftphoneCertificate)
Returns one softphone client certificate. Only public material is returned.
Errors: NOT_FOUND if the certificate does not exist; INVALID_ARGUMENT for
a malformed name or an unknown field_mask path.
rpc RevokeSoftphoneCertificate (RevokeSoftphoneCertificateRequest) returns (SoftphoneCertificate)
Revokes a softphone client certificate. The Asterisk has no certificate revocation list, so revocation is enforced on the account's SIP password rather than on the certificate: a revoked certificate still completes the TLS handshake on the project's mutual-TLS port, but it no longer gets its holder an account.
Revoking the ACTIVE certificate of an account LOCKS the account, whatever its transport
security: it is removed from the Asterisk and its registrations are dropped until
RotateSoftphoneCredentials issues a new password (and, for
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, a new certificate). Revoking a
SUPERSEDED certificate records the revocation only; its password was already rotated away.
Revoking an already revoked certificate is idempotent and keeps the original revocation time and
reason.
Errors: NOT_FOUND if the certificate does not exist; INVALID_ARGUMENT
for a malformed name or an over-long reason; FAILED_PRECONDITION when the revocation
(and the lock) was STORED but the running Asterisk of a deployed project could not be updated
(reload failed, container unreachable, or the project's Asterisk configuration stayed locked by
another change for too long): it is applied by the next successful change or deployment, and a
retry is idempotent; ABORTED when the account was changed concurrently (e.g. a rotation
or an update committed between the read and the write), in which case nothing was stored and the
request can be retried.
Events: VTSI_EVENT_SOFTPHONE_CERTIFICATE_REVOKED (not for an idempotent repeat).
rpc GetSoftphoneProvisioning (GetSoftphoneProvisioningRequest) returns (SoftphoneProvisioning)
Returns everything needed to configure a softphone for an account: server, port, transport,
outbound proxy, SIP identity, SRTP mode, codecs, the certificate authority to trust, which client
certificate to import, and step-by-step Zoiper instructions. It never contains the SIP password or
the private key; those were returned once by CreateSoftphoneAccount or
RotateSoftphoneCredentials.
Errors: NOT_FOUND if the account does not exist; FAILED_PRECONDITION if
the project is not DEPLOYED (the host and ports describe a running Asterisk), or if a
SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE account has no
SOFTPHONE_CERTIFICATE_STATUS_ACTIVE certificate.
rpc GetSoftphoneRegistration (GetSoftphoneRegistrationRequest) returns (SoftphoneRegistration)
Returns the CURRENT registrations (contacts) of a softphone account, read LIVE from the running
Asterisk of the project at the moment of the request (in the manner of pjsip show
contacts). Nothing is stored: two calls may differ, and an empty contacts list
means no device is registered right now (a disabled or locked account never has one). Answers
"is the softphone of this account connected, from where, with which client, and is it
reachable?".
Errors: NOT_FOUND if the account does not exist; INVALID_ARGUMENT for a
malformed name or an unknown field_mask path; FAILED_PRECONDITION if the
project is not DEPLOYED (there is no running Asterisk to ask);
UNAVAILABLE if the project's Asterisk could not be queried (container not running
or not answering within the server's timeout); retry later.
Read only, no event. Authorization: PROJECT_DEVELOPER or higher on the project.
The request message for Softphones.CreateSoftphoneAccount.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project in which to create the account. The format is: |
|
| softphone_account | SoftphoneAccount | The account to create. |
|
| idempotency_key | string | Optional client idempotency key: at most 255 printable ASCII characters, no whitespace; empty means
no deduplication. The key is scoped to the VTSI project and to this RPC and retained for 24 hours by
default (the server's A retry carrying the same key and the same request does NOT create a second account. Because the
server keeps no copy of the one-time secrets it handed out, it cannot replay the first response;
instead the retry ROTATES the credentials of the account the first attempt created, exactly like
Reusing a key with a different request is refused with |
The response message for Softphones.CreateSoftphoneAccount.
| Field | Type | Label | Description |
| softphone_account | SoftphoneAccount | The created account. |
|
| credentials | SoftphoneCredentials | ONE-TIME secrets: the SIP password and, for
|
The request message for Softphones.DeleteSoftphoneAccount.
| Field | Type | Label | Description |
| name | string | Resource name of the account to delete. The format is: |
The response message for Softphones.DeleteSoftphoneAccount.
| Field | Type | Label | Description |
| name | string | Resource name of the deleted account. |
|
| revoked_certificate_count | int32 | How many certificates were revoked by the deletion (the ACTIVE one and any SUPERSEDED ones). |
The request message for Softphones.GetSoftphoneAccount.
| Field | Type | Label | Description |
| name | string | Resource name of the account. The format is: |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Softphones.GetSoftphoneCertificate.
| Field | Type | Label | Description |
| name | string | Resource name of the certificate. The format is: |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response, as in ListSoftphoneCertificatesRequest.field_mask. |
The request message for Softphones.GetSoftphoneProvisioning.
| Field | Type | Label | Description |
| name | string | Resource name of the account to provision. The format is: |
The request message for Softphones.GetSoftphoneRegistration.
| Field | Type | Label | Description |
| name | string | Resource name of the account. The format is: |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
The request message for Softphones.ListSoftphoneAccounts.
| Field | Type | Label | Description |
| vtsi_project_name | string | VTSI project whose accounts to list. The format is: |
|
| filter | SoftphoneAccountFilter | Optional. Narrows the listing. Unset lists every account of the project. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response, as in GetSoftphoneAccountRequest.field_mask. |
|
| page_size | int32 | Optional. Maximum number of accounts per page. |
|
| page_token | string | optional | Optional. The |
| softphone_account_sorting | SoftphoneAccountSorting | Optional. Sorting of the listing. Unset sorts by |
The response message for Softphones.ListSoftphoneAccounts.
| Field | Type | Label | Description |
| softphone_accounts | SoftphoneAccount | repeated | The accounts of this page. |
| next_page_token | string | Token to retrieve the next page. Empty when there are no more results. |
The request message for Softphones.ListSoftphoneCertificates.
| Field | Type | Label | Description |
| vtsi_project_name | string | Every certificate of every account of this VTSI project. The format is: |
|
| softphone_account_name | string | The certificates of one softphone account. The format is: |
|
| filter | SoftphoneCertificateFilter | Optional. Narrows the listing. Unset lists every certificate in scope. |
|
| field_mask | google.protobuf.FieldMask | Optional. Partial response: the |
|
| page_size | int32 | Optional. Maximum number of certificates per page, with the same default, cap and validation as ListSoftphoneAccountsRequest.page_size. |
|
| page_token | string | optional | Optional. The |
The response message for Softphones.ListSoftphoneCertificates.
| Field | Type | Label | Description |
| softphone_certificates | SoftphoneCertificate | repeated | The certificates of this page, newest |
| next_page_token | string | Token to retrieve the next page. Empty when there are no more results. |
The request message for Softphones.RevokeSoftphoneCertificate.
| Field | Type | Label | Description |
| name | string | Resource name of the certificate to revoke. The format is: |
|
| reason | string | Optional. Why the certificate is revoked, e.g. |
The request message for Softphones.RotateSoftphoneCredentials. At least one of rotate_sip_password and rotate_certificate must be true.
| Field | Type | Label | Description |
| name | string | Resource name of the account. The format is: |
|
| rotate_sip_password | bool | Generate a new SIP password. The old one stops working immediately. |
|
| rotate_certificate | bool | Issue a new client certificate and key, and a new SIP password with them. The previous ACTIVE
certificate, if any, becomes |
The response message for Softphones.RotateSoftphoneCredentials.
| Field | Type | Label | Description |
| softphone_account | SoftphoneAccount | The account after the rotation. |
|
| credentials | SoftphoneCredentials | ONE-TIME secrets: |
A SIP account on a VTSI project's Asterisk for a human using a softphone. Never carries a secret.
| Field | Type | Label | Description |
| name | string | Output only. Resource name of the softphone account. The format is:
Ignored on create; identifies the account on update. |
|
| softphone_account_id | string | Output only. The |
|
| vtsi_project_name | string | Output only. Resource name of the VTSI project the account belongs to. The format is: |
|
| display_name | string | Human-readable name, shown as the caller name of calls from this softphone. At most 128 characters. Updatable. |
|
| sip_username | string | Required on create, immutable afterwards. The SIP user (extension) of the account: the user part of its address of record and its SIP digest username. 1 to 64 characters of , starting with a letter or digit, unique within the
project. Names starting with ondewo (case-insensitive) are reserved for the per-call
ondewo-sip container accounts and are rejected with INVALID_ARGUMENT. |
|
| transport_security | SoftphoneTransportSecurity | How the softphone secures its connection. Unset on create means
|
|
| enabled | bool | optional | Whether the account may register and place or receive calls. A disabled account keeps its
credentials and certificates, but the Asterisk refuses its registrations and calls and its current
registrations are dropped. Unset on create means |
| max_contacts | int32 | Maximum number of simultaneous registrations (devices) of this account. |
|
| labels | SoftphoneAccount.LabelsEntry | repeated | Free-form labels for organising and filtering accounts, e.g. , starting with a letter; values: at most 256
characters; at most 64 entries. Updatable (the whole map is replaced).
Control characters: a KEY cannot contain one (the key pattern refuses it with
INVALID_ARGUMENT); a VALUE is checked for its length only, so control characters
(including line breaks) are accepted and stored and returned verbatim. Clients that display or log
label values must escape them. |
| allowed_destinations | string | repeated | Asterisk dialplan extensions or patterns this softphone may dial, e.g. . Updatable (the whole list is replaced). |
| current_certificate_name | string | Output only. Resource name of the account's ACTIVE client certificate, empty when it has none. The format is: |
|
| current_certificate_sha256_fingerprint | string | Output only. SHA-256 fingerprint of the ACTIVE client certificate: 32 upper-case hex bytes separated
by colons, as displayed by |
|
| current_certificate_expire_time | google.protobuf.Timestamp | Output only. Expiry (notAfter) of the ACTIVE client certificate. Unset when there is none. |
|
| sip_password_set_at | google.protobuf.Timestamp | Output only. When the SIP password was last set, by create or by rotation. |
|
| created_by | string | Output only. The user who created the account. |
|
| created_at | google.protobuf.Timestamp | Output only. Creation time of the account. |
|
| modified_by | string | Output only. The user who last modified the account, including credential rotation. |
|
| modified_at | google.protobuf.Timestamp | Output only. Last modification time of the account, including credential rotation. |
|
| locked | bool | Output only. Whether the account is LOCKED: |
|
| locked_at | google.protobuf.Timestamp | Output only. When the account was locked. Unset when it is not locked (also for an account locked by a server older than 9.1.0 whose lock time is not known). |
|
| locked_reason | string | Output only. Why the account was locked: the |
|
| description | string | The person or role behind the account, e.g. |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Narrows a softphone account listing. Every field is optional; an unset field or an empty repeated field or map means "do not filter on this". Fields are combined with AND; the values within one repeated field are combined with OR; the entries of labels are combined with AND.
| Field | Type | Label | Description |
| transport_securities | SoftphoneTransportSecurity | repeated | Only accounts with one of these transport securities.
|
| enabled | bool | optional | Only enabled ( |
| labels | SoftphoneAccountFilter.LabelsEntry | repeated | Only accounts carrying every one of these labels. An entry with an empty value matches on the presence of the key alone; otherwise the value must match exactly. |
| display_name_contains | string | Case-insensitive substring match against |
|
| sip_username_contains | string | Case-insensitive substring match against |
|
| certificate_expires_before | google.protobuf.Timestamp | Only accounts whose ACTIVE certificate expires strictly before this instant. Accounts without an
ACTIVE certificate never match. Combine with |
|
| certificate_expires_after | google.protobuf.Timestamp | Only accounts whose ACTIVE certificate expires at or after this instant. Accounts without an ACTIVE
certificate never match. A window whose start is not before its end is rejected with
|
|
| locked | bool | optional | Only locked ( |
| Field | Type | Label | Description |
| key | string |
|
|
| value | string |
|
Sorting of a softphone account listing.
| Field | Type | Label | Description |
| sorting_field | SoftphoneAccountSorting.SoftphoneAccountSortingField | optional | The sorting field. Unset means |
| sorting_mode | VtsiProjectSortingMode | optional | The sorting mode. Unset means |
A client certificate issued to a softphone account by the project's SOFTPHONE certificate authority. Carries public material only: the private key exists solely inside the PKCS#12 bundle that was returned once when the certificate was issued. Every field is output only.
| Field | Type | Label | Description |
| name | string | Resource name of the certificate. The format is: |
|
| softphone_account_name | string | Resource name of the softphone account the certificate was issued to. The format is: |
|
| status | SoftphoneCertificateStatus | Lifecycle status of the certificate. Independent of expiry: an expired certificate keeps its
status and is recognised by |
|
| certificate_pem | string | The certificate, PEM encoded. |
|
| issuer_ca_certificate_pem | string | The SOFTPHONE certificate authority certificate that issued it, PEM encoded. The project's internal TLS port trusts this CA for client certificates. |
|
| sha256_fingerprint | string | SHA-256 fingerprint of the certificate: 32 upper-case hex bytes separated by colons, as displayed by
|
|
| serial_number | string | Serial number of the certificate, upper-case hex without separators. |
|
| subject | string | Subject distinguished name, RFC 4514 string form. |
|
| not_before | google.protobuf.Timestamp | Start of validity (notBefore). |
|
| not_after | google.protobuf.Timestamp | End of validity (notAfter). |
|
| created_by | string | The user who caused the certificate to be issued (create or rotation). |
|
| created_at | google.protobuf.Timestamp | When the certificate was issued. |
|
| superseded_at | google.protobuf.Timestamp | When the certificate became |
|
| superseded_by_certificate_name | string | Resource name of the certificate that superseded this one. Empty unless SUPERSEDED. |
|
| revoked_at | google.protobuf.Timestamp | When the certificate became |
|
| revoked_by | string | The user who revoked the certificate. Empty unless REVOKED. |
|
| revocation_reason | string | The reason given at revocation, or |
Narrows a softphone certificate listing. Combined like SoftphoneAccountFilter.
| Field | Type | Label | Description |
| statuses | SoftphoneCertificateStatus | repeated | Only certificates with one of these statuses. Empty matches every status.
|
| expires_before | google.protobuf.Timestamp | Only certificates whose |
|
| expires_after | google.protobuf.Timestamp | Only certificates whose |
One registered contact (device) of a softphone account.
| Field | Type | Label | Description |
| uri | string | The contact URI the device registered, e.g.
|
|
| user_agent | string | The |
|
| source_address | string | The source address the registration arrived from, as |
|
| expire_time | google.protobuf.Timestamp | When the registration expires unless the device refreshes it. |
|
| round_trip_ms | double | Round-trip time of the last qualify (SIP |
|
| status | SoftphoneContactStatus | Reachability of the contact. |
ONE-TIME secrets of a softphone account, returned only by CreateSoftphoneAccount and RotateSoftphoneCredentials. VTSI keeps no copy of the private key or of pkcs12_password and cannot return them again: store them now, or rotate later. Never log this message.
| Field | Type | Label | Description |
| sip_password | string | The SIP digest password. Set on create and on every rotation (a certificate rotation rotates the password too). At least 32 characters from a URL-safe alphabet. |
|
| pkcs12_bundle | bytes | The client private key, the client certificate and the issuing SOFTPHONE CA certificate as a
password-protected PKCS#12 ( |
|
| pkcs12_password | string | The password protecting |
|
| certificate | SoftphoneCertificate | Public view of the certificate inside |
Everything needed to configure a softphone for one account, except the secrets. Every field is output only.
| Field | Type | Label | Description |
| softphone_account_name | string | Resource name of the softphone account this describes. The format is: |
|
| transport_security | SoftphoneTransportSecurity | The account's transport security, which decides |
|
| sip_domain | string | The SIP domain of the account: the host part of its address of record. Zoiper: Domain. |
|
| sip_address | string | The full address of record, |
|
| sip_server_host | string | Host name or IP address of the project's Asterisk to connect to. It matches a subject alternative name of the server certificate. |
|
| sip_server_port | int32 | TLS port to connect to: the internal mutual-TLS port for
|
|
| sip_transport | string | Signalling transport. Always |
|
| outbound_proxy | string | Outbound proxy as |
|
| username | string | The SIP user. Zoiper: Username. |
|
| auth_username | string | The SIP digest authentication username. Zoiper: Authentication user. |
|
| realm | string | The SIP digest realm the Asterisk challenges with. |
|
| srtp_mode | SoftphoneSrtpMode | Media encryption the softphone must use. |
|
| codecs | string | repeated | Audio codecs the Asterisk accepts for this account, in preference order, by their Asterisk
names: |
| server_ca_certificate_pem | string | The certificate to trust for the Asterisk's TLS server, PEM encoded: its self-signed server
certificate, which is its own certificate authority. Import it as a trusted CA in the softphone, or
the TLS handshake fails verification. For a
|
|
| server_certificate_sha256_fingerprint | string | SHA-256 fingerprint of the Asterisk's TLS server certificate (colon-separated upper-case hex), for comparing with what the softphone displays on first connect. |
|
| client_certificate_name | string | Resource name of the client certificate to import. Empty for
|
|
| client_certificate_sha256_fingerprint | string | SHA-256 fingerprint of the client certificate to import: the one inside the PKCS#12 bundle returned
when it was issued. Empty for |
|
| client_certificate_expire_time | google.protobuf.Timestamp | Expiry (notAfter) of the client certificate to import. Unset for
|
|
| zoiper_instructions | string | Human-readable, step-by-step Zoiper 5 configuration with the values of this message filled in:
Accounts > Add account > manual configuration > SIP; then under Advanced the transport
|
|
| client_certificate_support_note | string | Note on client-certificate support, which depends on the Zoiper edition: an edition that cannot
present a client certificate cannot use |
The live registrations of one softphone account on its project's Asterisk. Every field is output only. Never carries a secret.
| Field | Type | Label | Description |
| softphone_account_name | string | Resource name of the softphone account. The format is: |
|
| contacts | SoftphoneContact | repeated | The currently registered contacts (devices), at most the account's |
| observed_at | google.protobuf.Timestamp | When the server read the registrations from the Asterisk. |
The request message for Softphones.UpdateSoftphoneAccount.
| Field | Type | Label | Description |
| softphone_account | SoftphoneAccount | The account to update, identified by |
|
| update_mask | google.protobuf.FieldMask | Required. The fields to update. Paths are field paths within
|
The field by which softphone accounts are sorted.
| Name | Number | Description |
| NO_SOFTPHONE_ACCOUNT_SORTING | 0 | Default order: by |
| SORT_SOFTPHONE_ACCOUNT_BY_DISPLAY_NAME | 1 | Sort by |
| SORT_SOFTPHONE_ACCOUNT_BY_SIP_USERNAME | 2 | Sort by |
| SORT_SOFTPHONE_ACCOUNT_BY_CREATION_DATE | 3 | Sort by |
| SORT_SOFTPHONE_ACCOUNT_BY_LAST_MODIFIED | 4 | Sort by |
| SORT_SOFTPHONE_ACCOUNT_BY_CERTIFICATE_EXPIRY | 5 | Sort by |
Lifecycle status of a softphone client certificate.
| Name | Number | Description |
| SOFTPHONE_CERTIFICATE_STATUS_UNSPECIFIED | 0 | Unspecified. Never returned; in a filter it matches nothing and is rejected with
|
| SOFTPHONE_CERTIFICATE_STATUS_ACTIVE | 1 | The account's current certificate. It is accepted by the project's Asterisk until it expires, or until the project's Asterisk port changes: the certificate authorities belong to the port, so a port change voids every issued certificate (the stored status is not changed; rotate the certificate). An account holds at most one ACTIVE certificate. |
| SOFTPHONE_CERTIFICATE_STATUS_SUPERSEDED | 2 | Replaced by a newer certificate through |
| SOFTPHONE_CERTIFICATE_STATUS_REVOKED | 3 | Explicitly revoked through |
Reachability of one registered contact of a softphone account, as the project's Asterisk qualifies it (SIP OPTIONS).
| Name | Number | Description |
| SOFTPHONE_CONTACT_STATUS_UNSPECIFIED | 0 | Unspecified. Never returned. |
| SOFTPHONE_CONTACT_STATUS_AVAILABLE | 1 | The contact answered the last qualify ( |
| SOFTPHONE_CONTACT_STATUS_UNAVAILABLE | 2 | The contact did not answer the last qualify ( |
| SOFTPHONE_CONTACT_STATUS_NOT_QUALIFIED | 3 | The contact is not qualified ( |
| SOFTPHONE_CONTACT_STATUS_UNKNOWN | 4 | The Asterisk has not determined the reachability yet ( |
Media encryption a softphone must use.
| Name | Number | Description |
| SOFTPHONE_SRTP_MODE_UNSPECIFIED | 0 | Unspecified. Never returned. |
| SOFTPHONE_SRTP_MODE_SDES_MANDATORY | 1 | SRTP with SDES key exchange (keys in the SDP, protected by the TLS signalling), MANDATORY: an
offer without SRTP is rejected by the Asterisk. In Zoiper: Media encryption |
How a softphone account secures its SIP signalling to the project's Asterisk. Both modes use TLS for signalling, SRTP for media and SIP digest authentication with the account's own credentials; they differ in which TLS port the softphone connects to and whether it must present a client certificate.
| Name | Number | Description |
| SOFTPHONE_TRANSPORT_SECURITY_UNSPECIFIED | 0 | Unspecified: identical to |
| SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE | 1 | Mutual TLS. The softphone connects to the project's internal TLS port, which requires a client certificate, and presents the certificate VTSI issued for this account from the project's SOFTPHONE certificate authority. SIP digest authentication is required in addition. The Asterisk cannot bind an account to one port: the account's PASSWORD alone can still REGISTER over the external TLS port and so receive the account's incoming calls, while every call it places that did not arrive over TLS on the internal port is refused with 403. Treat the password as a full credential of the account. |
| SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY | 2 | Server-authenticated TLS only. The softphone connects to the project's external TLS port, which does not ask for a client certificate, and authenticates with SIP digest alone. Intended for softphone editions without client-certificate support, e.g. some Zoiper editions. A call it places over a cleartext transport is refused with 403. |
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
| double | double | double | float | float64 | double | float | Float | |
| float | float | float | float | float32 | float | float | Float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |