ondewo/nlu/agent.proto

Top

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.

Services

Agents

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.

Service Methods

CreateAgent

rpc CreateAgent (CreateAgentRequest) returns (Agent)
Creates the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' -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
{ "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" }

UpdateAgent

rpc UpdateAgent (UpdateAgentRequest) returns (Agent)
Updates the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' -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
{ "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" }

GetAgent

rpc GetAgent (GetAgentRequest) returns (Agent)
Retrieves the specified agent. Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' -d '{
  "parent": "projects/76aaf4f3-a1f6-4fda-b4b3-351c64e65bc4/agent"
}' localhost:50055 ondewo.nlu.Agents.GetAgent
{ "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" }

DeleteAgent

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
{}

DeleteAllAgents

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
{}

ListAgents

rpc ListAgents (ListAgentsRequest) returns (ListAgentsResponse)
Lists agents in the server associated to the current user Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' localhost:50055 ondewo.nlu.Agents.ListAgents
{ "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" }

ListAgentsOfUser

rpc ListAgentsOfUser (ListAgentsRequest) returns (ListAgentsOfUserResponse)
Lists agents in the server associated to the given user Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' localhost:50055 ondewo.nlu.Agents.ListAgentsOfUser
{ "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" }

ListAllAgents

rpc ListAllAgents (ListAgentsRequest) returns (ListAgentsResponse)
Lists all agents in the server Examples:
grpcurl -plaintext -H 'Authorization: Bearer ' localhost:50055 ondewo.nlu.Agents.ListAllAgents
{ "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" }

AddUserToProject

rpc AddUserToProject (AddUserToProjectRequest) returns (.google.protobuf.Empty)
Adds a user with specified id to the project (agent)

RemoveUserFromProject

rpc RemoveUserFromProject (RemoveUserFromProjectRequest) returns (.google.protobuf.Empty)
Removes a user with specified id from the project (agent)

ListUsersInProject

rpc ListUsersInProject (ListUsersInProjectRequest) returns (ListUsersInProjectResponse)
Lists users in the project (agent)

GetPlatformInfo

rpc GetPlatformInfo (.google.protobuf.Empty) returns (GetPlatformInfoResponse)
Gets information from the platform
Request parameter: google.protobuf.Empty

ListProjectPermissions

rpc ListProjectPermissions (ListProjectPermissionsRequest) returns (ListProjectPermissionsResponse)
List permissions from the project (agent)

TrainAgent

rpc TrainAgent (TrainAgentRequest) returns (Operation)
Trains the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>

BuildCache

rpc BuildCache (BuildCacheRequest) returns (Operation)
Builds cache for the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>

ExportAgent

rpc ExportAgent (ExportAgentRequest) returns (Operation)
Exports the specified agent to a ZIP file.
Operation <response: ExportAgentResponse, metadata: google.protobuf.Struct>

ExportBenchmarkAgent

rpc ExportBenchmarkAgent (ExportBenchmarkAgentRequest) returns (Operation)
Exports the specified train agent to a ZIP file after train-test split, returns the test TrainingPhrase list.

ImportAgent

rpc ImportAgent (ImportAgentRequest) returns (Operation)
Imports the specified agent from a ZIP file.
Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest.
Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>

MigrateAgent

rpc MigrateAgent (MigrateAgentRequest) returns (Operation)

OptimizeRankingMatch

rpc OptimizeRankingMatch (OptimizeRankingMatchRequest) returns (Operation)

RestoreAgent

rpc RestoreAgent (RestoreAgentRequest) returns (Operation)
Restores the specified agent from a ZIP file.
Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted.
Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>

GetAgentStatistics

rpc GetAgentStatistics (GetAgentStatisticsRequest) returns (GetAgentStatisticsResponse)
Gets statistics for the agent

GetSessionsStatistics

rpc GetSessionsStatistics (GetSessionsStatisticsRequest) returns (GetSessionsStatisticsResponse)

GetSessionsStatisticsTimeSeries

rpc GetSessionsStatisticsTimeSeries (GetSessionsStatisticsTimeSeriesRequest) returns (GetSessionsStatisticsTimeSeriesResponse)
Gets LLM telemetry statistics for sessions bucketed over time (time series). Supports LLM-typed report types (SESSION_LLM_*) only.

SetAgentStatus

rpc SetAgentStatus (SetAgentStatusRequest) returns (Agent)
Sets status for the agent

SetResources

rpc SetResources (SetResourcesRequest) returns (.google.protobuf.Empty)
Sets resources

DeleteResources

rpc DeleteResources (DeleteResourcesRequest) returns (.google.protobuf.Empty)
Deletes resources

ExportResources

rpc ExportResources (ExportResourcesRequest) returns (ExportResourcesResponse)
Exports resources

GetModelStatuses

rpc GetModelStatuses (GetModelStatusesRequest) returns (GetModelStatusesResponse)
Get statuses of models related to project

GetPlatformMapping

rpc GetPlatformMapping (GetPlatformMappingRequest) returns (PlatformMapping)
Get all set platform name mappings for an Agent

SetPlatformMapping

rpc SetPlatformMapping (PlatformMapping) returns (PlatformMapping)
Set platform name mappings for an Agent

GetFullTextSearchEntityType

rpc GetFullTextSearchEntityType (FullTextSearchRequest) returns (FullTextSearchResponseEntityType)
Full text search endpoint in entity types

GetFullTextSearchEntity

rpc GetFullTextSearchEntity (FullTextSearchRequest) returns (FullTextSearchResponseEntity)
Full text search endpoint in entities

GetFullTextSearchEntitySynonym

rpc GetFullTextSearchEntitySynonym (FullTextSearchRequest) returns (FullTextSearchResponseEntitySynonym)
Full text search endpoint in entity synonyms

GetFullTextSearchIntent

rpc GetFullTextSearchIntent (FullTextSearchRequest) returns (FullTextSearchResponseIntent)
Full text search endpoint in intents

GetFullTextSearchIntentContextIn

rpc GetFullTextSearchIntentContextIn (FullTextSearchRequest) returns (FullTextSearchResponseIntentContextIn)
Full text search endpoint in context ins of intents

GetFullTextSearchIntentContextOut

rpc GetFullTextSearchIntentContextOut (FullTextSearchRequest) returns (FullTextSearchResponseIntentContextOut)
Full text search endpoint in context outs of intents

GetFullTextSearchIntentUsersays

rpc GetFullTextSearchIntentUsersays (FullTextSearchRequest) returns (FullTextSearchResponseIntentUsersays)
Full text search endpoint in user says of intents

GetFullTextSearchIntentTags

rpc GetFullTextSearchIntentTags (FullTextSearchRequest) returns (FullTextSearchResponseIntentTags)
Full text search endpoint in tags of intents

GetFullTextSearchIntentResponse

rpc GetFullTextSearchIntentResponse (FullTextSearchRequest) returns (FullTextSearchResponseIntentResponse)
Full text search endpoint in responses of intents

GetFullTextSearchIntentParameters

rpc GetFullTextSearchIntentParameters (FullTextSearchRequest) returns (FullTextSearchResponseIntentParameters)
Full text search endpoint in parameters of intents

ReindexAgent

rpc ReindexAgent (ReindexAgentRequest) returns (Operation)
Force reindexing Intent and Entity data of Agent

CreateProjectTechnicalUser

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.

ListProjectTechnicalUsers

rpc ListProjectTechnicalUsers (ListProjectTechnicalUsersRequest) returns (ListProjectTechnicalUsersResponse)
Lists the project-scoped technical users of the project (agent).

DeleteProjectTechnicalUser

rpc DeleteProjectTechnicalUser (DeleteProjectTechnicalUserRequest) returns (.google.protobuf.Empty)
Deletes a project-scoped technical user (removes the Keycloak user and the project membership/projection rows).

RotateProjectTechnicalUserPassword

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.

Methods with HTTP bindings

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 *
Messages

AddUserToProjectRequest

Request to add user to project.

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

user_id string

id of the user

project_role_id uint32

ID of the project role of the user

Agent

Project/Agent messages

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent
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 Update method.

supported_language_codes string repeated

Optional. The list of all languages supported by this agent (except for the default_language_code).

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 (Sessions.PrepareWarmTransferIntro). Unset = intros are enabled while the server's warm transfer feature is switched on, with the built-in texts.

AgentOfUserWithOwner

This message contains the agent of user with owner

FieldTypeLabelDescription
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)

AgentSorting

Sorting order of agent

FieldTypeLabelDescription
sorting_field AgentSorting.AgentSortingField

sorting field for agent sorting

sorting_mode SortingMode

Sorting mode

AgentWithOwner

This message contains the agent with owner

FieldTypeLabelDescription
agent Agent

The agent

owner User

User who created the agent

BuildCacheRequest

The request message for Agents.TrainAgentBuildCache.

FieldTypeLabelDescription
parent string

Required. The project that the agent to build cache is associated with. Format:

projects/<project_uuid>

branch string

Name of the branch of the agent for versioning. The default branch name is develop.

CreateAgentRequest

Request to create an agent

FieldTypeLabelDescription
agent Agent

The agent

agent_view AgentView

Optional. Specify the view of the returned agent (sparse view by default)

CreateProjectTechnicalUserRequest

Request to create a project-scoped technical user (PROJECT_EXECUTOR, 2FA-exempt).

FieldTypeLabelDescription
parent string

Required. The project (agent) that the technical user is scoped to. Format:

projects/<project_uuid>/agent

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.

CreateProjectTechnicalUserResponse

Response with the freshly minted technical user's credentials.

The password is returned ONCE and cannot be retrieved later.

FieldTypeLabelDescription
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.

CustomPlatformInfo

This message contains the information of custom platform

FieldTypeLabelDescription
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.

DeleteAgentRequest

Request to delete the agent

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

DeleteProjectTechnicalUserRequest

Request to delete a project-scoped technical user.

FieldTypeLabelDescription
parent string

Required. The project (agent) that the technical user is scoped to. Format:

projects/<project_uuid>/agent

user_id string

Required. The id of the technical user to delete.

DeleteResourcesRequest

Request to delete resources

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

ExportAgentRequest

The request message for Agents.ExportAgent.

FieldTypeLabelDescription
parent string

Required. The project that the agent to export is associated with. Format:

projects/<project_uuid>

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.

ExportAgentResponse

The response message for Agents.ExportAgent.

FieldTypeLabelDescription
agent_uri string

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

agent_content bytes

The exported agent. Example for how to export an agent to a zip file via a command line:

curl \
  'https://dialogflow.googleapis.com/v2/projects//agent:export'\
  -X POST \
  -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --compressed \
  --data-binary '{}' \
| grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
| base64 --decode > 

ExportBenchmarkAgentRequest

Request to export benchmark agent

FieldTypeLabelDescription
parent string

Agent related info Required. The project that the agent to export is associated with. Format:

projects/<project_uuid>

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

ExportBenchmarkAgentResponse

Response to export benchmark agent

FieldTypeLabelDescription
agent_content bytes

Agent responses as zip file

training_phrases ExportBenchmarkAgentResponse.TrainingPhrasesEntry repeated

Key is the language code, value is the corresponding ListTrainingPhrasesResponse

ExportBenchmarkAgentResponse.TrainingPhrasesEntry

FieldTypeLabelDescription
key string

value ListTrainingPhrasesResponse

ExportResourcesRequest

Request to export resources

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

ExportResourcesResponse

Response to export resources

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

FullTextSearchRequest

This message is a request to run full text search

FieldTypeLabelDescription
parent string

Required. The project that the agent is associated with. Format:

projects/<project_uuid>/agent

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

FullTextSearchResponseEntity

This message is a response of full text search of entity

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseEntity.EntitySearchResult

Search result for an entity

FieldTypeLabelDescription
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.

FullTextSearchResponseEntitySynonym

This message is a response of full text search of synonym entity

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseEntitySynonym.EntitySynonymSearchResult

Search result for an entity synonym

FieldTypeLabelDescription
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.

FullTextSearchResponseEntityType

This message is a response of full text search of entity type

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseEntityType.EntityTypeSearchResult

Search result for an entity type

FieldTypeLabelDescription
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.

FullTextSearchResponseIntent

This message is a response of full text search of intent

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntent.IntentSearchResult

Search result for an intent

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentContextIn

This message is a response of full text search of intent with context in

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntentContextIn.IntentContextInSearchResult

Search result for an intent input context

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentContextOut

This message is a response of full text search of intent with context out

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntentContextOut.IntentContextOutSearchResult

Search result for an intent output context

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentParameters

This message is a response of full text search of intent with parameters

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntentParameters.IntentParametersSearchResult

Search result for an intent parameter

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentResponse

This message is a response of full text search of intent response

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

FullTextSearchResponseIntentResponse.IntentResponseSearchResult

Search result for an intent response

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentTags

This message is a response of full text search of intent with tags

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntentTags.IntentTagsSearchResult

Search result for an intent tag

FieldTypeLabelDescription
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.

FullTextSearchResponseIntentUsersays

This message is a response of full text search of intent with sentence

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

FullTextSearchResponseIntentUsersays.IntentUsersaysSearchResult

Search result for an intent training phrase (user says)

FieldTypeLabelDescription
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.

GetAgentRequest

The request message for Agents.GetAgent.

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

GetAgentStatisticsRequest

Request statistics of the agent

FieldTypeLabelDescription
parent string

Required. The project to get statistics from. Format:

projects/<project_uuid>

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. "claude-3-5-sonnet-20241022"). Empty list = all models.

llm_provider_filter string repeated

Optional. Restrict LLM aggregations to specific providers (e.g. "anthropic", "openai"). Empty list = all providers.

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. ["model_name", "provider"]). Empty list = no grouping.

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 LlmTelemetry.base_url values, as reported in LlmTelemetryReport.base_urls_used). An empty string selects calls whose model configuration states no base URL. Empty list = all.

GetAgentStatisticsResponse

Response to get statistics of the agent

FieldTypeLabelDescription
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 llm_telemetry_report.

GetModelStatusesRequest

Request to get model statuses

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agent

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.

GetModelStatusesResponse

Response to get model statuses

FieldTypeLabelDescription
model_statuses ModelStatus repeated

List of model statuses matching the request filters.

GetPlatformInfoResponse

GIT information about the version of the server

FieldTypeLabelDescription
version string

version of the server build

commit_hash string

git commit hash of the server build

GetPlatformMappingRequest

Request to get platform mapping

FieldTypeLabelDescription
parent string

Required. The project that the agent is associated with. Format:

projects/<project_uuid>/agent

GetSessionsStatisticsRequest

Request of the report of the statistics about sessions

FieldTypeLabelDescription
parent string

Required. The project to get statistics from. Format:

projects/<project_uuid>

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.
Example: paths=["duration_in_s_min", "id", "session_id", "project_id"]

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 LlmTelemetry.base_url values, as reported in LlmTelemetryReport.base_urls_used). An empty string selects calls whose model configuration states no base URL. Empty list = all.

GetSessionsStatisticsResponse

Report of the statistics about sessions

FieldTypeLabelDescription
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_*).

GetSessionsStatisticsTimeSeriesRequest

Request for time-bucketed LLM telemetry statistics about sessions.

FieldTypeLabelDescription
parent string

Required. The project to get statistics from. Format:

projects/<project_uuid>/agent

type SessionsReportType

Type of report. Only LLM-typed report types (SESSION_LLM_*) are supported.

session_filter SessionFilter

Required. A filter narrowing the sessions; earliest / latest define the time range that is bucketed.

bucket_width_seconds int32

Optional. Width of one bucket in seconds. 0 = the server picks (time range divided by max_buckets).

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 LlmTelemetry.base_url values, as reported in LlmTelemetryReport.base_urls_used). An empty string selects calls whose model configuration states no base URL. Empty list = all.

GetSessionsStatisticsTimeSeriesResponse

Response with time-bucketed LLM telemetry statistics.

FieldTypeLabelDescription
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.

ImportAgentRequest

The request message for Agents.ImportAgent.

FieldTypeLabelDescription
parent string

Required. The project that the agent to import is associated with. Format:

projects/<project_uuid>

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.
Example for how to import an agent via the command line:

curl \
  'https://dialogflow.googleapis.com/v2/projects//agent:import\
   -X POST \
   -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
   -H 'Accept: application/json' \
   -H 'Content-Type: application/json' \
   --compressed \
   --data-binary "{
      'agentContent': '$(cat  | base64 -w 0)'
   }"

ListAgentsOfUserResponse

Get list of agents of user

FieldTypeLabelDescription
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

ListAgentsRequest

Request to get the list of agents

FieldTypeLabelDescription
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.

ListAgentsResponse

Get list of agents

FieldTypeLabelDescription
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

ListProjectPermissionsRequest

Project permissions

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListProjectPermissionsResponse

List project permissions

FieldTypeLabelDescription
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

ListProjectTechnicalUsersRequest

Request to list the project-scoped technical users of a project (agent).

FieldTypeLabelDescription
parent string

Required. The project (agent) whose technical users are listed. Format:

projects/<project_uuid>/agent

page_token string

Optional. The next_page_token value returned from a previous list request. The page token to support pagination.

ListProjectTechnicalUsersResponse

Response listing the project-scoped technical users of a project (agent).

FieldTypeLabelDescription
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.

ListUsersInProjectRequest

Request to list users in the project

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListUsersInProjectResponse

List the users in a project

FieldTypeLabelDescription
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

LlmTelemetryTimeSeriesBucket

One time bucket of aggregated LLM telemetry.

FieldTypeLabelDescription
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.

MigrateAgentRequest

Request to migrate an agent

FieldTypeLabelDescription
agent_content bytes

The agent to migrate as zip file

ModelStatus

Status of model

FieldTypeLabelDescription
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.

OptimizeRankingMatchRequest

This message is a request to run Optimize Ranking Match

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

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

OptimizeRankingMatchResponse

This message is a response of Optimize Ranking Match

FieldTypeLabelDescription
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

PlatformMapping

This message contains the mapping of platform

FieldTypeLabelDescription
parent string

Required. The project that the agent is associated with. Format:

projects/<project_uuid>/agent

platform_info CustomPlatformInfo repeated

Required. If not set, it will set it empty.

ProjectTechnicalUser

A single project-scoped technical user entry.

FieldTypeLabelDescription
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.

RankingMatchOptimizationConfig

This message contains the configuration to run Optimize Ranking Match

FieldTypeLabelDescription
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
example {'OndewoIntentSimilarityMatch': 0.59, 'OndewoIntentNamedSimilarityMatch': 0.39}

ReindexAgentRequest

This message is a request to reindex agent

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

RemoveUserFromProjectRequest

Request to remove user from the project.

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

user_id string

id of the user

RestoreAgentRequest

The request message for Agents.RestoreAgent.

FieldTypeLabelDescription
parent string

Required. The project that the agent to restore is associated with. Format:

projects/<project_uuid>

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.
Example for how to restore an agent via the command line:

curl \
  'https://dialogflow.googleapis.com/v2/projects//agent:restore\
   -X POST \
   -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
   -H 'Accept: application/json' \
   -H 'Content-Type: application/json' \
   --compressed \
   --data-binary "{
       'agentContent': '$(cat  | base64 -w 0)'
   }" \

RotateProjectTechnicalUserPasswordRequest

Request to rotate the password of a project-scoped technical user.

FieldTypeLabelDescription
parent string

Required. The project (agent) that the technical user is scoped to. Format:

projects/<project_uuid>/agent

user_id string

Required. The id of the technical user whose password is rotated.

RotateProjectTechnicalUserPasswordResponse

Response with the rotated password.

The password is returned ONCE and cannot be retrieved later.

FieldTypeLabelDescription
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.

SetAgentStatusRequest

Request to set status of the agent

FieldTypeLabelDescription
parent string

Required. The project of which to set the status. Format:

projects/<project_uuid>/agent

status AgentStatus

Required. Status of the agent

agent_view AgentView

Optional. View of the returned agent

SetResourcesRequest

Request to set resources

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

TrainAgentRequest

The request message for Agents.TrainAgent.

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

branch string

Name of the branch of the agent for versioning. The default branch name is develop.

initiation_protocol InitiationProtocol

Defines when to initiate newly created agent when training started

UpdateAgentRequest

Request to update the agent

FieldTypeLabelDescription
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.

UserInProject

Request to get user in project

FieldTypeLabelDescription
parent string

Required. The project that the agent to train is associated with. Format:

projects/<project_uuid>

user User

User object

role_id uint32

ID of the project role of the user

WarmTransferAgentLexicon

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.

FieldTypeLabelDescription
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".

WarmTransferAgentSettings

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.

FieldTypeLabelDescription
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 = PrepareWarmTransferIntro answers FAILED_PRECONDITION with reason=warm-intro-disabled-for-agent.

llm_ccai_service_name string

The ONDEWO_NLU_LLM CCAI service of the LLM intro when the request names none. Empty = the project's first ONDEWO_NLU_LLM service.

default_texts WarmTransferAgentSettings.DefaultTextsEntry repeated

The default texts, keyed by language code (e.g. de).

extra_lexicon WarmTransferAgentSettings.ExtraLexiconEntry repeated

Additional words and phrases of the decision lexicon, keyed by language code (e.g. de).

WarmTransferAgentSettings.DefaultTextsEntry

FieldTypeLabelDescription
key string

value WarmTransferAgentTexts

WarmTransferAgentSettings.ExtraLexiconEntry

FieldTypeLabelDescription
key string

value WarmTransferAgentLexicon

WarmTransferAgentTexts

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.

FieldTypeLabelDescription
ready_question string

The first question to the target (placeholder {project}).

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 {callee_name}, {reason}).

caller_unreachable_message string

The message the caller hears when the target could not be reached or gave no decision (placeholder {callee_name}).

Enums

AgentSorting.AgentSortingField

Sorting field

NameNumberDescription
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

AgentStatus

Type of Agent / Project status

NameNumberDescription
ACTIVE 0

If project is active, all its endpoints are active

INACTIVE 1

If project is inactive:

  • members of the project do not see the project anymore except users with project role "PROJECT_ADMIN" and users with server role "SERVER_ADMIN"
  • nothing is allowed (no endpoint) on the project except "SetAgentStatus" by PROJECT_ADMIN or SERVER_ADMIN

AgentView

Structure of agent view

NameNumberDescription
AGENT_VIEW_UNSPECIFIED 0

Unspecified agent view: the view is defined by the call:

  • CreateAgent: AGENT_VIEW_SHALLOW
  • UpdateAgent: AGENT_VIEW_SHALLOW
  • GetAgent: AGENT_VIEW_FULL
  • ListAgents: AGENT_VIEW_SHALLOW

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

FullTextSearchRequest.QueryType

Type of query

NameNumberDescription
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

InitiationProtocol

Defines when to initiate newly created agent when training started

NameNumberDescription
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

ModelStatus.StatusName

Status name of the model.

NameNumberDescription
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

ReportFormat

File formats for reports

NameNumberDescription
CSV 0

CSV (comma separated values) file format

HTML 1

HTML file format

JSON 2

JSON file format

ReportType

Type of reports about the domain of the agent

NameNumberDescription
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.

SessionsReportType

Type of reports about the domain of the agent

NameNumberDescription
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 sql_query in request. Allowed tables to query are:

  • session
  • session_context
  • session_step
  • session_step_context
  • session_step_detect_entity
  • session_step_detect_intent
  • session_step_detect_intent_context_in
  • session_step_detect_intent_context_out
  • session_step_detect_intent_context_out
  • session_step_detect_intent_label
  • session_step_detect_intent_tag
Example:
SELECT ... FROM session
SELECT ... FROM session, session_steps

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 llm_*_filter fields to restrict to specific models / providers / agents.

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 (stop, length, tool_calls, content_filter, error, ...).

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.

ondewo/nlu/aiservices.proto

Top

Services

AiServices

The Central class defining the ondewo ai services

Service Methods

ExtractEntities

rpc ExtractEntities (ExtractEntitiesRequest) returns (ExtractEntitiesResponse)
Processes a natural language query and returns detected entities

GenerateUserSays

rpc GenerateUserSays (GenerateUserSaysRequest) returns (GenerateUserSaysResponse)
Generates a list of training phrases

GenerateResponses

rpc GenerateResponses (GenerateResponsesRequest) returns (GenerateResponsesResponse)
Generate responses from all intents using synonyms

GetAlternativeSentences

rpc GetAlternativeSentences (GetAlternativeSentencesRequest) returns (GetAlternativeSentencesResponse)
Generates alternative phrase based on original phrase

GetAlternativeTrainingPhrases

rpc GetAlternativeTrainingPhrases (GetAlternativeTrainingPhrasesRequest) returns (GetAlternativeTrainingPhrasesResponse)
Generates alternative training phrase based on original training phrase

GetSynonyms

rpc GetSynonyms (GetSynonymsRequest) returns (GetSynonymsResponse)
Generates synonyms for a certain word

ClassifyIntents

rpc ClassifyIntents (ClassifyIntentsRequest) returns (ClassifyIntentsResponse)
Preprocess text and detects intents in a sentence

ExtractEntitiesFuzzy

rpc ExtractEntitiesFuzzy (ExtractEntitiesFuzzyRequest) returns (ExtractEntitiesResponse)
Processes a natural language query and returns detected entities

LlmGenerate

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.

StreamingLlmGenerate

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.

ListLlmModels

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.

Methods with HTTP bindings

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 *
Messages

AltSentence

This message contains an alternative sentence

FieldTypeLabelDescription
sentence string

Alternative sentence

score float

Score associated to the alternative sentence resulted

AltTrainingPhrase

This message contains an alternative training phrase

FieldTypeLabelDescription
training_phrase Intent.TrainingPhrase

Alternative training phrase

score float

Score associated to training_phrase

BertAugEnrichmentConfig

Configuration for BERT augmenter enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

ClassifyIntentsRequest

The request for intent classification.

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

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

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:

  • EXCLUSIVE - skip algorithms listed in algorithms field,
  • INCLUSIVE - run ONLY algorithms listed in algorithms field,
  • UNSPECIFIED - default mode, described in agent config

algorithms IntentAlgorithms repeated

Optional: Algorithm list

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ClassifyIntentsResponse

Response containing the intents classified in a sentence

FieldTypeLabelDescription
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

DataEnrichmentConfig

This message contains the configuration of data enrichment

FieldTypeLabelDescription
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

EntityDetected

This message contains the entity detected

FieldTypeLabelDescription
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

EntityEnrichmentConfig

Configuration for Entity enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

EntityTypeFuzzyNerConfig

Configuration for Fuzzy Entity Recognizer

FieldTypeLabelDescription
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

ExtractEntitiesFuzzyRequest

This message is a request to extract entities with Fuzzy Entity Recognizer

FieldTypeLabelDescription
parent string

the parent of the request Format:

projects/<project_uuid>

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.

ExtractEntitiesRequest

The request to detect parameters.

FieldTypeLabelDescription
parent string

the parent of the request Format:

projects/<project_uuid>

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:

projects/<project_uuid>/agent/intents/<intent_uuid>

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ExtractEntitiesResponse

This message is a response of extracting entities

FieldTypeLabelDescription
entities_detected EntityDetected repeated

A list of entities detected

text string

The text containing the entities detected

GPT2EnrichmentConfig

Configuration for GPT2 enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

GenerateResponsesRequest

Request to generate responses

FieldTypeLabelDescription
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:

projects/<project_uuid>

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.

GenerateResponsesResponse

Response containing responses

FieldTypeLabelDescription
responses string repeated

A list of responses

GenerateUserSaysRequest

Request to generate user sentences

FieldTypeLabelDescription
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:

projects/<project_uuid>

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.

GenerateUserSaysResponse

Response containing user sentences

FieldTypeLabelDescription
user_says string repeated

A list of sampled sentences

GetAlternativeSentencesRequest

Request to get alternative sentences

FieldTypeLabelDescription
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:

projects/<project_uuid>

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.

GetAlternativeSentencesResponse

Response containing alternative sentences

FieldTypeLabelDescription
alternative_sentences AltSentence repeated

A list of alternative sentences

GetAlternativeTrainingPhrasesRequest

Request to get alternative training phrases

FieldTypeLabelDescription
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:

projects/<project_uuid>

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.

GetAlternativeTrainingPhrasesResponse

Response containing alternative training phrases

FieldTypeLabelDescription
alternative_training_phrases AltTrainingPhrase repeated

A list of alternative training phrases

GetSynonymsRequest

Request to get synonyms

FieldTypeLabelDescription
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:

projects/<project_uuid>

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetSynonymsResponse

Response containing synonyms

FieldTypeLabelDescription
synonyms Synonym repeated

A list of synonyms

GloVeEnrichmentConfig

Configuration for GloVe enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

IntentClassified

Intent classified by a certain intent classifier

FieldTypeLabelDescription
intent_name string

The unique identifier of this intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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

ListLlmModelsRequest

The request message to list available LLM models for a specified CCAI service.

FieldTypeLabelDescription
ccai_service_name string

The CCAI service for which to list models. Format:

projects/<project_uuid>/ccai/services/<service_uuid>

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListLlmModelsResponse

The response message containing a list of available LLM models.

FieldTypeLabelDescription
llm_models LlmModel repeated

A list of LLM models associated with the specified CCAI service.
Each model in this list represents an individual language model that can
be used within the service, including details such as name, provider, and description.

LlmEnrichmentConfig

Configuration for large language model (LLM) enrichment

FieldTypeLabelDescription
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:

projects/<project_uuid>/ccai/services/<service_uuid>

LlmGenerateRequest

The request message to generate a response from a Large Language Model (LLM).

FieldTypeLabelDescription
llm_generation_request google.protobuf.Struct

The request payload for the LLM, structured according to the specific requirements of the large language model provider.
The payload must fit the format expected by the specified LLM provider, as defined by

CcaiServiceProvider

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:

projects/<project_uuid>/ccai/services/<service_uuid>

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.

LlmGenerateResponse

The response message containing the generated output from a Large Language Model (LLM).

FieldTypeLabelDescription
llm_generation_response google.protobuf.Struct

The response data from the LLM, returned as a structured payload.
This can contain the text generation, embeddings, or other outputs based on the specific request made to the LLM provider.

file_resources FileResource repeated

Files as input for the generation request, e.g., generated pictures, audio or video

LlmModel

Represents an individual LLM model available within a CCAI service.

FieldTypeLabelDescription
name string

The resource name of the model. Format:

projects/<project_uuid>/ccai/services/<service_uuid>/model/<model_uuid>
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

LlmGenerateRequest
and
StreamingLlmGenerateRequest

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.

StreamingLlmGenerateResponse

The response message for streaming generation from a Large Language Model (LLM).

FieldTypeLabelDescription
llm_generation_stream_response google.protobuf.Struct

The response data from the LLM in a streaming format, returned as a structured payload.
This response is part of a continuous stream of data from the LLM, allowing incremental results to be sent as they are generated.

Synonym

This message contains a Synonym

FieldTypeLabelDescription
synonym string

Synonym word

score int32

Score associated to the synonym resulted

ThesaurusEnrichmentConfig

Configuration for Thesaurus enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

Word2VecEnrichmentConfig

Configuration for Word2Vec enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

WordNetAugEnrichmentConfig

Configuration for WordNet augmenter enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

XLNetAugEnrichmentConfig

Configuration for XLNet enrichment

FieldTypeLabelDescription
is_active bool

Activation flag

enrichment_factor int32

Factor of enrichment

execution_order int32

Order of augmenter execution

Enums

EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm

Enum of fuzzy ner algorithms

NameNumberDescription
PREFILTER_LEVENSHTEIN 0

Levenshtein algorithm for fuzzy ner matching

LOCAL_MAXIMUM 1

local maximum

IntentAlgorithms

Type of Intent algorithm.

NameNumberDescription
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

Mode

Type of mode

NameNumberDescription
UNSPECIFIED 0

default mode, described in agent config

EXCLUSIVE 1

skip algorithms listed in algorithms field,

INCLUSIVE 2

run ONLY algorithms listed in algorithms field

ondewo/nlu/ccai_project.proto

Top

Services

CcaiProjects

Service to manage Call Center AI (CCAI service) Projects.

Service Methods

GetCcaiProject

rpc GetCcaiProject (GetCcaiProjectRequest) returns (CcaiProject)
Retrieves information about a specific CCAI service project.

CreateCcaiProject

rpc CreateCcaiProject (CreateCcaiProjectRequest) returns (CreateCcaiProjectResponse)
Creates a new CCAI service project based on the provided request.

DeleteCcaiProject

rpc DeleteCcaiProject (DeleteCcaiProjectRequest) returns (DeleteCcaiProjectResponse)
Deletes a CCAI service project identified by the provided request.

ListCcaiProjects

rpc ListCcaiProjects (ListCcaiProjectsRequest) returns (ListCcaiProjectsResponse)
Lists all CCAI service projects based on the provided request.

UpdateCcaiProject

rpc UpdateCcaiProject (UpdateCcaiProjectRequest) returns (UpdateCcaiProjectResponse)
Updates the information of an existing CCAI service project.

GetCcaiService

rpc GetCcaiService (GetCcaiServiceRequest) returns (CcaiService)
Retrieves information about a specific CCAI service.
Messages

CcaiProject

Message representing a CCAI service project

FieldTypeLabelDescription
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:

projects/<project_uuid>/agent

CcaiProject.CcaiServicesMapEntry

FieldTypeLabelDescription
key string

value CcaiServiceList

CcaiProjectSorting

This protobuf message defines the sorting order for CCAI service (VOIP Telephone System Integration) projects.

FieldTypeLabelDescription
sorting_field CcaiProjectSorting.CcaiProjectSortingField

sorting field for ccai projects sorting

sorting_mode SortingMode

Sorting mode

CcaiService

Definition of a Call Center AI (CCAI service) Service.

FieldTypeLabelDescription
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:

  • "1" represents a top-level service
  • "1_1" represents a sub-service under "1"
  • "1_1_1" represents a sub-service under "1.1"
This structure allows for easy representation and organization of services in nested workflows. If CcaiService have the same service_hierarchy they are executed in parallel. For example:
  • "1" Service A
  • "1_1" Service B
  • "1_1" Service C
Service B and C will be executed in parallel and the Service A receives both results of service B and C. The variable for the return value of a service is {{OUTPUT_SERVICE_service_hierarchy}}. So in the example above the outputs of the services are {{OUTPUT_SERVICE_1}}, {{OUTPUT_SERVICE_1_1}}, and {{OUTPUT_SERVICE_1_2}}.

CcaiServiceFilter

Filter which services should be included in the returned CcaiProject

FieldTypeLabelDescription
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

CcaiServiceList

Message representing a list of CCAI service services

FieldTypeLabelDescription
ccai_services CcaiService repeated

CCAI service services

CreateCcaiProjectRequest

Request to create a Call Center AI (CCAI service) project.

FieldTypeLabelDescription
ccai_project CcaiProject

The CCAI service project to be created.

nlu_project_name string

Required. The nlu agent project of this CcaiProject. Format:

projects/<project_uuid>/agent

CreateCcaiProjectResponse

Response after attempting to create a Call Center AI (CCAI service) project.

FieldTypeLabelDescription
ccai_project CcaiProject

The created CCAI service project.

error_message string

Error message if the creation is unsuccessful.

DeleteCcaiProjectRequest

Request to delete a CCAI service project

If a deployed CCAI service project was deleted then it was undeployed beforehand automatically

FieldTypeLabelDescription
name string

CCAI service project name with which to perform the call of the form

projects/<project_uuid>/project

nlu_project_name string

Required. The nlu agent project of this CcaiProject. Format:

projects/<project_uuid>/agent

DeleteCcaiProjectResponse

Response to delete a CCAI service project

If a deployed CCAI service project was deleted then it was undeployed beforehand automatically

FieldTypeLabelDescription
name string

CCAI service project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

error message if there are any.

nlu_project_name string

Required. The nlu agent project of this CcaiProject. Format:

projects/<project_uuid>/agent

GetCcaiProjectRequest

Request to retrieve a CCAI service project

FieldTypeLabelDescription
name string

CCAI service project name with which to perform the call of the form

projects/<project_uuid>/project

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:

projects/<project_uuid>/agent

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetCcaiServiceRequest

Request to retrieve a CCAI service project

FieldTypeLabelDescription
name string

CCAI service project name with which to perform the call of the form

projects/<project_uuid>/ccai/services/<service_uuid>

nlu_project_name string

Required. The nlu agent project of this CcaiProject. Format:

projects/<project_uuid>/agent

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListCcaiProjectsRequest

Request to get the list of agents

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

nlu_project_name string

Required. The nlu agent project of this CcaiProject. Format:

projects/<project_uuid>/agent

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListCcaiProjectsResponse

This is a protobuf message definition for the response of getting a list of CCAI service projects.

FieldTypeLabelDescription
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

UpdateCcaiProjectRequest

Request to updated CCAI service project

FieldTypeLabelDescription
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:

projects/<project_uuid>/agent

UpdateCcaiProjectResponse

Request to updated CCAI service project

FieldTypeLabelDescription
name string

CCAI service project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

error message if there are any.

Enums

CcaiProjectSorting.CcaiProjectSortingField

Enum to specify the sorting field for CCAI service projects.

NameNumberDescription
NO_CCAI_PROJECT_SORTING 0

No sorting

SORT_CCAI_PROJECT_BY_NAME 1

Sort by project name such as

projects/<project_uuid>/project

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

CcaiProjectStatus

Status of a Call Center AI (CCAI service) Project.

NameNumberDescription
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

CcaiProjectView defines what the CcaiProject message contains

NameNumberDescription
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

CcaiServiceProvider

NameNumberDescription
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

CcaiServiceType

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.

NameNumberDescription
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.

ondewo/nlu/common.proto

Top

Messages

AddNotificationsRequest

Message for adding notifications in a batch.

FieldTypeLabelDescription
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.

AddNotificationsResponse

Message containing the response to adding notifications.

FieldTypeLabelDescription
notifications Notification repeated

List of notifications that have been added.

Comment

Comment message

FieldTypeLabelDescription
name string

resource name of the comment

text string

text of the comment

user_id string

User id as resource name. Format:

projects/<project_uuid>/agent/users/<user_uuid>

comment_about_name string

name of the resource for which the comment is about. Format:

projects/<project_uuid>/agent/<resource_type>/<resource_uuid>/.../

parent_comment_name string

The resource name of the parent comment. A parent comment is a reply to a certain comment. Format:

projects/<project_uuid>/agent/<resource_type>/<resource_uuid>/.../

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.

DeleteNotificationsRequest

Message for deleting one or more notifications by their resource names.

FieldTypeLabelDescription
notification_names string repeated

Resource names of the notifications to delete.

GetNotificationRequest

Message for retrieving a single notification by its resource name.

FieldTypeLabelDescription
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.

KeyValuePair

Key-Value pair message, where the value can be one of various types (int, float, double, string, etc.).

FieldTypeLabelDescription
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).

ListNotificationsRequest

Message for listing notifications based on certain criteria.

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. Mask to control which fields will be filled with data.
Example: path=["notification.user_names"]

ListNotificationsResponse

Message containing the response to a list request for notifications.

FieldTypeLabelDescription
notifications Notification repeated

List of notifications that meet the specified criteria.

LogEntry

A generic log entry structure.

FieldTypeLabelDescription
name string

Resource name of the log entry. Format:

projects/<project_uuid>/agent/logs/<log_uuid>

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

Notification message

FieldTypeLabelDescription
name string

resource name of the notification

user_name string

User id as resource name. Format:

projects/<project_uuid>/agent/users/<user_uuid>

title string

User id as resource name. Format:

projects/<project_uuid>/agent/users/<user_uuid>

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.

NotificationFilter

Message for filtering notifications based on various criteria.

FieldTypeLabelDescription
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.

SetNotificationsFlaggedStatusRequest

Message for setting the flagged status of notifications.

FieldTypeLabelDescription
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.

SetNotificationsReadStatusRequest

Message for setting the read status of notifications.

FieldTypeLabelDescription
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.

StatResponse

statistic response

FieldTypeLabelDescription
value uint32

Response wrapper for the "Get<Stat>" endpoints

StreamNotificationsRequest

Message for streaming notifications in real time via

Users.StreamNotifications.

FieldTypeLabelDescription
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.

UpdateNotificationRequest

Message for updating a single notification.

FieldTypeLabelDescription
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.

Enums

LogSeverity

Log levels for various system operations based on Loguru log levels.

NameNumberDescription
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.

NotificationFlaggedStatus

Enumerates the possible flagged statuses for a notification.

NameNumberDescription
NOTIFICATION_FLAGGED_STATUS_UNSPECIFIED 0

Unspecified flagged status

NOTIFICATION_FLAGGED_STATUS_FLAGGED 1

Notification is flagged

NOTIFICATION_FLAGGED_STATUS_UNFLAGGED 2

Notification is unflagged

NotificationOrigin

Enumerates the possible origins for a notification.

NameNumberDescription
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

NotificationReadStatus

Enumerates the possible read statuses for a notification.

NameNumberDescription
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

NotificationType

Enumerates the possible types for a notification.

NameNumberDescription
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

NotificationVisibility

Enum for notification type

NameNumberDescription
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

SortingMode

Sorting mode

NameNumberDescription
ASCENDING 0

ascending sorting

DESCENDING 1

descending sorting

ondewo/nlu/context.proto

Top

Services

Contexts

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.

Service Methods

ListContexts

rpc ListContexts (ListContextsRequest) returns (ListContextsResponse)
Returns the list of all contexts in the specified session.

GetContext

rpc GetContext (GetContextRequest) returns (Context)
Retrieves the specified context.

CreateContext

rpc CreateContext (CreateContextRequest) returns (Context)
Creates a context.

UpdateContext

rpc UpdateContext (UpdateContextRequest) returns (Context)
Updates the specified context.

DeleteContext

rpc DeleteContext (DeleteContextRequest) returns (.google.protobuf.Empty)
Deletes the specified context.

DeleteAllContexts

rpc DeleteAllContexts (DeleteAllContextsRequest) returns (.google.protobuf.Empty)
Deletes all active contexts in the specified session.

Methods with HTTP bindings

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
Messages

Context

Represents a context.

FieldTypeLabelDescription
name string

Required. The display name of the context (must be unique per session). Note: we are deviating from the dialogflow format projects/<project_uuid>/agent/sessions/<session_uuid>/contexts/<context_uuid>.

  • DetectIntent only returns
    • the short display name in the "name" field in query_result.output_contexts
    • only expects the short display name in the "name" field in query_parameters.contexts
  • Also inside the persisted session object only the short display name is used.
    • SessionStep.contexts only contains the short display name
    • SessionReviewStep.contexts only contains the short display name

lifespan_count int32

Optional. The number of conversational query requests after which the context expires. If set to 0 (the default) the context expires immediately. Contexts expire automatically after 10 minutes even if there are no matching queries.

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.

Context.Parameter

Represents a parameter associated with a context

FieldTypeLabelDescription
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.

Context.ParametersEntry

FieldTypeLabelDescription
key string

value Context.Parameter

CreateContextRequest

The request message for Contexts.CreateContext.

FieldTypeLabelDescription
session_id string

Required. The session to create a context for. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

context Context

Required. The context to create.

DeleteAllContextsRequest

The request message for Contexts.DeleteAllContexts.

FieldTypeLabelDescription
session_id string

Required. The name of the session to delete all contexts from. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

DeleteContextRequest

The request message for Contexts.DeleteContext.

FieldTypeLabelDescription
name string

Required. The name of the context to delete. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/contexts/<context_uuid>.

GetContextRequest

The request message for Contexts.GetContext.

FieldTypeLabelDescription
name string

Required. The name of the context. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/contexts/<context_uuid>.

ListContextsRequest

The request message for Contexts.ListContexts.

FieldTypeLabelDescription
session_id string

Required. The session to list all contexts from. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListContextsResponse

The response message for Contexts.ListContexts.

FieldTypeLabelDescription
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

UpdateContextRequest

The request message for Contexts.UpdateContext.

FieldTypeLabelDescription
context Context

Required. The context to update.

update_mask google.protobuf.FieldMask

Optional. The mask to control which fields get updated.

ondewo/nlu/entity_type.proto

Top

Services

EntityTypes

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:

For more information about entity types, see the Dialogflow documentation.

Service Methods

ListEntityTypes

rpc ListEntityTypes (ListEntityTypesRequest) returns (ListEntityTypesResponse)
Returns the list of all entity types in the specified agent.

GetEntityType

rpc GetEntityType (GetEntityTypeRequest) returns (EntityType)
Retrieves the specified entity type.

CreateEntityType

rpc CreateEntityType (CreateEntityTypeRequest) returns (EntityType)
Creates an entity type in the specified agent.

UpdateEntityType

rpc UpdateEntityType (UpdateEntityTypeRequest) returns (EntityType)
Updates the specified entity type.

DeleteEntityType

rpc DeleteEntityType (DeleteEntityTypeRequest) returns (.google.protobuf.Empty)
Deletes the specified entity type.

BatchUpdateEntityTypes

rpc BatchUpdateEntityTypes (BatchUpdateEntityTypesRequest) returns (Operation)
Updates/Creates multiple entity types in the specified agent. Operation <response: BatchUpdateEntityTypesResponse, metadata: google.protobuf.Struct>

BatchDeleteEntityTypes

rpc BatchDeleteEntityTypes (BatchDeleteEntityTypesRequest) returns (Operation)
Deletes entity types in the specified agent. Operation <response: google.protobuf.Empty, metadata: google.protobuf.Struct>

GetEntity

rpc GetEntity (GetEntityRequest) returns (EntityType.Entity)
Retrieves the specified entity .

CreateEntity

rpc CreateEntity (CreateEntityRequest) returns (EntityType.Entity)
Creates an entity in the specified agent.

UpdateEntity

rpc UpdateEntity (UpdateEntityRequest) returns (EntityType.Entity)
Updates the specified entity .

DeleteEntity

rpc DeleteEntity (DeleteEntityRequest) returns (DeleteEntityStatus)
Deletes the specified entity .

BatchCreateEntities

rpc BatchCreateEntities (BatchCreateEntitiesRequest) returns (BatchEntitiesResponse)
Creates an entity value in an entity type.

BatchUpdateEntities

rpc BatchUpdateEntities (BatchUpdateEntitiesRequest) returns (BatchEntitiesResponse)
Updates a specific entity value.

BatchGetEntities

rpc BatchGetEntities (BatchGetEntitiesRequest) returns (BatchEntitiesResponse)
Gets a specific entity value.

BatchDeleteEntities

rpc BatchDeleteEntities (BatchDeleteEntitiesRequest) returns (BatchDeleteEntitiesResponse)
Deletes the specified entity value.

ListEntities

rpc ListEntities (ListEntitiesRequest) returns (ListEntitiesResponse)
List entities of an entity type

Methods with HTTP bindings

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/*}
Messages

BatchCreateEntitiesRequest

This message is a request to create a batch entities

FieldTypeLabelDescription
create_entity_requests CreateEntityRequest repeated

The create entity requests in a batch

BatchDeleteEntitiesRequest

This message is a request to delete a batch of entities

FieldTypeLabelDescription
names string repeated

The unique identifiers of the entities. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

BatchDeleteEntitiesResponse

This message is a response of deletion of a batch of entities

FieldTypeLabelDescription
delete_statuses DeleteEntityStatus repeated

status of an entity deletion

has_errors bool

error messages

BatchDeleteEntityTypesRequest

The request message for EntityTypes.BatchDeleteEntityTypes.

FieldTypeLabelDescription
parent string

Required. The name of the agent to delete all entities types for. Format: projects/<project_uuid>/agent.

entity_type_names string repeated

Required. The names entity types to delete. All names must point to the same agent as `parent`.

BatchEntitiesResponse

This message is a response of batch entities

FieldTypeLabelDescription
entity_statuses EntityStatus repeated

A list of entity statuses

has_errors bool

indicates if statuses of some of the training phrases have errors

BatchGetEntitiesRequest

This message is a request to get a batch of entities

FieldTypeLabelDescription
names string repeated

The unique identifiers of the entities. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

BatchUpdateEntitiesRequest

This message is a request to update a batch of entities

FieldTypeLabelDescription
entities EntityType.Entity repeated

The entities to update

BatchUpdateEntityTypesRequest

The request message for EntityTypes.BatchUpdateEntityTypes.

FieldTypeLabelDescription
parent string

Required. The name of the agent to update or create entity types in. Format:

projects/<project_uuid>/agent

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 entity_types. 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.

update_mask google.protobuf.FieldMask

Optional. The mask to control which fields get updated.

BatchUpdateEntityTypesResponse

The response message for EntityTypes.BatchUpdateEntityTypes.

FieldTypeLabelDescription
entity_types EntityType repeated

The collection of updated or created entity types.

CreateEntityRequest

FieldTypeLabelDescription
entity_type_name string

Required. Name of the entity type in which to create the entity value. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

entity EntityType.Entity

The entity value to create

CreateEntityTypeRequest

The request message for EntityTypes.CreateEntityType.

FieldTypeLabelDescription
parent string

Required. The agent to create a entity type for. Format:

projects/<project_uuid>/agent

entity_type EntityType

Required. The entity type to create.

language_code string

Optional. The language of entity synonyms defined in entity_type. 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.

entity_type_view EntityTypeView

Optional. The resource view to apply to the returned Entity Type

DeleteEntityRequest

This message is a request to delete a batch of entities

FieldTypeLabelDescription
name string

The unique identifiers of the entities. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

DeleteEntityStatus

This message contains the status of an entity deletion

FieldTypeLabelDescription
successfully_deleted google.protobuf.Empty

Set when the entity was successfully deleted

error_message string

The error message when deleting the entity failed

DeleteEntityTypeRequest

The request message for EntityTypes.DeleteEntityType.

FieldTypeLabelDescription
name string

Required. The name of the entity type to delete. Format:

projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>

EntityStatus

This message is for the entity status

FieldTypeLabelDescription
entity EntityType.Entity

The entity

error_message string

Error message

EntityType

Represents an entity type.

Entity types serve as a tool for extracting parameter values from natural

language queries.

FieldTypeLabelDescription
name string

Required for all methods except create (create populates the name automatically. The unique identifier of the entity type. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>.

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.

EntityType.Entity

Represents an entity value within an entity type

FieldTypeLabelDescription
value string

Required. For KIND_MAP entity types: A canonical name to be used in place of synonyms. For KIND_LIST entity types: A string that can contain references to other entity types (with or without aliases). Values can also be described as regexes with postprocessing options such as:


 * regex('//1') => references the first group match of the regex defined as a synonym
 * regex('//2') => references the second group match of the regex defined as a synonym
 * regex('//1') => references the first group match of the regex defined as a synonym
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:

 * regex('<#TW>//1') => matches 1st group and trims duplicated whitespaces to one single space
 * regex('<#RW>//1') => matches 1st group and removes all whitespaces
 * regex('<#UC>//1') => matches 1st group and converts to upper case
 * regex('<#LC>//1') => matches 1st group and converts to lower case
 * regex('<#CC>//1') => matches 1st group and converts to camelCase
 * regex('<#SC>//1') => matches 1st group and converts to snake_case

synonyms string repeated

Required. A collection of synonyms. For KIND_LIST entity types this must contain exactly one synonym equal to value. Synonyms can be regex expressions, i.e. regular expressions, that are python compatible. See here for supported regex: https://docs.python.org/3/library/re.html Examples are:


 * regex('[a-zA-Z]+') => just letters
 * regex('\d{1,5}') => just numbers
 * regex('^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$') => mix of numbers, letters and dot
 * regex('(?i)(^|\s)(0\s{0,3}') => with matching groups and case insensitivity

name string

The unique identifier of the entity. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

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.

EntityTypeBatch

This message is a wrapper around a collection of entity types.

FieldTypeLabelDescription
entity_types EntityType repeated

A collection of entity types.

EntityTypeSorting

This message contains Entity type sorting

FieldTypeLabelDescription
sorting_field EntityTypeSorting.EntityTypeSortingField

The field to sort the entity types by

sorting_mode SortingMode

The sorting mode: ascending or descending

EntityValueSorting

This message contains entity value sorting

FieldTypeLabelDescription
sorting_field EntityValueSorting.EntityValueSortingField

The field to sort the entity values by

sorting_mode SortingMode

The sorting mode: ascending or descending

GetEntityRequest

This message is a request to get a an entity

FieldTypeLabelDescription
name string

The unique identifiers of the entities. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>.

GetEntityTypeRequest

The request message for EntityTypes.GetEntityType.

FieldTypeLabelDescription
name string

Required. The name of the entity type. Format:

projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

entity_type_view EntityTypeView

Optional. The resource view to apply to the returned Entity Type

ListEntitiesRequest

This message is a request to get a list of entities

FieldTypeLabelDescription
entity_type_name string

The unique identifier of the entity type. Format: projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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:


     Pattern: "dark"
     Results:
             [Entity Value]          [Entity Synonyms]
             Red                     red, scarlett, dark red, ...
             Blue                    blue, indico, dark blue, sky blue, ...
             Dark                    obscure, black, opaque, ...

ListEntitiesResponse

This message is a response of listing entities

FieldTypeLabelDescription
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

ListEntityTypesRequest

The request message for EntityTypes.ListEntityTypes.

FieldTypeLabelDescription
parent string

Required. The agent to list all entity types from. Format:

projects/<project_uuid>/agent

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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.

ListEntityTypesResponse

The response message for EntityTypes.ListEntityTypes.

FieldTypeLabelDescription
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

UpdateEntityRequest

This message is a request to update an entity

FieldTypeLabelDescription
entity EntityType.Entity

The entity to update

UpdateEntityTypeRequest

The request message for EntityTypes.UpdateEntityType.

FieldTypeLabelDescription
entity_type EntityType

Required. The entity type to update. Format:

projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>

language_code string

Optional. The language of entity synonyms defined in entity_type. 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.

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

Enums

EntityType.AutoExpansionMode

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).

NameNumberDescription
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.

EntityType.EntityTypeStatus

NameNumberDescription
ACTIVE 0

Entity type is active

INACTIVE 1

Entity type is inactive

EntityType.Kind

Represents kinds of entities.

NameNumberDescription
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).

EntityTypeCategory

Represents the category of entity types to filter by in the "List Entity Types" request

NameNumberDescription
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

EntityTypeSorting.EntityTypeSortingField

Structure of Entity type sorting field

NameNumberDescription
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

EntityTypeView

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.

NameNumberDescription
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

EntityValueSorting.EntityValueSortingField

Structure of Entity value sorting field

NameNumberDescription
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

ondewo/nlu/intent.proto

Top

Services

Intents

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.

Service Methods

ListIntents

rpc ListIntents (ListIntentsRequest) returns (ListIntentsResponse)
Returns the list of all intents in the specified agent.

GetIntent

rpc GetIntent (GetIntentRequest) returns (Intent)
Retrieves the specified intent.

CreateIntent

rpc CreateIntent (CreateIntentRequest) returns (Intent)
Creates an intent in the specified agent.

UpdateIntent

rpc UpdateIntent (UpdateIntentRequest) returns (Intent)
Updates the specified intent.

DeleteIntent

rpc DeleteIntent (DeleteIntentRequest) returns (.google.protobuf.Empty)
Deletes the specified intent.

BatchUpdateIntents

rpc BatchUpdateIntents (BatchUpdateIntentsRequest) returns (BatchUpdateIntentsResponse)
Updates/Creates multiple intents in the specified agent. Operation <response: BatchUpdateIntentsResponse>

BatchDeleteIntents

rpc BatchDeleteIntents (BatchDeleteIntentsRequest) returns (Operation)
Deletes intents in the specified agent.
Operation <response: google.protobuf.Empty>

TagIntent

rpc TagIntent (IntentTagRequest) returns (.google.protobuf.Empty)
Tags a specific intent with tag(s)

DeleteIntentTag

rpc DeleteIntentTag (IntentTagRequest) returns (.google.protobuf.Empty)
Deletes tag(s) for a specific intent

GetIntentTags

rpc GetIntentTags (GetIntentTagsRequest) returns (GetIntentTagsResponse)
Gets all the tags for a specific intent

GetAllIntentTags

rpc GetAllIntentTags (GetAllIntentTagsRequest) returns (GetIntentTagsResponse)
Gets all the tags for all the intents

BatchCreateTrainingPhrases

rpc BatchCreateTrainingPhrases (BatchCreateTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)
Creates batch of training phrases

BatchGetTrainingPhrases

rpc BatchGetTrainingPhrases (BatchGetTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)
Retrieve a training phrases batch of the specified names.

BatchUpdateTrainingPhrases

rpc BatchUpdateTrainingPhrases (BatchUpdateTrainingPhrasesRequest) returns (BatchTrainingPhrasesStatusResponse)
Updates batch of training phrases

BatchDeleteTrainingPhrases

rpc BatchDeleteTrainingPhrases (BatchDeleteTrainingPhrasesRequest) returns (BatchDeleteTrainingPhrasesResponse)
Delete a training phrases batch of the specified names.

ListTrainingPhrases

rpc ListTrainingPhrases (ListTrainingPhrasesRequest) returns (ListTrainingPhrasesResponse)
List training phrases (of a specific intent).

BatchCreateResponseMessages

rpc BatchCreateResponseMessages (BatchCreateResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)
Creates batch of intent messages

BatchGetResponseMessages

rpc BatchGetResponseMessages (BatchGetResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)
Retrieve a intent messages batch of the specified names.

BatchUpdateResponseMessages

rpc BatchUpdateResponseMessages (BatchUpdateResponseMessagesRequest) returns (BatchResponseMessagesStatusResponse)
Updates batch of intent messages

BatchDeleteResponseMessages

rpc BatchDeleteResponseMessages (BatchDeleteResponseMessagesRequest) returns (BatchDeleteResponseMessagesResponse)
Delete a intent messages batch of the specified names.

ListResponseMessages

rpc ListResponseMessages (ListResponseMessagesRequest) returns (ListResponseMessagesResponse)
List messages (of a specific intent).

BatchCreateParameters

rpc BatchCreateParameters (BatchCreateParametersRequest) returns (BatchParametersStatusResponse)
Creates batch of intent messages

BatchGetParameters

rpc BatchGetParameters (BatchGetParametersRequest) returns (BatchParametersStatusResponse)
Retrieve a intent messages batch of the specified names.

BatchUpdateParameters

rpc BatchUpdateParameters (BatchUpdateParametersRequest) returns (BatchParametersStatusResponse)
Updates batch of intent messages

BatchDeleteParameters

rpc BatchDeleteParameters (BatchDeleteParametersRequest) returns (BatchDeleteParametersResponse)
Delete a intent messages batch of the specified names.

ListParameters

rpc ListParameters (ListParametersRequest) returns (ListParametersResponse)
List messages (of a specific intent).

ListTrainingPhrasesofIntentsWithEnrichment

rpc ListTrainingPhrasesofIntentsWithEnrichment (ListTrainingPhrasesofIntentsWithEnrichmentRequest) returns (ListTrainingPhrasesofIntentsWithEnrichmentResponse)
List Training phrases (of a specific intent).

Methods with HTTP bindings

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 *
Messages

BatchCreateParametersRequest

Request to create a batch of parameters in the specified intent

FieldTypeLabelDescription
parameter_requests BatchCreateParametersRequest.CreateParameterRequest repeated

List of parameters to create

BatchCreateParametersRequest.CreateParameterRequest

Request to create a single parameter

FieldTypeLabelDescription
intent_name string

Required. The name of the intent for which to create a training phrase for.

parameter Intent.Parameter

Required. The response message.

BatchCreateResponseMessagesRequest

Request to create a list of new response messages and adds it to an intent

FieldTypeLabelDescription
response_message_requests BatchCreateResponseMessagesRequest.CreateResponseMessageRequest repeated

The list of response messages to create

BatchCreateResponseMessagesRequest.CreateResponseMessageRequest

Request to create a single response message

FieldTypeLabelDescription
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.

BatchCreateTrainingPhrasesRequest

This message is a request of a creation of a batch of training phrases

FieldTypeLabelDescription
training_phrase_requests BatchCreateTrainingPhrasesRequest.CreateTrainingPhraseRequest repeated

The list of training phrases to create

BatchCreateTrainingPhrasesRequest.CreateTrainingPhraseRequest

Request to create a single training phrase

FieldTypeLabelDescription
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.

BatchDeleteIntentsRequest

The request message for Intents.BatchDeleteIntents.

FieldTypeLabelDescription
parent string

Required. The name of the agent to delete all entities types for. Format: projects/<project_uuid>/agent.

intents Intent repeated

Required. The collection of intents to delete. Only intent name must be filled in.

BatchDeleteParametersRequest

Request to delete parameters specified by their names.

FieldTypeLabelDescription
names string repeated

Required. The names of the response messages. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/parameters/<parameter_uuid

BatchDeleteParametersResponse

This message contains response of deleted parameters

FieldTypeLabelDescription
delete_statuses BatchDeleteParametersResponse.DeleteParameterStatus repeated

The deletion status for each requested parameter

has_errors bool

Indicates if some of the parameter deletions have errors

BatchDeleteParametersResponse.DeleteParameterStatus

Status of a parameter deletion operation

FieldTypeLabelDescription
successfully_deleted google.protobuf.Empty

Set when the parameter was successfully deleted

error_message string

The error message when deleting this parameter failed

BatchDeleteResponseMessagesRequest

Request to delete response messages specified by their names

FieldTypeLabelDescription
names string repeated

Required. The names of the response messages. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/responseMessages/<message_uuid>

BatchDeleteResponseMessagesResponse

Response containing list with deleted response messages

FieldTypeLabelDescription
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

BatchDeleteResponseMessagesResponse.DeleteResponseMessageStatus

Status of a response message deletion operation

FieldTypeLabelDescription
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

BatchDeleteTrainingPhrasesRequest

This message is a request to delete a batch of training phrases

FieldTypeLabelDescription
names string repeated

Required. The names of the training phrases. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/trainingPhrases/<training_phrase_uuid>

BatchDeleteTrainingPhrasesResponse

This message is a response of deleting a batch of training phrases

FieldTypeLabelDescription
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

BatchDeleteTrainingPhrasesResponse.DeleteTrainingPhraseStatus

Status of a training phrase deletion operation

FieldTypeLabelDescription
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

BatchGetParametersRequest

Request to get batch of parameters in a specified intent

FieldTypeLabelDescription
names string repeated

Required. The names of the response messages. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/parameters/<parameter_uuid>

BatchGetResponseMessagesRequest

Request to retrieve a response messages

FieldTypeLabelDescription
names string repeated

Required. The names of the response messages. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/responseMessages/<message_uuid>

BatchGetTrainingPhrasesRequest

This message is a request to get a batch training phrases

FieldTypeLabelDescription
names string repeated

Required. The names of the training phrases. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/trainingPhrases/<training_phrase_uuid>

BatchParametersStatusResponse

Response containing a batch of parameters in the specified intent

FieldTypeLabelDescription
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

BatchParametersStatusResponse.ParameterStatus

Status of a parameter operation

FieldTypeLabelDescription
parameter Intent.Parameter

The successfully processed parameter

error_message string

The error message when processing this parameter failed

BatchResponseMessagesStatusResponse

This message is a response of a batch responses of message status

FieldTypeLabelDescription
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

BatchResponseMessagesStatusResponse.ResponseMessageStatus

Status of a response message operation

FieldTypeLabelDescription
response_message Intent.Message

The successfully processed response message

error_message string

The error message when processing this response message failed

BatchTrainingPhrasesStatusResponse

This message is a response of the status of a batch of training phrases

FieldTypeLabelDescription
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

BatchUpdateIntentsRequest

The request message for Intents.BatchUpdateIntents.

FieldTypeLabelDescription
parent string

Required. The name of the agent to update or create intents in. Format:

projects/<project_uuid>/agent

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 intents. 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.

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.

BatchUpdateIntentsResponse

The response message for Intents.BatchUpdateIntents.

FieldTypeLabelDescription
intents Intent repeated

The collection of updated or created intents.

BatchUpdateParametersRequest

Request to update parameters and adds them to an intent

FieldTypeLabelDescription
parameters Intent.Parameter repeated

The response messages to update

BatchUpdateResponseMessagesRequest

Request to update a response message in the specified intent

FieldTypeLabelDescription
response_messages Intent.Message repeated

The response messages to update

BatchUpdateTrainingPhrasesRequest

This message is a request to update a batch of training phrases

FieldTypeLabelDescription
training_phrases Intent.TrainingPhrase repeated

A list of training phrases

CreateIntentRequest

The request message for Intents.CreateIntent.

FieldTypeLabelDescription
parent string

Required. The agent to create a intent for. Format:

projects/<project_uuid>/agent

intent Intent

Required. The intent to create.

language_code string

Optional. The language of training phrases, parameters and rich messages defined in intent. 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.

DeleteIntentRequest

The request message for Intents.DeleteIntent.

FieldTypeLabelDescription
name string

Required. The name of the intent to delete. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

GetAllIntentTagsRequest

This message is a request to get all intent tags

FieldTypeLabelDescription
parent string

Required. The name of the agent to delete all entities types for. Format: projects/<project_uuid>/agent.

GetIntentRequest

The request message for Intents.GetIntent.

FieldTypeLabelDescription
name string

Required. The name of the intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

GetIntentTagsRequest

This message is a request to get intent tags

FieldTypeLabelDescription
intent_name string

The path of the intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

GetIntentTagsResponse

This message is a response of getting intent tags

FieldTypeLabelDescription
intent_tags string repeated

All the distinct intent tags sorted

Intent

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.

FieldTypeLabelDescription
name string

Required for all methods except create (create populates the name automatically. The unique identifier of this intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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 ml_disabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.

input_context_names string repeated

Optional. The list of context names required for this intent to be triggered. Format:

projects/<project_uuid>/agent/sessions/-/contexts/<context_uuid>

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 lifespan_count to 0 will reset the context when the intent is matched. Format:

projects/<project_uuid>/agent/sessions/-/contexts/<context_uuid>

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 Response field in the Dialogflow console.

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:

projects/<project_uuid>/agent/intents/<intent_uuid>

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:

projects/<project_uuid>/agent/intents/<intent_uuid>

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.

Intent.FollowupIntentInfo

Represents a single followup intent in the chain.

FieldTypeLabelDescription
followup_intent_name string

The unique identifier of the followup intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

parent_followup_intent_name string

The unique identifier of the followup intent parent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

Intent.Message

Corresponds to the Response field in the Dialogflow console.

FieldTypeLabelDescription
name string

Required. The name of the return message. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/responseMessages/<message_uuid>

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.

Intent.Message.Audio

The Audio response message.

FieldTypeLabelDescription
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.

Intent.Message.BasicCard

The basic card message. Useful for displaying information.

FieldTypeLabelDescription
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.

Intent.Message.BasicCard.Button

The button object that appears at the bottom of a card.

FieldTypeLabelDescription
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.

Intent.Message.BasicCard.Button.OpenUriAction

Opens the given URI.

FieldTypeLabelDescription
uri string

Required. The HTTP or HTTPS scheme URI.

Intent.Message.Card

The card response message.

FieldTypeLabelDescription
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.

Intent.Message.Card.Button

Optional. Contains information about a button.

FieldTypeLabelDescription
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.

Intent.Message.CarouselSelect

The card for presenting a carousel of options to select from.

FieldTypeLabelDescription
items Intent.Message.CarouselSelect.Item repeated

Required. Carousel items.

Intent.Message.CarouselSelect.Item

An item in the carousel.

FieldTypeLabelDescription
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.

Intent.Message.HTMLText

This message contains HTML text

FieldTypeLabelDescription
text string repeated

Collection of the agent's responses in HTML format

Intent.Message.Image

The image response message.

FieldTypeLabelDescription
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.

Intent.Message.LinkOutSuggestion

The suggestion chip message that allows the user to jump out to the app or website associated with this agent.

FieldTypeLabelDescription
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.

Intent.Message.ListSelect

The card for presenting a list of options to select from.

FieldTypeLabelDescription
title string

Optional. The overall title of the list.

items Intent.Message.ListSelect.Item repeated

Required. List items.

Intent.Message.ListSelect.Item

An item in the list.

FieldTypeLabelDescription
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.

Intent.Message.QuickReplies

The quick replies response message.

FieldTypeLabelDescription
title string

Optional. The title of the collection of quick replies.

quick_replies string repeated

Optional. The collection of quick replies.

Intent.Message.SelectItemInfo

Additional info about the select item for when it is triggered in a dialog.

FieldTypeLabelDescription
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.

Intent.Message.SimpleResponse

The simple response message containing speech or text.

FieldTypeLabelDescription
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.

Intent.Message.SimpleResponses

The collection of simple response candidates. This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.

FieldTypeLabelDescription
simple_responses Intent.Message.SimpleResponse repeated

Required. The list of simple responses.

Intent.Message.Suggestion

The suggestion chip message that the user can tap to quickly post a reply to the conversation.

FieldTypeLabelDescription
title string

Required. The text shown the in the suggestion chip.

Intent.Message.Suggestions

The collection of suggestions.

FieldTypeLabelDescription
suggestions Intent.Message.Suggestion repeated

Required. The list of suggested replies.

Intent.Message.Text

The text response message.

FieldTypeLabelDescription
text string repeated

Optional. The collection of the agent's responses.

Intent.Message.Video

The Video response message.

FieldTypeLabelDescription
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.

Intent.Parameter

Represents intent parameters.

FieldTypeLabelDescription
name string

The unique identifier of this parameter. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/parameters/<parameter_uuid>

display_name string

Required. The name of the parameter.

value string

Optional. The definition of the parameter value. It can be:

  • a constant string,
  • a parameter value defined as $parameter_name,
  • an original parameter value defined as $parameter_name.original,
  • a parameter value from some context defined as #context_name.parameter_name.

default_value string

Optional. The default value to use when the value yields an empty result. Default values can be extracted from contexts by using the following syntax: #context_name.parameter_name.

entity_type_name string

Optional. The unique identifier of the entity type in format projects/<project_uuid>/agent/entityTypes/<entity_type_uuid> that describes values of the parameter. If the parameter is required, this must be provided.

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.

Intent.Parameter.Prompt

Represents the prompts in the parameters.

FieldTypeLabelDescription
name string

The unique identifier of this prompt. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/parameters/<parameter_uuid>/prompts/<prompt_uuid>

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.

Intent.TrainingPhrase

Represents an example or template that the agent is trained on.

FieldTypeLabelDescription
name string

Required. The unique identifier of this training phrase. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>/trainingPhrases/<training_phrase_uuid>

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.

Intent.TrainingPhrase.Entity

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.

FieldTypeLabelDescription
entity_type_name string

Required. The unique entity type identifier in format projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>.

entity_type_display_name string

Optional. The entity type name.

entity_value_name string

Optional. The unique entity value identifier in format projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entities/<entity_uuid>. The entity value must belong to the entity type defined in entity_type_name.

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 projects/<project_uuid>/agent/intents/<intent_uuid>/parameters/<parameter_uuid> for the value extracted from the annotated part of the example. The parameter must be one of the parameters defined in the top-level intent message. Can be unset if the parameter is created in the same create/update intent request as the annotation.

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.

IntentBatch

This message is a wrapper around a collection of intents.

FieldTypeLabelDescription
intents Intent repeated

A collection of intents.

IntentSorting

This message contains sorting of an intent

FieldTypeLabelDescription
sorting_field IntentSorting.IntentSortingField

The field to sort the intents by

sorting_mode SortingMode

The sorting mode: ascending or descending

IntentTagRequest

This message is a request to get an intent tag

FieldTypeLabelDescription
intent_name string

The path of the intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

tags string repeated

Intent tags for this intent to operate on

ListIntentsRequest

The request message for Intents.ListIntents.

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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.

ListIntentsResponse

The response message for Intents.ListIntents.

FieldTypeLabelDescription
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

ListParametersRequest

The request message for TrainingPhraseRequest

FieldTypeLabelDescription
intent_name string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListParametersResponse

The response message for ListTrainingPhrase

FieldTypeLabelDescription
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: current_index-<CURRENT_INDEX>--page_size-<PAGE_SIZE>--sub_field-<SUB_FIELD> where <CURRENT_INDEX> and <PAGE_SIZE> are of type int, <SUB_FIELD> is of type str (example: parameters)

ListResponseMessagesRequest

The request message for ResponseMessageRequest

FieldTypeLabelDescription
intent_name string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListResponseMessagesResponse

The response message for ListResponseMessage

FieldTypeLabelDescription
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: current_index-<CURRENT_INDEX>--page_size-<PAGE_SIZE>--sub_field-<SUB_FIELD> where <CURRENT_INDEX> and <PAGE_SIZE> are of type int, <SUB_FIELD> is of type str (example: messages)

ListTrainingPhrasesRequest

The request message for TrainingPhraseRequest

FieldTypeLabelDescription
intent_name string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListTrainingPhrasesResponse

The response message for ListTrainingPhrase

FieldTypeLabelDescription
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: current_index-<CURRENT_INDEX>--page_size-<PAGE_SIZE>--sub_field-<SUB_FIELD> where <CURRENT_INDEX> and <PAGE_SIZE> are of type int, <SUB_FIELD> is of type str (example: training_phrases)

ListTrainingPhrasesofIntentsWithEnrichmentRequest

The request message for TrainingPhraseRequest

FieldTypeLabelDescription
parent string

Required. The name of the agent to delete all entities types for. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListTrainingPhrasesofIntentsWithEnrichmentResponse

This message contains a list of training phrases filtered by intent ids, language code and parent passed through the request

FieldTypeLabelDescription
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: current_index-<CURRENT_INDEX>--page_size-<PAGE_SIZE>--sub_field-<SUB_FIELD> where <CURRENT_INDEX> and <PAGE_SIZE> are of type int, <SUB_FIELD> is of type str (example: parameters)

TrainingPhraseStatus

This message containing the training phrases status

FieldTypeLabelDescription
training_phrase Intent.TrainingPhrase

The successfully processed training phrase

error_message string

The error message when processing this training phrase failed

UpdateIntentRequest

The request message for Intents.UpdateIntent.

FieldTypeLabelDescription
intent Intent

Required. The intent to update. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

language_code string

Optional. The language of training phrases, parameters and rich messages defined in intent. 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.

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.

Enums

Intent.IntentStatus

Structure of status of an Intent

NameNumberDescription
ACTIVE 0

Intent is active

INACTIVE 1

Intent is inactive

Intent.Message.Platform

Represents different platforms that a rich message can be intended for.

NameNumberDescription
PLATFORM_UNSPECIFIED 0

Not specified.

FACEBOOK 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

{
  "expectUserResponse": true,
  "isSsml": false,
  "noInputPrompts": [],
  "richResponse": {
    "items": [
      {
        "simpleResponse": {
          "displayText": "hi",
          "textToSpeech": "hello"
        }
      }
    ],
    "suggestions": [
      {
        "title": "Say this"
      },
      {
        "title": "or this"
      }
    ]
  },
  "systemIntent": {
    "data": {
      "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec",
      "listSelect": {
        "items": [
          {
            "optionInfo": {
              "key": "key1",
              "synonyms": [
                "key one"
              ]
            },
            "title": "must not be empty, but unique"
          },
          {
            "optionInfo": {
              "key": "key2",
              "synonyms": [
                "key two"
              ]
            },
            "title": "must not be empty, but unique"
          }
        ]
      }
    },
    "intent": "actions.intent.OPTION"
  }
}

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

Intent.TrainingPhrase.Type

Represents different types of training phrases.

NameNumberDescription
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.

Intent.WebhookState

Represents the different states that webhooks can be in.

NameNumberDescription
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.

IntentCategory

Represents the type of intents to filter by in the "List Intents" request

NameNumberDescription
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

IntentSorting.IntentSortingField

Structure of intent sorting field

NameNumberDescription
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

IntentView

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.

NameNumberDescription
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

ondewo/nlu/llm_evaluation.proto

Top

Services

LlmEvaluations

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.

Service Methods

LlmEvaluationCreateDataset

rpc LlmEvaluationCreateDataset (CreateLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)
Create a new evaluation dataset.

LlmEvaluationGetDataset

rpc LlmEvaluationGetDataset (GetLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)
Get an evaluation dataset by resource name.

LlmEvaluationListDatasets

rpc LlmEvaluationListDatasets (ListLlmEvaluationDatasetsRequest) returns (ListLlmEvaluationDatasetsResponse)
List evaluation datasets in the project, optionally filtered + paginated.

LlmEvaluationUpdateDataset

rpc LlmEvaluationUpdateDataset (UpdateLlmEvaluationDatasetRequest) returns (LlmEvaluationDataset)
Update metadata of an existing evaluation dataset (examples managed via Add/Update/Delete RPCs).

LlmEvaluationDeleteDataset

rpc LlmEvaluationDeleteDataset (DeleteLlmEvaluationDatasetRequest) returns (.google.protobuf.Empty)
Delete an evaluation dataset and all owned examples.

LlmEvaluationAddExample

rpc LlmEvaluationAddExample (AddLlmEvaluationExampleRequest) returns (LlmEvaluationExample)
Add a single example to an existing dataset.

LlmEvaluationAddExamples

rpc LlmEvaluationAddExamples (AddLlmEvaluationExamplesRequest) returns (AddLlmEvaluationExamplesResponse)
Add multiple examples to an existing dataset in one call.

LlmEvaluationGetExample

rpc LlmEvaluationGetExample (GetLlmEvaluationExampleRequest) returns (LlmEvaluationExample)
Get a single evaluation example by resource name.

LlmEvaluationListExamples

rpc LlmEvaluationListExamples (ListLlmEvaluationExamplesRequest) returns (ListLlmEvaluationExamplesResponse)
List examples in a dataset, optionally filtered + paginated.

LlmEvaluationUpdateExample

rpc LlmEvaluationUpdateExample (UpdateLlmEvaluationExampleRequest) returns (LlmEvaluationExample)
Update fields of an existing evaluation example.

LlmEvaluationDeleteExample

rpc LlmEvaluationDeleteExample (DeleteLlmEvaluationExampleRequest) returns (.google.protobuf.Empty)
Delete an evaluation example.

LlmEvaluationRunExperiment

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.

LlmEvaluationGetExperiment

rpc LlmEvaluationGetExperiment (GetLlmEvaluationExperimentRequest) returns (LlmEvaluationExperiment)
Retrieve a previously-run experiment by resource name.

LlmEvaluationListExperiments

rpc LlmEvaluationListExperiments (ListLlmEvaluationExperimentsRequest) returns (ListLlmEvaluationExperimentsResponse)
List experiments in a project, optionally filtered + paginated.

LlmEvaluationUpdateExperiment

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.

LlmEvaluationDeleteExperiment

rpc LlmEvaluationDeleteExperiment (DeleteLlmEvaluationExperimentRequest) returns (.google.protobuf.Empty)
Delete an experiment and all owned evaluator runs + feedbacks.

LlmEvaluationCancelExperiment

rpc LlmEvaluationCancelExperiment (CancelLlmEvaluationExperimentRequest) returns (LlmEvaluationExperiment)
Cancel a still-running experiment. No-op if already finished.

LlmEvaluationCompareExperiments

rpc LlmEvaluationCompareExperiments (CompareLlmEvaluationExperimentsRequest) returns (LlmEvaluationComparison)
Compare two-or-more experiments and emit a pairwise comparison report.

LlmEvaluationSubmitFeedback

rpc LlmEvaluationSubmitFeedback (SubmitLlmEvaluationFeedbackRequest) returns (LlmEvaluationFeedback)
Submit a single feedback record (used by human reviewers / external evaluators).

LlmEvaluationListFeedback

rpc LlmEvaluationListFeedback (ListLlmEvaluationFeedbackRequest) returns (ListLlmEvaluationFeedbackResponse)
List feedback records, optionally filtered + paginated.

LlmEvaluationDeleteFeedback

rpc LlmEvaluationDeleteFeedback (DeleteLlmEvaluationFeedbackRequest) returns (.google.protobuf.Empty)
Delete a single feedback record.

LlmEvaluationUpdateFeedback

rpc LlmEvaluationUpdateFeedback (UpdateLlmEvaluationFeedbackRequest) returns (LlmEvaluationFeedback)
Update a single feedback record (e.g. correct a human review score or comment).

LlmEvaluationCreateReleaseGate

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).

LlmEvaluationGetReleaseGate

rpc LlmEvaluationGetReleaseGate (GetLlmEvaluationReleaseGateRequest) returns (LlmEvaluationReleaseGate)
Get a release gate by resource name.

LlmEvaluationListReleaseGates

rpc LlmEvaluationListReleaseGates (ListLlmEvaluationReleaseGatesRequest) returns (ListLlmEvaluationReleaseGatesResponse)
List release gates in the project, optionally filtered + paginated.

LlmEvaluationUpdateReleaseGate

rpc LlmEvaluationUpdateReleaseGate (UpdateLlmEvaluationReleaseGateRequest) returns (LlmEvaluationReleaseGate)
Update an existing release gate. Semantic changes (suite, baseline, evaluators, thresholds, weights, safety) increment the server-managed revision.

LlmEvaluationDeleteReleaseGate

rpc LlmEvaluationDeleteReleaseGate (DeleteLlmEvaluationReleaseGateRequest) returns (.google.protobuf.Empty)
Delete a release gate and all owned gate runs.

LlmEvaluationRunReleaseGate

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.

LlmEvaluationGetReleaseGateRun

rpc LlmEvaluationGetReleaseGateRun (GetLlmEvaluationReleaseGateRunRequest) returns (LlmEvaluationReleaseGateRun)
Get a single release gate run (persisted verdict + checks) by resource name.

LlmEvaluationListReleaseGateRuns

rpc LlmEvaluationListReleaseGateRuns (ListLlmEvaluationReleaseGateRunsRequest) returns (ListLlmEvaluationReleaseGateRunsResponse)
List release gate runs, optionally filtered + paginated.

LlmEvaluationCreateScorecard

rpc LlmEvaluationCreateScorecard (CreateLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)
Create a new scorecard (weighted multi-criteria roll-up definition).

LlmEvaluationGetScorecard

rpc LlmEvaluationGetScorecard (GetLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)
Get a scorecard by resource name.

LlmEvaluationListScorecards

rpc LlmEvaluationListScorecards (ListLlmEvaluationScorecardsRequest) returns (ListLlmEvaluationScorecardsResponse)
List scorecards in the project, optionally filtered + paginated.

LlmEvaluationUpdateScorecard

rpc LlmEvaluationUpdateScorecard (UpdateLlmEvaluationScorecardRequest) returns (LlmEvaluationScorecard)
Update an existing scorecard.

LlmEvaluationDeleteScorecard

rpc LlmEvaluationDeleteScorecard (DeleteLlmEvaluationScorecardRequest) returns (.google.protobuf.Empty)
Delete a scorecard.

LlmEvaluationGetProjectSettings

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.

LlmEvaluationUpdateProjectSettings

rpc LlmEvaluationUpdateProjectSettings (UpdateLlmEvaluationProjectSettingsRequest) returns (LlmEvaluationProjectSettings)
Update the per-(project, language_code) evaluation settings singleton.

LlmEvaluationListEvaluators

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.

LlmEvaluationCreateExamplesFromSession

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.

LlmEvaluationSimulateConversations

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.

LlmEvaluationCreateSchedule

rpc LlmEvaluationCreateSchedule (CreateLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)
Create a new schedule for recurring experiment / release gate runs.

LlmEvaluationGetSchedule

rpc LlmEvaluationGetSchedule (GetLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)
Get a schedule by resource name.

LlmEvaluationListSchedules

rpc LlmEvaluationListSchedules (ListLlmEvaluationSchedulesRequest) returns (ListLlmEvaluationSchedulesResponse)
List schedules in the project, optionally filtered + paginated.

LlmEvaluationUpdateSchedule

rpc LlmEvaluationUpdateSchedule (UpdateLlmEvaluationScheduleRequest) returns (LlmEvaluationSchedule)
Update an existing schedule (cron / interval, enabled flag, request template).

LlmEvaluationDeleteSchedule

rpc LlmEvaluationDeleteSchedule (DeleteLlmEvaluationScheduleRequest) returns (.google.protobuf.Empty)
Delete a schedule. Experiments / gate runs already created by it are kept.

LlmEvaluationCreateReport

rpc LlmEvaluationCreateReport (CreateLlmEvaluationReportRequest) returns (LlmEvaluationReport)
Persist a generated report as an immutable artifact (incl. payload bytes).

LlmEvaluationGetReport

rpc LlmEvaluationGetReport (GetLlmEvaluationReportRequest) returns (LlmEvaluationReport)
Get a report by resource name (incl. payload bytes).

LlmEvaluationListReports

rpc LlmEvaluationListReports (ListLlmEvaluationReportsRequest) returns (ListLlmEvaluationReportsResponse)
List reports, optionally filtered + paginated. Payload bytes are omitted unless explicitly requested via field_mask.

LlmEvaluationDeleteReport

rpc LlmEvaluationDeleteReport (DeleteLlmEvaluationReportRequest) returns (.google.protobuf.Empty)
Delete a report.

LlmEvaluationCreateAbExperiment

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.

LlmEvaluationGetAbExperiment

rpc LlmEvaluationGetAbExperiment (GetLlmEvaluationAbExperimentRequest) returns (LlmEvaluationAbExperiment)
Get an A/B experiment by resource name.

LlmEvaluationListAbExperiments

rpc LlmEvaluationListAbExperiments (ListLlmEvaluationAbExperimentsRequest) returns (ListLlmEvaluationAbExperimentsResponse)
List A/B experiments in the project, optionally filtered + paginated.

LlmEvaluationUpdateAbExperiment

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.

LlmEvaluationDeleteAbExperiment

rpc LlmEvaluationDeleteAbExperiment (DeleteLlmEvaluationAbExperimentRequest) returns (.google.protobuf.Empty)
Delete an A/B experiment and all owned sticky-assignment rows.

LlmEvaluationStartAbExperiment

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.

LlmEvaluationStopAbExperiment

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.

LlmEvaluationGetAbExperimentResults

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.

LlmEvaluationGetAbRolloutRecommendation

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.

LlmEvaluationApplyAbRollout

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.

LlmEvaluationGetAbRolloutDecision

rpc LlmEvaluationGetAbRolloutDecision (GetLlmEvaluationAbRolloutDecisionRequest) returns (LlmEvaluationAbRolloutDecision)
Get the applied rollout decision (audit record) by resource name.

LlmEvaluationListAbRolloutDecisions

rpc LlmEvaluationListAbRolloutDecisions (ListLlmEvaluationAbRolloutDecisionsRequest) returns (ListLlmEvaluationAbRolloutDecisionsResponse)
List applied rollout decisions in the project, optionally filtered (e.g. by experiment) + paginated.

LlmEvaluationCreateOnlineConfig

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.

LlmEvaluationGetOnlineConfig

rpc LlmEvaluationGetOnlineConfig (GetLlmEvaluationOnlineConfigRequest) returns (LlmEvaluationOnlineConfig)
Get an online-evaluation config by resource name.

LlmEvaluationListOnlineConfigs

rpc LlmEvaluationListOnlineConfigs (ListLlmEvaluationOnlineConfigsRequest) returns (ListLlmEvaluationOnlineConfigsResponse)
List online-evaluation configs in the project, optionally filtered + paginated.

LlmEvaluationUpdateOnlineConfig

rpc LlmEvaluationUpdateOnlineConfig (UpdateLlmEvaluationOnlineConfigRequest) returns (LlmEvaluationOnlineConfig)
Update an existing online-evaluation config (enabled flag, evaluator set, sample rate, thresholds, session filter).

LlmEvaluationDeleteOnlineConfig

rpc LlmEvaluationDeleteOnlineConfig (DeleteLlmEvaluationOnlineConfigRequest) returns (.google.protobuf.Empty)
Delete an online-evaluation config. Already-produced online results and annotation-queue items are kept.

LlmEvaluationGetOnlineResult

rpc LlmEvaluationGetOnlineResult (GetLlmEvaluationOnlineResultRequest) returns (LlmEvaluationOnlineResult)
Get a single online-evaluation result (per scored session step) by resource name.

LlmEvaluationListOnlineResults

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).

LlmEvaluationGetAnnotationQueueItem

rpc LlmEvaluationGetAnnotationQueueItem (GetLlmEvaluationAnnotationQueueItemRequest) returns (LlmEvaluationAnnotationQueueItem)
Get a single annotation-queue item by resource name.

LlmEvaluationListAnnotationQueueItems

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).

LlmEvaluationUpdateAnnotationQueueItem

rpc LlmEvaluationUpdateAnnotationQueueItem (UpdateLlmEvaluationAnnotationQueueItemRequest) returns (LlmEvaluationAnnotationQueueItem)
Update an annotation-queue item (status / assignee / reason transitions: PENDING -> REVIEWED / DISMISSED).

LlmEvaluationPromoteAnnotationQueueItem

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).
Messages

AddLlmEvaluationExampleRequest

Request to append a single example to an existing dataset.

FieldTypeLabelDescription
llm_evaluation_dataset_name string

Resource name of the dataset to extend. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

llm_evaluation_example LlmEvaluationExample

Example payload to append.

parent string

Project owning the dataset. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required, must match the dataset's).

AddLlmEvaluationExamplesRequest

Request to append multiple examples to an existing dataset.

FieldTypeLabelDescription
llm_evaluation_dataset_name string

Resource name of the dataset to extend. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

llm_evaluation_examples LlmEvaluationExample repeated

Examples to append.

parent string

Project owning the dataset. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required, must match the dataset's).

AddLlmEvaluationExamplesResponse

Response for AddExamples.

FieldTypeLabelDescription
llm_evaluation_examples LlmEvaluationExample repeated

Example records created.

ApplyLlmEvaluationAbRolloutRequest

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.

FieldTypeLabelDescription
name string

Resource name of the experiment to roll out. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CancelLlmEvaluationExperimentRequest

Request to cancel a running experiment.

FieldTypeLabelDescription
name string

Resource name of the experiment to cancel. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CompareLlmEvaluationExperimentsRequest

Request to compare two-or-more experiments.

FieldTypeLabelDescription
llm_evaluation_experiment_names string repeated

Resource names of the experiments to compare (two-or-more). Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_baseline_experiment_name string

Optional. Resource name of the baseline experiment used for delta computation. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

parent string

Project owning the experiments. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required, all experiments must share the same).

CreateLlmEvaluationAbExperimentRequest

Request to create a new A/B experiment.

FieldTypeLabelDescription
llm_evaluation_ab_experiment LlmEvaluationAbExperiment

A/B experiment payload (name / status / audit fields are server-populated).

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CreateLlmEvaluationDatasetRequest

Request to create a new evaluation dataset.

FieldTypeLabelDescription
parent string

Project owning the dataset. Format: projects/<project_uuid>/agent.

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.

CreateLlmEvaluationExamplesFromSessionRequest

Request to convert a recorded session into evaluation examples ("golden transcripts").

FieldTypeLabelDescription
parent string

Project owning the session and the dataset. Format: projects/<project_uuid>/agent.

session_name string

Resource name of the recorded session to convert. Format: projects/<project_uuid>/agent/sessions/<session_uuid>.

llm_evaluation_dataset_name string

Resource name of the dataset receiving the created examples. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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.

CreateLlmEvaluationExamplesFromSessionResponse

Response for CreateExamplesFromSession.

FieldTypeLabelDescription
llm_evaluation_examples LlmEvaluationExample repeated

Example records created.

CreateLlmEvaluationOnlineConfigRequest

Request to create a new online-evaluation config.

FieldTypeLabelDescription
llm_evaluation_online_config LlmEvaluationOnlineConfig

Config payload (name / audit / last-evaluated fields are server-populated).

parent string

Project owning the config. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CreateLlmEvaluationReleaseGateRequest

Request to create a new release gate.

FieldTypeLabelDescription
llm_evaluation_release_gate LlmEvaluationReleaseGate

Release gate payload (name / revision / audit fields are server-populated).

parent string

Project owning the gate. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CreateLlmEvaluationReportRequest

Request to persist a generated report.

FieldTypeLabelDescription
llm_evaluation_report LlmEvaluationReport

Report payload (name / audit fields are server-populated).

parent string

Project owning the report. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CreateLlmEvaluationScheduleRequest

Request to create a new schedule.

FieldTypeLabelDescription
llm_evaluation_schedule LlmEvaluationSchedule

Schedule payload (name / audit / last-next-run fields are server-populated).

parent string

Project owning the schedule. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

CreateLlmEvaluationScorecardRequest

Request to create a new scorecard.

FieldTypeLabelDescription
llm_evaluation_scorecard LlmEvaluationScorecard

Scorecard payload (name / audit fields are server-populated).

parent string

Project owning the scorecard. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationAbExperimentRequest

Request to delete an A/B experiment and all owned sticky-assignment rows.

FieldTypeLabelDescription
name string

Resource name of the experiment to delete. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationDatasetRequest

Request to delete a dataset and all owned examples.

FieldTypeLabelDescription
name string

Resource name of the dataset to delete. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

parent string

Project owning the dataset. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationExampleRequest

Request to delete an example.

FieldTypeLabelDescription
name string

Resource name of the example to delete. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

parent string

Project owning the example. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationExperimentRequest

Request to delete an experiment.

FieldTypeLabelDescription
name string

Resource name of the experiment to delete. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationFeedbackRequest

Request to delete a single feedback record.

FieldTypeLabelDescription
name string

Resource name of the feedback record to delete. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>/feedbacks/<feedback_uuid>.

parent string

Project owning the feedback. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationOnlineConfigRequest

Request to delete an online-evaluation config.

FieldTypeLabelDescription
name string

Resource name of the config to delete. Format: projects/<project_uuid>/agent/llmEvaluationOnlineConfigs/<config_uuid>.

parent string

Project owning the config. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationReleaseGateRequest

Request to delete a release gate and all owned gate runs.

FieldTypeLabelDescription
name string

Resource name of the gate to delete. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

parent string

Project owning the gate. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationReportRequest

Request to delete a report.

FieldTypeLabelDescription
name string

Resource name of the report to delete. Format: projects/<project_uuid>/agent/llmEvaluationReports/<report_uuid>.

parent string

Project owning the report. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationScheduleRequest

Request to delete a schedule.

FieldTypeLabelDescription
name string

Resource name of the schedule to delete. Format: projects/<project_uuid>/agent/llmEvaluationSchedules/<schedule_uuid>.

parent string

Project owning the schedule. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

DeleteLlmEvaluationScorecardRequest

Request to delete a scorecard.

FieldTypeLabelDescription
name string

Resource name of the scorecard to delete. Format: projects/<project_uuid>/agent/llmEvaluationScorecards/<scorecard_uuid>.

parent string

Project owning the scorecard. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationAbExperimentRequest

Request to get a single A/B experiment.

FieldTypeLabelDescription
name string

Resource name of the experiment to fetch. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationAbExperimentResultsRequest

Request to compute per-variant telemetry rollups for an A/B experiment.

FieldTypeLabelDescription
name string

Resource name of the experiment whose results to compute. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationAbExperimentResultsResponse

Response for GetAbExperimentResults: one rollup per variant.

FieldTypeLabelDescription
llm_evaluation_ab_experiment_name string

Resource name of the experiment these results belong to. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

variant_results LlmEvaluationAbVariantResult repeated

Per-variant telemetry rollups (one entry per variant).

GetLlmEvaluationAbRolloutDecisionRequest

Request to get a single A/B rollout decision (the applied audit record) for an

experiment.

FieldTypeLabelDescription
name string

Resource name of the rollout decision to fetch. Format: projects/<project_uuid>/agent/llmEvaluationAbRolloutDecisions/<decision_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the decision. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationAbRolloutRecommendationRequest

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.

FieldTypeLabelDescription
name string

Resource name of the experiment to evaluate. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

optimize_metric LlmEvaluationAbOptimizeMetric

Required. The metric to optimize when picking the winner.

confidence_level double

Optional. Confidence level for the significance test in (0.0, 1.0) (e.g. 0.95 for 95%). Unset / 0 defaults to 0.95.

min_sessions_per_variant int32

Optional. Minimum number of sessions required per variant before a winner may be called; below it the recommendation reports needs_more_data. Unset / 0 applies the server default.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationAnnotationQueueItemRequest

Request to get a single annotation-queue item.

FieldTypeLabelDescription
name string

Resource name of the item to fetch. Format: projects/<project_uuid>/agent/llmEvaluationAnnotationQueueItems/<item_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the item. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationDatasetRequest

Request to get a single evaluation dataset.

FieldTypeLabelDescription
name string

Resource name of the dataset to fetch. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationExampleRequest

Request to get a single example.

FieldTypeLabelDescription
name string

Resource name of the example to fetch. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationExperimentRequest

Request to fetch a previously-run experiment.

FieldTypeLabelDescription
name string

Resource name of the experiment to fetch. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationOnlineConfigRequest

Request to get a single online-evaluation config.

FieldTypeLabelDescription
name string

Resource name of the config to fetch. Format: projects/<project_uuid>/agent/llmEvaluationOnlineConfigs/<config_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the config. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationOnlineResultRequest

Request to get a single online-evaluation result.

FieldTypeLabelDescription
name string

Resource name of the result to fetch. Format: projects/<project_uuid>/agent/llmEvaluationOnlineResults/<result_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the result. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationProjectSettingsRequest

Request to get the evaluation settings singleton.

FieldTypeLabelDescription
parent string

Project owning the settings. Format: projects/<project_uuid>/agent.

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.

GetLlmEvaluationReleaseGateRequest

Request to get a single release gate.

FieldTypeLabelDescription
name string

Resource name of the gate to fetch. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the gate. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationReleaseGateRunRequest

Request to get a single release gate run.

FieldTypeLabelDescription
name string

Resource name of the gate run to fetch. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>/runs/<run_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationReportRequest

Request to get a single report (incl. payload bytes).

FieldTypeLabelDescription
name string

Resource name of the report to fetch. Format: projects/<project_uuid>/agent/llmEvaluationReports/<report_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the report. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationScheduleRequest

Request to get a single schedule.

FieldTypeLabelDescription
name string

Resource name of the schedule to fetch. Format: projects/<project_uuid>/agent/llmEvaluationSchedules/<schedule_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the schedule. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

GetLlmEvaluationScorecardRequest

Request to get a single scorecard.

FieldTypeLabelDescription
name string

Resource name of the scorecard to fetch. Format: projects/<project_uuid>/agent/llmEvaluationScorecards/<scorecard_uuid>.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data.

parent string

Project owning the scorecard. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

ListLlmEvaluationAbExperimentsRequest

Request to list A/B experiments within a project.

FieldTypeLabelDescription
parent string

Project owning the experiments. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationAbExperimentsResponse

Response for ListAbExperiments.

FieldTypeLabelDescription
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).

ListLlmEvaluationAbRolloutDecisionsRequest

Request to list A/B rollout decisions within a project, optionally narrowed by

filter (typically by experiment).

FieldTypeLabelDescription
parent string

Project owning the decisions. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationAbRolloutDecisionsResponse

Response for ListAbRolloutDecisions.

FieldTypeLabelDescription
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).

ListLlmEvaluationAnnotationQueueItemsRequest

Request to list annotation-queue items within a project.

FieldTypeLabelDescription
parent string

Project owning the items. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationAnnotationQueueItemsResponse

Response for ListAnnotationQueueItems.

FieldTypeLabelDescription
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).

ListLlmEvaluationDatasetsRequest

Request to list evaluation datasets within a project.

FieldTypeLabelDescription
parent string

Project owning the datasets. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationDatasetsResponse

Response for ListDatasets.

FieldTypeLabelDescription
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).

ListLlmEvaluationEvaluatorsRequest

Request to list available evaluators.

FieldTypeLabelDescription
parent string

Project scope (registry may be filtered by project capabilities). Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

ListLlmEvaluationEvaluatorsResponse

Response for ListEvaluators.

FieldTypeLabelDescription
llm_evaluation_evaluator_specs LlmEvaluationEvaluatorSpec repeated

Available evaluators with metadata.

ListLlmEvaluationExamplesRequest

Request to list examples in a dataset.

FieldTypeLabelDescription
llm_evaluation_dataset_name string

Resource name of the dataset to enumerate examples from. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

llm_evaluation_example_filter LlmEvaluationExampleFilter

Optional. Filter conditions to narrow the returned examples.

ListLlmEvaluationExamplesResponse

Response for ListExamples.

FieldTypeLabelDescription
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).

ListLlmEvaluationExperimentsRequest

Request to list experiments in a project, optionally narrowed by filter.

FieldTypeLabelDescription
parent string

Project owning the experiments. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationExperimentsResponse

Response for ListExperiments.

FieldTypeLabelDescription
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).

ListLlmEvaluationFeedbackRequest

Request to list feedback records, optionally narrowed by filter.

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

llm_evaluation_feedback_filter LlmEvaluationFeedbackFilter

Optional. Filter conditions to narrow the returned feedback records.

ListLlmEvaluationFeedbackResponse

Response for ListFeedback.

FieldTypeLabelDescription
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).

ListLlmEvaluationOnlineConfigsRequest

Request to list online-evaluation configs within a project.

FieldTypeLabelDescription
parent string

Project owning the configs. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationOnlineConfigsResponse

Response for ListOnlineConfigs.

FieldTypeLabelDescription
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).

ListLlmEvaluationOnlineResultsRequest

Request to list online-evaluation results within a project.

FieldTypeLabelDescription
parent string

Project owning the results. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationOnlineResultsResponse

Response for ListOnlineResults.

FieldTypeLabelDescription
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).

ListLlmEvaluationReleaseGateRunsRequest

Request to list release gate runs within a project.

FieldTypeLabelDescription
parent string

Project owning the gate runs. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationReleaseGateRunsResponse

Response for ListReleaseGateRuns.

FieldTypeLabelDescription
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).

ListLlmEvaluationReleaseGatesRequest

Request to list release gates within a project.

FieldTypeLabelDescription
parent string

Project owning the gates. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationReleaseGatesResponse

Response for ListReleaseGates.

FieldTypeLabelDescription
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).

ListLlmEvaluationReportsRequest

Request to list reports within a project.

FieldTypeLabelDescription
parent string

Project owning the reports. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields will be filled with data. Payload bytes are omitted unless paths include llm_evaluation_reports.payload.

language_code string

BCP-47 language-code scope (required).

llm_evaluation_report_filter LlmEvaluationReportFilter

Optional. Filter conditions to narrow the returned reports.

ListLlmEvaluationReportsResponse

Response for ListReports.

FieldTypeLabelDescription
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).

ListLlmEvaluationSchedulesRequest

Request to list schedules within a project.

FieldTypeLabelDescription
parent string

Project owning the schedules. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationSchedulesResponse

Response for ListSchedules.

FieldTypeLabelDescription
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).

ListLlmEvaluationScorecardsRequest

Request to list scorecards within a project.

FieldTypeLabelDescription
parent string

Project owning the scorecards. Format: projects/<project_uuid>/agent.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - First page, page size 20.
  • "current_index-1--page_size-20" - Second page, page size 20.
Index starts at 0.

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.

ListLlmEvaluationScorecardsResponse

Response for ListScorecards.

FieldTypeLabelDescription
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).

LlmEvaluationAbExperiment

An A/B experiment: a set of routing variants split over live DetectIntent

traffic for a (project, language_code) scope.

FieldTypeLabelDescription
name string

The unique resource name of the A/B experiment. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

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 LlmEvaluationApplyAbRollout; empty while no rollout has been applied). Lets a results view link straight to the applied audit record. Format: projects/<project_uuid>/agent/llmEvaluationAbRolloutDecisions/<decision_uuid>.

LlmEvaluationAbExperimentFilter

Filter conditions for ListAbExperiments. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
display_name string

Optional. Match only experiments whose display name contains this substring (case-insensitive).

status LlmEvaluationAbExperimentStatus

Optional. Match only experiments with this status.

LlmEvaluationAbRolloutDecision

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.

FieldTypeLabelDescription
name string

The unique resource name of the rollout decision. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationAbRolloutDecisions/<decision_uuid>.

llm_evaluation_ab_experiment_name string

Resource name of the A/B experiment this decision was applied to. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationAbRolloutDecisionFilter

Filter conditions for ListAbRolloutDecisions. All fields are optional;

multiple fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
llm_evaluation_ab_experiment_name string

Optional. Match only decisions applied to this A/B experiment (resource name). Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

applied_by string

Optional. Match only decisions applied by this user id (UUID).

LlmEvaluationAbRolloutRecommendation

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.

FieldTypeLabelDescription
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 needs_more_data is true or no variant beats the control.

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").

LlmEvaluationAbRolloutRecommendation.SessionsPerVariantEntry

FieldTypeLabelDescription
key string

value int64

LlmEvaluationAbTrafficConfig

Traffic-splitting configuration for an A/B experiment.

FieldTypeLabelDescription
enrollment_rate double

Fraction of eligible sessions (0.0-1.0) actually enrolled into the experiment; the remainder use the project default path. 1.0 enrolls every eligible session.

assignment_salt string

Optional. Salt mixed into the deterministic session-bucketing hash so that re-running the same experiment id re-randomizes the assignment.

LlmEvaluationAbVariant

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:

The two override shapes are mutually exclusive per variant; the server applies

whichever matches the project's classifier type.

FieldTypeLabelDescription
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 rag_variant_config. Format: projects/<project_uuid>/agent/ccaiServices/<ccai_service_uuid>.

traffic_weight double

Traffic weight for this variant. Expressed as a percentage in the [0.0, 100.0] range; the variant weights of a started experiment must sum to 100.0.

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 ccai_service_names when the project's classifier is IntentRagflowClassifier; empty / zero fields inside it inherit the project's base config.

LlmEvaluationAbVariantResult

Per-variant rollup returned by GetAbExperimentResults. Stateless / computed.

FieldTypeLabelDescription
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 ondewo.nlu.LlmTelemetryReport (see session.proto). Carried as a Struct rather than the typed message because session.proto already imports this file (for LlmEvaluationFeedback on LlmTelemetry), so a typed import back would form an illegal proto import cycle; the report is produced by the same server-side aggregator that fills the typed LlmTelemetryReport on the statistics RPCs.

derived_metrics google.protobuf.Struct

Optional. Derived comparison metrics (e.g. token / latency / error / cost deltas versus the control variant), keyed by metric name.

LlmEvaluationAnnotationQueueItem

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.

FieldTypeLabelDescription
name string

The unique resource name of the queue item. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationAnnotationQueueItems/<item_uuid>.

session_name string

Resource name of the offending session. Format: projects/<project_uuid>/agent/sessions/<session_uuid>.

session_step_name string

Resource name of the offending session step. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/sessionSteps/<step_uuid>.

llm_evaluation_online_result_name string

Resource name of the online result that triggered the enqueue. Format: projects/<project_uuid>/agent/llmEvaluationOnlineResults/<result_uuid>.

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. "faithfulness=0.2 < 0.5").

llm_evaluation_dataset_name string

Resource name of the dataset the item was promoted into. Set when the item reaches PROMOTED status. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationAnnotationQueueItemFilter

Filter conditions for ListAnnotationQueueItems. All fields are optional;

multiple fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
status LlmEvaluationAnnotationStatus

Optional. Match only items with this status.

assigned_to string

Optional. Match only items assigned to this user id (UUID).

LlmEvaluationComparison

Pairwise comparison report across multiple experiments.

FieldTypeLabelDescription
name string

The unique resource name of the comparison. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationComparisons/<comparison_uuid>.

display_name string

Human-readable display name.

llm_evaluation_experiment_names string repeated

Resource names of the experiments being compared (two-or-more). Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_baseline_experiment_name string

Optional. Resource name of the baseline experiment used for delta computation. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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.

LlmEvaluationDataset

A dataset is a named collection of evaluation examples plus optional metadata.

FieldTypeLabelDescription
name string

The unique resource name of the dataset. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language code (e.g. "en", "de", "en-US") identifying which language the dataset was authored for. Datasets are scoped per (project, language_code) — the same dataset name may exist independently per language.

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).

LlmEvaluationDatasetFilter

Filter conditions for ListDatasets. All fields are optional; multiple fields

set at the same time are combined via logical AND.

FieldTypeLabelDescription
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.

LlmEvaluationEvaluatorParameterSpec

Specification of one configurable evaluator parameter.

FieldTypeLabelDescription
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.

LlmEvaluationEvaluatorRun

Result of running one evaluator against one example.

FieldTypeLabelDescription
name string

The unique resource name of the evaluator run. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>.

display_name string

Human-readable display name.

llm_evaluation_example_name string

Resource name of the example the evaluator was run against. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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 raw payloads.

LlmEvaluationEvaluatorSpec

Server-side metadata describing one available evaluator.

FieldTypeLabelDescription
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.

LlmEvaluationExample

A single example in an evaluation dataset.

FieldTypeLabelDescription
name string

The unique resource name of the example. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

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.

LlmEvaluationExampleFilter

Filter conditions for ListExamples. All fields are optional; multiple fields

set at the same time are combined via logical AND.

FieldTypeLabelDescription
display_name string

Optional. Match only examples whose display name contains this substring (case-insensitive).

LlmEvaluationExperiment

A single experiment run over a dataset.

FieldTypeLabelDescription
name string

The unique resource name of the experiment. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_dataset_name string

Resource name of the source dataset. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

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: projects/<project_uuid>/agent/llmEvaluationSchedules/<schedule_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>/runs/<run_uuid>.

LlmEvaluationExperimentFilter

Filter conditions for ListExperiments. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationSchedules/<schedule_uuid>.

llm_evaluation_experiment_kind LlmEvaluationExperimentKind

Optional. Match only experiments of this kind.

LlmEvaluationFeedback

A single feedback record (score + optional categorical + comment + raw payload).

FieldTypeLabelDescription
name string

The unique resource name of the feedback record. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>/feedbacks/<feedback_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>.

llm_evaluation_experiment_name string

Resource name of the owning experiment. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_example_name string

Resource name of the example the feedback targets. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

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.

LlmEvaluationFeedbackFilter

Filter conditions for ListFeedback. All fields are optional; multiple fields

set at the same time are combined via logical AND.

FieldTypeLabelDescription
llm_evaluation_experiment_name string

Optional. Match only feedback attached to this experiment (resource name). Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_example_name string

Optional. Match only feedback targeting this example (resource name). Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

llm_evaluation_evaluator_run_name string

Optional. Match only feedback produced by this evaluator run (resource name). Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>.

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).

LlmEvaluationJudgeConfig

Judge-LLM configuration used by LLM-as-judge evaluators.

FieldTypeLabelDescription
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 comment / raw payloads.

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. {"geeval": {"criteria": "...", "threshold": 0.7}}).

LlmEvaluationOnlineConfig

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.

FieldTypeLabelDescription
name string

The unique resource name of the online config. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationOnlineConfigs/<config_uuid>.

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. "answer_relevancy", "faithfulness", "toxicity"). AIM restricts the picker to reference-free evaluators via LlmEvaluationListEvaluators.

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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationOnlineConfigFilter

Filter conditions for ListOnlineConfigs. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
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.

LlmEvaluationOnlineResult

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.

FieldTypeLabelDescription
name string

The unique resource name of the result. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationOnlineResults/<result_uuid>.

llm_evaluation_online_config_name string

Resource name of the online config that produced this result. Format: projects/<project_uuid>/agent/llmEvaluationOnlineConfigs/<config_uuid>.

session_name string

Resource name of the scored session. Format: projects/<project_uuid>/agent/sessions/<session_uuid>.

session_step_name string

Resource name of the scored session step. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/sessionSteps/<step_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationOnlineResultFilter

Filter conditions for ListOnlineResults. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
llm_evaluation_online_config_name string

Optional. Match only results produced by this online config. Format: projects/<project_uuid>/agent/llmEvaluationOnlineConfigs/<config_uuid>.

passed bool

Optional. Match only results with this pass-state.

filter_by_passed bool

Optional. When true, the passed field is applied as a filter; when false the passed field is ignored (so unset means "any").

LlmEvaluationOnlineSessionFilter

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.

FieldTypeLabelDescription
labels string repeated

Optional. Match only session steps whose session carries every one of these labels (e.g. "AI_FLAGGED").

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 session_step_llm_telemetry row), so reference-free judges requiring the trace can run.

LlmEvaluationPairwiseResult

Per-example pairwise comparison entry.

FieldTypeLabelDescription
llm_evaluation_example_name string

Resource name of the example being compared. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>/examples/<example_uuid>.

llm_evaluation_winner_experiment_name string

Resource name of the winning experiment. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

score_delta double

Score delta against the baseline (positive means winner improved).

reason string

Free-form reason / rationale.

LlmEvaluationProjectSettings

Per-(project, language_code) evaluation settings singleton.

FieldTypeLabelDescription
name string

The unique resource name of the settings singleton. Read-only. Format: projects/<project_uuid>/agent/llmEvaluationProjectSettings.

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: projects/<project_uuid>/agent/llmEvaluationScorecards/<scorecard_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationReleaseGate

A release gate: a named set of thresholds over evaluator scores, regression

deltas and telemetry that decides whether a candidate configuration ships.

FieldTypeLabelDescription
name string

The unique resource name of the release gate. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

llm_evaluation_baseline_experiment_name string

Optional. Resource name of the baseline experiment for regression checks. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationReleaseGateCheck

One evaluated check inside a release gate run verdict.

FieldTypeLabelDescription
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); actual is meaningless in that case.

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".

LlmEvaluationReleaseGateFilter

Filter conditions for ListReleaseGates. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

LlmEvaluationReleaseGateRun

One persisted execution of a release gate: experiments + computed verdict.

FieldTypeLabelDescription
name string

The unique resource name of the gate run. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>/runs/<run_uuid>.

llm_evaluation_release_gate_name string

Resource name of the gate this run belongs to. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_safety_experiment_name string

Optional. Resource name of the safety (adversarial) experiment. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

llm_evaluation_baseline_experiment_name string

Optional. Resource name of the baseline experiment used for regression checks. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationReleaseGateRunFilter

Filter conditions for ListReleaseGateRuns. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
llm_evaluation_release_gate_name string

Optional. Match only runs of this gate (resource name). Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

llm_evaluation_release_gate_verdict LlmEvaluationReleaseGateVerdict

Optional. Match only runs with this verdict.

LlmEvaluationReleaseGateSafetyConfig

Safety section of a release gate: a separate adversarial experiment scored

with safety evaluators.

FieldTypeLabelDescription
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: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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).

LlmEvaluationReleaseGateThresholds

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).

FieldTypeLabelDescription
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.

LlmEvaluationReport

An immutable persisted report artifact (release summaries, gate sign-offs,

exported evaluation snapshots).

FieldTypeLabelDescription
name string

The unique resource name of the report. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationReports/<report_uuid>.

display_name string

Required. Human-readable display name.

description string

Free-form description.

report_type string

Logical report type identifier (e.g. "release-summary.v1").

mime_type string

MIME type of the payload (e.g. "text/markdown", "text/csv", "application/pdf").

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationReportFilter

Filter conditions for ListReports. All fields are optional; multiple fields

set at the same time are combined via logical AND.

FieldTypeLabelDescription
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.

LlmEvaluationSchedule

A schedule for recurring experiment / release gate runs.

FieldTypeLabelDescription
name string

The unique resource name of the schedule. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationSchedules/<schedule_uuid>.

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. "0 2 * * *"). Exactly one of cron_expression / interval_seconds must be set.

interval_seconds int32

Fixed interval between runs in seconds. Exactly one of cron_expression / interval_seconds must be set.

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: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationScheduleFilter

Filter conditions for ListSchedules. All fields are optional; multiple fields

set at the same time are combined via logical AND.

FieldTypeLabelDescription
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.

LlmEvaluationScorecard

A scorecard: a named weighted multi-criteria roll-up definition applied to

experiments for release reporting.

FieldTypeLabelDescription
name string

The unique resource name of the scorecard. Read-only; populated by the server. Format: projects/<project_uuid>/agent/llmEvaluationScorecards/<scorecard_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope.

LlmEvaluationScorecardComponent

One weighted criterion row of a scorecard.

FieldTypeLabelDescription
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.

LlmEvaluationScorecardFilter

Filter conditions for ListScorecards. All fields are optional; multiple

fields set at the same time are combined via logical AND.

FieldTypeLabelDescription
display_name string

Optional. Match only scorecards whose display name contains this substring (case-insensitive).

LlmEvaluationSimulationPersona

One simulated user persona.

FieldTypeLabelDescription
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.

LlmEvaluationTurnResult

Result of executing one conversation turn of a multi-turn (flow) example.

FieldTypeLabelDescription
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.

PromoteLlmEvaluationAnnotationQueueItemRequest

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.

FieldTypeLabelDescription
name string

Resource name of the item to promote. Format: projects/<project_uuid>/agent/llmEvaluationAnnotationQueueItems/<item_uuid>.

target_dataset_name string

Resource name of the dataset receiving the created example(s). Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

PromoteLlmEvaluationAnnotationQueueItemResponse

Response for PromoteAnnotationQueueItem.

FieldTypeLabelDescription
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).

RagVariantConfig

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".

FieldTypeLabelDescription
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 chat_assistant_llm_ccai_service_name). Empty = inherit. Format: projects/<project_uuid>/agent/ccaiServices/<ccai_service_uuid>.

top_k int32

Retrieval top_k: the maximum number of chunks retrieved per turn (overrides the project's retrieval_max_retrieval_chunks). 0 = inherit.

similarity_threshold double

Retrieval similarity threshold in [0.0, 1.0]: chunks scoring below it are dropped (overrides the project's chat_assistant_similarity_threshold). 0.0 = inherit.

vector_similarity_weight double

Vector-vs-keyword similarity weight in [0.0, 1.0] (overrides the project's retrieval_vector_similarity_weight, surfaced to RAGFlow as the chat assistant's keywords-similarity weight). 0.0 = inherit.

rerank_model_ccai_service_name string

Optional. CcaiService name backing the rerank model for sessions assigned to this variant (overrides the project's chat_assistant_rerank_ccai_service_name). Empty = inherit (or no reranking when the project itself configures none). Format: projects/<project_uuid>/agent/ccaiServices/<ccai_service_uuid>.

RunLlmEvaluationExperimentRequest

Request to run a fresh experiment.

FieldTypeLabelDescription
parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

llm_evaluation_dataset_name string

Resource name of the dataset to evaluate against. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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 ccai_service_names pattern. Each named service defines one LLM to evaluate; supplying several evaluates and compares multiple LLMs in a single run. Takes precedence over the free-form model_name label.

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. {"geeval": {"criteria": "...", "threshold": 0.7}}).

RunLlmEvaluationReleaseGateRequest

Request to run a release gate against a candidate target.

FieldTypeLabelDescription
name string

Resource name of the gate to run. Format: projects/<project_uuid>/agent/llmEvaluationReleaseGates/<gate_uuid>.

parent string

Project owning the gate. Format: projects/<project_uuid>/agent.

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 ccai_service_names.

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.

SimulateLlmEvaluationConversationsRequest

Request to generate synthetic multi-turn evaluation conversations.

FieldTypeLabelDescription
parent string

Project owning the dataset. Format: projects/<project_uuid>/agent.

llm_evaluation_dataset_name string

Resource name of the dataset receiving the generated examples. Format: projects/<project_uuid>/agent/llmEvaluationDatasets/<dataset_uuid>.

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.

StartLlmEvaluationAbExperimentRequest

Request to start an A/B experiment (validates weights, sets RUNNING).

FieldTypeLabelDescription
name string

Resource name of the experiment to start. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

StopLlmEvaluationAbExperimentRequest

Request to stop a running A/B experiment (sets STOPPED).

FieldTypeLabelDescription
name string

Resource name of the experiment to stop. Format: projects/<project_uuid>/agent/llmEvaluationAbExperiments/<experiment_uuid>.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

SubmitLlmEvaluationFeedbackRequest

Request to submit a single feedback record.

FieldTypeLabelDescription
llm_evaluation_experiment_name string

Resource name of the experiment the feedback applies to. Format: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>.

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: projects/<project_uuid>/agent/llmEvaluationExperiments/<experiment_uuid>/evaluatorRuns/<evaluator_run_uuid>.

llm_evaluation_feedback LlmEvaluationFeedback

Feedback payload.

parent string

Project owning the experiment. Format: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationAbExperimentRequest

Request to update an existing A/B experiment.

FieldTypeLabelDescription
llm_evaluation_ab_experiment LlmEvaluationAbExperiment

Experiment payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationAnnotationQueueItemRequest

Request to update an annotation-queue item (status / assignee / reason transitions).

FieldTypeLabelDescription
llm_evaluation_annotation_queue_item LlmEvaluationAnnotationQueueItem

Item payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationDatasetRequest

Request to update an existing dataset.

FieldTypeLabelDescription
llm_evaluation_dataset LlmEvaluationDataset

Dataset payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationExampleRequest

Request to update an existing example.

FieldTypeLabelDescription
llm_evaluation_example LlmEvaluationExample

Example payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationExperimentRequest

Request to update an experiment's metadata.

FieldTypeLabelDescription
llm_evaluation_experiment LlmEvaluationExperiment

Experiment payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationFeedbackRequest

Request to update an existing feedback record.

FieldTypeLabelDescription
llm_evaluation_feedback LlmEvaluationFeedback

Feedback payload (only fields covered by update_mask are applied; typically score, categorical_value and / or comment).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationOnlineConfigRequest

Request to update an existing online-evaluation config.

FieldTypeLabelDescription
llm_evaluation_online_config LlmEvaluationOnlineConfig

Config payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationProjectSettingsRequest

Request to update the evaluation settings singleton.

FieldTypeLabelDescription
llm_evaluation_project_settings LlmEvaluationProjectSettings

Settings payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationReleaseGateRequest

Request to update an existing release gate.

FieldTypeLabelDescription
llm_evaluation_release_gate LlmEvaluationReleaseGate

Gate payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationScheduleRequest

Request to update an existing schedule.

FieldTypeLabelDescription
llm_evaluation_schedule LlmEvaluationSchedule

Schedule payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

UpdateLlmEvaluationScorecardRequest

Request to update an existing scorecard.

FieldTypeLabelDescription
llm_evaluation_scorecard LlmEvaluationScorecard

Scorecard payload (only fields covered by update_mask are applied).

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: projects/<project_uuid>/agent.

language_code string

BCP-47 language-code scope (required).

Enums

LlmEvaluationAbExperimentStatus

Lifecycle status of an A/B experiment.

NameNumberDescription
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.

LlmEvaluationAbOptimizeMetric

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.

NameNumberDescription
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 [0.0, 1.0]. Higher is better.

LLM_EVALUATION_AB_OPTIMIZE_METRIC_SAFETY_SCORE 5

Mean native-safety score in [0.0, 1.0]. Higher is better.

LlmEvaluationAnnotationStatus

Lifecycle status of an annotation-queue item.

NameNumberDescription
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).

LlmEvaluationDatasetType

Kind of examples an evaluation dataset holds.

NameNumberDescription
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).

LlmEvaluationEvaluatorCategory

Category an evaluator belongs to.

NameNumberDescription
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, ...).

LlmEvaluationEvaluatorType

Family of evaluator implementations.

NameNumberDescription
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.

LlmEvaluationExampleExtractionMode

How session steps are converted into evaluation examples.

NameNumberDescription
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.

LlmEvaluationExperimentKind

Kind of an experiment run.

NameNumberDescription
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.

LlmEvaluationExperimentStatus

Lifecycle status of an experiment.

NameNumberDescription
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.

LlmEvaluationReleaseGateVerdict

Verdict of a release gate run.

NameNumberDescription
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.

LlmEvaluationScheduleAction

What a schedule executes when it fires.

NameNumberDescription
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.

LlmEvaluationSimulationKind

Kind of conversation simulation.

NameNumberDescription
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.

ondewo/nlu/logs.proto

Top

Services

Logs

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.

Service Methods

StreamLogs

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.

ListLogs

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.

GetLogStream

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.

ListLogStreams

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.

ExportLogs

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.

DeleteLogs

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.

Messages

CaiLogEntry

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.

FieldTypeLabelDescription
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 seq + 1; use resume_token, or before_seq / after_seq when the filter resolves to exactly one log stream.

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 timestamp is the instant CAI captured the record rather than the instant it was produced, which happens when a container line carried no parsable docker timestamp.

level LogSeverity

The severity of the record. LOG_SEVERITY_UNSPECIFIED means the emitter does not log in a recognised format.

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

<module>:<function>:<line> of the emitting log statement. Empty for output that is not in the ONDEWO logging format.

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. GrpcServer_3 for a CAI worker. Empty when not available.

log_stream string

Resource name of the log stream this entry belongs to. The format is

logStreams/<log_stream_uuid>
for a stream that belongs to no project (a server process) and
projects/<project_uuid>/logStreams/<log_stream_uuid>
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

projects/<project_uuid>/operations/<operation_uuid>
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

projects/<project_uuid>/agent

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 (<hostname>:<pid> or the configured ONDEWO_NLU_CAI_REPLICA_ID).

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 message. 1 for an ordinary single-line record.

operation_type OperationMetadata.OperationType

Type of the operation named by operation_name; UNSPECIFIED when none.

phase string

Lifecycle phase of the container the record came from, e.g. hw_check, gpu_prealloc, build_cache, train, rag_crawl. Empty for a server record.

CaiLogFilter

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.

FieldTypeLabelDescription
log_stream_names string repeated

Log stream resource names, in either form of CaiLogEntry.log_stream.

operation_names string repeated

Operation names, e.g.

projects/<project_uuid>/operations/<operation_uuid>

include_sub_operations bool

Also match the sub-operations of every operation in operation_names (a training operation runs one sub-operation per algorithm). Defaults to false.

project_parents string repeated

Project parents of the form

projects/<project_uuid>/agent

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. train or hw_check.

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_SEVERITY_UNSPECIFIED (the default) applies no lower bound. Ignored when log_levels is non-empty.

log_levels LogSeverity repeated

Exact severities to include. When non-empty this OVERRIDES min_log_level.

include_unleveled_lines bool optional

Keep entries whose severity could not be determined even when a severity bound is set. Defaults to false.

text string optional

Case-insensitive substring match against the message, as the caller receives it (after the server's secret redaction). ListLogsResponse.total_matching_count, count_by_level, has_more_older and has_more_newer are computed WITHOUT it and CAI_LOG_FILTER_FIELD_TEXT is reported in scope_limited_filters: they would otherwise reveal whether a redacted secret contains the searched text.

regex string optional

Regular expression (Python re syntax) matched against the message. At most 512 characters; an invalid, oversized or catastrophically backtracking pattern is rejected with INVALID_ARGUMENT.

emitter_prefixes string repeated

Prefix match against <module>:<function>:<line>, for example ondewo_cai.ondewo_cdls.services.server.servicers.agents_servicer.

thread_names string repeated

Restrict to entries emitted by these threads.

process_names string repeated

Restrict to entries emitted by these processes, e.g. GrpcServer_0.

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 start_time after end_time is rejected with INVALID_ARGUMENT.

CaiLogStream

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.

FieldTypeLabelDescription
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 (projects/<project_uuid>/agent). Empty for a server process.

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. GrpcServer_3. Empty for a container.

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_state is CAI_LOG_CAPTURE_STATE_FAILED.

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 seq currently stored for this stream (0 when it holds none).

max_available_seq int64

The largest seq assigned to this stream (0 when it holds no entry). Entries up to it may since have been removed by retention or DeleteLogs; it never decreases while the stream holds an entry.

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; UNSPECIFIED for a server process.

DeleteLogsRequest

The request message for Logs.DeleteLogs.

FieldTypeLabelDescription
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 false.

DeleteLogsResponse

The response message for Logs.DeleteLogs.

FieldTypeLabelDescription
deleted_log_entry_count int64

How many log entries were deleted (with validate_only: would be deleted).

deleted_log_stream_count int64

How many log streams were deleted because no entries remained (with validate_only: would be deleted).

ExportLogsRequest

The request message for Logs.ExportLogs.

FieldTypeLabelDescription
filter CaiLogFilter

The entries to export. Every field of CaiLogFilter applies, with the semantics of ListLogs. REQUIRED, with both start_time and end_time set and start_time before end_time; otherwise INVALID_ARGUMENT.

format CaiLogExportFormat

The file format. Unset means CAI_LOG_EXPORT_FORMAT_TEXT.

include_metadata bool

Include every field of each entry rather than only the timestamp, the severity and the message (see CaiLogExportFormat). Default false.

ExportLogsResponse

One message of an ExportLogs stream.

FieldTypeLabelDescription
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 last = true was cut off and its file is incomplete.

truncated bool

True on the last message when the export stopped early because it reached ONDEWO_NLU_CAI_LOG_EXPORT_MAX_ENTRIES, ONDEWO_NLU_CAI_LOG_EXPORT_MAX_BYTES or the maximum stream duration.

GetLogStreamRequest

The request message for Logs.GetLogStream.

FieldTypeLabelDescription
name string

The name of the log stream, in either form of CaiLogEntry.log_stream.

field_mask google.protobuf.FieldMask

Optional. Partial response: the CaiLogStream field paths to populate. name is always populated, unset or empty returns every field, an unknown path is rejected with INVALID_ARGUMENT naming it.

ListLogStreamsRequest

The request message for Logs.ListLogStreams.

FieldTypeLabelDescription
filter CaiLogFilter optional

Optional. A filter to narrow the response down to the log streams of interest. Only the identity fields and log_sources / channels / process_names apply; the other content fields and the time window are ignored.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. A page size above 1000 is clamped to 1000. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned CaiLogStream, relative to CaiLogStream (no log_streams. prefix). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it.

capture_states CaiLogCaptureState repeated

Optional. Only log streams in one of these capture states. Empty matches every state. CAI_LOG_CAPTURE_STATE_UNSPECIFIED is rejected with INVALID_ARGUMENT.

ListLogStreamsResponse

The response message for Logs.ListLogStreams.

FieldTypeLabelDescription
log_streams CaiLogStream repeated

The log streams of this page, newest capture_started_at first.

next_page_token string

The next_page_token is used to retrieve the next page of a returned result, e.g. current_index-2--page_size-20. Empty when there are no more results.

ListLogsRequest

The request message for Logs.ListLogs.

FieldTypeLabelDescription
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. 0 (the default) and negative values apply the server default (ONDEWO_NLU_CAI_LOG_DEFAULT_MAX_LINES, default 5000); values above the server hard cap (ONDEWO_NLU_CAI_LOG_HARD_MAX_LINES, default 50000) are clamped to it.

before_seq int64 optional

Optional cursor for infinite-scroll UP: return the newest entries with seq less than this value. Valid only when the filter resolves to exactly one log stream.

after_seq int64 optional

Optional cursor for infinite-scroll DOWN: return entries with seq greater than this value. Valid only when the filter resolves to exactly one log stream.

resume_token string optional

Optional. An opaque, server-encoded per-log-stream cursor from a previous response. Use this instead of after_seq whenever the filter can match more than one log stream. Combined with oldest_first it walks forward (newer entries); without it, backward (older entries).

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 CaiLogEntry, relative to CaiLogEntry (no log_entries. prefix), e.g. timestamp, level, message. log_stream and seq are always populated. Unset or empty returns every field. An unknown path, or a path below a repeated field, is rejected with INVALID_ARGUMENT naming it. Applied after the server's secret redaction. It shapes only the entries: the window and cursor fields of the response are computed exactly as without a mask.

include_counts bool

Optional. Also count the matching entries: fills ListLogsResponse.total_matching_count and count_by_level over the WHOLE filtered history (ignoring the cursors). Off by default; set it on the first page only.

ListLogsResponse

The response message for Logs.ListLogs.

FieldTypeLabelDescription
log_entries CaiLogEntry repeated

The matching entries, oldest first.

truncated bool

True when matching entries were dropped because max_lines was reached.

min_available_seq int64

The smallest seq available under the request's IDENTITY filters and the caller's access. Deliberately not narrowed by the content filters.

max_available_seq int64

The largest seq assigned under the request's identity filters and the caller's access, over the log streams that still hold an entry (0 when none does). Entries up to it may since have been removed by retention or DeleteLogs.

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 oldest_first to page forward, without it to page backward), or to start a StreamLogs that continues exactly here.

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 include_counts was requested and the count finished within ONDEWO_NLU_CAI_LOG_COUNT_TIMEOUT_S. An UPPER BOUND when scope_limited_filters is non-empty.

count_by_level ListLogsResponse.CountByLevelEntry repeated

The matching entries counted per severity, keyed by the ondewo.nlu.LogSeverity value NAME (e.g. LOG_SEVERITY_ERROR; entries without a recognised severity under LOG_SEVERITY_UNSPECIFIED). Severities with no entry are omitted; the values sum to total_matching_count. Filled under the same conditions as total_matching_count.

ListLogsResponse.CountByLevelEntry

FieldTypeLabelDescription
key string

value int64

StreamLogsRequest

The request message for Logs.StreamLogs.

FieldTypeLabelDescription
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 INVALID_ARGUMENT rather than ignored.

tail_lines int32 optional

Replay at most this many of the most recent stored entries before switching to live follow. 0 (the default) starts the follow with no historical replay; a negative value is treated as 0; values above the server hard cap (ONDEWO_NLU_CAI_LOG_HARD_MAX_LINES, default 50000) are clamped to it. Applied to the FILTERED result. Ignored when resume_token or after_seq is set.

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.

after_seq int64 optional

Optional. Resume after this seq. Valid ONLY when the filter resolves to exactly one log stream; otherwise the request is rejected with INVALID_ARGUMENT. Ignored when resume_token is set.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every streamed CaiLogEntry, relative to CaiLogEntry (no log_entries. prefix). log_stream and seq are always populated. Unset or empty streams every field. An unknown path, or a path below a repeated field, is rejected with INVALID_ARGUMENT naming it. Applied after the server's secret redaction; never affects the envelope fields.

StreamLogsResponse

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.

FieldTypeLabelDescription
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: FAILED if any has failed, else DETACHED if any is detached, else CAPTURING if any is capturing, else STOPPED.

capture_error string

Why capture failed, when capture_state is CAI_LOG_CAPTURE_STATE_FAILED.

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 StreamLogsRequest.resume_token after a disconnect.

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.

end_reason_code CaiLogStreamEndReason

Set on the final message when the stream was ended by the server, together with end_reason; CAI_LOG_STREAM_END_REASON_UNSPECIFIED on every other message.

Enums

CaiLogCaptureState

The state of CAI's capture of one log stream. This describes the CAPTURE, not the process or the

container.

NameNumberDescription
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 capture_error says why.

CAI_LOG_CAPTURE_STATE_DETACHED 4

Another CAI server process holds the capture of this stream.

CaiLogExportFormat

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.

NameNumberDescription
CAI_LOG_EXPORT_FORMAT_UNSPECIFIED 0

Unspecified: identical to CAI_LOG_EXPORT_FORMAT_TEXT.

CAI_LOG_EXPORT_FORMAT_TEXT 1

Plain text in the manner of docker logs --timestamps: one line per entry, <RFC 3339 UTC timestamp> <message>; continuation lines of a multi-line entry are indented by one tab. With include_metadata the timestamp is followed by the severity, the process or container name and the operation name (- when none), separated by single spaces.

CAI_LOG_EXPORT_FORMAT_NDJSON 2

Newline-delimited JSON: one JSON object per line, the proto3 JSON form of a CaiLogEntry (lowerCamelCase keys). Without include_metadata only seq, logStream, timestamp, level and message are written; with it every field.

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 include_metadata: timestamp,level,message; with it: seq,timestamp,timestamp_is_exact,level,log_source, channel,emitter,thread_name,process_name,log_stream,operation_name,operation_type,project_parent, container_id,container_name,replica_id,trace_id,physical_line_count,message.

CaiLogFilterField

Identifies a field of CaiLogFilter. Used by

ListLogsResponse.scope_limited_filters to declare which

filters could only be applied inside the returned window.

NameNumberDescription
CAI_LOG_FILTER_FIELD_UNSPECIFIED 0

Unspecified.

CAI_LOG_FILTER_FIELD_TEXT 1

CaiLogFilter.text.

CAI_LOG_FILTER_FIELD_REGEX 2

CaiLogFilter.regex.

CAI_LOG_FILTER_FIELD_LOG_SOURCES 3

CaiLogFilter.log_sources.

CAI_LOG_FILTER_FIELD_EMITTER_PREFIXES 4

CaiLogFilter.emitter_prefixes.

CAI_LOG_FILTER_FIELD_THREAD_NAMES 5

CaiLogFilter.thread_names.

CAI_LOG_FILTER_FIELD_PROCESS_NAMES 6

CaiLogFilter.process_names.

CaiLogSource

What produced a log stream.

NameNumberDescription
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 hw_check) and the GPU pre-allocation (phase gpu_prealloc).

CaiLogStreamChannel

The output channel a log stream captures.

NameNumberDescription
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.

CaiLogStreamEndReason

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.

NameNumberDescription
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 (STOPPED or FAILED) and every stored entry was sent. Nothing more will arrive for this filter.

CAI_LOG_STREAM_END_REASON_MAX_DURATION 2

The server-side maximum stream duration (ONDEWO_NLU_CAI_LOG_STREAM_MAX_DURATION_S) was reached. Reconnect with the resume_token of the final message to continue seamlessly.

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 resume_token.

CAI_LOG_STREAM_END_REASON_PERMISSION_REVOKED 4

The caller lost the access the stream requires. The stream then ends with PERMISSION_DENIED.

CAI_LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED 5

The caller's credential expired. The stream then ends with UNAUTHENTICATED; reconnect with a fresh credential and the resume_token.

ondewo/nlu/operation_metadata.proto

Top

Messages

OperationMetadata

Represents the metadata of the long-running operation that can be a parent operation for sub-operations or

can be a sub-operation itself

FieldTypeLabelDescription
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.

Enums

OperationMetadata.OperationType

Type of operation.

It can be creating, importing, exporting, deleting, restoring, building cache, training or exporting benchmark an agent

NameNumberDescription
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

OperationMetadata.Status

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.

NameNumberDescription
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

ondewo/nlu/operations.proto

Top

Services

Operations

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.

Service Methods

ListOperations

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.
NOTE: the name binding below allows API services to override the binding to use different resource name schemes, such as users/*/operations.

GetOperation

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.

DeleteOperation

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

CancelOperation

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.

StreamRemoteOperationContainerLogs

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.

GetRemoteOperationContainerLogs

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.

GetRemoteOperationContainerStatus

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.

ListRemoteOperationContainers

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).

Methods with HTTP bindings

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
Messages

CancelOperationRequest

The request message for Operations.CancelOperation.

FieldTypeLabelDescription
name string

The name of the operation resource to be cancelled.

DeleteOperationRequest

The request message for Operations.DeleteOperation.

FieldTypeLabelDescription
name string

The name of the operation resource to be deleted.

GetOperationRequest

The request message for Operations.GetOperation.

FieldTypeLabelDescription
name string

The name of the operation resource.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetRemoteOperationContainerLogsRequest

The request message for Operations.GetRemoteOperationContainerLogs.

FieldTypeLabelDescription
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. LOG_SEVERITY_UNSPECIFIED (the default) returns every line regardless of level.

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. 0 (the default) applies a server-side safety cap.

regex string

Only return lines whose message matches this regular expression (Python re syntax). Empty (the default) disables regex filtering.

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 < before_seq (older window). 0 (the default) disables backward paging.

after_seq int64

Optional cursor for infinite-scroll-DOWN paging: return lines with seq > after_seq (newer window). 0 (the default) disables forward paging.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned RemoteOperationContainerLogLine, relative to that message (no log_lines. prefix). seq and log_stream are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it.

resume_token string

Optional. An opaque cursor from a previous response's next_resume_token. Use it instead of after_seq / before_seq when the operation ran several containers. Cannot be combined with before_seq or after_seq.

GetRemoteOperationContainerLogsResponse

The response message for Operations.GetRemoteOperationContainerLogs.

FieldTypeLabelDescription
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 max_lines was reached.

min_available_seq int64

The smallest seq currently available for this container (its oldest captured line). A client paging up has reached the beginning when the returned lines start at this value.

max_available_seq int64

The largest seq currently available for this container (its newest captured line).

has_more_older bool

True when older lines than the returned window still exist (i.e. the window's first seq > min_available_seq) — the client may keep scrolling up.

next_resume_token string

Cursor to fetch the next window, or to start a StreamRemoteOperationContainerLogs (or a Logs.StreamLogs) that continues exactly where this window ended.

has_more_newer bool

True when entries newer than this window exist.

GetRemoteOperationContainerStatusRequest

The request message for Operations.GetRemoteOperationContainerStatus.

FieldTypeLabelDescription
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.

ListOperationsRequest

The request message for Operations.ListOperations.

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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.

ListOperationsResponse

The response message for Operations.ListOperations.

FieldTypeLabelDescription
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

ListRemoteOperationContainersRequest

The request message for Operations.ListRemoteOperationContainers.

FieldTypeLabelDescription
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).

ListRemoteOperationContainersResponse

The response message for Operations.ListRemoteOperationContainers.

FieldTypeLabelDescription
containers RemoteOperationContainer repeated

The containers started by the operation (and, when requested, its sub-operations), oldest first.

Operation

This resource represents a long-running operation that is the result of a network API call.

FieldTypeLabelDescription
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 name should have the format of operations/some/unique/name.

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 false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

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 Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

OperationFilter

This message contains an operation filter

FieldTypeLabelDescription
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.

RemoteOperationContainer

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.

FieldTypeLabelDescription
container_id string

The docker container id (64-hex). Empty until captured at launch.

container_name string

The deterministic docker container name (the --name).

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 include_sub_operations was set.

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. hw_check, gpu_prealloc, build_cache, train, rag_crawl.

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 Config.Env), as a name→value map. Secret values (passwords, tokens, private keys, certificates) are redacted server-side; plain non-secret values such as numeric limits remain visible. Persisted at launch so it is available even after the container is removed.

command string repeated

The container's command/args (docker Config.Cmd).

memory_limit_bytes int64

The container's hard memory limit in bytes (docker HostConfig.Memory). 0 means unlimited.

nano_cpus int64

The container's CPU limit in billionths of a CPU (docker HostConfig.NanoCpus); cores = nano_cpus / 1e9. 0 means unset (see cpu_quota).

cpuset_cpus string

The CPUs the container is pinned to (docker HostConfig.CpusetCpus), empty when unset.

cpu_quota int64

The CFS CPU quota (docker HostConfig.CpuQuota); cores = cpu_quota / cpu_period when both are > 0.

cpu_period int64

The CFS CPU period (docker HostConfig.CpuPeriod).

RemoteOperationContainer.EnvironmentVariablesEntry

FieldTypeLabelDescription
key string

value string

RemoteOperationContainerLogLine

A single parsed container log line, emitted by both the streaming and the query RPCs.

FieldTypeLabelDescription
timestamp google.protobuf.Timestamp

The timestamp parsed from the loguru line prefix, if present.

level LogSeverity

The loguru severity parsed from the line, or LOG_SEVERITY_UNSPECIFIED if the line carried no recognizable level (e.g. a continuation / traceback line).

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 seq + 1; pass it back as after_seq / before_seq (strictly greater / smaller) or use resume_token. 0 when the line was produced by a legacy path that did not assign a sequence.

log_stream string

Resource name of the log stream this line belongs to (see CaiLogEntry.log_stream).

RemoteOperationContainerStatus

The response message for Operations.GetRemoteOperationContainerStatus.

FieldTypeLabelDescription
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 lifecycle_state is EXITED or DEAD.

oom_killed bool

True when the container was killed by the out-of-memory killer.

health_status string

The Docker healthcheck status (healthy / unhealthy / starting), empty when the container declares no healthcheck.

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 Config.Env), as a name→value map. Secret values (passwords, tokens, private keys, certificates) are redacted server-side; plain non-secret values such as numeric limits remain visible.

command string repeated

The container's command/args (docker Config.Cmd).

memory_limit_bytes int64

The container's hard memory limit in bytes (docker HostConfig.Memory). 0 means unlimited.

nano_cpus int64

The container's CPU limit in billionths of a CPU (docker HostConfig.NanoCpus); cores = nano_cpus / 1e9. 0 means unset (see cpu_quota).

cpuset_cpus string

The CPUs the container is pinned to (docker HostConfig.CpusetCpus), empty when unset.

cpu_quota int64

The CFS CPU quota (docker HostConfig.CpuQuota), the older cpu-limit form; cores = cpu_quota / cpu_period when both are > 0.

cpu_period int64

The CFS CPU period (docker HostConfig.CpuPeriod).

image string

The docker image reference the container was started from (docker Config.Image).

RemoteOperationContainerStatus.EnvironmentVariablesEntry

FieldTypeLabelDescription
key string

value string

StreamRemoteOperationContainerLogsRequest

The request message for Operations.StreamRemoteOperationContainerLogs.

FieldTypeLabelDescription
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. LOG_SEVERITY_UNSPECIFIED (the default) streams every line regardless of level.

tail_lines int32

Replay at most this many of the most recent existing log lines before switching to live follow. 0 (the default) starts the follow with no historical replay.

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 re syntax, at most 512 characters). Empty (the default) disables regex filtering. An invalid, oversized or catastrophically backtracking pattern is rejected with INVALID_ARGUMENT.

resume_token string

Optional. Resume exactly where a previous stream or GetRemoteOperationContainerLogs page stopped: the next_resume_token of that response, echoed back verbatim. When set, no historical replay is applied and tail_lines is ignored. The token is interchangeable with Logs.StreamLogs / Logs.ListLogs tokens.

Enums

RemoteOperationContainerLifecycleState

The lifecycle state of a remote-operation container, mirroring the Docker container lifecycle.

NameNumberDescription
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 exit_code).

REMOTE_OPERATION_CONTAINER_LIFECYCLE_STATE_DEAD 7

The container is dead (Docker could not stop/remove it cleanly).

ondewo/nlu/project_role.proto

Top

Services

ProjectRoles

Project roles

Service Methods

CreateProjectRole

rpc CreateProjectRole (CreateProjectRoleRequest) returns (ProjectRole)
Creates a project role by creating the knowledge base master

GetProjectRole

rpc GetProjectRole (GetProjectRoleRequest) returns (ProjectRole)
Creates a project role by getting the knowledge base master

DeleteProjectRole

rpc DeleteProjectRole (DeleteProjectRoleRequest) returns (.google.protobuf.Empty)
Deletes project role

UpdateProjectRole

rpc UpdateProjectRole (UpdateProjectRoleRequest) returns (ProjectRole)
Updates project role

ListProjectRoles

rpc ListProjectRoles (ListProjectRolesRequest) returns (ListProjectRolesResponse)
List project roles

Methods with HTTP bindings

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
Messages

CreateProjectRoleRequest

This message is a request to create project role

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

DeleteProjectRoleRequest

This message is a request to delete project role

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

role_id uint32

role is identified by role id, if empty will throw an error in the backend

GetProjectRoleRequest

This message is a request to get project role

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

ListProjectRolesRequest

This message is a request to list project role

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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.

ListProjectRolesResponse

This message is a response of listing project role

FieldTypeLabelDescription
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

ProjectRole

Project Role messages

FieldTypeLabelDescription
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.

UpdateProjectRoleRequest

This message is a request to update project role

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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

Enums

DefaultProjectRole

Structure of project role

NameNumberDescription
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

ProjectRoleView

Structure of project role view

NameNumberDescription
PROJECT_ROLE_VIEW_UNSPECIFIED 0

The view depends on the endpoint:

  • CreateProjectRole: FULL
  • GetProjectRole: FULL
  • UpdateProjectRole: FULL
  • ListProjectRoles: FULL

PROJECT_ROLE_VIEW_SHALLOW 1

only role ID and name fields are populated

PROJECT_ROLE_VIEW_FULL 2

all fields including permissions are populated

ondewo/nlu/project_statistics.proto

Top

Services

ProjectStatistics

Project Root Statistics

Service Methods

GetIntentCount

rpc GetIntentCount (GetIntentCountRequest) returns (StatResponse)
Returns the intent count within a project

GetEntityTypeCount

rpc GetEntityTypeCount (GetEntityTypeCountRequest) returns (StatResponse)
Returns the entity types count within a project

GetUserCount

rpc GetUserCount (GetProjectStatRequest) returns (StatResponse)
Returns the users count within a project

GetSessionCount

rpc GetSessionCount (GetProjectStatRequest) returns (StatResponse)
Returns the sessions count within a project

GetTrainingPhraseCount

rpc GetTrainingPhraseCount (GetProjectElementStatRequest) returns (StatResponse)
Returns the training phrases count within a project

GetResponseCount

rpc GetResponseCount (GetProjectElementStatRequest) returns (StatResponse)
Returns the responses count within a project

GetEntityValueCount

rpc GetEntityValueCount (GetProjectElementStatRequest) returns (StatResponse)
Returns the entity value count within a project

GetEntitySynonymCount

rpc GetEntitySynonymCount (GetProjectElementStatRequest) returns (StatResponse)
Returns the entity synonyms count within a project

Methods with HTTP bindings

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
Messages

GetEntityTypeCountRequest

Request to get entity type count

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

filter_by_category EntityTypeCategory

Optional. Applies a filter to the list to be counted. Default, no filter.

GetIntentCountRequest

Request to get the intent count

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

filter_by_category IntentCategory

Optional. Applies a filter to the list to be counted. Default, no filter.

GetProjectElementStatRequest

Request to get project element statistics

FieldTypeLabelDescription
name string

Required. The name/path of the concept to get the statistic from. Example:

  • projects/<project_uuid>/agent/intents/<intent_uuid>
  • projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>
  • projects/<project_uuid>/agent/entityTypes/<entity_type_uuid>/entityValues/<entity_value_uuid>

language_code string

Language code

GetProjectStatRequest

Request to get project statistics

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

ondewo/nlu/rag.proto

Top

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.

Services

Rags

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

Service Methods

RagCreateDataset

rpc RagCreateDataset (RagCreateDatasetRequest) returns (RagDataset)
Create a new dataset (knowledge base).

RagUpdateDataset

rpc RagUpdateDataset (RagUpdateDatasetRequest) returns (RagDataset)
Update an existing dataset's configuration.

RagDeleteDatasets

rpc RagDeleteDatasets (RagDeleteRequest) returns (RagPartialSuccess)
Delete one or more datasets (batch operation).
If ids is null or empty, deletes all user's datasets.
Deletes all associated documents, files, and chunks.

RagListDatasets

rpc RagListDatasets (RagListDatasetsRequest) returns (RagDatasetList)
List datasets with pagination and filtering.
Returns datasets from all tenants the user has access to.

RagUploadDocument

rpc RagUploadDocument (stream RagUploadDocumentRequest) returns (RagDocument)
Uploads a document to a dataset and starts parsing it.
If the run field of the returned document is not RAG_DOCUMENT_STATUS_RUNNING this indicates a failure to start parsing the document.

RagUpdateDocument

rpc RagUpdateDocument (RagUpdateDocumentRequest) returns (RagDocument)
Update document metadata and configuration.
If the chunk method is changed, the document is automatically re-parsed.
If the run field of the returned document is not RAG_DOCUMENT_STATUS_RUNNING this indicates a failure to start parsing the document.

RagDownloadDocument

rpc RagDownloadDocument (RagDownloadDocumentRequest) returns (stream RagFileChunk)
Download the original document file.
Returns binary file stream from storage.
First chunk contains metadata, subsequent chunks only contain data.

RagListDocuments

rpc RagListDocuments (RagListDocumentsRequest) returns (RagDocumentList)
List documents in a dataset with pagination and filtering.
Supports time range filtering and keyword search.

RagDeleteDocuments

rpc RagDeleteDocuments (RagDeleteDocumentsRequest) returns (RagPartialSuccess)
Delete one or more documents from a dataset (batch operation).
If ids empty, deletes all documents. Removes chunks and storage files.

RagRetrieval

rpc RagRetrieval (RagRetrievalRequest) returns (RagRetrievalResponse)
Retrieve chunks using vector similarity search.
Supports reranking, metadata filtering, and knowledge graph retrieval.

RagParseDocuments

rpc RagParseDocuments (RagDocumentIdsRequest) returns (RagPartialSuccess)
Start parsing documents into chunks.
Queues documents for background processing.

RagStopParsing

rpc RagStopParsing (RagDocumentIdsRequest) returns (RagPartialSuccess)
Stop parsing documents.

RagCreateCrawler

rpc RagCreateCrawler (RagCreateCrawlerRequest) returns (RagCrawler)
Create a rag crawler for a dataset of an agent.

RagGetCrawler

rpc RagGetCrawler (RagGetCrawlerRequest) returns (RagCrawler)
Get a rag crawler by resource name.

RagListCrawlers

rpc RagListCrawlers (RagListCrawlersRequest) returns (RagListCrawlersResponse)
List rag crawlers of a dataset for the specified agent.

RagUpdateCrawler

rpc RagUpdateCrawler (RagUpdateCrawlerRequest) returns (RagCrawler)
Update a rag crawler (partial update of configuration fields).

RagDeleteCrawler

rpc RagDeleteCrawler (RagDeleteCrawlerRequest) returns (RagDeleteCrawlerResponse)
Delete a rag crawler of a dataset for the specified agent.

RagStartCrawler

rpc RagStartCrawler (RagStartCrawlerRequest) returns (Operation)
Run a crawler.

RagStopCrawler

rpc RagStopCrawler (RagStopCrawlerRequest) returns (RagStopCrawlerResponse)
Stop a pending or running crawler run.

RagGetCrawlerRun

rpc RagGetCrawlerRun (RagGetCrawlerRunRequest) returns (Operation)
Get a crawler run by resource name.

RagListCrawlerRuns

rpc RagListCrawlerRuns (RagListCrawlerRunsRequest) returns (RagListCrawlerRunsResponse)
List crawler runs for a crawler.

RagDeleteCrawlerRuns

rpc RagDeleteCrawlerRuns (RagDeleteCrawlerRunsRequest) returns (RagDeleteCrawlerRunsResponse)
Delete crawler runs by explicit run names and/or crawler names.

RagGetCrawlerResult

rpc RagGetCrawlerResult (RagGetCrawlerResultRequest) returns (RagCrawlerResult)
Get a single crawler result by crawler run resource name and URL.

RagGetCrawlerResults

rpc RagGetCrawlerResults (RagGetCrawlerResultsRequest) returns (RagGetCrawlerResultsResponse)
Get crawler results by crawler run resource name.

RagAddCrawlerResultsToDatasets

rpc RagAddCrawlerResultsToDatasets (RagAddCrawlerResultsToDatasetsRequest) returns (Operation)
Add rag crawler output to one or more datasets.

RagRemoveCrawlerResultsFromDatasets

rpc RagRemoveCrawlerResultsFromDatasets (RagRemoveCrawlerResultsFromDatasetsRequest) returns (Operation)
Remove previously imported crawler output from one or more datasets.

RagGetCrawlerAttachedDatasets

rpc RagGetCrawlerAttachedDatasets (RagGetCrawlerAttachedDatasetsRequest) returns (RagGetCrawlerAttachedDatasetsResponse)
Get datasets currently attached to a crawler.

RagDeleteCrawlers

rpc RagDeleteCrawlers (RagDeleteCrawlersRequest) returns (RagDeleteCrawlersResponse)
Delete multiple crawlers.

RagGetCrawlerRunLogs

rpc RagGetCrawlerRunLogs (RagGetCrawlerRunLogsRequest) returns (RagGetCrawlerRunLogsResponse)
Get crawler run logs.
Messages

RagAddCrawlerResultsToDatasetsRequest

Request message for adding crawler output to one or more datasets.

Either crawler_names or crawler_result_names (or both) must be provided.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler. Format:

projects/<project_uuid>/agent

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.
The specified crawlers must have at least one successful run. All of the results of the last completed run are uploaded to the datasets. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

crawler_result_names string repeated

Optional. Resource names of crawler results to upload in addition to the results of the crawlers specified in crawler_names. Format:

projects/<project_uuid>/agent/crawler_results/<crawler_result_uuid>

dataset_ids string repeated

Required. IDs of the datasets to add the crawl results to.

RagChunk

Chunk of text extracted from a document.

Chunks are the basic retrieval units used for vector similarity search in RAG.

FieldTypeLabelDescription
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 chunk_method=qa).

image_id string

Associated image ID if this chunk references an image.

positions google.protobuf.ListValue repeated

Position information in the original document.
Each position is an array of 5 integers representing location data (format varies by document type).

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 0.0 and 1.0 (only populated in retrieval responses).

RagCrawler

RagCrawler definition.

This object represents a reusable crawler profile that can be run multiple times.

It is modeled after Crawl4AI concepts:

The same crawler can be executed multiple times; each execution creates

a separate crawler run and result set.

FieldTypeLabelDescription
name string

Resource name of the RagCrawler Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>
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 BrowserConfig. Use this when target sites require JS, custom headers, session cookies, or proxy routing.

crawler_config RagCrawlerConfig

Optional. Crawl execution behavior and extraction settings. Roughly corresponds to Crawl4AI CrawlerRunConfig.

retry_config RagCrawlerRetryConfig

Optional. Retry configuration for crawler runs.

RagCrawlerAuth

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.

FieldTypeLabelDescription
http_auth RagCrawlerHttpAuth

Optional. HTTP Basic auth settings.

html_auth RagCrawlerHtmlAuth

Optional. Form/HTML login selector and credential settings.

RagCrawlerBrowserConfig

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).

FieldTypeLabelDescription
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.

RagCrawlerConcurrencyConfig

Concurrency and pacing controls for crawler runs.

FieldTypeLabelDescription
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.

RagCrawlerConfig

Crawl run behavior.

This block controls scheduling, traversal, extraction outputs, retries,

diagnostics capture, and deep crawling options for each crawler run.

FieldTypeLabelDescription
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; 0 means unlimited.

RagCrawlerContentResult

FieldTypeLabelDescription
metadata google.protobuf.Struct

Optional. Extracted page metadata. Includes only fields configured in RagCrawlerConfig.output_config.meta_data_extractors.

markdown string optional

Optional. Extracted markdown output.

RagCrawlerContentScope

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.

FieldTypeLabelDescription
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).

RagCrawlerCookie

Cookie representation for initial browser session state.

FieldTypeLabelDescription
cookie_name string

Required. Cookie name.

cookie_value string

Required. Cookie value.

cookie_domain string

Optional. Cookie domain.

RagCrawlerDeepCrawlerConfig

Deep crawler options grouped under one config node.

FieldTypeLabelDescription
is_active bool

Optional. Enable deep crawler behavior (link following beyond seeds). Default false. If false, config is ignored.

crawl_strategy RagCrawlerCrawlStrategy

Optional. Crawl traversal strategy. Default RAG_CRAWLER_CRAWL_STRATEGY_BEST_FIRST.

max_depth int32 optional

Optional. Maximum link depth from seed URLs, counted from the nearest seed. 0 means unlimited depth.

max_pages int32

Deprecated. Deprecated. Use RagCrawlerConfig.max_pages instead

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.

Fields with deprecated option

Name Option
max_pages

true

RagCrawlerDensityPruning

Density-based content pruning (Crawl4AI PruningContentFilter).

Removes low-text-density and very short nodes by a composite density score.

FieldTypeLabelDescription
is_active bool optional

Optional. Enable density pruning. Default true.

threshold float optional

Optional. Density score threshold. Default 0.5.

threshold_type RagCrawlerPruningThresholdType optional

Optional. Threshold interpretation. Default RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_FIXED.

min_word_threshold int32 optional

Optional. Nodes with fewer than this many words are removed. Default 10.

RagCrawlerExecutionInfo

Consolidated diagnostics and HTTP execution metadata for a crawl result.

FieldTypeLabelDescription
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.

RagCrawlerFilters

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.

FieldTypeLabelDescription
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 allowed_regex, which can express everything this field could.

disallowed_paths string repeated

Deprecated. Deprecated. Use disallowed_regex.

Fields with deprecated option

Name Option
allow_internal_links

true

allow_social_media_links

true

allowed_paths

true

disallowed_paths

true

RagCrawlerHtmlAuth

Form/HTML login configuration.

Selector types and selector strings identify login form fields in the page

DOM. Credentials are then filled before form submission.

FieldTypeLabelDescription
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

RagCrawlerHttpAuth

HTTP Basic authentication settings.

FieldTypeLabelDescription
http_auth_username string

HTTP Basic Authentication username.

http_auth_password string

HTTP Basic Authentication password.

RagCrawlerIncrementalConfig

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.

FieldTypeLabelDescription
is_active bool

Optional. Enable incremental crawling. Default false.

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 <lastmod> reports. Unset means never force a re-fetch.

RagCrawlerMetaDataExtractor

Metadata extractor configuration.

FieldTypeLabelDescription
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).

RagCrawlerResult

Crawler result entity.

Each result corresponds to one crawled URL in a crawler run and includes

extracted content, metadata, diagnostics, and optional binary artifacts.

FieldTypeLabelDescription
name string

Resource name of the crawler result. Format:

projects/<project_uuid>/agent/crawler_results/<crawler_result_uuid>

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 fallback.

RagCrawlerResultsConfig

Structured output configuration.

Use this block to define result payload shape and metadata behavior,

similar to Crawl4AI markdown/output-generation toggles.

FieldTypeLabelDescription
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 RagCrawlerDensityPruning defaults are used.

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

RagCrawlerRetryConfig

Timeout settings for crawler operations.

FieldTypeLabelDescription
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). 0 disables the bound.

RagCrawlerSeedUrlFilters

FieldTypeLabelDescription
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.

RagCrawlerSources

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)

FieldTypeLabelDescription
urls string repeated

Direct seed URLs to enqueue as starting points.

sitemaps string repeated

Sitemap URLs used for URL discovery. Typical values are /sitemap.xml or sitemap index files.

RagCrawlerStatusFilter

HTTP status filtering for crawled pages.

When active, a fetched page becomes a result document only if its HTTP status is accepted.

FieldTypeLabelDescription
is_active bool optional

Optional. Enable HTTP status filtering. Default false.

accepted_status_codes int32 repeated

Optional. Accepted HTTP status codes. If empty while active, only the 2xx range (200-299) is accepted. Add specific codes here to accept extras.

RagCreateCrawlerRequest

Request message for creating a crawler for a dataset of an agent.

FieldTypeLabelDescription
parent string

Required. The agent to create crawlers for. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler RagCrawler

Required. Crawler definition to create. If crawler.name is empty, backend will generate it. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

field_mask google.protobuf.FieldMask

Optional. The mask to control which RagCrawler fields get returned.

RagCreateDatasetRequest

Request message for creating a new dataset.

FieldTypeLabelDescription
parent string

Required. The agent to create the dataset for. Format:

projects/<project_uuid>/agent

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:

  • contain only characters from the basic multilingual Unicode plane
  • maximum 128 characters
  • case-insensitive

description string

Optional. Dataset description. Maximum 65,535 characters.

avatar string

Optional. Base64-encoded avatar image in the format "data:image/[png|jpeg];base64,<base64_string>". Maximum 65,535 characters.

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 chunk_method.

embedding_model_ccai_service_name string

Optional if dataset_default_embedding_ccai_service_name is set in the ONDEWO config, otherwise mandatory. CCAI service to use for embedding the documents in the dataset.

RagDataset

Dataset containing documents for RAG.

FieldTypeLabelDescription
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.

RagDatasetList

Response message for listing datasets.

FieldTypeLabelDescription
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 RagListDatasetsRequest) for retrieving the next results page

RagDatasetParsingStatus

Parsing status statistics of all documents in a dataset

FieldTypeLabelDescription
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.

RagDeleteCrawlerRequest

Request message for deleting a crawler of a dataset for the specified agent.

FieldTypeLabelDescription
name string

Resource name of the RagCrawler Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

parent string

Required. The agent owning the crawler. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

RagDeleteCrawlerResponse

Response message for deleting a crawler of a dataset for the specified agent.

FieldTypeLabelDescription
name string

Resource name of the RagCrawler Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

error_message string

Error message if there are any.

RagDeleteCrawlerRunsRequest

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.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler runs. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler_run_names string repeated

Optional. Explicit crawler run names to delete. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

crawler_names string repeated

Optional. Crawler names whose runs should be deleted. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

RagDeleteCrawlerRunsResponse

Response message for deleting crawler runs.

FieldTypeLabelDescription
deleted_count int32

Number of deleted crawler runs.

deleted_run_names string repeated

Resource names of deleted crawler runs.

RagDeleteCrawlersRequest

Request message for deleting multiple crawlers of a dataset for the specified agent.

FieldTypeLabelDescription
parent string

Required. The agent owning the crawlers. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

names string repeated

Optional. Crawler resource names to delete. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

RagDeleteCrawlersResponse

Response message for deleting multiple crawlers of a dataset for the specified agent.

FieldTypeLabelDescription
delete_crawler_responses RagDeleteCrawlerResponse repeated

responses to delete crawlers

error_message string

error message if there are any

RagDeleteDocumentsRequest

Request message for deleting one or more documents of a single dataset.

FieldTypeLabelDescription
parent string

Required. The agent to delete datasets from. Format:

projects/<project_uuid>/agent

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 true

RagDeleteRequest

Request message for deleting one or more of a RAGFlow resource.

FieldTypeLabelDescription
parent string

Required. The agent to delete datasets from. Format:

projects/<project_uuid>/agent

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 true

RagDocAgg

Aggregated document retrieval results containing how many chunks of the given document where retrieved

FieldTypeLabelDescription
doc_name string

Document name

doc_id string

Document ID

count int32

Number of retrieved chunks

RagDocument

Document uploaded to a dataset.

FieldTypeLabelDescription
id string

Document UUID.

thumbnail string

Base64-encoded thumbnail image in the format "data:image/[png|jpeg];base64,<base64_string>". Maximum 65,535 characters.

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 0 until parsed).

token_count int32 optional

Number of tokens across all chunks in this document.

progress float optional

Processing progress as a decimal value between 0.0 (not started) and 1.0 (complete).

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 ("1"=enabled, "0"=disabled).

create_time google.protobuf.Timestamp

Creation date and time.

update_time google.protobuf.Timestamp

Last update date and time.

RagDocumentIdsRequest

Request message for any endpoints that need a list of document IDs as input, e.g. delete documents, parse documents, stop parsing documents.

FieldTypeLabelDescription
parent string

Required. The agent to delete documents from. Format:

projects/<project_uuid>/agent

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.

document_ids string repeated

Optional. Document IDs for the request.

RagDocumentList

Response message for listing documents.

FieldTypeLabelDescription
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 RagListDocumentsRequest) for retrieving the next results page

RagDownloadDocumentRequest

Request message for downloading the document file.

FieldTypeLabelDescription
parent string

Required. The agent to download the document from. Format:

projects/<project_uuid>/agent

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.

RagFileChunk

File chunk for streaming downloads.

First chunk contains metadata, subsequent chunks only contain data.

FieldTypeLabelDescription
metadata RagFileMetadata

Required in first chunk, ignored in later chunks. File metadata.

data bytes

Optional. Chunk of file content.

RagFileMetadata

File metadata for streaming uploads/downloads.

FieldTypeLabelDescription
file_name string

Required. Filename. Maximum length 255.

content_type string

Optional. MIME type (e.g., "application/pdf", "image/png").

size int64

Optional. Minimum 0. File size in bytes (if known, 0 if unknown).

RagGetCrawlerAttachedDatasetsRequest

Request message for getting datasets attached to a crawler.

FieldTypeLabelDescription
parent string

Required. The agent owning the crawler. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler_name string

Required. Resource name of the crawler. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

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

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

field_mask google.protobuf.FieldMask

Optional. The mask to control which RagDataset fields get returned.

orderby string

Optional. Sort field (default: create_time).

sorting_mode SortingMode optional

Optional. Sort descending (default: SORTING_MODE_DESCENDING).

RagGetCrawlerAttachedDatasetsResponse

Response message for getting datasets attached to a crawler.

FieldTypeLabelDescription
datasets RagDataset repeated

Datasets attached to the crawler.

next_page_token string

Page token string (following the format described in RagGetCrawlerAttachedDatasetsRequest) for retrieving the next results page

RagGetCrawlerRequest

Request message for getting a crawler.

FieldTypeLabelDescription
name string

Required. Resource name of the RagCrawler. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

parent string

Required. The agent owning the crawler. Format:

projects/<project_uuid>/agent

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.

RagGetCrawlerResultRequest

Request message for getting a single crawler result from a crawler run.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler run. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

operation_name string

Required. Resource name of the crawler run. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

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.

RagGetCrawlerResultsRequest

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="...")

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler run. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

operation_name string

Required. Resource name of the crawler run. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

page_token string

Optional. Specifies which page to return. The page token is a string of the format

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

url_query string

Optional. Filter by URL substring.

field_mask google.protobuf.FieldMask

Optional. The mask to control which RagCrawlerResult fields get returned.

orderby string

Optional. Sort field (default: last_crawled_date).

sorting_mode SortingMode optional

Optional. Sort descending.

RagGetCrawlerResultsResponse

Response message for getting crawler results.

FieldTypeLabelDescription
crawler_results RagCrawlerResult repeated

List of crawler results for the crawler run.

next_page_token string

Page token string (following the format described in RagGetCrawlerResultsRequest) for retrieving the next results page

total_size int32

Total number of crawler results available after applying request filters (for example url_query).

RagGetCrawlerRunLogsRequest

Request message for getting crawler run logs.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler run. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

operation_name string

Required. Resource name of the crawler run. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

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 LogEntry. Default: log_entry_timestamp.

sorting_mode SortingMode optional

Optional. Sort descending.

field_mask google.protobuf.FieldMask

Optional. The mask to control which LogEntry fields get returned.

RagGetCrawlerRunLogsResponse

Response message for getting crawler run logs.

FieldTypeLabelDescription
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.

RagGetCrawlerRunRequest

Request message for getting a crawler run.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler run. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler_run_name string

Required. Resource name of the crawler run. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

RagGraphRagConfig

GraphRAG configuration.

FieldTypeLabelDescription
use_graphrag bool optional

Optional. Default false.

entity_types string repeated

Optional. Default ["organization", "person", "geo", "event", "category"].

method RagGraphRagMethod

Optional. Default light.

community bool optional

Optional. Default false.

resolution bool optional

Optional. Default false.

RagListCrawlerRunsRequest

Request message for listing crawler runs.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler runs. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler_name string

Optional. Restrict to one crawler. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

page_token string

Optional. Specifies which page to return. The page token is a string of the format

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

status OperationMetadata.Status

Optional. Filter by operation status.

orderby string

Optional. Sort field (default: created_at).

sorting_mode SortingMode optional

Optional. Sort descending.

RagListCrawlerRunsResponse

Response message for listing crawler runs.

FieldTypeLabelDescription
crawler_runs Operation repeated

List of crawler run operations.

next_page_token string

Page token string (following the format described in RagListCrawlerRunsRequest) for retrieving the next results page

RagListCrawlersRequest

Request message for listing crawlers of a dataset for the specified agent.

FieldTypeLabelDescription
parent string

Required. The agent to list crawlers for. Format:

projects/<project_uuid>/agent

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

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

dataset_name string

Optional. Filter by dataset name.

crawler_name string

Optional. Filter by crawler name.

orderby string

Optional. Sort field (default: create_time).

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.

RagListCrawlersResponse

Response message for listing crawlers.

FieldTypeLabelDescription
crawlers RagCrawler repeated

List of crawlers.

next_page_token string

Page token string (following the format described in RagListCrawlersRequest) for retrieving the next results page

RagListDatasetsRequest

Request message for listing datasets with pagination and filtering.

FieldTypeLabelDescription
parent string

Required. The agent to list all datasets from. Format:

projects/<project_uuid>/agent

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

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

id string

Optional. Filter by dataset ID.

name string

Optional. Filter by dataset name.

orderby string

Optional. Sort field. Can be one of

  • id
  • name
  • description
  • document_count
  • token_num
  • chunk_count
  • chunk_method
  • pagerank
  • create_time
  • update_time
(default: create_time).

desc bool optional

Deprecated. Optional. Sort descending (default: true).

sorting_mode SortingMode

Optional. Specify whether to sort ascending or descending (default: ascending).

field_mask google.protobuf.FieldMask

Optional. The mask to control which RagDataset fields get returned.

Fields with deprecated option

Name Option
desc

true

RagListDocumentsRequest

Request message for listing documents in a dataset with pagination and filtering.

FieldTypeLabelDescription
parent string

Required. The agent to list documents from. Format:

projects/<project_uuid>/agent

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

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

orderby string

Optional. Sort field (default: "create_time"). Accept any field of RagDocument.

desc bool optional

Deprecated. Optional. Sort in descending order (default: true).

keywords string

Optional. Filter by document names containing keywords.

suffix string repeated

Optional. Suffixes to filter by (e.g. ["pdf", "png", "docx"]).

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 RagDocument fields get returned.

Fields with deprecated option

Name Option
desc

true

RagMetadataCondition

Condition to filter document metadata on.

String comparison is always case-insensitive.

FieldTypeLabelDescription
name string

Required. Metadata field name.

comparison_operator RagComparisonOperator

Required. Comparison operator.

value string

Required. Value to compare to.
Must always be a string, but can also be the string representation of a different type, e.g. string representation of a dict "{"key1": 3, "key2": "value"}".

RagMetadataConditions

List of document metadata conditions.

FieldTypeLabelDescription
logic RagLogic

Optional. Whether to apply the conditions with a logical and or logical or.

conditions RagMetadataCondition repeated

Optional. List of conditions.

RagParserConfig

Document parser configuration.

Used fields depend on the chunking method of the document.

FieldTypeLabelDescription
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 "\n".

html4excel bool optional

Optional. Convert Excel documents to HTML. Default false.

layout_recognize string

Optional. Default "DeepDOC".

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 { "use_raptor": false }.

graphrag RagGraphRagConfig

Optional. GRAPHRAG-specific settings. Default { "use_graphrag": false }.

RagPartialSuccess

On complete success: no fields set (empty message).

On partial success/failure: both fields set.

FieldTypeLabelDescription
success_count int32

Number of successful operations.

errors string repeated

Error messages for failed operations.

RagRaptorConfig

RAPTOR configuration. Refer to RAPTOR paper for more information about RAPTOR.

FieldTypeLabelDescription
use_raptor bool optional

Optional. Default false. Whether to use RAPTOR for this dataset.

prompt string

Optional. Prompt to use for RAPTOR. Default:
"Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {cluster_content}\nThe above is the content you need to summarize."

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.

RagRemoveCrawlerResultsFromDatasetsRequest

Request message for removing previously imported crawler output from one or more datasets.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler. Format:

projects/<project_uuid>/agent

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:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

crawler_result_names string repeated

Required. Resource names of crawler results to remove. Format:

projects/<project_uuid>/agent/crawler_results/<crawler_result_uuid>

dataset_ids string repeated

Required. Dataset IDs from which the crawler outputs should be removed. Example:

crawler_names = ["projects/p/agent/crawlers/c1"]
crawler_result_names = ["projects/p/agent/crawler_results/r1", "projects/p/agent/crawler_results/r2"]
dataset_ids = ["dataset-a", "dataset-b"]

RagRetrievalRequest

Request message for retrieving chunks using vector similarity search.

Supports hybrid search combining vector similarity with keyword matching.

FieldTypeLabelDescription
parent string

Required. The agent to retrieve chunks for. Format:

projects/<project_uuid>/agent

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

current_index-<idx>--page_size-<size>
  • <size> must be an integer ≥ 1. The maximum number of results to return.
  • <idx> must be an integer ≥ 0. The start index in the requested list, starting from which a maximum of <size> elements are returned.
Important note: The <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
  • (empty string/missing value) - index 0, page size 10
  • current_index-3 - index 3, page size 10
  • page_size-20 - index 0, page size 20
  • current_index-3--page_size-20 - index 3, page size 20

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.
List elements can be any form of language name/code (parsed by LLM).

metadata_condition RagMetadataConditions

Optional. Metadata filter condition to restrict results based on document metadata.

similarity_threshold float optional

Optional. Minimum similarity score threshold between 0.0 and 1.0 (default: 0.2).

vector_similarity_weight float optional

Optional. Weight for vector similarity versus keyword matching between 0.0 and 1.0 (default: 0.3).
Higher values favor vector similarity, lower values favor keyword matching.

top_k int32

Optional. Minimum 1. Maximum number of chunks to retrieve before reranking (default: 1024).

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 RagChunk fields get returned.

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: 64). Only takes effect when a rerank model is used.

dedup_threshold float optional

Optional. Drop a retrieved chunk whose word-shingle similarity to a better-ranked chunk reaches this threshold, between 0.0 and 1.0 (default: 0.0).

dedup_before_rerank bool optional

Optional. Suppress near-duplicates before reranking instead of after (default: false).

RagRetrievalResponse

Response message for chunk retrieval.

FieldTypeLabelDescription
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 RagRetrievalRequest) for retrieving the next results page

RagStartCrawlerRequest

Request message for running a crawler.

This starts a long-running operation and returns immediately.

Clients should poll operation status via RagGetCrawlerRun.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

crawler_name string

Required. Resource name of the crawler to run. Format:

projects/<project_uuid>/agent/crawlers/<crawler_uuid>

RagStopCrawlerRequest

Request message for stopping a crawler run.

FieldTypeLabelDescription
parent string

Required. The agent that owns the crawler run. Format:

projects/<project_uuid>/agent

language_code string

Required. The language of the project to use.

name string

Required. Resource name of the crawler run. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

RagStopCrawlerResponse

Result of stopping a crawler run

FieldTypeLabelDescription
name string

Resource name of the crawler run that was stopped. Format:

projects/<project_uuid>/agent/crawler_runs/<crawler_run_uuid>

error_message string

Error message if there are any; empty when the stop request was accepted successfully.

RagUpdateCrawlerRequest

Request message for updating a crawler (partial update).

FieldTypeLabelDescription
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:

projects/<project_uuid>/agent

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.

RagUpdateDatasetRequest

Request message for updating an existing dataset.

The same field constraints as for RagCreateDatasetRequest apply here.

FieldTypeLabelDescription
parent string

Required. The agent to update the dataset for. Format:

projects/<project_uuid>/agent

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 RagDataset fields get returned.

embedding_model_ccai_service_name string

Optional. CCAI service to use for embedding the documents in the dataset.

RagUpdateDocumentRequest

Request message for updating an existing document's metadata and configuration.

FieldTypeLabelDescription
parent string

Required. The agent to update the document for. Format:

projects/<project_uuid>/agent

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 UNSTART status and deletes all existing chunks).

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 RagDocument fields get returned.

RagUploadDocumentRequest

Request message for uploading a document to a dataset.

FieldTypeLabelDescription
parent string

Required in first chunk, ignored in later chunks. The agent to upload documents for. Format:

projects/<project_uuid>/agent

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.

Enums

RagChunkMethod

Chunking method for documents. See https://ragflow.io/docs/dev/configure_knowledge_base#select-chunking-method for details.

NameNumberDescription
RAG_CHUNK_METHOD_UNSPECIFIED 0

Unspecified. Defaults to RAG_CHUNK_METHOD_NAIVE

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.

RagComparisonOperator

Valid metadata condition comparison operators

NameNumberDescription
RAG_COMPARISON_OPERATOR_UNSPECIFIED 0

Unspecified. Must never be used.

RAG_COMPARISON_OPERATOR_CONTAINS 1

String representation of metadata field contains value.
If metadata field is a list, checks if the string representation of any field contains value.

RAG_COMPARISON_OPERATOR_NOT_CONTAINS 2

String representation of metadata field does not contain value.
If metadata field is a list, checks if the string representation of no fields contains value.

RAG_COMPARISON_OPERATOR_IN 3

Checks with Python's in operator.
If metadata field is a list, all elements must satisfy the condition.

RAG_COMPARISON_OPERATOR_NOT_IN 4

Checks with Python's not in operator.
If metadata field is a list, all elements must satisfy the condition.

RAG_COMPARISON_OPERATOR_START_WITH 5

String representation of metadata field starts with value.
If metadata field is a list, checks if the joined string of the string representations of all list elements starts with the value.

RAG_COMPARISON_OPERATOR_END_WITH 6

String representation of metadata field ends with value.
If metadata field is a list, checks if the joined string of the string representations of all list elements ends with the 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.

RagCrawlerAuthenticationExecutionType

NameNumberDescription
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.

RagCrawlerCrawlStrategy

Crawl traversal strategy.

NameNumberDescription
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.

RagCrawlerMetaDataExtractorType

NameNumberDescription
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.

RagCrawlerPruningThresholdType

Interpretation of the density-pruning threshold.

NameNumberDescription
RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_UNSPECIFIED 0

Unspecified (treated as FIXED).

RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_FIXED 1

Fixed cutoff: nodes scoring below threshold are removed.

RAG_CRAWLER_PRUNING_THRESHOLD_TYPE_DYNAMIC 2

Dynamic: the threshold is adjusted per-document by the pruning heuristic.

RagCrawlerSelectorType

NameNumberDescription
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.

RagDocumentStatus

Document processing status.

NameNumberDescription
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.

RagDocumentType

Broad document category.

NameNumberDescription
RAG_DOCUMENT_TYPE_UNSPECIFIED 0

Unspecified.

RAG_DOCUMENT_TYPE_PDF 1

PDF

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

RagGraphRagMethod

Knowledge graph construction methods.

NameNumberDescription
RAG_GRAPH_RAG_METHOD_UNSPECIFIED 0

Unspecified. Defaults to RAG_GRAPH_RAG_METHOD_GENERAL

RAG_GRAPH_RAG_METHOD_LIGHT 1

Use prompts provided by LightRAG.

RAG_GRAPH_RAG_METHOD_GENERAL 2

Use prompts provided by GraphRAG.

RagLogic

Metadata conditions logical operators

NameNumberDescription
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.

ondewo/nlu/server_statistics.proto

Top

Services

ServerStatistics

Server project statistics

Service Methods

GetProjectCount

rpc GetProjectCount (.google.protobuf.Empty) returns (StatResponse)
Returns the count of projects in the CAI server

GetUserProjectCount

rpc GetUserProjectCount (GetUserProjectCountRequest) returns (StatResponse)
Returns the count of projects of a user

GetUserCount

rpc GetUserCount (.google.protobuf.Empty) returns (StatResponse)
Returns the users count within a project

Methods with HTTP bindings

Method Name Method Pattern Body
GetProjectCount GET /projects:count
GetUserProjectCount GET /users/{user_identifier=*}/projects:count
GetUserCount GET /users:count
Messages

GetUserProjectCountRequest

Request to get user project count

FieldTypeLabelDescription
user_id string

Required. The ID of the User to count the projects from

ondewo/nlu/session.proto

Top

Services

Sessions

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.

Service Methods

DetectIntent

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.

StreamingDetectIntent

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).

InterruptTurn

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.

PrepareWarmTransferIntro

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.

GetWarmTransferIntroOutcome

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.

ListSessions

rpc ListSessions (ListSessionsRequest) returns (ListSessionsResponse)
ListSessions: returns list of sessions from ondewo-kb; by default returns only session IDs

GetSession

rpc GetSession (GetSessionRequest) returns (Session)
GetSession: returns a session(=conversation) from ondewo-kb

CreateSession

rpc CreateSession (CreateSessionRequest) returns (Session)
CreateSession: creates and returns a session(=conversation) from ondewo-kb

CreateSessionStep

rpc CreateSessionStep (CreateSessionStepRequest) returns (SessionStep)
CreateSessionStep: creates a new session step for a session

GetSessionStep

rpc GetSessionStep (GetSessionStepRequest) returns (SessionStep)
GetSessionStep: gets an existing session step of a session

UpdateSessionStep

rpc UpdateSessionStep (UpdateSessionStepRequest) returns (SessionStep)
UpdateSessionStep: updates an existing session step in a session

DeleteSessionStep

rpc DeleteSessionStep (DeleteSessionStepRequest) returns (.google.protobuf.Empty)
DeleteSessionStep: deletes an existing session step from the session

DeleteSession

rpc DeleteSession (DeleteSessionRequest) returns (.google.protobuf.Empty)
DeleteSession: delete a session(=conversation) from ondewo-kb (for testing only)

ListSessionLabels

rpc ListSessionLabels (ListSessionLabelsRequest) returns (ListSessionLabelsResponse)
Returns the list of labels attached to a single session.

ListSessionLabelsOfAllSessions

rpc ListSessionLabelsOfAllSessions (ListSessionLabelsOfAllSessionsRequest) returns (ListSessionLabelsResponse)
Returns the distinct set of labels observed across all sessions of the agent, optionally narrowed by a SessionFilter.

ListLanguageCodesOfAllSessions

rpc ListLanguageCodesOfAllSessions (ListLanguageCodesOfAllSessionsRequest) returns (ListLanguageCodesResponse)
Returns the distinct set of language codes observed across all sessions of the agent, optionally narrowed by a SessionFilter.

ListMatchedIntentsOfAllSessions

rpc ListMatchedIntentsOfAllSessions (ListMatchedIntentsOfAllSessionsRequest) returns (ListMatchedIntentsResponse)
Returns the distinct set of intents matched across all sessions of the agent, optionally narrowed by a SessionFilter.

ListMatchedEntityTypesOfAllSessions

rpc ListMatchedEntityTypesOfAllSessions (ListMatchedEntityTypesOfAllSessionsRequest) returns (ListMatchedEntityTypesResponse)
Returns the distinct set of entity types recognised across all sessions of the agent, optionally narrowed by a SessionFilter.

ListUserIdsOfAllSessions

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.

ListIdentifiedUserIdsOfAllSessions

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.

ListTagsOfAllSessions

rpc ListTagsOfAllSessions (ListTagsOfAllSessionsRequest) returns (ListTagsResponse)
Returns the distinct set of intent tags observed across all sessions of the agent, optionally narrowed by a SessionFilter.

ListInputContextsOfAllSessions

rpc ListInputContextsOfAllSessions (ListInputContextsOfAllSessionsRequest) returns (ListInputContextsResponse)
Returns the distinct set of input contexts observed across all sessions of the agent, optionally narrowed by a SessionFilter.

ListOutputContextsOfAllSessions

rpc ListOutputContextsOfAllSessions (ListOutputContextsOfAllSessionsRequest) returns (ListOutputContextsResponse)
Returns the distinct set of output contexts observed across all sessions of the agent, optionally narrowed by a SessionFilter.

ListPlatformsOfAllSessions

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.

ListAccountIdsOfAllSessions

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.

ListPropertyIdsOfAllSessions

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.

ListDatastreamIdsOfAllSessions

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.

ListOriginIdsOfAllSessions

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.

AddSessionLabels

rpc AddSessionLabels (AddSessionLabelsRequest) returns (Session)
Attaches the supplied labels to a session and returns the updated session.

DeleteSessionLabels

rpc DeleteSessionLabels (DeleteSessionLabelsRequest) returns (Session)
Removes the supplied labels from a session and returns the updated session.

AddSessionComment

rpc AddSessionComment (AddSessionCommentRequest) returns (Comment)
Appends a comment to a session and returns the persisted comment.

DeleteSessionComments

rpc DeleteSessionComments (DeleteSessionCommentsRequest) returns (Session)
Removes the comments named in the request from a session and returns the updated session.

UpdateSessionComments

rpc UpdateSessionComments (UpdateSessionCommentsRequest) returns (Session)
Updates an existing comment on a session and returns the updated session.

ListSessionComments

rpc ListSessionComments (ListSessionCommentsRequest) returns (ListSessionCommentsResponse)
Lists the comments attached to a session with pagination support, optionally narrowed by resolved status.

ListSessionCommentsOfAllSessions

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.

AddSessionFeedback

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).

AddSessionStepFeedback

rpc AddSessionStepFeedback (AddSessionStepFeedbackRequest) returns (SessionFeedback)
Records user feedback about a single session step (turn), pinned to the exact response, and returns the persisted feedback.

GetSessionFeedback

rpc GetSessionFeedback (GetSessionFeedbackRequest) returns (SessionFeedback)
Returns a single session/step feedback by its resource name.

UpdateSessionFeedback

rpc UpdateSessionFeedback (UpdateSessionFeedbackRequest) returns (SessionFeedback)
Updates an existing feedback (a user revising their thumbs / comment) and returns it.

DeleteSessionFeedback

rpc DeleteSessionFeedback (DeleteSessionFeedbackRequest) returns (.google.protobuf.Empty)
Deletes a feedback (a user withdrawing their feedback).

ListSessionFeedback

rpc ListSessionFeedback (ListSessionFeedbackRequest) returns (ListSessionFeedbackResponse)
Lists all feedback (session-level and step-level) attached to a session with pagination support.

ListSessionFeedbackOfAllSessions

rpc ListSessionFeedbackOfAllSessions (ListSessionFeedbackOfAllSessionsRequest) returns (ListSessionFeedbackResponse)
Lists feedback across all sessions of the agent, optionally narrowed by a SessionFilter.

GetFeedbackStatistics

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.

GetFeedbackStatisticsTimeSeries

rpc GetFeedbackStatisticsTimeSeries (GetFeedbackStatisticsTimeSeriesRequest) returns (GetFeedbackStatisticsTimeSeriesResponse)
Returns feedback statistics bucketed over time for trend charts.

ListSessionReviews

rpc ListSessionReviews (ListSessionReviewsRequest) returns (ListSessionReviewsResponse)
ListSessionReviews: returns list of session reviews from ondewo-kb; by default only returns session review IDs

GetSessionReview

rpc GetSessionReview (GetSessionReviewRequest) returns (SessionReview)
GetSessionReview: returns a session-review from ondewo-kb or computes the first review if none exists

GetLatestSessionReview

rpc GetLatestSessionReview (GetLatestSessionReviewRequest) returns (SessionReview)
GetLatestSessionReview: returns a session-review from ondewo-kb or computes the first review if none exists

CreateSessionReview

rpc CreateSessionReview (CreateSessionReviewRequest) returns (SessionReview)
CreateSessionReview: persist a session review in ondewo-kb as a side effect: also update training data in ondewo-cai

GetAudioFiles

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.

AddAudioFiles

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.

DeleteAudioFiles

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.

GetAudioFileOfSession

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.

ListAudioFiles

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.

Methods with HTTP bindings

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 *
Messages

AddAudioFilesRequest

This message is a request to add the audio files specified

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

session_id string

The unique identifier of the session for which the audio files should be listed Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/<

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:

projects/<project_uuid>/agent/sessions/<session_uuid>/sessionsteps/<session_step_uuid>/<

AddAudioFilesResponse

This message is a request to add the audio files specified

FieldTypeLabelDescription
audio_file_resources AudioFileResource repeated

The unique identifier of the audio files for a specific session. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

error_message string

error message if there are any.

AddSessionCommentRequest

This message is a request to add a comment to a session

FieldTypeLabelDescription
session_id string

The id of the session

comment Comment

The comment to add to the session

AddSessionFeedbackRequest

Request to record feedback about a whole session.

FieldTypeLabelDescription
session_id string

The id of the session.

feedback SessionFeedback

The feedback to record. session_step_id is left empty for session-level feedback.

AddSessionLabelsRequest

This message is a request to add session labels

FieldTypeLabelDescription
session_id string

The id of the session

labels string repeated

The labels to add to the session

AddSessionStepFeedbackRequest

Request to record feedback about a single session step (turn).

FieldTypeLabelDescription
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.

AudioFileResource

Represents an audio file resource attached to a session (input recording or generated TTS output).

FieldTypeLabelDescription
name string

The unique identifier of the audio file resource. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

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.

CancelTurn

Cancels a turn. At least one of response_id and client_turn_id must be set; when both

are, client_turn_id is authoritative.

FieldTypeLabelDescription
response_id string

The server's response_id of the turn, when the client has already received it; empty otherwise.

client_turn_id string

StreamingDetectIntentRequest.client_turn_id of the turn.

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.

ContextFilter

Message used to filter sessions based on contextual information

FieldTypeLabelDescription
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

CreateSessionRequest

This message is a request to create a session

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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.

CreateSessionReviewRequest

Request to persist a session review for a given session.

As a side effect, training data in ondewo-cai may also be updated.

FieldTypeLabelDescription
session_id string

The unique identifier for the session under review Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

parent_review_id string

Optional: The unique identifier of the parent review Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/reviews/<session_review_uuid>

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

CreateSessionStepRequest

Request to append a new SessionStep to an existing session.

FieldTypeLabelDescription
session_id string

The unique identifier of the parent session. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>
.

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 name, created_at).

DeleteAudioFilesRequest

This message is a request to the delete audio files specified

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

names string repeated

The unique identifier of the audio file of the specific session Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

DeleteAudioFilesResponse

This message is a request to the delete audio files specified

FieldTypeLabelDescription
names string repeated

The unique identifier of the audio file of the specific session Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

error_message string

error message if there are any.

DeleteSessionCommentsRequest

This message is a request to delete a session comment

FieldTypeLabelDescription
session_id string

The id of the session

comment_names string repeated

The comment names to delete from the session

DeleteSessionFeedbackRequest

Request to delete (withdraw) a feedback.

FieldTypeLabelDescription
name string

The resource name of the feedback to delete.

DeleteSessionLabelsRequest

This message is a request to delete session labels

FieldTypeLabelDescription
session_id string

The id of the session

labels string repeated

The labels to delete from the session

DeleteSessionRequest

This message is a request to delete a session

FieldTypeLabelDescription
session_id string

Required. The session to be deleted Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

DeleteSessionStepRequest

This message is a request to delete a session step of a session

FieldTypeLabelDescription
name string

The unique identifier for the given session step Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/sessionsteps/<session_step_uuid>
.

DetectIntentRequest

The request to detect user's intent.

FieldTypeLabelDescription
session string

Required. The name of the session this query is sent to. Format: projects/<project_uuid>/agent/sessions/<session_uuid>. It's up to the API caller to choose an appropriate session ID. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 bytes.

query_params QueryParameters

Optional. The parameters of this query.

query_input QueryInput

Required. The input specification. It can be set to:

  1. an audio config which instructs the speech recognizer how to process the speech audio,
  2. a conversational query in the form of text, or
  3. an event that specifies which intent to trigger.

input_audio bytes

Optional. The natural language speech audio to be processed. This field should be populated iff query_input is set to an input audio config. A single request can contain up to 1 minute of speech audio data.

DetectIntentResponse

The message returned from the DetectIntent method.

FieldTypeLabelDescription
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. webhook_status is never populated in webhook requests.

llm_telemetry_report LlmTelemetryReport

Aggregated LLM telemetry — duplicated convenience copy of query_result.llm_telemetry_report for unary clients.

DetectedIntent

This message contains a detected intent

FieldTypeLabelDescription
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:

  • true if the matched intent has required parameters and not all of the required parameter values have been collected.
  • false if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters.

DiscardDraft

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.

FieldTypeLabelDescription
response_id string

The server's response_id of the draft turn.

DocumentFileResource

Represents a document file resource (e.g., text, markdown, PDF, DOCX).

FieldTypeLabelDescription
name string

The unique identifier for the document file resource. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/documents/<document_uuid>

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.

EventInput

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?".

FieldTypeLabelDescription
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.

FeedbackBreakdownBucket

FieldTypeLabelDescription
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).

FeedbackFilter

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.

FieldTypeLabelDescription
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).

FeedbackStatistics

Aggregated feedback statistics for an agent.

FieldTypeLabelDescription
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.

FeedbackTimeSeriesBucket

One time bucket of feedback counts.

FieldTypeLabelDescription
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.

FileResource

Represents a file resource that can either be an image, audio, document, or video file.

FieldTypeLabelDescription
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.

GetAudioFileOfSessionRequest

This message is a request to get one one file combining all audios of a specific session

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

session_id string

The unique identifier of the session for which the audio files should be combined Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/<

resource_view ResourceView

Represents the options for views of resources

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetAudioFilesRequest

This message is a request to get audio files specified

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

names string repeated

The unique identifier of the audio file of the specific session Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

sorting_mode SortingMode

sorting mode

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetAudioFilesResponse

This message is a request to retrieve the audio files specified

FieldTypeLabelDescription
audio_files AudioFileResource repeated

The unique identifier of the audio file for a specific session. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

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

GetFeedbackStatisticsRequest

Request for aggregated feedback statistics.

FieldTypeLabelDescription
parent string

The agent parent. Format:

projects/<project_uuid>/agent

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).

GetFeedbackStatisticsResponse

Response carrying aggregated feedback statistics.

FieldTypeLabelDescription
statistics FeedbackStatistics

The aggregated statistics.

GetFeedbackStatisticsTimeSeriesRequest

Request for feedback statistics bucketed over time.

FieldTypeLabelDescription
parent string

The agent parent. Format:

projects/<project_uuid>/agent

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.

GetFeedbackStatisticsTimeSeriesResponse

Response carrying feedback counts bucketed over time.

FieldTypeLabelDescription
buckets FeedbackTimeSeriesBucket repeated

The time buckets, oldest first.

GetLatestSessionReviewRequest

This message is a request to get latest session review

FieldTypeLabelDescription
session_id string

The unique identifier of the session for which the latest review should be returned Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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.

GetSessionFeedbackRequest

Request to fetch a single feedback by resource name.

FieldTypeLabelDescription
name string

The resource name of the feedback.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields get returned.

GetSessionRequest

This message is a request to get a session

FieldTypeLabelDescription
session_id string

The session to be returned Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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"]

GetSessionReviewRequest

This message is a request to get session review

FieldTypeLabelDescription
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.

GetSessionStepRequest

This message is a request to get a session step

FieldTypeLabelDescription
name string

The unique identifier for the given session step Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/sessionsteps/<session_step_uuid> 

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"]

GetWarmTransferIntroOutcomeRequest

The request for the outcome of a warm transfer intro.

FieldTypeLabelDescription
intro_session string

Required. The intro session. Format: projects/<project_uuid>/agent/sessions/<session_uuid>. A session that was not prepared by PrepareWarmTransferIntro is answered with NOT_FOUND.

HeardMessage

What the user heard of one spoken message of a turn.

FieldTypeLabelDescription
fulfillment_message_index int32

Index into the turn's QueryResult.fulfillment_messages; -1 for a filler, which is not one of them.

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 full_text the user heard, cut back to a word boundary.

heard_char_count int32

Length of heard_text in Unicode code points.

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 diagnostic_info.ondewo_filler.filler_id; empty otherwise.

HeardReport

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.

FieldTypeLabelDescription
response_id string

The server's response_id of the turn, when the client has already received it; empty otherwise.

client_turn_id string

StreamingDetectIntentRequest.client_turn_id of the turn.

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.

ImageFileResource

Represents an image file resource (e.g., JPEG, PNG, GIF) attached to a session.

FieldTypeLabelDescription
name string

The unique identifier of the image file resource. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/images/<image_uuid>

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.

InputAudioConfig

Instructs the speech recognizer how to process the audio content.

FieldTypeLabelDescription
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.

InterruptTurnRequest

The request to interrupt a turn of a session outside a StreamingDetectIntent stream.

FieldTypeLabelDescription
session string

Required. The session of the turn. Format: projects/<project_uuid>/agent/sessions/<session_uuid>.

turn_control TurnControl

Required. The control to apply.

InterruptTurnResponse

The response to an InterruptTurnRequest.

FieldTypeLabelDescription
turn_control_ack TurnControlAck

Outcome of the control.

ListAccountIdsOfAllSessionsRequest

request to list all account_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the account_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListAccountIdsResponse

This message is a response of listing session account_ids

FieldTypeLabelDescription
account_ids string repeated

The account_ids of the session

ListAudioFilesRequest

This message is a request to list all available audio files of a session

FieldTypeLabelDescription
parent string

Required. The project of this agent. Format:

projects/<project_uuid>/agent

session_id string

Optional: The unique identifier of the session for which the audio files should be listed Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/<

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

sorting_mode SortingMode

sorting mode

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListAudioFilesResponse

This message is a request to retrieve the audio files specified

FieldTypeLabelDescription
audio_files AudioFileResource repeated

The requested audio files . Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/audios/<audio_uuid>

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.

ListDatastreamIdsOfAllSessionsRequest

request to list all datastream_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the datastream_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

session_filter SessionFilter

Optional. A filter to narrow the response down to sessions of interest.

ListDatastreamIdsResponse

This message is a response of listing session datastream_ids

FieldTypeLabelDescription
datastream_ids string repeated

The datastream_ids of the session

ListIdentifiedUserIdsOfAllSessionsRequest

request to list all identified_user_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the identified_user_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListIdentifiedUserIdsResponse

This message is a response of listing session identified_user_ids

FieldTypeLabelDescription
identified_user_ids string repeated

The identified_user_ids of the session

ListInputContextsOfAllSessionsRequest

request to list all input_contexts of all sessions

FieldTypeLabelDescription
parent string

The parent for which the input_contexts for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListInputContextsResponse

This message is a response of listing session input_contexts

FieldTypeLabelDescription
input_contexts string repeated

The input_contexts ids of the session

ListLanguageCodesOfAllSessionsRequest

request to list all language codes of all sessions

FieldTypeLabelDescription
parent string

The parent for which the language_codes for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListLanguageCodesResponse

This message is a response of listing session language_codes

FieldTypeLabelDescription
language_codes string repeated

The language_codes of the session

ListMatchedEntityTypesOfAllSessionsRequest

request to list all matched_entity_types of all sessions

FieldTypeLabelDescription
parent string

The parent for which the matched_entity_types for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListMatchedEntityTypesResponse

This message is a response of listing session matched_entity_types

FieldTypeLabelDescription
matched_entity_types string repeated

The matched_entity_types of the session

ListMatchedIntentsOfAllSessionsRequest

request to list all matched_intents of all sessions

FieldTypeLabelDescription
parent string

The parent for which the matched_intents for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListMatchedIntentsResponse

This message is a response of listing session matched_intents

FieldTypeLabelDescription
matched_intents string repeated

The matched_intents of the session

ListOriginIdsOfAllSessionsRequest

request to list all origin_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the origin_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListOriginIdsResponse

This message is a response of listing session origin_ids

FieldTypeLabelDescription
origin_ids string repeated

The origin_ids of the session

ListOutputContextsOfAllSessionsRequest

request to list all output_contexts of all sessions

FieldTypeLabelDescription
parent string

The parent for which the output_contexts for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListOutputContextsResponse

This message is a response of listing session output_contexts

FieldTypeLabelDescription
output_contexts string repeated

The output_contexts ids of the session

ListPlatformsOfAllSessionsRequest

request to list all labels of all sessions

FieldTypeLabelDescription
parent string

The parent for which the platforms for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListPlatformsResponse

This message is a response of listing session platforms

FieldTypeLabelDescription
platforms string repeated

The platforms of the session

ListPropertyIdsOfAllSessionsRequest

request to list all property_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the property_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

session_filter SessionFilter

Optional. A filter to narrow the response down to sessions of interest.

ListPropertyIdsResponse

This message is a response of listing session property_ids

FieldTypeLabelDescription
property_ids string repeated

The property_ids of the session

ListSessionCommentsOfAllSessionsRequest

This message is a request to list comments of all sessions of an agent

FieldTypeLabelDescription
parent string

The parent for which the comments of all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListSessionCommentsRequest

This message is a request to list comments of a session

FieldTypeLabelDescription
session_id string

The unique identifier for the session for which comments should be listed Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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.

ListSessionCommentsResponse

This message is a request to list comments of a session

FieldTypeLabelDescription
comment Comment repeated

The comments of a specific session Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/comments/<comment_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListSessionFeedbackOfAllSessionsRequest

Request to list feedback across all sessions of an agent.

FieldTypeLabelDescription
parent string

The parent for which the feedback of all sessions should be listed. Format:

projects/<project_uuid>/agent

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".

ListSessionFeedbackRequest

Request to list all feedback attached to a session.

FieldTypeLabelDescription
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.

ListSessionFeedbackResponse

A page of feedback.

FieldTypeLabelDescription
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.

ListSessionLabelsOfAllSessionsRequest

request to list all labels of all sessions

FieldTypeLabelDescription
parent string

The parent for which the labels for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListSessionLabelsRequest

This message is a request to list session labels

FieldTypeLabelDescription
session_id string

The id of the session

ListSessionLabelsResponse

This message is a response of listing session labels

FieldTypeLabelDescription
labels string repeated

The labels of the session

ListSessionReviewsRequest

This message is a request to list session reviews

FieldTypeLabelDescription
session_id string

The unique identifier for the session for which reviews should be listed Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListSessionReviewsResponse

This message is a response of listing session reviews

FieldTypeLabelDescription
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

ListSessionsRequest

This message is a request to list sessions

FieldTypeLabelDescription
parent string

Required. The project that the agent to fetch is associated with. Format:

projects/<project_uuid>/agents

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

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"]

ListSessionsResponse

This message is a response including the listing of sessions

FieldTypeLabelDescription
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

ListTagsOfAllSessionsRequest

request to list all tags of all sessions

FieldTypeLabelDescription
parent string

The parent for which the tags for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListTagsResponse

This message is a response of listing session tags

FieldTypeLabelDescription
tags string repeated

The tags of the session

ListUserIdsOfAllSessionsRequest

request to list all user_ids of all sessions

FieldTypeLabelDescription
parent string

The parent for which the user_ids for all sessions should be listed Format:

projects/<project_uuid>/agent

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.

ListUserIdsResponse

This message is a response of listing session user_ids

FieldTypeLabelDescription
user_ids string repeated

The user_ids of the session

LlmAgentNodeEvent

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.

FieldTypeLabelDescription
llm_agent_node_event_node_run_id string

Id of this run of the node. The LLM_AGENT_NODE_PHASE_STARTED event and the LLM_AGENT_NODE_PHASE_COMPLETED or LLM_AGENT_NODE_PHASE_FAILED event of one run share it.

llm_agent_node_event_parent_node_run_id string

llm_agent_node_event_node_run_id of the node run this one is nested in; empty for a node of the outermost graph.

llm_agent_node_event_node_display_name string

Name of the node, e.g. researcher.

llm_agent_node_event_node_path string repeated

Names of the nodes from the outermost graph down to this one, e.g. ["supervisor", "researcher", "model"]. The last element equals llm_agent_node_event_node_display_name.

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_PHASE_COMPLETED and LLM_AGENT_NODE_PHASE_FAILED.

llm_agent_node_event_error_message string

Populated only on LLM_AGENT_NODE_PHASE_FAILED; empty string otherwise.

LlmAgentUsage

Per-intent-agent usage rollup across the scope.

FieldTypeLabelDescription
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.

LlmBaseUrlUsage

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.

FieldTypeLabelDescription
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.

LlmCacheStats

Prompt-cache efficiency aggregate across the LLM calls in scope.

FieldTypeLabelDescription
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.

LlmCallFinishedEvent

Emitted on a streaming DetectIntent when an LLM invocation finishes.

FieldTypeLabelDescription
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.

LlmCallStartedEvent

Emitted on a streaming DetectIntent when an LLM invocation starts.

FieldTypeLabelDescription
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.

LlmCcaiServiceUsage

Per-CCAI-service usage rollup across the scope.

FieldTypeLabelDescription
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.

LlmErrorStat

One error class aggregate.

FieldTypeLabelDescription
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).

LlmErrorStats

Error breakdown aggregate across the scope.

FieldTypeLabelDescription
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).

LlmFinishReasonStat

One finish-reason aggregate.

FieldTypeLabelDescription
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.

LlmLatencyStats

Latency aggregate (seconds) across the LLM calls in scope.

FieldTypeLabelDescription
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.

LlmModelUsage

Per-model usage rollup across the scope.

FieldTypeLabelDescription
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.

LlmProviderUsage

Per-provider usage rollup across the scope.

FieldTypeLabelDescription
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.

LlmReasoningEffortStat

One reasoning-effort aggregate.

FieldTypeLabelDescription
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.

LlmRetrievalMetadata

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.

FieldTypeLabelDescription
chunks LlmRetrievedChunk repeated

The retrieved chunks in retrieval-result order.

LlmRetrievedChunk

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.

FieldTypeLabelDescription
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).

LlmSafetyAssessment

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.

FieldTypeLabelDescription
flagged_categories string repeated

Detector categories that fired across input and output (prompt_injection | jailbreak | pii | info_leak). Empty when nothing was flagged.

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 [0.0, 1.0] where 1.0 means fully safe (no findings) and lower values indicate higher risk.

findings LlmSafetyFinding repeated

Per-finding detail records (category / severity / matched pattern / location).

LlmSafetyCategoryStat

Per-category native-safety aggregate across the LLM calls in scope.

FieldTypeLabelDescription
category string

Detector category (prompt_injection | jailbreak | pii | info_leak).

count int64

Number of calls flagged for this category in scope.

rate double

count / total_assessed.

LlmSafetyFinding

One concrete safety finding inside an LlmSafetyAssessment.

FieldTypeLabelDescription
category string

Detector category that fired (e.g. prompt_injection, jailbreak, pii, info_leak).

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.

LlmSafetyStats

Native-safety breakdown aggregate across the LLM calls in scope. Computed from

the per-call LlmSafetyAssessment records.

FieldTypeLabelDescription
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 (1.0 = fully safe).

category_stats LlmSafetyCategoryStat repeated

Per-category counts and rates, descending by count.

LlmTelemetry

Telemetry for a single LLM invocation inside one DetectIntent turn.

FieldTypeLabelDescription
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 (n in OpenAI API).

finish_reasons string repeated

One finish reason per generation (e.g. stop, length, tool_calls, content_filter).

cached_input_tokens int32

Number of input tokens served from the provider-side prompt cache (Anthropic cache_read_input_tokens).

cache_creation_input_tokens int32

Number of input tokens written to the provider-side prompt cache (Anthropic cache_creation_input_tokens).

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 robust_assistant_agent for this call. No current agent runs reflection loops, so it is 0.

termination_reason string

Stop reason of the agent team run when surfaced (formerly AutoGen TaskResult.stop_reason).

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_evaluation.proto: this is the live MONITORING signal on real DetectIntent traffic. Unset when safety scoring is disabled.

llm_retrieval_metadata LlmRetrievalMetadata

Typed view of the retrieved RAG chunks for this LLM call. Populated alongside the unstructured outputs.retrieved_chunks Struct (field 18, kept for back-compat); both carry the same chunk list. Unset for non-retrieval calls.

llm_call_id string

Id of THIS LLM call. Same identifier the streaming telemetry events carry as llm_call_id (LlmLlmCallStartedEvent, LlmToolCallStartedEvent, ...), so an aggregate or a persisted row can be correlated back to the live event stream. Distinct from run_id (field 11), which is the UPSTREAM framework's id (e.g. langchain).

LlmTelemetryReport

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.

FieldTypeLabelDescription
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 LlmModelUsage.base_url, which carries one base URL per model, this lists every distinct base URL in scope.

LlmThinkingDeltaEvent

Emitted on a streaming DetectIntent for each thinking-delta chunk.

FieldTypeLabelDescription
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.

LlmThinkingMetadata

Thinking / reasoning block emitted by the model (e.g. Anthropic extended thinking,

OpenAI o-series reasoning).

FieldTypeLabelDescription
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.

LlmTokenUsage

Token usage counters for a single LLM call (or aggregate).

FieldTypeLabelDescription
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.

LlmTokenUsageUpdateEvent

Emitted on a streaming DetectIntent when running token counts update.

FieldTypeLabelDescription
llm_call_id string

Groups events under an LlmTelemetry entry.

llm_token_usage LlmTokenUsage

Running totals for that llm_call.

LlmToolCallFinishedEvent

Emitted on a streaming DetectIntent when a tool call finishes.

FieldTypeLabelDescription
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.

LlmToolCallMetadata

Metadata for one tool call executed by the LLM.

FieldTypeLabelDescription
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.

LlmToolCallStartedEvent

Emitted on a streaming DetectIntent when a tool call starts.

FieldTypeLabelDescription
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.

LlmToolUsage

One tool's invocation aggregate across the scope.

FieldTypeLabelDescription
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 LlmTelemetry entry.

tool_call_id string

Stable id of the representative invocation, assigned by the upstream framework (e.g. langchain).

PrepareWarmTransferIntroRequest

The request to prepare the intro session of a warm transfer.

FieldTypeLabelDescription
intro_session string

Required. The intro session, which must not exist yet. Format: projects/<project_uuid>/agent/sessions/<session_uuid>. An existing session that was not prepared with the same transfer_request_id is refused with ALREADY_EXISTS.

source_session string

Required. The caller's session the intro summarises. Format: projects/<project_uuid>/agent/sessions/<session_uuid>. A session of another project than intro_session is refused with INVALID_ARGUMENT.

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.

PrepareWarmTransferIntroResponse

The response to a PrepareWarmTransferIntroRequest. Never carries the intro text.

FieldTypeLabelDescription
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.

QueryInput

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.

FieldTypeLabelDescription
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.

QueryParameters

Represents the parameters of the conversational query.

FieldTypeLabelDescription
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 key:value pairs are supported in the JSON objects: key: language

language=LanguageCode.de.value
key: timestamp
timestamp=time.time() # float python timestamp in seconds since epoch 
key: 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.OndewoWeightedEnsemble
key: single_ner_algorithm
single_ner_algorithm='NerMethodType.OndewoNerRegex'
=> allowed other values for single_ner_algorithm:
 NerMethodType.OndewoNerBert
 NerMethodType.OndewoNerDateNer
 NerMethodType.OndewoNerDictionary
 NerMethodType.OndewoNerDuckling
 NerMethodType.OndewoNerFuzzy
 NerMethodType.OndewoNerHybrid
 NerMethodType.OndewoNerRegex
 NerMethodType.OndewoNerSpacy
 NerMethodType.OndewoNerTfNer

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 DetectIntentResponse

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 TurnControl.discard_draft. The server records the mark on the session step of this request. A DiscardDraft deletes only a session step of the same session whose request carried this mark. A server that does not know this field ignores it and keeps the step.

QueryResult

Represents the result of conversational query or event processing.

FieldTypeLabelDescription
query_text string

The original conversational query text:

  • If natural language text was provided as input, query_text contains a copy of the input.
  • If natural language speech audio was provided as input, query_text contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked.
  • If an event was provided as input, query_text is not set.

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:

  • false if the matched intent has required parameters and not all of the required parameter values have been collected.
  • true if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters.

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 source field returned in the webhook response.

webhook_payload google.protobuf.Struct

If the query was fulfilled by a webhook call, this field is set to the value of the payload field returned in the webhook response.

output_contexts Context repeated

The collection of output contexts. If applicable, output_contexts.parameters contains entries with name <parameter name>.original containing the original parameter values before the query.

intent Intent

The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name, display_name and webhook_state.

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 [ID:N] markers, documents. Empty when the turn was not answered from a RAG dataset.

ReferencedChunk

Chunk information for a document chunk referenced in a RAG based StreamingDetectIntentResponse

FieldTypeLabelDescription
reference_index int32

Index by which this chunk is referenced in the response text. For index N the reference in the response text has format [ID:N]

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).

S2tTranscription

Represents a speech-to-text transcription.

FieldTypeLabelDescription
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

Session of a user interaction

FieldTypeLabelDescription
name string

The unique identifier of the session Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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.

SessionFeedback

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.

FieldTypeLabelDescription
name string

The resource name of the feedback. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/feedback/<feedback_uuid>

session_id string

The session this feedback belongs to. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

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 (optional): a score of 0.0 is a MEANINGFUL rating — the worst point of a 0-10 NPS or 0-5 CSAT scale — and without presence it is indistinguishable from "no score given". The server persists an absent score as SQL NULL and excludes it from average_score / scored_count and from the score_min / score_max range filters, so conflating the two silently dropped exactly the worst ratings and biased the reported average upward. Use HasField("score") to distinguish. Matches FeedbackFilter.score_min / score_max, which are already optional.

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.

SessionFilter

This message contains a session filter

FieldTypeLabelDescription
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

SessionInfo

This message contains information about session

FieldTypeLabelDescription
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

SessionInfo.ContextSteps

The list of contexts of each step collected in an outer list

FieldTypeLabelDescription
contexts Context repeated

List of contexts for a session step

SessionReview

This message contains a session review

FieldTypeLabelDescription
name string

The unique identifier for the given review Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/reviews/<session_review_uuid>

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.

SessionReviewStep

This message contains a session review step

FieldTypeLabelDescription
name string

The unique identifier for the given review step Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/reviews/<review_uuid>/sessionreviewsteps/<session_review_step_uuid>

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

SessionStep is a single user interaction as part of a session.

FieldTypeLabelDescription
name string

The unique identifier of the session step. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/sessionsteps/<session_step_uuid>

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).

StreamingDetectIntentRequest

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.

FieldTypeLabelDescription
session string

Required. The name of the session the query is sent to. Format of the session name: projects/<project_uuid>/agent/sessions/<session_uuid>. It's up to the API caller to choose an appropriate <session_uuid>. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 characters.

query_params QueryParameters

Optional. The parameters of this query.

query_input QueryInput

Required. The input specification. It can be set to:

  1. an audio config which instructs the speech recognizer how to process the speech audio,
  2. a conversational query in the form of text, or
  3. an event that specifies which intent to trigger.

single_utterance bool

Optional. If false (default), recognition does not cease until the client closes the stream. If true, the recognizer will detect a single spoken utterance in input audio. Recognition ceases when it detects the audio's voice has stopped or paused. In this case, once a detected intent is received, the client should close the stream and start a new request with a new stream as needed. This setting is ignored when query_input is a piece of text or an event.

input_audio bytes

Optional. The input audio content to be recognized. Must be sent if query_input was set to a streaming input audio config. The complete audio over all streaming messages must not exceed 1 minute.

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 query_input) on a call-length stream; the server applies it in stream order and starts no turn for it. Send it only to a server that advertised the initial metadata x-ondewo-cai-turn-control: 1 on this stream: an older server treats a request without query_input as a malformed turn and ends the stream.

client_turn_id string

Optional. Client-minted id (e.g. a uuid4 hex) of the turn this request STARTS; set together with query_input. The server echoes it on every response of that turn (StreamingDetectIntentResponse.client_turn_id), and a CancelTurn or HeardReport can name the turn by it before the server's response_id is known.

StreamingDetectIntentResponse

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.

FieldTypeLabelDescription
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 CancelTurn or a DiscardDraft sent as StreamingDetectIntentRequest.turn_control; a HeardReport is not acknowledged on the stream. A response that carries it carries no query result and is never an answer. The acknowledgement of a CancelTurn is sent after every other response of the cancelled turn, so no response of that turn follows it. The acknowledgement of a DiscardDraft is sent once the discard is decided, between turns, with the draft's response_id and no client_turn_id: TURN_CONTROL_ACK_STATUS_DRAFT_DISCARDED when the draft's session step was deleted, TURN_CONTROL_ACK_STATUS_UNKNOWN_TURN when no step was deleted. Not part of telemetry_event.

client_turn_id string

Echo of StreamingDetectIntentRequest.client_turn_id of the turn this response belongs to; empty when the client sent none.

StreamingRecognitionResult

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:

FieldTypeLabelDescription
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 event_type = RECOGNITION_EVENT_TRANSCRIPT.

is_final bool

The default of 0.0 is a sentinel value indicating confidence was not set. If false, the StreamingRecognitionResult represents an interim result that may change. If true, the recognizer will not return any further hypotheses about this piece of the audio. May only be populated for event_type = RECOGNITION_EVENT_TRANSCRIPT.

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 is_final is true and you should not rely on it being accurate or even set.

TextInput

Represents the natural language text to be processed.

FieldTypeLabelDescription
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.

TurnControl

Controls one turn of a session. Sent as StreamingDetectIntentRequest.turn_control on a call-length

stream, or in an InterruptTurnRequest.

FieldTypeLabelDescription
cancel_turn CancelTurn

Cancel the turn: stop generating its answer. Acknowledged with a TurnControlAck.

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 TurnControlAck.

TurnControlAck

Acknowledges a turn control.

FieldTypeLabelDescription
response_id string

The server's response_id of the turn; empty when it is not known (e.g. a turn cancelled before it started).

client_turn_id string

client_turn_id of the turn, as sent by the client.

turn_control_ack_status TurnControlAckStatus

Outcome of the turn control.

server_cancel_duration_in_s float

Time the server took from receiving a CancelTurn until the turn's generation had stopped, in seconds; 0 for any other control.

UpdateSessionCommentsRequest

This message is a request to update a session comment

FieldTypeLabelDescription
session_id string

The id of the session

comment Comment

The comment of a session to be updated

UpdateSessionFeedbackRequest

Request to update (revise) an existing feedback.

FieldTypeLabelDescription
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

UpdateSessionStepRequest stores a session step into the session

FieldTypeLabelDescription
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"]

VideoFileResource

Represents a video file resource (e.g., MP4, AVI).

FieldTypeLabelDescription
name string

The unique identifier for the video file resource. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>/videos/<video_uuid>

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.

WarmTransferIntroConfig

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.

FieldTypeLabelDescription
intro_prompt string

The LLM instruction (WARM_TRANSFER_INTRO_TEXT_SOURCE_LLM_SUMMARY) or the template text (WARM_TRANSFER_INTRO_TEXT_SOURCE_TEMPLATE, placeholders {caller_name}, {callee_name}, {topic}, {summary}) of the intro. At most 4000 characters.

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 {project}: project_display_name.

confirm_human_before_intro bool optional

Whether the intro is spoken only after the target answered ready_question (a guard against a mailbox). Unset = true.

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 {callee_name} and {reason}; without a reason, the variant without the reason clause is used.

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 {callee_name}.

accept_dtmf string

The DTMF key that accepts: one of 0-9, *, #. Empty = "1".

decline_dtmf string

The DTMF key that declines: one of 0-9, *, #, different from accept_dtmf. Empty = "2".

callee_display_name string

Who the target is, e.g. "Frau Berger, Buchhaltung": {callee_name}. At most 128 characters.

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 ONDEWO_NLU_LLM CCAI service of the LLM intro. Empty = the agent's warm_transfer_settings.llm_ccai_service_name, then the project's first ONDEWO_NLU_LLM service.

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: {project} in ready_question.

WarmTransferIntroOutcome

The outcome of a warm transfer intro. Holds no intro text and no reason text.

FieldTypeLabelDescription
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. voicemail-suspected (no ready answer) or unclear-twice; empty otherwise.

Enums

AudioEncoding

Audio encoding of the audio content sent in the conversational query request.

Refer to the Cloud Speech API documentation for more details.

NameNumberDescription
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 LINEAR16. FLAC stream encoding supports 16-bit and 24-bit samples, however, not all fields in STREAMINFO are supported.

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. sample_rate_hertz must be 8000.

AUDIO_ENCODING_AMR_WB 5

Adaptive Multi-Rate wideband codec. sample_rate_hertz must be 16000.

AUDIO_ENCODING_OGG_OPUS 6

Opus encoded audio frames in Ogg container (OggOpus). sample_rate_hertz must be 16000.

AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE 7

Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, OGG_OPUS is highly preferred over Speex encoding. The Speex encoding supported by Dialogflow API has a header byte in each block, as in MIME type audio/x-speex-with-header-byte. It is a variant of the RTP Speex encoding defined in RFC 5574. The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. sample_rate_hertz must be 16000.

AudioFileResourceType

File type of an audio resource

NameNumberDescription
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

BackgroundWorkPolicy

What happens to background work (e.g. an asynchronous tool) the cancelled turn started.

NameNumberDescription
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.

ComparisonOperator

Type of operator to compare

NameNumberDescription
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

FeedbackAuthorType

Who left a piece of feedback — distinguishes trusted reviewers from anonymous production end-users.

NameNumberDescription
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).

FeedbackRating

The thumbs rating a user gives as feedback.

NameNumberDescription
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).

FeedbackScope

The scope a feedback filter targets: session-level, step-level, or both.

NameNumberDescription
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).

FeedbackTimeGranularity

The calendar granularity of a feedback time series. When set (non-unspecified) it overrides the

fixed-width bucket_width_seconds on the request.

NameNumberDescription
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.

HeardTextPrecision

How the heard text of a HeardReport was determined.

NameNumberDescription
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.

LlmAgentNodePhase

Lifecycle phase of an AI Team graph node, reported by LlmAgentNodeEvent.

NameNumberDescription
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.

LlmSafetyLocation

Where a safety finding was located in the LLM call.

NameNumberDescription
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).

ReasoningEffort

Effort level for reasoning models (e.g. o1, o3). Controls the trade-off

between speed and quality.

NameNumberDescription
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.

ResourceView

Represents the options for views of resources.

NameNumberDescription
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

Session.View

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

NameNumberDescription
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.

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

NameNumberDescription
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.

StreamingRecognitionResult.MessageType

Type of the response message.

NameNumberDescription
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 single_utterance was set to true, and is not used otherwise.

TranscriptionType

Identifies whether a transcription was produced by an automatic

speech-to-text system or by a human annotator.

NameNumberDescription
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.

TurnControlAckStatus

Outcome of a turn control.

NameNumberDescription
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 DiscardDraft: no session step of this session with the given response_id carries QueryParameters.preemptive_draft; the discard is refused and the step, if one exists, is kept.

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 QueryParameters.preemptive_draft, was deleted.

TurnInterruptionReason

Why a turn was interrupted.

NameNumberDescription
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.

WarmTransferIntroDecidedBy

How the target of a warm transfer intro gave the decision.

NameNumberDescription
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.

WarmTransferIntroDecision

The decision of the target of a warm transfer intro.

NameNumberDescription
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.

WarmTransferIntroStage

The stage of a warm transfer intro session.

NameNumberDescription
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

ready_question spoken, waiting for a person to answer.

WARM_TRANSFER_INTRO_STAGE_INTRO_SPOKEN 3

The intro and accept_question spoken, waiting for the decision.

WARM_TRANSFER_INTRO_STAGE_REASON_ASKED 4

decline_reason_question spoken, waiting for the reason.

WARM_TRANSFER_INTRO_STAGE_CLOSED 5

The final answer, which ends the target's call, was generated.

WarmTransferIntroTextSource

Where the intro text of a warm transfer comes from.

NameNumberDescription
WARM_TRANSFER_INTRO_TEXT_SOURCE_UNSPECIFIED 0

Not set: WARM_TRANSFER_INTRO_TEXT_SOURCE_LLM_SUMMARY when the project has an LLM service, else WARM_TRANSFER_INTRO_TEXT_SOURCE_TEMPLATE.

WARM_TRANSFER_INTRO_TEXT_SOURCE_TEMPLATE 1

WarmTransferIntroConfig.intro_prompt is a text with the placeholders {caller_name}, {callee_name}, {topic} and {summary}.

WARM_TRANSFER_INTRO_TEXT_SOURCE_LLM_SUMMARY 2

An LLM summarises the source session for the target; WarmTransferIntroConfig.intro_prompt is its instruction.

ondewo/nlu/user.proto

Top

Services

Users

gRPC service for managing users and server roles.

Service Methods

CreateUser

rpc CreateUser (CreateUserRequest) returns (User)
Creates a user.

GetUser

rpc GetUser (GetUserRequest) returns (User)
Retrieves a user by identifier.

GetUserInfo

rpc GetUserInfo (GetUserRequest) returns (UserInfo)
Retrieves user information by identifier.

DeleteUser

rpc DeleteUser (GetUserRequest) returns (.google.protobuf.Empty)
Deletes a user by identifier.

UpdateUser

rpc UpdateUser (UpdateUserRequest) returns (User)
Updates a user.

ListUsers

rpc ListUsers (ListUsersRequest) returns (ListUsersResponse)
Lists users.

ListUserInfos

rpc ListUserInfos (ListUsersRequest) returns (ListUserInfosResponse)
Lists user information.

CreateServerRole

rpc CreateServerRole (CreateServerRoleRequest) returns (ServerRole)
Creates a server role.

GetServerRole

rpc GetServerRole (GetServerRoleRequest) returns (ServerRole)
Retrieves a server role by ID.

DeleteServerRole

rpc DeleteServerRole (DeleteServerRoleRequest) returns (.google.protobuf.Empty)
Deletes a server role by ID.

UpdateServerRole

rpc UpdateServerRole (UpdateServerRoleRequest) returns (ServerRole)
Updates a server role.

ListServerRoles

rpc ListServerRoles (ListServerRolesRequest) returns (ListServerRolesResponse)
Lists server roles.

ListServerPermissions

rpc ListServerPermissions (ListServerPermissionsRequest) returns (ListServerPermissionsResponse)
Lists server permissions.

CheckLogin

rpc CheckLogin (.google.protobuf.Empty) returns (.google.protobuf.Empty)
Checks login.

ListNotifications

rpc ListNotifications (ListNotificationsRequest) returns (ListNotificationsResponse)
Lists notifications based on specified filters.

SetNotificationsFlaggedStatus

rpc SetNotificationsFlaggedStatus (SetNotificationsFlaggedStatusRequest) returns (ListNotificationsResponse)
Sets the flagged status for multiple notifications.

SetNotificationsReadStatus

rpc SetNotificationsReadStatus (SetNotificationsReadStatusRequest) returns (ListNotificationsResponse)
Sets the read status for multiple notifications.

AddNotifications

rpc AddNotifications (AddNotificationsRequest) returns (AddNotificationsResponse)
Adds one or more notifications.

GetNotification

rpc GetNotification (GetNotificationRequest) returns (Notification)
Retrieves a single notification by its resource name.

UpdateNotification

rpc UpdateNotification (UpdateNotificationRequest) returns (Notification)
Updates a single notification, applying only the fields named in the update mask.

DeleteNotifications

rpc DeleteNotifications (DeleteNotificationsRequest) returns (.google.protobuf.Empty)
Deletes one or more notifications by their resource names.

StreamNotifications

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.

GetUserPreferences

rpc GetUserPreferences (GetUserPreferencesRequest) returns (GetUserPreferencesResponse)
Retrieves user preferences based on the provided request.

SetUserPreferences

rpc SetUserPreferences (SetUserPreferencesRequest) returns (SetUserPreferencesResponse)
Sets or updates user preferences based on the provided request.

DeleteUserPreferences

rpc DeleteUserPreferences (DeleteUserPreferencesRequest) returns (DeleteUserPreferencesResponse)
Deletes specific user preferences based on the provided request.

DeleteAllUserPreferences

rpc DeleteAllUserPreferences (DeleteAllUserPreferencesRequest) returns (DeleteUserPreferencesResponse)
Deletes all user preferences for a specific user, optionally filtered by a substring.

Methods with HTTP bindings

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
Messages

CreateServerRoleRequest

Request to create server role

FieldTypeLabelDescription
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

CreateUserRequest

Request to create user

FieldTypeLabelDescription
user User

user_id in the User message should be given, if empty will throw an error in the backend

password string

password

DeleteAllUserPreferencesRequest

Request to delete all user preferences with an optional filter substring.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

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: ^DE_ Only delete keys matching: .*user.*

DeleteServerRoleRequest

Request to delete server role

FieldTypeLabelDescription
role_id uint32

role is identified by role id, if empty will throw an error in the backend

DeleteUserPreferencesRequest

Request to delete specific user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

keys string repeated

List of keys to delete from user preferences.

regex_include string

Optional: In addition to the keys specified also include all keys that match the provided regex_include regular expression. If user does not add regex_filter, then only the keys specified in the keys field are deleted. If both, a key in the keys field and in the regex_include is matched then the key is deleted without raising an error.

DeleteUserPreferencesResponse

Response to delete specific user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

keys string repeated

List of keys to delete from user preferences.

error_message string

error message if there are any.

DeleteUserRequest

Request to delete user

FieldTypeLabelDescription
user_id string

user is identified by user id, if empty will throw an error in the backend

GetServerRoleRequest

Request to get server role

FieldTypeLabelDescription
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.

GetUserPreferencesRequest

Request to get user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

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 keys that match the provided regex_include regular expression. If user does not add regex_filter, then only the keys specified in the keys field are returned. If both, a key in the keys field and in the regex_include will be matched than only a single KeyValuePair is returned.

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

GetUserPreferencesResponse

Response containing user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

key_value_pairs KeyValuePair repeated

List of key-value pairs representing user preferences.

error_message string

error message if there are any.

GetUserRequest

Request to get user

FieldTypeLabelDescription
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

ListServerPermissionsRequest

Server permissions

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListServerPermissionsResponse

Response containing list of server permissions

FieldTypeLabelDescription
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

ListServerRolesRequest

Request to list server roles

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListServerRolesResponse

Response containing list of server roles

FieldTypeLabelDescription
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

ListUserInfosResponse

Response containing list of users

FieldTypeLabelDescription
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

ListUserPreferencesRequest

Request to list all user preferences for a specific user.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

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.

ListUserPreferencesResponse

Response containing a list of user preferences for a specific user with an optional filter substring.

FieldTypeLabelDescription
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.

ListUsersRequest

Request to list user

FieldTypeLabelDescription
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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

field_mask google.protobuf.FieldMask

Optional. The mask to control which fields gets returned.

ListUsersResponse

Response containing list of users

FieldTypeLabelDescription
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

ServerRole

Server Role messages

FieldTypeLabelDescription
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.

SetUserPreferencesRequest

Request to set or update user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

key_value_pairs KeyValuePair repeated

List of key-value pairs to set or update.

SetUserPreferencesResponse

Response to set or update user preferences.

FieldTypeLabelDescription
user_name string

The name of the user. Format:

projects/<project_uuid>/agent/users/<user_uuid>

keys string repeated

List of keys to delete from user preferences.

error_message string

error message if there are any.

UpdateServerRoleRequest

Request to update server role

FieldTypeLabelDescription
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.

UpdateUserRequest

Request to update user

FieldTypeLabelDescription
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.

User

this message contains all the fields that required for user db

FieldTypeLabelDescription
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.

UserInfo

This message contains information about user

FieldTypeLabelDescription
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

UserInfo.ProjectRolesEntry

FieldTypeLabelDescription
key string

value ProjectRole

Enums

DefaultServerRole

Structure of server role

NameNumberDescription
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.

ondewo/nlu/utility.proto

Top

Services

Utilities

This is collection of utility endpoints, intended to language-independent operations, such as code checks, regex checks, etc. Holds a collection of utility functions

Service Methods

ValidateRegex

rpc ValidateRegex (ValidateRegexRequest) returns (ValidateRegexResponse)
Validates the validity of python regexes

ValidateEmbeddedRegex

rpc ValidateEmbeddedRegex (ValidateEmbeddedRegexRequest) returns (ValidateEmbeddedRegexResponse)
Validate that entity types with group references have synonyms with capturing groups.

CleanAllIntents

rpc CleanAllIntents (CleanAllIntentsRequest) returns (CleanAllIntentsResponse)
Cleans all intent training phrases and entity annotations of parent

CleanIntent

rpc CleanIntent (CleanIntentRequest) returns (CleanIntentResponse)
Cleans single intent training phrases and entity annotations

CleanAllEntityTypes

rpc CleanAllEntityTypes (CleanAllEntityTypesRequest) returns (CleanAllEntityTypesResponse)
Cleans all entity types of parent

CleanEntityType

rpc CleanEntityType (CleanEntityTypeRequest) returns (CleanEntityTypeResponse)
Cleans entity type

AddTrainingPhrases

rpc AddTrainingPhrases (AddTrainingPhrasesRequest) returns (AddTrainingPhrasesResponse)
Creates new training phrases corresponding to intent specified by its intent display name

AddTrainingPhrasesFromCSV

rpc AddTrainingPhrasesFromCSV (AddTrainingPhrasesFromCSVRequest) returns (AddTrainingPhrasesResponse)
Creates new training phrases corresponding to intent specified by its intent display name from csv file
Messages

AddTrainingPhrasesFromCSVRequest

Request message to AddTrainingPhraseFromCSV rpc

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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

AddTrainingPhrasesRequest

Request message to AddTrainingPhrase rpc

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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

AddTrainingPhrasesRequest.TrainingPhraseForIntent

Message that contains the new training phrase, together with the intent display name and, optionally the entity annotations

FieldTypeLabelDescription
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

AddTrainingPhrasesResponse

Response message to AddTrainingPhrase rpc

FieldTypeLabelDescription
error_messages string repeated

Required. If something goes wrong, error messages will be conveyed via a repeated string

CleanAllEntityTypesRequest

Request to clean the entity types

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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: ['St.', 'U.S.', 'sys.', '24.12.', 'Nr.', 'TelNr.']

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: ['sys.ignore.'] -> would delete entity types with display names sys.ignore.*

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

CleanAllEntityTypesResponse

Response from entity type cleaner

FieldTypeLabelDescription
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

CleanAllIntentsRequest

The request to clean the all intents.

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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: ['St.', 'U.S.', 'sys.', '24.12.', 'Nr.', 'TelNr.'] Default = None

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

CleanAllIntentsResponse

Response corresponding to the CleanAllIntents Request

FieldTypeLabelDescription
cleaned_intents Intent repeated

Required. List of updates performed on intents

intent_update_list IntentUpdate repeated

Optional. List of updates applied to intents

CleanEntityTypeRequest

Request to clean a single entity type

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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: ['St.', 'U.S.', 'sys.', '24.12.', 'Nr.', 'TelNr.']

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

CleanEntityTypeResponse

Response from entity type cleaner

FieldTypeLabelDescription
cleaned_entity_type EntityType

Required. The cleaned entity type

entity_type_update EntityTypeUpdate

Optional. The updated entity type

CleanIntentRequest

The request message to clean a single intents.

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

intent_name string

Required. The name of the intent. Format:

projects/<project_uuid>/agent/intents/<intent_uuid>

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: ['St.', 'U.S.', 'sys.', '24.12.', 'Nr.', 'TelNr.'] Default = None

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)

CleanIntentResponse

The response message to clean a single intents.

FieldTypeLabelDescription
cleaned_intent Intent

Required. Cleaned Intent

intent_update IntentUpdate

Optional. Updates applied to intent

EntityTypeUpdate

Stores updates applied to an entity type

FieldTypeLabelDescription
entity_type_name string

The entity type name

values_update_list EntityTypeUpdate.EntityUpdate repeated

List of the updated entities

EntityTypeUpdate.EntityUpdate

Stores updates applied to an entity

FieldTypeLabelDescription
entity_value_update StringUpdate

Updates made to the entity value

entity_synonym_updates StringUpdate repeated

Updates made to the entity synonyms

IntentUpdate

Stores updates applied to an intent

FieldTypeLabelDescription
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

IntentUpdate.TrainingPhraseUpdate

Message to track the updates made to a training phrase

FieldTypeLabelDescription
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

StringUpdate

Message to keep track of updated strings

FieldTypeLabelDescription
new string

New version of the string

old string

Old version of the string

TrainingPhraseCleanerOptions

Options for cleaning the training phrases

FieldTypeLabelDescription
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

ValidateEmbeddedRegexRequest

Validation request for entity type values

FieldTypeLabelDescription
entity_type EntityType.Entity

The entity (with embedded regex) to validate

ValidateEmbeddedRegexResponse

Response of the entity type validation

FieldTypeLabelDescription
error_messages string repeated

List of error message from the validation

ValidateRegexRequest

The request to validate regexes.

FieldTypeLabelDescription
regex string

String containing the regex.

ValidateRegexResponse

The response of the regex validation

FieldTypeLabelDescription
error_messages string repeated

Error messages

Enums

ReannotateEntitiesOptions

Encapsulates entity re-annotation options

NameNumberDescription
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

ondewo/nlu/webhook.proto

Top

Services

Webhook

service to send requests to a webhook server

Service Methods

ResponseRefinement

rpc ResponseRefinement (WebhookRequest) returns (WebhookResponse)
send a request for /response_refinement/ to the webhook server fulfillment messages can be overwritten by the webhook server

SlotFilling

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

Ping

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

CreateSessionEntityType

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.

UpdateSessionEntityType

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.

DeleteSessionEntityType

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.

Methods with HTTP bindings

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
Messages

CreateSessionEntityTypeRequest

The request message for Webhook.CreateSessionEntityType

FieldTypeLabelDescription
parent string

Required. The agent to list all intents from. Format:

projects/<project_uuid>/agent

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:

projects/<project_uuid>/agents/sessions/<session_uuid>
or
projects/<project_uuid>/agents/sessions/<session_uuid>
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:
projects/<project_uuid>/agents/sessions/<session_uuid>

DeleteSessionEntityTypeRequest

The request message for Webhook.DeleteSessionEntityType.

FieldTypeLabelDescription
name string

Required. The name of the entity type to delete. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/entityTypes/<Entity Type Display Name> or projects/<project_uuid>/agent/environments/ <<environment_uuid>/users/<user_uuid>/sessions/<session_uuid>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

GetSessionEntityTypeRequest

The request message for Webhook.GetSessionEntityType.

FieldTypeLabelDescription
name string

Required. The name of the session entity type. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/entityTypes/<Entity Type Display Name> or projects/<project_uuid>/agent/environments/ <<environment_uuid>/users/<user_uuid>/sessions/<session_uuid>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

ListSessionEntityTypesRequest

The request message for Webhook.ListSessionEntityTypes.

FieldTypeLabelDescription
parent string

Required. The session to list all session entity types from. Format: projects/<project_uuid>/agent/sessions/<session_uuid> 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.

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:

  • "" (empty string) - Retrieves the first page.
  • "current_index-0--page_size-20" - Retrieves the first page with a page size of 20.
  • "current_index-1--page_size-20" - Retrieves the second page with a page size of 20.
Index starts at 0. Examples of valid page token strings:
  • ""
  • "current_index-0--page_size-20"
  • "current_index-1--page_size-20"
  • "current_index-10--page_size-20"
Examples of invalid page token strings:
  • "1"
  • "current_index-0--page_size-20"
  • "current_index--1--page_size-20"
  • "current_index1--page_size-20"
  • "current_index-1--page_size--20"

ListSessionEntityTypesResponse

The response message for Webhook.ListSessionEntityTypes.

FieldTypeLabelDescription
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

OriginalDetectIntentRequest

Represents the contents of the original request that was passed to the [Streaming]DetectIntent call.

FieldTypeLabelDescription
source string

The source of this request, e.g., google, facebook, slack or other "platforms". . Used to identify the "platform"

payload google.protobuf.Struct

Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query an agent may provide additional data in the payload. In particular this can be of the form:

{
 "a": {
   "b": "c"
 }
}

PingRequest

request sent for webhook ping

FieldTypeLabelDescription
session string

session ID for webhook ping

PingResponse

This message is a response of pinging

FieldTypeLabelDescription
is_reachable bool

This is the response message of a Ping request. It's purpose is to report the reachability of a Webhook server.

SessionEntityType

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.

FieldTypeLabelDescription
name string

Required. The unique identifier of this session entity type. Format: projects/<project_uuid>/agent/sessions/<session_uuid>/entityTypes/<Entity Type Display Name>, or projects/<project_uuid>/agent/environments/ <<environment_uuid>/users/<user_uuid>/sessions/<session_uuid>/entityTypes/<Entity Type Display Name>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user. <Entity Type Display Name> must be the display name of an existing entity type in the same agent that will be overridden or supplemented.

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.

UpdateSessionEntityTypeRequest

The request message for Webhook.UpdateSessionEntityType.

FieldTypeLabelDescription
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.

WebhookRequest

The request message for a webhook call.

FieldTypeLabelDescription
response_id string

The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.

query_result QueryResult

The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.

original_detect_intent_request OriginalDetectIntentRequest

Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.

session string

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format:

projects/<project_uuid>/agent/sessions/<session_uuid>

headers google.protobuf.Struct

Optional. The headers of the request message

WebhookResponse

The response message for a webhook call.

FieldTypeLabelDescription
fulfillment_text string

Optional. The text to be shown on the screen. This value is passed directly to QueryResult.fulfillment_text.

fulfillment_messages Intent.Message repeated

Optional. The collection of rich messages to present to the user. This value is passed directly to QueryResult.fulfillment_messages.

source string

Optional. This value is passed directly to QueryResult.webhook_source.

payload google.protobuf.Struct

Optional. This value is passed directly to QueryResult.webhook_payload. See the related fulfillment_messages[i].payload field, which may be used as an alternative to this field. This field can be used for Actions on Google responses. It should have a structure similar to the JSON message shown here. For more information, see Actions on Google Webhook Format

{
  "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 QueryResult.output_contexts.

followup_event_input EventInput

Optional. Makes the platform immediately invoke another DetectIntent call internally with the specified event as input.

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 detectIntent method.

Enums

SessionEntityType.EntityOverrideMode

The types of modifications for a session entity type.

NameNumberDescription
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 ListSessionEntityTypes, GetSessionEntityType, CreateSessionEntityType and UpdateSessionEntityType only return the additional entities added in this session entity type. If you want to get the supplemented list, please call EntityTypes.GetEntityType on the custom entity type and merge.

ondewo/qa/qa.proto

Top

Services

QA

gRPC service for QA functionalities.

Service Methods

GetAnswer

rpc GetAnswer (GetAnswerRequest) returns (GetAnswerResponse)
Retrieves an answer based on the provided request.

RunScraper

rpc RunScraper (RunScraperRequest) returns (RunScraperResponse)
Runs a web scraper job for specified project IDs.

UpdateDatabase

rpc UpdateDatabase (UpdateDatabaseRequest) returns (UpdateDatabaseResponse)
Updates the database for specified project IDs.

RunTraining

rpc RunTraining (.google.protobuf.Empty) returns (RunTrainingResponse)
Runs a training job for the QA system.

GetServerState

rpc GetServerState (.google.protobuf.Empty) returns (GetServerStateResponse)
Retrieves the server state for QA.

ListProjectIds

rpc ListProjectIds (.google.protobuf.Empty) returns (ListProjectIdsResponse)
Lists project IDs associated with QA.

GetProjectConfig

rpc GetProjectConfig (GetProjectConfigRequest) returns (GetProjectConfigResponse)
Retrieves the configuration of a specific project.

Methods with HTTP bindings

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
Messages

GetAnswerRequest

The request message

FieldTypeLabelDescription
session_id string

Required. The name of the session this query is sent to. Format: projects/<Project ID>/agent/sessions/<Session ID>. It's up to the API caller to choose an appropriate session ID. It can be a random number or some type of user identifier (preferably hashed). The length of the session ID must not exceed 36 bytes.

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.

GetAnswerResponse

Message containing the response for retrieving answers.

FieldTypeLabelDescription
query_result ondewo.nlu.DetectIntentResponse

The results of the conversational query or event processing.

GetProjectConfigRequest

Message for requesting the configuration of a specific project.

FieldTypeLabelDescription
project_id string

The ID of the project for which to retrieve the configuration.

GetProjectConfigResponse

Message containing the response for getting the configuration of a project.

FieldTypeLabelDescription
config_serialized string

Serialized configuration of the project.

GetServerStateResponse

Message containing the response for checking the server state.

FieldTypeLabelDescription
server_is_ready bool

Indicates whether the server is ready to accept requests.

ListProjectIdsResponse

Message for listing project IDs in the response.

FieldTypeLabelDescription
project_ids string repeated

List of project IDs.

RunScraperRequest

Message for running a web scraper job.

FieldTypeLabelDescription
project_ids string repeated

List of project IDs to run the scraper on.

RunScraperResponse

Message containing the response for running a web scraper job.

FieldTypeLabelDescription
scraper_containers RunScraperResponse.ScraperContainer repeated

List of scraper containers running the jobs.

RunScraperResponse.ScraperContainer

Message representing a scraper container.

FieldTypeLabelDescription
container_name string

Name of the Docker container running the job.

container_id string

ID of the Docker container running the scraping job.

RunTrainingResponse

Message containing the response for running a training job.

FieldTypeLabelDescription
f1 float

F1 score as a response of the training.

accuracy float

Accuracy as a response of the training.

UpdateDatabaseRequest

Message for requesting a database update for specific projects.

FieldTypeLabelDescription
project_ids string repeated

List of project IDs for which to update the database.

UpdateDatabaseResponse

Message containing the response for updating the database of specific projects.

FieldTypeLabelDescription
error_messages string repeated

List of error messages encountered during the database update.

UrlFilter

Message for defining URL filters to include and exclude from the scraping process.

FieldTypeLabelDescription
allowed_values string repeated

Optional. List of allowed values for the metadata field 'url'.

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.

ondewo/s2t/speech-to-text.proto

Top

Services

Speech2Text

Speech-to-text service

Service Methods

TranscribeFile

rpc TranscribeFile (TranscribeFileRequest) returns (TranscribeFileResponse)

Transcribes an audio file

TranscribeStream

rpc TranscribeStream (stream TranscribeStreamRequest) returns (stream TranscribeStreamResponse)

Transcribes an audio stream.

GetS2tPipeline

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.

CreateS2tPipeline

rpc CreateS2tPipeline (Speech2TextConfig) returns (S2tPipelineId)

Creates a new speech to text pipeline from a Speech2TextConfig and registers the new pipeline in the server.

DeleteS2tPipeline

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.

UpdateS2tPipeline

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.

ListS2tPipelines

rpc ListS2tPipelines (ListS2tPipelinesRequest) returns (ListS2tPipelinesResponse)

Lists all speech to text pipelines.

ListS2tLanguages

rpc ListS2tLanguages (ListS2tLanguagesRequest) returns (ListS2tLanguagesResponse)

Returns a message containing a list of all languages for which there exist pipelines.

ListS2tDomains

rpc ListS2tDomains (ListS2tDomainsRequest) returns (ListS2tDomainsResponse)

Returns a message containing a list of all domains for which there exist pipelines.

GetServiceInfo

rpc GetServiceInfo (.google.protobuf.Empty) returns (S2tGetServiceInfoResponse)

Returns a message containing the version of the running speech to text server.

ListS2tLanguageModels

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.

CreateUserLanguageModel

rpc CreateUserLanguageModel (CreateUserLanguageModelRequest) returns (.google.protobuf.Empty)

Create a user language model.

DeleteUserLanguageModel

rpc DeleteUserLanguageModel (DeleteUserLanguageModelRequest) returns (.google.protobuf.Empty)

Delete a user language model.

AddDataToUserLanguageModel

rpc AddDataToUserLanguageModel (AddDataToUserLanguageModelRequest) returns (.google.protobuf.Empty)

Add data to a user language model.

TrainUserLanguageModel

rpc TrainUserLanguageModel (TrainUserLanguageModelRequest) returns (.google.protobuf.Empty)

Train a user language model.

ListS2tNormalizationPipelines

rpc ListS2tNormalizationPipelines (ListS2tNormalizationPipelinesRequest) returns (ListS2tNormalizationPipelinesResponse)

Retrieves a list of normalization pipelines based on specific requirements.

Messages

AcousticModels

AcousticModels contains information about different types of acoustic models.

FieldTypeLabelDescription
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

AddDataToUserLanguageModelRequest is used to request the addition of data to a user-specific language model.

FieldTypeLabelDescription
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

CkptFile contains information about checkpoint files.

FieldTypeLabelDescription
path string

Path to the checkpoint file.

CreateUserLanguageModelRequest

CreateUserLanguageModelRequest is used to request the creation of a new user-specific language model.

FieldTypeLabelDescription
language_model_name string

Name of the language model to create. Example: "user_lm_1"

DeleteUserLanguageModelRequest

DeleteUserLanguageModelRequest is used to request the deletion of a user-specific language model.

FieldTypeLabelDescription
language_model_name string

Name of the language model to delete. Example: "user_lm_1"

LanguageModelPipelineId

LanguageModelPipelineId contains information about a pipeline and its available language models.

FieldTypeLabelDescription
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

LanguageModels contains information about language models.

FieldTypeLabelDescription
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).

ListS2tDomainsRequest

Request message to list available domains. Optionally also filters can be set.

FieldTypeLabelDescription
languages string repeated

Filter for languages

pipeline_owners string repeated

Filter for pipeline owner

ListS2tDomainsResponse

Response message to list available domains

FieldTypeLabelDescription
domains string repeated

domains available. Example: ["medical", "finance"]

ListS2tLanguageModelsRequest

ListS2tLanguageModelsRequest is used to request a list of available language models for specified pipelines.

FieldTypeLabelDescription
ids string repeated

List of pipeline IDs to retrieve their available language models. Example: ["pipeline_1", "pipeline_2"]

ListS2tLanguageModelsResponse

ListS2tLanguageModelsResponse is used to return the available language models for specified pipelines.

FieldTypeLabelDescription
lm_pipeline_ids LanguageModelPipelineId repeated

Response is a list of LanguageModelPipelineId, where each element contains a pipeline ID and its associated language models. Example: [{pipeline_id: "pipeline_1", model_names: ["model_1", "model_2"]}, {pipeline_id: "pipeline_2", model_names: ["model_3"]}]

ListS2tLanguagesRequest

ListS2tLanguagesRequest is used to request a list of available languages. Optionally, filters can be set.

FieldTypeLabelDescription
domains string repeated

Filter for domains. Example: ["medical", "finance"]

pipeline_owners string repeated

Filter for pipeline owners. Example: ["ondewo", "partner_company"]

ListS2tLanguagesResponse

Response message to list available languages

FieldTypeLabelDescription
languages string repeated

available languages

ListS2tNormalizationPipelinesRequest

The request message for ListS2tNormalizationPipelines.

Filter pipelines by attributes in request.

FieldTypeLabelDescription
language string

Optional. Define the language.

ListS2tNormalizationPipelinesResponse

The response message for ListS2tNormalizationPipelines.

FieldTypeLabelDescription
s2t_normalization_pipelines string repeated

Required. Representation of a list of normalization pipelines configurations. Retrieved by ListS2tNormalizationPipelines, containing the configurations of normalization pipelines with the specifications received in the ListS2tNormalizationPipelinesRequest.

ListS2tPipelinesRequest

Request to list all speech-to-text pipelines. Optionally also filter criteria can be set

FieldTypeLabelDescription
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

ListS2tPipelinesResponse is used to return a list of all speech-to-text pipelines.

FieldTypeLabelDescription
pipeline_configs Speech2TextConfig repeated

A list of Speech2TextConfig message instances containing the configuration of each pipeline. Example: [{id: "pipeline_1", description: {language: "en"}, active: true, ...}, {id: "pipeline_2", description: {language: "fr"}, active: true, ...}]

Logging

Logging contains configuration for logging.

FieldTypeLabelDescription
type string

Type of logging.

path string

Path for logging.

OpenaiLlmOptions

Configuration options for OpenAI client chat completion requests used in turn detection and LLM post-processing.

FieldTypeLabelDescription
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.

OpenaiLlmOptions.DefaultHeadersEntry

FieldTypeLabelDescription
key string

value string

OpenaiLlmOptions.LogitBiasEntry

FieldTypeLabelDescription
key string

value int32

Parakeet

Parakeet contains information about the Parakeet model.

FieldTypeLabelDescription
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

PostProcessing contains the configuration for post-processing.

FieldTypeLabelDescription
pipeline string repeated

List of names of active post-processors.

post_processors PostProcessors

Post-processor configurations.

PostProcessingOptions

Configuration of the post-processing options

FieldTypeLabelDescription
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

PostProcessors contains configurations for post-processors.

FieldTypeLabelDescription
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

PtFiles contains information about PT files.

FieldTypeLabelDescription
path string

Path to the PT files.

step string

Step for the PT files.

Pyannote

Pyannote contains configuration for the Pyannote voice activity detection model.

Library: pyannote-audio

FieldTypeLabelDescription
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

S2tCloudProviderConfig

Configuration for cloud provider settings for Speech-to-Text (S2T).

FieldTypeLabelDescription
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.

S2tCloudProviderConfigAmazon

Configuration details specific to the Amazon web service speech-to-text provider.

FieldTypeLabelDescription
enable_partial_results_stabilization bool optional

Optional. Enables or disables partial_results_stabilization feature. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/streaming-partial-results.html#streaming-partial-result-stabilization

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

S2tCloudProviderConfigDeepgram

Configuration details specific to the Deepgram speech-to-text provider.

FieldTypeLabelDescription
punctuate bool optional

Optional. Enables or disables punctuate feature of Deepgram to add punctuations to the resulted transcript. More details at: https://developers.deepgram.com/docs/punctuation

smart_format bool optional

Optional. Enables or disables smart_format feature of Deepgram transcription result to improve readability. More details at: https://developers.deepgram.com/docs/smart-format

numerals bool optional

Optional. Enables or disables numerals feature of Deepgram to convert numbers to numeric form in the resulted transcript. More details at: https://developers.deepgram.com/docs/numerals

measurements bool optional

Optional. Enables or disables measurements feature of Deepgram to convert measurement units (i.e. Kilogram) to abbreviated form (i.e. Kg) in the resulted transcript. More details at: https://developers.deepgram.com/docs/measurements

dictation bool optional

Optional. Enables or disables dictation feature of Deepgram to convert spoken dictation commands into their corresponding punctuation marks. More details at: https://developers.deepgram.com/docs/dictation

S2tCloudProviderConfigGoogle

Configuration details specific to the Google speech-to-text provider.

FieldTypeLabelDescription
enable_automatic_punctuation bool optional

Optional. Enables or disables automatic_punctuation feature of Google s2t to add punctuations to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/automatic-punctuation

enable_word_time_offsets bool optional

Optional. Enables or disables word_time_offsets feature of Google s2t to add word-level timestamps (time-offset) to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/async-time-offsets

enable_word_confidence bool optional

Optional. Enables or disables word_confidence feature of Google s2t to add word-level confidence scores to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/word-confidence

transcript_normalization bool optional

Optional. Enables or disables transcript_normalization feature of Google s2t to automatically replace parts of the transcript with phrases of your choosing. More details at: https://cloud.google.com/speech-to-text/v2/docs/reference/rpc/google.cloud.speech.v2#transcriptnormalization

max_alternatives int32 optional

Optional. Maximum number of recognition hypotheses to be returned, may be returned fewer than max_alternatives. Valid values are 0-30. A value of 0 or 1 will return a maximum of one. If omitted, will return a maximum of one.

S2tCloudProviderConfigMicrosoft

Configuration details specific to the Microsoft Azure speech-to-text provider.

FieldTypeLabelDescription
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 detailed format for the result of Microsoft Azure s2t service to add timestamps and confidences to the resulted transcript.

S2tCloudServiceAmazon

S2tCloudServiceAmazon message contains settings for the Amazon web service Cloud service inference.

FieldTypeLabelDescription
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_stabilization feature. More details at: https://docs.aws.amazon.com/transcribe/latest/dg/streaming-partial-results.html#streaming-partial-result-stabilization

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

S2tCloudServiceDeepgram message contains settings for the Deepgram Cloud service inference.

FieldTypeLabelDescription
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 punctuate feature of Deepgram to add punctuations to the resulted transcript. More details at: https://developers.deepgram.com/docs/punctuation

smart_format bool

Enables or disables smart_format feature of Deepgram transcription result to improve readability. More details at: https://developers.deepgram.com/docs/smart-format

numerals bool

Enables or disables numerals feature of Deepgram to convert numbers to numeric form in the resulted transcript. More details at: https://developers.deepgram.com/docs/numerals

measurements bool

Enables or disables measurements feature of Deepgram to convert measurement units (i.e. Kilogram) to abbreviated form (i.e. Kg) in the resulted transcript. More details at: https://developers.deepgram.com/docs/measurements

dictation bool

Enables or disables dictation feature of Deepgram to convert spoken dictation commands into their corresponding punctuation marks. More details at: https://developers.deepgram.com/docs/dictation

S2tCloudServiceGoogle

S2tCloudServiceGoogle message contains settings for the Google Cloud service inference.

FieldTypeLabelDescription
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 automatic_punctuation feature of Google s2t to add punctuations to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/automatic-punctuation

enable_word_time_offsets bool

Enables or disables word_time_offsets feature of Google s2t to add word-level timestamps (time-offsets) to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/async-time-offsets

enable_word_confidence bool

Enables or disables word_confidence feature of Google s2t to add word-level confidence scores to the resulted transcript. More details at: https://cloud.google.com/speech-to-text/docs/word-confidence

transcript_normalization bool

Enables or disables transcript_normalization feature of Google s2t to automatically replace parts of the transcript with phrases of your choosing. More details at: https://cloud.google.com/speech-to-text/v2/docs/reference/rpc/google.cloud.speech.v2#transcriptnormalization

max_alternatives int32

Maximum number of recognition hypotheses to be returned. The server may return fewer than max_alternatives. Valid values are 0-30. A value of 0 or 1 will return a maximum of one. If omitted, will return a maximum of one.

S2tCloudServiceMicrosoft

S2tCloudServiceMicrosoft message contains settings for the Microsoft Azure Cloud service inference.

FieldTypeLabelDescription
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 detailed format for the result of Microsoft Azure s2t service to add timestamps and confidences to the resulted transcript.

S2tDescription

S2tDescription contains descriptive information about the speech-to-text pipeline.

FieldTypeLabelDescription
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

S2tGetServiceInfoResponse is used to return version information about the speech-to-text service.

FieldTypeLabelDescription
version string

Version number based on semantic versioning, e.g. "4.2.0".

S2tInference

S2tInference contains information about inference models used in the speech-to-text pipeline.

FieldTypeLabelDescription
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

S2tLlmPostProcessing contains configuration for the speech-to-text postprocessing with LLM.

FieldTypeLabelDescription
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.

S2tLlmPostProcessingInverseNormalizationOptions

Configuration of the options to inverse-normalization task in LLM post-processing.

FieldTypeLabelDescription
active bool optional

Optional. Indicates if the inverse-normalization task of LLM post-processing is active.

email 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.

S2tLlmPostProcessingNormalizationOptions

Configuration of the options to normalization task in LLM post-processing.

FieldTypeLabelDescription
active bool optional

Optional. Indicates if the normalization task of LLM post-processing is active.

email 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.

S2tLlmPostProcessingSubTaskOptions

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.

FieldTypeLabelDescription
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.

S2tLlmPostProcessingSummarizationOptions

Configuration of the options to summarization task in LLM post-processing.

FieldTypeLabelDescription
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.

S2tLlmPostProcessingTranslationOptions

Configuration of the options to translation task in LLM post-processing.

FieldTypeLabelDescription
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

S2tNormalization contains configuration for the speech-to-text normalization.

FieldTypeLabelDescription
language string

Language for normalization of transcriptions.

pipeline string repeated

List of names of active normalizations.

S2tPipelineId

The pipeline id for a specific pipeline configuration

FieldTypeLabelDescription
id string

id of the model that will generate audio

Silero

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

FieldTypeLabelDescription
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 threshold - 0.15, as it does upstream, so this sets both the onset and - through that offset - the release point. Optional, and explicitly so: 0 is a legitimate value here, and without presence tracking it would be indistinguishable from an unset field and silently replaced by the default.

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 threshold: 0 means 'discard nothing'.

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 threshold: 0 means 'end the utterance as soon as the speech stops'.

speech_pad_ms float optional

Padding, in milliseconds, added on each side of the detected boundary. Optional for the same reason as threshold: 0 means 'no padding'.

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

Speech2TextConfig is a configuration message for the speech-to-text pipeline

FieldTypeLabelDescription
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

StreamingServer contains information about the streaming server.

FieldTypeLabelDescription
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

StreamingSpeechRecognition contains information about streaming speech recognition settings.

FieldTypeLabelDescription
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 true; an explicit false opts the pipeline out of non-final results. A request's UtteranceDetectionOptions.transcribe_not_final overrides it. Declared optional (same field number, wire-compatible) so an explicit false can be told apart from unset.

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 ONDEWO_S2T_INFERENCE_SLIDING_PERIOD_OF_TRANSCRIPT; a request's UtteranceDetectionOptions.transcribe_not_final_period_seconds overrides it. Allowed: (0, 5]; the effective cadence is rounded up to whole min_audio_chunk_size chunks. Unset: the server setting.

SymSpell

SymSpell contains configuration for the SymSpell spelling correction.

FieldTypeLabelDescription
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

TrainUserLanguageModelRequest is used to request the training of a user-specific language model.

FieldTypeLabelDescription
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)

TranscribeFileRequest

A request to transcribe an audio file

FieldTypeLabelDescription
audio_file bytes

wav file to transcribe

config TranscribeRequestConfig

The configuration to override the default configuration

TranscribeFileResponse

The response message for a transcribe file request

FieldTypeLabelDescription
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

TranscribeRequestConfig

Configuration for a request to transcribe audio

FieldTypeLabelDescription
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. s2t_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.,

MY_API_KEY='LKJDIFe244LKJOI'
For Amazon S2T service, the following arguments should be passed in form of a dict:
  • aws_access_key_id (required) Access key id to access Amazon Web Service.
  • aws_secret_access_key (required) Secret access key to access Amazon Web Service.
  • region (required) Region name of Amazon Server.
Example: 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:
  • api_key (required) API key of Deepgram account to access Deepgram S2T service.
Example: 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:
  • api_key (required) API key of Google cloud to access its S2T service.
  • api_endpoint (optional) Regional API endpoint of Google cloud S2T service. (Defaults to 'eu-speech.googleapis.com')
Example: 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:
  • subscription_key (required) Subscription key to access Microsoft Azure Service.
  • region (required) Region name of Microsoft Azure Server.
Example: 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.

TranscribeStreamRequest

Request to transcribe an audio stream

FieldTypeLabelDescription
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.

TranscribeStreamResponse

The response message of a stream transcription

FieldTypeLabelDescription
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 TranscriptionReturnOptions.return_end_of_speech_candidate, only under server-side turn detection, and only on the chunk where the server found the end of the caller's speech and its turn detector held the utterance open (not finished, an uncertain hold band, or the minimum endpointing delay), so the final may follow seconds later. Not sent without turn detection, when the detector judges the turn finished (the final is then sent on that same chunk), or while the utterance has no text yet. Never set on a final. At most once per pause: if the caller resumes speaking and pauses again, the next pause may send another one. With non-final results on, it is a FLAG on the non-final response the server sends for that chunk anyway, so it is an ordinary partial plus the hint, not an extra response; with non-final results off, the server sends one non-final response carrying the current text in transcriptions. It is a hint, not a commit: the utterance's final still follows, or the utterance continues if the caller resumes, and the final text may differ. Always false otherwise.

config TranscribeRequestConfig

The configuration for the transcription

Transcription

The transcription message

FieldTypeLabelDescription
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

TranscriptionAlternative

The alternative transcription message

FieldTypeLabelDescription
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.

TranscriptionReturnOptions

Configuration of the return values of a transcribe request

FieldTypeLabelDescription
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 TranscribeStreamResponse.end_of_speech_candidate for what is sent and when). Only used in TranscribeStream, and only acted on under server-side turn detection. Fixed per stream, like return_start_of_speech: the server completes each request config from the one in effect, so a later request without return_options keeps it, but a later return_options block replaces every return option at once and must repeat this field, or the candidate stops for the rest of the stream. Defaults to false: no candidate is sent, exactly as before this field existed.

TurnDetectionChatLlmOptions

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.

FieldTypeLabelDescription
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 model starting with pipecat- or ondewo-s2t-model- is refused with INVALID_ARGUMENT: those detectors have their own options.

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.

TurnDetectionContextTurn

One turn of the conversation context of the turn detection, read only by

TurnDetectionEndOfUtteranceLlmOptions.

FieldTypeLabelDescription
role TurnDetectionContextTurn.Role

Who spoke the turn.

text string

The text of the turn.

TurnDetectionConversationContext

TurnDetectionConversationContext carries the latest turns of the conversation for

TurnDetectionEndOfUtteranceLlmOptions (see

TurnDetectionOptions.turn_detection_conversation_context). No other detector reads it.

FieldTypeLabelDescription
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

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.

FieldTypeLabelDescription
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 prompt_logprobs); on any other deployment the probability reads 0, so every turn is judged not finished and waits for TurnDetectionOptions.incomplete_max_silence_seconds.

TurnDetectionHoldBand

One hold band of TurnDetectionEndOfUtteranceLlmOptions.

FieldTypeLabelDescription
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 TurnDetectionOptions.incomplete_max_silence_seconds.

TurnDetectionHoldBands

TurnDetectionHoldBands carries the hold bands of TurnDetectionEndOfUtteranceLlmOptions. No other

detector reads them.

FieldTypeLabelDescription
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 upper_probability, whose upper probability exceeds the end-of-utterance probability decides the hold. A probability above every band is finished at once.

TurnDetectionOndewoDeFusionOptions

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.

FieldTypeLabelDescription
openai_llm_options OpenaiLlmOptions optional

Optional. Addresses the vLLM deployment of the text model (base_url, api_key, timeout); model names the fusion variant, e.g. ondewo-s2t-model-de-fusion-turn-detection. Unset fields take the server's configured values.

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

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.

FieldTypeLabelDescription
openai_llm_options OpenaiLlmOptions optional

Optional. The vLLM deployment: base_url, api_key and timeout address it, model is the served model name, e.g. ondewo-s2t-model-de-vad-tsd-ondewo-qwen3-0.6b. Unset fields take the server's configured values.

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.incomplete_max_silence_seconds. Unset = the server's configured value (default: 0.5). Precedence: the request config's value, then the pipeline config's value, then the server's configured value.

TurnDetectionOptions

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.

FieldTypeLabelDescription
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_chat_llm_options.system_prompt, but still honoured so that configurations written for ondewo-s2t-api 7.5.0 and earlier keep working unchanged. Read only when oneof_turn_detector is not set.

turn_detection_user_prompt string optional

Deprecated. Optional. Deprecated in favour of turn_detection_chat_llm_options.user_prompt, but still honoured. Read only when oneof_turn_detector is not set.

turn_detection_llm_openai_options OpenaiLlmOptions optional

Deprecated. Optional. Deprecated in favour of oneof_turn_detector, but still honoured. Read only when oneof_turn_detector is not set; its model then selects the detector by its name, as before oneof_turn_detector existed: a name starting with pipecat-smart-turn selects pipecat Smart Turn, one starting with ondewo-s2t-model-de-vad-tsd-ondewo-qwen3 the ONDEWO German turn-detection model, one starting with ondewo-s2t-model-de-fusion-turn-detection the ONDEWO German fusion turn detector, and any other name a chat LLM or an end-of-utterance LLM. A name starting with pipecat- or ondewo-s2t-model- that matches none of these is refused with INVALID_ARGUMENT. On this path every detector-specific value is the server's configured value.

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 min_duration_off to it. Unset = the server's configured value (default: the min_duration_off in use). Applies to every "not finished" verdict, whichever detector gave it, including a verdict that did not arrive in time.

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 oneof_turn_detector because it is conversation data, not detector configuration: the server keeps it per stream, a request whose turn detection carries this field replaces it, an empty wrapper (no turns) clears it, and a request without it keeps it. That is why it is a wrapper: the server merges request configs per whole top-level field, so a field it did not store itself could not survive a later request that carries turn detection without it. The server caps the number of turns and the length of each turn. Unset or empty: the utterance is judged alone. Read only by turn_detection_end_of_utterance_llm_options; ignored by every other detector. Honoured only in a request config; ignored in a pipeline config, where a per-stream context has no meaning.

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.

Fields with deprecated option

Name Option
turn_detection_system_prompt

true

turn_detection_user_prompt

true

turn_detection_llm_openai_options

true

TurnDetectionPipecatSmartTurnOptions

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

FieldTypeLabelDescription
model_name string optional

Optional. Full name of the Triton model. Unset = the server's configured value (default: ondewo-s2t-model-multi-turn-detection-pipecat-smart-turn-3.2-onnx-triton).

triton_server_host string optional

Optional. Host name of the Triton inference server that serves the model, as Pyannote.triton_server_host. Unset = the server's configured value. The connection uses the server's Triton client TLS settings.

triton_server_port int64 optional

Optional. Port of the Triton inference server that serves the model, as Pyannote.triton_server_port. Unset = the server's configured value.

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 TurnDetectionOptions.incomplete_max_silence_seconds. Unset = the server's configured value (default: 0.2).

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 TurnDetectionOptions.incomplete_max_silence_seconds. Unset = the server's configured value (default: 0.5). Precedence: the request config's value, then the pipeline config's value, then the server's configured value.

UtteranceDetectionOptions

Configuration of the options to detect utterances

FieldTypeLabelDescription
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 StreamingSpeechRecognition.transcribe_not_final, then the server default, which is now true; an explicit false opts this request out of non-final results.

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 StreamingSpeechRecognition.min_audio_chunk_size of the pipeline config for this stream only. Allowed: 320 - 32000 (20 ms - 2 s at 16 kHz); a smaller chunk costs proportionally more voice-activity and transcription requests. Read from the first request of a stream that carries it; a later request cannot change a running stream's chunk. Unset: the pipeline's value.

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 transcribe_not_final is in force). Overrides StreamingSpeechRecognition.transcribe_not_final_period_seconds of the pipeline config and the server setting ONDEWO_S2T_INFERENCE_SLIDING_PERIOD_OF_TRANSCRIPT for this request only. Allowed: (0, 5]; a shorter period costs proportionally more transcription requests. The server checks the period once per processing chunk, so the effective cadence is rounded up to whole min_audio_chunk_size chunks. Unset: the pipeline's value, then the server setting.

VoiceActivityDetection

VoiceActivityDetection contains information about voice activity detection settings.

FieldTypeLabelDescription
active string

Deprecated in favour of vad_method, but still honoured so that configurations written before that field existed keep working unchanged. One of 'pyannote' or 'silero'. Read only when vad_method is VAD_METHOD_UNSPECIFIED.

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 active; leave unset to keep using active.

tsd_method TsdMethod

Which model decides whether an utterance came from the main speaker. Independent of vad_method, except that TSD_METHOD_PYANNOTE requires Pyannote to also be the active VAD. Leave unset to keep the behaviour of older configurations.

Wav2Vec

Wav2Vec contains information about the Wav2Vec model.

FieldTypeLabelDescription
model_path string

Path to the model.

use_gpu bool

Indicates if GPU is used.

Wav2VecTriton

Wav2VecTriton contains information about the Wav2Vec model using Triton.

FieldTypeLabelDescription
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

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

FieldTypeLabelDescription
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 similarity_threshold: 0 means 'judge every utterance, however short'.

reference_max_length float

The reference audio is cropped to its most recent this-many seconds before being embedded.

Whisper

Whisper contains information about the Whisper model.

FieldTypeLabelDescription
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

WhisperTriton contains information about the Whisper model using Triton.

FieldTypeLabelDescription
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

WordAlternative

The word alternative message

FieldTypeLabelDescription
word string

The recognized word corresponding to this set of information.

confidence float

The corresponding confidence score to the alternative word.

WordDetail

WordDetail provides word-specific information for recognized words.

FieldTypeLabelDescription
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.

Enums

Decoding

The decoding configuration

NameNumberDescription
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.

InferenceBackend

The inference backend configuration

NameNumberDescription
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

ReasoningEffort

Effort level for reasoning models (e.g., o1, o3). Controls the trade-off between speed and quality.

NameNumberDescription
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.

ServiceTier

Latency tier to use for processing an OpenAI request. Affects cost and throughput.

NameNumberDescription
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

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.

NameNumberDescription
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 wespeaker_tsd.active is set; otherwise no TSD at all. Note that wespeaker_tsd.active is deliberately not consulted on the Pyannote path, because it was never consulted there before this field existed.

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 VoiceActivityDetection.wespeaker_tsd. Works with any VAD.

TurnDetectionContextTurn.Role

Who spoke the turn.

NameNumberDescription
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

VadMethod selects the model used to split the audio stream into utterances.

NameNumberDescription
VAD_METHOD_UNSPECIFIED 0

No explicit choice. The method is then taken from the legacy VoiceActivityDetection.active string, and from Pyannote if that is empty too.

VAD_METHOD_PYANNOTE 1

Use the Pyannote segmentation model, configured by VoiceActivityDetection.pyannote.

VAD_METHOD_SILERO 2

Use the Silero model, configured by VoiceActivityDetection.silero.

Verbosity

Verbosity level for the response output.

NameNumberDescription
VERBOSITY_UNSPECIFIED 0

Unspecified verbosity.

VERBOSITY_LOW 1

Low verbosity.

VERBOSITY_MEDIUM 2

Medium verbosity.

VERBOSITY_HIGH 3

High verbosity.

ondewo/sip/sip.proto

Top

Services

Sip

ONDEWO-SIP API available at GitHub

SIP LifeCycle is explained at here

Service Methods

SipStartSession

rpc SipStartSession (SipStartSessionRequest) returns (SipStatus)

Starts a new SIP session for an account registered at a SIP server. RegisterAccount need to be called before.

Not idempotent (no idempotency_level): (re)creates the SIP session and registration.

SipEndSession

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.

SipStartCall

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.

SipEndCall

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.

SipTransferCall

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.

Not idempotent (no idempotency_level): a repeat sends another REFER.

SipRegisterAccount

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.

SipGetSipStatus

rpc SipGetSipStatus (.google.protobuf.Empty) returns (SipStatus)

Gets the current SIP status

SipGetSipStatusHistory

rpc SipGetSipStatusHistory (.google.protobuf.Empty) returns (SipStatusHistoryResponse)

Gets the history of SIP status

SipPlayWavFiles

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.

Not idempotent (no idempotency_level): a repeat plays the files again.

SipMute

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.

Not idempotent (no idempotency_level): without a call it assigns NO_ONGOING_CALL and appends to the history.

SipUnMute

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.

Not idempotent (no idempotency_level): without a call it assigns NO_ONGOING_CALL and appends to the history.

SipReportAnsweringMachineDetected

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

Not idempotent (no idempotency_level): assigns a status and records answering machine detection telemetry.

SipSetCallMediaControl

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.

Deliberately unmarked although a repeat leaves the level unchanged: a retried attempt can land after a newer request of the same owner and restore a stale mute or pause.

SipStreamCallAudio

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.

Not idempotent (no idempotency_level): a stream takes a slot and, in TALK, takes over the call.

SipSendDtmf

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.

Not idempotent (no idempotency_level): a retried attempt sends the keys again.

Methods with idempotency_level option

Method Name Option
SipGetSipStatus

NO_SIDE_EFFECTS

SipGetSipStatusHistory

NO_SIDE_EFFECTS

Messages

AnsweringMachineDetectionResult

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

FieldTypeLabelDescription
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 0.0 and 1.0

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 X-ondewo-vtsi-caller-call-id header of the call. Used to match a result to its call by identity rather than by recency

SipCallAudioConfig

Configuration of a SipStreamCallAudio stream. Must be the first request of the stream

FieldTypeLabelDescription
mode SipCallAudioMode

Mode of the stream. Unspecified means LISTEN

sample_rate_hz int32

Sample rate in Hz of the audio in both directions: 8000 or 16000. 0 means 16000

frame_ms int32

Frame length in milliseconds. Only 20 is supported; 0 means 20

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. 0 means the server default (3600)

SipCallAudioEnded

Sent once when a SipStreamCallAudio stream ends normally

FieldTypeLabelDescription
reason SipCallAudioEndReason

Why the stream ended

detail string

Optional detail, a stable token

SipCallAudioFrame

One frame of call audio

FieldTypeLabelDescription
pcm_s16le bytes

LINEAR16 little-endian mono samples of one frame, i.e. sample_rate_hz * frame_ms / 1000 * 2 bytes

sequence uint64

Monotonic sequence number of the frame within its direction of the stream

SipCallAudioRequest

Request of SipStreamCallAudio

FieldTypeLabelDescription
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

true: the agent's audio is not sent to the caller (silence instead) until set to false

SipCallAudioResponse

Response of SipStreamCallAudio

FieldTypeLabelDescription
started SipCallAudioStarted

The stream is connected

audio SipCallAudioFrame

Call audio

stats SipCallAudioStats

Stream counters

ended SipCallAudioEnded

The stream ended

SipCallAudioStarted

Sent once when a SipStreamCallAudio stream is connected

FieldTypeLabelDescription
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

SipCallAudioStats

Counters of a SipStreamCallAudio stream, sent periodically

FieldTypeLabelDescription
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

SipDelegatedTransfer

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.

FieldTypeLabelDescription
request_id string

Identifier of the parked transfer, a UUID minted by ONDEWO SIP. Sent back as SipTransferCallRequest.delegated_request_id. Empty when no transfer is parked

requested_at google.protobuf.Timestamp

When the pipeline asked for the transfer

target_is_phone_number bool

true when the target is a phone number by the transfer target policy of ONDEWO SIP (a leading + followed by digits, or a trunk-routed number), false for an account name such as a softphone

transfer_id string

The target the pipeline asked for, already checked by the transfer target policy. Only in the response of a SIP_TRANSFER_DELEGATION_CLAIM, empty everywhere else

headers SipDelegatedTransfer.HeadersEntry repeated

The headers the pipeline sent with the transfer. Only in the response of a SIP_TRANSFER_DELEGATION_CLAIM, empty everywhere else

SipDelegatedTransfer.HeadersEntry

FieldTypeLabelDescription
key string

value string

SipEndCallRequest

Ends an ongoing call of the active SIP session of the active SIP account

FieldTypeLabelDescription
hard_hangup bool

Set to True to forcefully hang up the call

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 end_reason = ANSWERING_MACHINE or end_reason = ANSWERING_MACHINE_VOICE_MESSAGE_LEFT; it is carried into SipStatus.amd_result of the terminal status of the call

SipPlayWavFilesRequest

Plays a list of wav files

FieldTypeLabelDescription
wav_files bytes repeated

Wav files as bytes in a list that will be played

SipRegisterAccountRequest

Request for registering a SIP account at a SIP server

FieldTypeLabelDescription
account_name string

Account name of the sip user. Usually something like sip-user-1@mydomain.com or sip-user-1@192.168.123.123 which uses the default SIP port 5060. Also a non-default SIP port can be specified via sip-user-1@mydomain.com:5099 to connect to a SIP server running on port 5099

password string

Password of the account

auth_username string

Optional: authentication user name

outbound_proxy string

Optional: outbound proxy address, e.g. my.outbound.proxy.com

SipReportAnsweringMachineDetectedRequest

Reports the verdict of the answering machine detection of the ongoing outgoing call

FieldTypeLabelDescription
amd_result AnsweringMachineDetectionResult

Result of the answering machine detection. Written to SipStatus.amd_result of the OUTGOING_CALL_ANSWERING_MACHINE_DETECTED status of the call

SipSendDtmfRequest

Request of SipSendDtmf

FieldTypeLabelDescription
digits string

The keys to send, in order: 0-9, *, #, A-D; at most 64. Any other character refuses the request (InvalidDtmf) and sends nothing

SipSetCallMediaControlRequest

Request of SipSetCallMediaControl

FieldTypeLabelDescription
bot_voice MediaControlSetting

MEDIA_CONTROL_SETTING_ON: the bot speaks. MEDIA_CONTROL_SETTING_OFF: the bot is muted

bot_listening MediaControlSetting

MEDIA_CONTROL_SETTING_ON: caller audio reaches speech-to-text. MEDIA_CONTROL_SETTING_OFF: listening is paused

owner MediaControlOwner

Owner whose hold is set

participants_present bool

Only for MEDIA_CONTROL_OWNER_PARTICIPANT, ignored for every other owner: whether at least one invited participant is ringing or joined. Every participant request carries the full value, so the request that reports the last participant gone sends false.

While participants are present (this flag, or a mute or pause held by the participant owner) SipTransferCall is refused with exception_name=ParticipantsPresent, because a REFER into a conference bridge transfers every party in it. A request that would mark participants present while a transfer of the call is in flight is refused with exception_name=TransferInProgress and changes nothing. Cleared when the call ends

warm_transfer_outcome SipWarmTransferOutcomeNotice

Optional, only with MEDIA_CONTROL_OWNER_PARTICIPANT (any other owner, an outcome other than SIP_WARM_TRANSFER_OUTCOME_DECLINED / SIP_WARM_TRANSFER_OUTCOME_UNREACHABLE, or an empty request_id is refused with exception_name=InvalidWarmTransferOutcomeNotice and changes nothing). The outcome of a warm transfer that the bot must tell the caller, sent with the request that releases the participant hold, so the bot speaks only once it can.

Handed to the speech-to-speech pipeline after the level, also when the level did not change; the answer is returned in SipStatus.warm_transfer_outcome_notice_status. A notice the pipeline did not answer is kept and handed over again until it answers, and dropped when the call ends. Unset (default): no notice, exactly as before this field existed.

SipStartCallRequest

Request to start the call with the active SIP session of the active SIP account

FieldTypeLabelDescription
callee_id string

SIP account name

headers SipStartCallRequest.HeadersEntry repeated

Headers to include when starting the call

SipStartCallRequest.HeadersEntry

FieldTypeLabelDescription
key string

value string

SipStartSessionRequest

Request for starting a new SIP session for a specified account

FieldTypeLabelDescription
account_name string

Account name of the sip user. Usually something like sip-user-1@mydomain.com or sip-user-1@192.168.123.123 which uses the default SIP port 5060. Also a non-default SIP port can be specified via sip-user-1@mydomain.com:5099 to connect to a SIP server running on port 5099

auto_answer_interval int32

Auto-answer interval in seconds. The call will be automatically answered after this interval

SipStatus

Status information for a SIP account, session, or call

FieldTypeLabelDescription
account_name string

Account name of the sip user. Usually something like sip-user-1@mydomain.com or sip-user-1@192.168.123.123 which uses the default SIP port 5060. Also a non-default SIP port can be specified via sip-user-1@mydomain.com:5099 to connect to a SIP server running on port 5099

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 OUTGOING_CALL_ANSWERING_MACHINE_DETECTED and on the terminal status of every call on which answering machine detection ran, including a HUMAN verdict; unset otherwise

call_id string

Identifier of the ongoing call, minted per call: the value of the X-ondewo-vtsi-caller-call-id header of an outgoing call when present, otherwise a random UUID. Empty when no call is ongoing. Set on every status of the call, including the entries of SipGetSipStatusHistory. Clients send it back as the x-ondewo-expected-call-id metadatum to scope a request to this call

bot_muted bool

true while the bot is muted by an operator, a conference participant policy or a TALK take-over of SipSetCallMediaControl / SipStreamCallAudio. Not the bot's own pipeline mute (MICROPHONE_MUTED). Cleared when the call ends

listening_paused bool

true while the bot does not listen to the caller (see bot_muted for who sets it). Cleared when the call ends

call_audio_streams int32

Number of connected SipStreamCallAudio streams of the ongoing call

sip_response_code int32

SIP response code of the last transfer attempt of the ongoing call (202 when accepted, the refusal code otherwise, 0 when unknown). Call-scoped

delegated_transfer SipDelegatedTransfer

The transfer parked for a client to claim (see SipTransferDelegation). Unset (empty) when no transfer is parked, which is always the case in a container started without SIP_TRANSFER_DELEGATION_ACTIVE=True. Call-scoped

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: SipSetCallMediaControlRequest.warm_transfer_outcome is handed to the speech-to-speech pipeline, and the pipeline tells the caller.

warm_transfer_outcome_notice_status SipWarmTransferOutcomeNoticeStatus

Answer of the speech-to-speech pipeline to the warm_transfer_outcome notice of a SipSetCallMediaControl request. Only in the response of that request; SIP_WARM_TRANSFER_OUTCOME_NOTICE_STATUS_UNSPECIFIED everywhere else and when the request carried no notice

SipStatus.HeadersEntry

FieldTypeLabelDescription
key string

value string

SipStatusHistoryResponse

History of SIP status

FieldTypeLabelDescription
status_history SipStatus repeated

History of SIP status

SipTransferCallRequest

Request for transferring a call with or without headers

FieldTypeLabelDescription
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.

0 (default): legacy behaviour, unchanged: REFER, then an immediate hangup.

> 0: the call is kept until the outcome is known:

  • REFER accepted (202): the hangup is held for a short grace in which a terminal NOTIFY with a 404 sipfrag (unknown target) still counts as a refusal; any other sipfrag, or none, means accepted. The bot then hangs up and TRANSFER_CALL_INITIATED is returned with sip_response_code = 202. The call ends as *_CALL_FINISHED with the description Call transferred.
  • REFER refused (a final response >= 400, or the 404 sipfrag above): the call is KEPT with the bot, nothing is assigned to the shared status, and TRANSFER_CALL_FAILED is returned with description = reason=refer-rejected and sip_response_code (0 when the SIP stack did not report the code, e.g. a declined REFER).
  • No answer within the timeout: the call is KEPT and TRANSFER_CALL_FAILED is returned with description = reason=refer-timeout. A late acceptance still ends the bot's leg.
  • The call ended while waiting: NO_ONGOING_CALL is returned.

A 202 does not mean the target answered: when the dialplan's dial to the target then fails (busy, no answer, unreachable) the caller is lost. Validate targets up front, or use a WARM transfer.

delegation SipTransferDelegation

Optional. Claims the transfer parked in SipStatus.delegated_transfer (see SipTransferDelegation). SIP_TRANSFER_DELEGATION_UNSPECIFIED (default): an ordinary transfer, exactly as before this field existed.

delegated_request_id string

Required with every delegation other than SIP_TRANSFER_DELEGATION_UNSPECIFIED, ignored otherwise: must equal SipStatus.delegated_transfer.request_id of the parked transfer, otherwise the request is refused with exception_name=DelegatedRequestMismatch and nothing is sent. Empty (default): no delegated transfer is claimed.

SipTransferCallRequest.HeadersEntry

FieldTypeLabelDescription
key string

value string

SipWarmTransferOutcomeNotice

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

FieldTypeLabelDescription
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. target-hung-up, target-refused, voicemail-suspected. Never free text

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

Enums

AnsweringMachineDetectionResult.ActionTaken

What was done because of the verdict

NameNumberDescription
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

AnsweringMachineDetectionResult.Cause

Evidence that led to the verdict

NameNumberDescription
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

AnsweringMachineDetectionResult.Verdict

Who or what answered the call

NameNumberDescription
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

MediaControlOwner

Owner of a media control hold. Each owner holds its own mute and pause; releasing one owner's hold never releases

another owner's

NameNumberDescription
MEDIA_CONTROL_OWNER_UNSPECIFIED 0

Same as MEDIA_CONTROL_OWNER_OPERATOR

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 SipSetCallMediaControlRequest.participants_present

MediaControlSetting

Desired setting of one media control flag

NameNumberDescription
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 (bot_voice) or the bot listens (bot_listening)

MEDIA_CONTROL_SETTING_OFF 2

The flag is off: the bot is muted (bot_voice) or the bot's listening is paused (bot_listening)

SipCallAudioEndReason

Why a SipStreamCallAudio stream ended

NameNumberDescription
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

max_duration_s was reached

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

SipCallAudioMode

Mode of a SipStreamCallAudio stream

NameNumberDescription
SIP_CALL_AUDIO_MODE_UNSPECIFIED 0

Same as SIP_CALL_AUDIO_MODE_LISTEN

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 take_over

SipEndCallRequest.EndCallReason

Why the call is being ended

NameNumberDescription
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 OUTGOING_CALL_FINISHED with the description Answering machine detected with hang up

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 OUTGOING_CALL_FINISHED with the description Answering machine detected with left voice message and hang up

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 *_CALL_FINISHED with the description Call transferred and transfer_call_id set to the transfer target

SipStatus.StatusType

Types of status

NameNumberDescription
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. amd_result.verdict tells an answering machine, a fax, a network announcement, ... apart. The call then ends as OUTGOING_CALL_FINISHED carrying amd_result and exactly one of the descriptions 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

SipTransferDelegation

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.

NameNumberDescription
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 SipStatus.delegated_transfer.transfer_id / headers, and the parked transfer no longer expires. It stays parked until SIP_TRANSFER_DELEGATION_EXECUTE, SIP_TRANSFER_DELEGATION_DISCARD or the end of the call. A repeated claim answers the same

SIP_TRANSFER_DELEGATION_EXECUTE 2

End the delegation and send the transfer of THIS request (transfer_id, headers, outcome_timeout_ms) as an ordinary SipTransferCall, with the same outcomes and refusals

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)

SipWarmTransferOutcome

Outcome of a warm transfer that the bot tells the caller

NameNumberDescription
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 SipStatus.delegated_transfer was not claimed in time and was dropped without a REFER. Set by ONDEWO SIP itself towards the pipeline, never accepted from a client

SipWarmTransferOutcomeNoticeStatus

Answer of the speech-to-speech pipeline to a SipWarmTransferOutcomeNotice

NameNumberDescription
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 request_id on this call; nothing new is told

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

ondewo/t2s/text-to-speech.proto

Top

Services

Text2Speech

Text2Speech service provides endpoints for text-to-speech generation.

Service Methods

Synthesize

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.

BatchSynthesize

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.

StreamingSynthesize

rpc StreamingSynthesize (stream StreamingSynthesizeRequest) returns (stream StreamingSynthesizeResponse)

Performs streaming synthesis by accepting stream of input text and returning a stream of generated audio.

NormalizeText

rpc NormalizeText (NormalizeTextRequest) returns (NormalizeTextResponse)

Normalizes a text according to the specific pipeline's normalization rules.

GetT2sPipeline

rpc GetT2sPipeline (T2sPipelineId) returns (Text2SpeechConfig)

Retrieves the configuration of the specified text-to-speech pipeline.

CreateT2sPipeline

rpc CreateT2sPipeline (Text2SpeechConfig) returns (T2sPipelineId)

Creates a new text-to-speech pipeline with the provided configuration and returns its pipeline ID.

DeleteT2sPipeline

rpc DeleteT2sPipeline (T2sPipelineId) returns (.google.protobuf.Empty)

Deletes the specified text-to-speech pipeline.

UpdateT2sPipeline

rpc UpdateT2sPipeline (Text2SpeechConfig) returns (.google.protobuf.Empty)

Updates the specified text-to-speech pipeline with the given configuration.

ListT2sPipelines

rpc ListT2sPipelines (ListT2sPipelinesRequest) returns (ListT2sPipelinesResponse)

Retrieves a list of text-to-speech pipelines based on specific requirements.

ListT2sLanguages

rpc ListT2sLanguages (ListT2sLanguagesRequest) returns (ListT2sLanguagesResponse)

Retrieves a list of languages available based on specific configuration requirements.

ListT2sDomains

rpc ListT2sDomains (ListT2sDomainsRequest) returns (ListT2sDomainsResponse)

Retrieves a list of domains available based on specific configuration requirements.

ListT2sNormalizationPipelines

rpc ListT2sNormalizationPipelines (ListT2sNormalizationPipelinesRequest) returns (ListT2sNormalizationPipelinesResponse)

Retrieves a list of normalization pipelines based on specific requirements.

GetServiceInfo

rpc GetServiceInfo (.google.protobuf.Empty) returns (T2SGetServiceInfoResponse)

Retrieves the version information of the running text-to-speech server.

GetCustomPhonemizer

rpc GetCustomPhonemizer (PhonemizerId) returns (CustomPhonemizerProto)

Retrieves a custom phonemizer based on the provided PhonemizerId.

CreateCustomPhonemizer

rpc CreateCustomPhonemizer (CreateCustomPhonemizerRequest) returns (PhonemizerId)

Creates a custom phonemizer based on the provided CreateCustomPhonemizerRequest. Returns the PhonemizerId associated with the created custom phonemizer.

DeleteCustomPhonemizer

rpc DeleteCustomPhonemizer (PhonemizerId) returns (.google.protobuf.Empty)

Deletes a custom phonemizer based on the provided PhonemizerId. Returns an Empty response upon successful deletion.

UpdateCustomPhonemizer

rpc UpdateCustomPhonemizer (UpdateCustomPhonemizerRequest) returns (CustomPhonemizerProto)

Updates the specified custom phonemizer with the provided configuration.

ListCustomPhonemizer

rpc ListCustomPhonemizer (ListCustomPhonemizerRequest) returns (ListCustomPhonemizerResponse)

Retrieves a list of custom phonemizers based on specific requirements.

VoiceCloning

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.

Messages

Apodization

Apodization message contains settings for apodization postprocessing.

FieldTypeLabelDescription
apodization_secs float

The duration of apodization in seconds.

BatchSynthesizeRequest

BatchSynthesizeRequest message is used to send a batch request for synthesis.

FieldTypeLabelDescription
batch_request SynthesizeRequest repeated

Repeated field holding individual synthesis requests that make up the batch request.

BatchSynthesizeResponse

BatchSynthesizeResponse message is used to store the responses for a batch synthesis request.

FieldTypeLabelDescription
batch_response SynthesizeResponse repeated

Repeated field holding individual synthesis responses that correspond to the input requests in the batch.

Caching

Caching message contains settings for caching.

FieldTypeLabelDescription
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

CompositeInference message combines text-to-mel and mel-to-audio inference settings.

FieldTypeLabelDescription
text2mel Text2Mel

Text-to-mel inference settings.

mel2audio Mel2Audio

Mel-to-audio inference settings.

CreateCustomPhonemizerRequest

CreateCustomPhonemizerRequest message represents the request for creating a custom phonemizer.

FieldTypeLabelDescription
prefix string

The prefix for the custom phonemizer ID.

maps Map repeated

Repeated field of Map messages representing word-to-phoneme mappings.

CustomPhonemizerProto

CustomPhonemizerProto message represents a custom phonemizer.

FieldTypeLabelDescription
id string

The ID of the custom phonemizer.

maps Map repeated

Repeated field of Map messages representing word-to-phoneme mappings.

GlowTTS

GlowTTS message contains settings for the GlowTTS inference.

FieldTypeLabelDescription
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

GlowTTSTriton message contains settings for the GlowTTS Triton inference.

FieldTypeLabelDescription
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

HiFiGan message contains settings for the HiFiGan inference.

FieldTypeLabelDescription
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

HiFiGanTriton message contains settings for the HiFiGan Triton inference.

FieldTypeLabelDescription
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

ListCustomPhonemizerRequest message represents the request for listing custom phonemizers.

FieldTypeLabelDescription
pipeline_ids string repeated

Repeated field of pipeline IDs to filter the list of custom phonemizers.

ListCustomPhonemizerResponse

ListCustomPhonemizerResponse message represents the response for listing custom phonemizers.

FieldTypeLabelDescription
phonemizers CustomPhonemizerProto repeated

Repeated field of CustomPhonemizerProto messages representing the custom phonemizers.

ListT2sDomainsRequest

Domain Request representation.

The request message for ListT2sDomains.

Filter domains of pipelines by attributed in request.

FieldTypeLabelDescription
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.

ListT2sDomainsResponse

Domains Response representation.

The response message for ListT2sDomains.

FieldTypeLabelDescription
domains string repeated

Required. Define the domain/ domains that satisfy/ies the specifications in the ListT2sDomainsRequest.

ListT2sLanguagesRequest

Language Request representation.

The request message for ListT2sLanguages.

Filter languages of pipelines by attributed in request.

FieldTypeLabelDescription
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.

ListT2sLanguagesResponse

Language Response representation.

The response message for ListT2sLanguages.

FieldTypeLabelDescription
languages string repeated

Required. Define the language/ languages that satisfy/ies the specifications in the ListT2sLanguagesRequest.

ListT2sNormalizationPipelinesRequest

The request message for ListT2sNormalizationPipelines.

Filter pipelines by attributed in request.

FieldTypeLabelDescription
language string

Optional. Define the language.

ListT2sNormalizationPipelinesResponse

Pipeline Response representation.

The response message for ListT2sNormalizationPipelines.

FieldTypeLabelDescription
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.

ListT2sPipelinesRequest

Pipeline Request representation.

The request message for ListT2sPipelines.

Filter pipelines by attributed in request.

FieldTypeLabelDescription
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.

ListT2sPipelinesResponse

Pipeline Response representation.

The response message for ListT2sPipelines.

FieldTypeLabelDescription
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

Logmnse message contains settings for Logmnse postprocessing.

FieldTypeLabelDescription
initial_noise int64

The initial noise value.

window_size int64

The window size.

noise_threshold float

The noise threshold.

Map

Map message represents a word-to-phoneme mapping in a custom phonemizer.

FieldTypeLabelDescription
word string

The word to be mapped.

phoneme_groups string

The phoneme groups associated with the word.

MbMelganTriton

MbMelganTriton message contains settings for the MbMelgan Triton inference.

FieldTypeLabelDescription
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

Mel2Audio message contains settings for mel-to-audio inference.

FieldTypeLabelDescription
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

NormalizeTextRequest message is used to request text normalization.

FieldTypeLabelDescription
t2s_pipeline_id string

The ID of the text-to-speech pipeline.

text string

The text to be normalized.

NormalizeTextResponse

NormalizeTextResponse message is used to store the normalized text response.

FieldTypeLabelDescription
normalized_text string

The normalized text.

PhonemizerId

PhonemizerId message represents the ID of a phonemizer.

FieldTypeLabelDescription
id string

The ID of the phonemizer.

Postprocessing

Postprocessing message contains settings for postprocessing.

FieldTypeLabelDescription
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

Qwen3TtsBase message contains settings for inference of qwen3-TTS-Base model.

FieldTypeLabelDescription
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

Qwen3TtsCustomVoice message contains settings for inference of qwen3-TTS-CustomVoice model.

FieldTypeLabelDescription
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

RequestConfig

Represents a Configuration for the text to speech conversion.

FieldTypeLabelDescription
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.,

MY_API_KEY='LKJDIFe244LKJOI'
A. For Amazon T2S service, the following arguments should be passed:
  • A1. aws_access_key_id (required) Access key id to access Amazon WEB Service.
  • A2. aws_secret_access_key (required) Secret access key to access Amazon WEB Service.
  • A3. region (required) Region name of Amazon Server.
Example:
t2s_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'}
B. For ElevenLabs T2s service, the following arguments should be passed:
  • B1. api_key (required) API key of ElevenLabs cloud provider to access its T2S service.
Example:
t2s_config_service={'api_key': 'YOUR_ELEVENLABS_API_KEY'}
C. For Google cloud T2S service, the following arguments should be passed:
  • C1. api_key (required) API key of Google cloud provider to access its T2S service.
  • C2. api_endpoint (optional) Regional API endpoint of Google cloud T2S service. (Defaults to 'eu-texttospeech.googleapis.com')
Example:
t2s_config_service={'api_key': 'YOUR_GOOGLE_CLOUD_API_KEY', 'api_endpoint': 'YOUR_GOOGLE_CLOUD_API_ENDPOINT'}
D. For Microsoft Azure T2s service, the following arguments should be passed:
  • D1. subscription_key (required) Subscription key to access Microsoft Azure Service.
  • D2. region (required) Region name of Microsoft Azure Server.
Example:
t2s_config_service={'subscription_key': 'YOUR_MICROSOFT_AZURE_SUBSCRIPTION_KEY', 'region': 'YOUR_MICROSOFT_AZURE_SERVER_REGION_NAME'}
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.

a calm female voice with a slight British accent

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 SynthesizeRequest.text), not via this field.

SingleInference

SingleInference message inference settings of text2audio models.

FieldTypeLabelDescription
text2audio Text2Audio

Text-to-audio inference settings.

StreamingSynthesizeRequest

StreamingSynthesizeRequest is used to perform streaming synthesize.

FieldTypeLabelDescription
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.

StreamingSynthesizeResponse

Represents a Streaming Synthesize Response.

A Streaming Synthesize Response contains the generated audio, requested text and and

all other properties of this generated audio.

FieldTypeLabelDescription
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).

SynthesizeRequest

Represents a Synthesize Request.

A Synthesize Request contains the information need to perform a text to speech conversion.

FieldTypeLabelDescription
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 RequestConfig.t2s_pipeline_id; unsupported tags are stripped and the plain text is still spoken.

1. Plain text

  • Simple text:
    Hello, how are you?

2. SSML <say-as> tags (local vits / qwen3-tts and cloud providers)

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.

  • Phone:
    <say-as interpret-as="phone">+12354321</say-as>
  • Email:
    <say-as interpret-as="email">voices@ondewo.com</say-as>
  • URL:
    <say-as interpret-as="url">ondewo.com/en/</say-as>
  • Spell (spell out each character):
    <say-as interpret-as="spell">AP732</say-as>
  • Spell with names (e.g. "A like Anton"):
    <say-as interpret-as="spell-with-names">AHO32</say-as>
  • Callsigns short:
    <say-as interpret-as="callsign-short">AUA439</say-as>
  • Callsigns long:
    <say-as interpret-as="callsign-long">AAL439</say-as>

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 - ms for milliseconds, s for seconds - or as a bare number, which is read as seconds: <break time="0.5"/> is half a second. A bare number is therefore never milliseconds; <break time="2000"/> asks for 2000 seconds and is rejected with an error - write <break time="2000ms"/> instead. A single break may not be longer than 60 seconds.

  • Milliseconds:
    Welcome to our service. <break time="500ms"/> How can I help you today?
  • Seconds:
    Please hold the line. <break time="2s"/> Thank you for waiting.
  • Seconds without a unit:
    Let me check that for you. <break time="1.5"/> I found your booking.

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 <phoneme> element using the IPA alphabet (alphabet="ipa"). The IPA string goes in the ph attribute and the written word between the tags:

  • English:
    I would like a <phoneme alphabet="ipa" ph="təˈmeɪtoʊ">tomato</phoneme> please
  • German:
    Ich hätte gerne ein <phoneme alphabet="ipa" ph="ˈbaɪʃpiːl">Beispiel</phoneme> bitte

4b. Arpabet phonemes (glow model only) - the glow model controls pronunciation with Arpabet phonemes, supplied through the same SSML <phoneme> element but with alphabet="arpabet". The ARPAbet transcription goes in the ph attribute and the written word between the tags (the phonemes are not written in curly braces {} in the request text):

  • English:
    Please say <phoneme alphabet="arpabet" ph="T EH1 S T">test</phoneme> out loud
  • German:
    Ich sage <phoneme alphabet="arpabet" ph="T EH1 S T">test</phoneme> laut

4c. qwen3-tts has no phonemes - use the verbalized form instead - the qwen3-tts models do not support Arpabet or IPA phonemes; the <phoneme> element and its ph string are ignored. Instead, to have a special text (symbols, codes, abbreviations, ...) spoken correctly, pass its verbalization: the plain, written-out spoken form of the text in the target language. For example, to have A-7+8* pronounced correctly:

  • English:
    ai dash seven plus eight asterisk
  • German:
    ah bindestrich sieben plus acht sternchen

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.

  • Style - one of the four primary styles apologetic, calm, empathetic, firm, or one of the accepted synonyms cheerful / happy / joyful, sad / sorrowful, angry / furious, excited. An unknown name falls back to neutral, which adds no style at all, and a warning is logged:
    <ondewo:style name="calm">please stay calm everything will be fine</ondewo:style>
  • Prosody - rate (slow / medium / fast) and volume (soft / medium / loud), where medium means "leave it alone" and adds nothing.
    <prosody rate="slow" volume="loud">hello there</prosody>
  • Nested combination (style + prosody):
    <ondewo:style name="calm"><prosody rate="slow" volume="soft">hello there</prosody></ondewo:style>
  • Free-form instruction (CustomVoice only) - describe the delivery in natural language in the instruction attribute. The attribute value is used verbatim as the model instruction and takes precedence over the style / prosody tags; the wrapped inner text is kept as the spoken text and the instruction should always be written in English:
    <ondewo:instruct instruction="speak slowly in a warm and reassuring tone">hello there</ondewo:instruct>
  • Inline style tags (CustomVoice only) - the same style vocabulary written positionally in square brackets, so [calm] hello there and the <ondewo:style name="calm"> element compile to the identical instruction. Such a tag applies to everything that follows it until another tag or the [Neutral] reset replaces it.
    [excited] we shipped it. it works. [calm] now let us review.

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 RequestConfig.t2s_pipeline_id.

The table applies to both ways of asking for a style. The <ondewo:style name="calm"> element and the inline [calm] tag compile to the very same instruction, so they are limited by the voice in exactly the same way - switching from one spelling to the other never makes a style work that the voice cannot render.

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: <ondewo:style name="bored"> logs a warning and falls back to no style, because bored is outside the vocabulary listed further above. The silent case is a name that is in the vocabulary but beyond what the selected voice can do, for example excited on dylan.

Voiceapologeticcalmempatheticfirmcheerfulsadexcitedangry
aiden--✓✓✓✓--
dylan--------
eric---✓✓✓--
ono_anna--✓✓✓✓✓-
ryan✓✓✓✓✓✓✓-
serena--------
sohee--✓✓✓✓--
uncle_fu---✓✓--✓
vivian✓✓✓✓✓✓✓-

Notes on the table:

  • dylan and serena render no style at all - use them for neutral delivery only, and see the prosody table below for what little can still be varied on them.
  • ryan and vivian cover the widest range, so they are the safest choice when the style is chosen at runtime rather than fixed in advance.
  • A synonym behaves exactly like its primary name, so happy / joyful work wherever cheerful does, as do sorrowful for sad and furious for angry.

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 - medium (equally default) is available on every voice, because it means "leave this dimension alone" and sends no instruction at all.

Voicerate slowrate fastvolume softvolume loud
aiden✓✓✓✓
dylan✓✓✓-
eric✓-✓-
ono_anna✓✓✓✓
ryan✓✓✓✓
serena✓---
sohee✓✓✓✓
uncle_fu--✓✓
vivian✓✓✓-

Notes on the table:

  • uncle_fu does not respond to rate at all - change its pace by rewriting the text, or pick another voice.
  • dylan renders no style but does respond to rate and to volume="soft", so <prosody> is the only delivery control that works on it.
  • serena is the most constrained voice: rate="slow" is the one control it responds to, and no style, no rate="fast" and no volume step has any effect. Treat it as a fixed delivery that can only be slowed down.
  • ono_anna, ryan, sohee and aiden render every step of both dimensions.

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 RequestConfig.instruction for supplying the instruction / voice description directly instead of embedding it in the text.

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 <prosody>, <emphasis> and <break> are common to all three.

config RequestConfig

Required. Represents the specifications needed to do the text to speech transformation.

SynthesizeResponse

Represents a Synthesize Response.

A Synthesize Response contains the generated audio, requested text and all other properties of this generated audio.

FieldTypeLabelDescription
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

T2SCustomLengthScales message contains custom length scales for text types.

FieldTypeLabelDescription
text float

The custom length scale for general text.

email 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

T2SDescription message is used to describe the text-to-speech service.

FieldTypeLabelDescription
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.

T2SGetServiceInfoResponse

Version information of the service

FieldTypeLabelDescription
version string

version number

T2SInference

T2SInference message is used to specify the text-to-speech inference settings.

FieldTypeLabelDescription
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.

T2SNormalization

Represents the configuration for text-to-speech normalization.

FieldTypeLabelDescription
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.

T2sCloudProviderConfig

Configuration for cloud provider settings for Text-to-Speech (T2S).

FieldTypeLabelDescription
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.

T2sCloudProviderConfigElevenLabs

Configuration details specific to the Eleven Labs text-to-speech provider.

FieldTypeLabelDescription
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'.

T2sCloudProviderConfigGoogle

Configuration details specific to the Google text-to-speech provider.

FieldTypeLabelDescription
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].

T2sCloudProviderConfigMicrosoft

Configuration details specific to the Microsoft text-to-speech provider.

FieldTypeLabelDescription
use_default_speaker bool

Determines whether to use the default speaker voice.

T2sCloudServiceAmazon

T2sCloudServiceAmazon message contains settings for the Amazon Cloud service inference.

FieldTypeLabelDescription
voice_id string

Voice ID indicating the speaker

model_id string

Model id for the inference server.

T2sCloudServiceElevenLabs

T2sCloudServiceElevenLabs message contains settings for the ElevenLabs Cloud service inference.

FieldTypeLabelDescription
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

T2sCloudServiceGoogle message contains settings for the Google Cloud service inference.

FieldTypeLabelDescription
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

T2sCloudServiceMicrosoft message contains settings for the Microsoft Cloud service inference.

FieldTypeLabelDescription
voice_id string

Voice ID indicating the speaker.

use_default_speaker bool

Flag to indicate using the default speaker.

T2sPipelineId

Pipeline Id representation.

Used in the creation, deletion and getter of pipelines.

FieldTypeLabelDescription
id string

Required. Defines the id of the pipeline.

Text2Audio

Text2Audio message contains settings for text-to-audio inference.

FieldTypeLabelDescription
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

Text2Mel message contains settings for text-to-mel inference.

FieldTypeLabelDescription
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.

Text2SpeechConfig

Configuration of text-to-speech models representation.

FieldTypeLabelDescription
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

UpdateCustomPhonemizerRequest message represents the request for updating a custom phonemizer.

FieldTypeLabelDescription
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

Vits message contains settings for the Vits inference.

FieldTypeLabelDescription
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

VitsTriton message contains settings for the Vits Triton inference.

FieldTypeLabelDescription
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

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.

FieldTypeLabelDescription
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

VoiceSettings message contains settings for ElevenLabs inference.

FieldTypeLabelDescription
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

Wiener message contains settings for Wiener postprocessing.

FieldTypeLabelDescription
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.

Enums

AudioFormat

AudioFormat enum represents various audio file formats for storing digital audio data.

NameNumberDescription
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)

Pcm

Represents a pulse-code modulation technique.

NameNumberDescription
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.

UpdateCustomPhonemizerRequest.UpdateMethod

The update method to be used.

UpdateMethod enum defines the method for updating custom phonemizers.

NameNumberDescription
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.

ondewo/vtsi/call_configs.proto

Top

Messages

AnsweringMachineDetectionConfig

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:

Reporting: 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.

FieldTypeLabelDescription
active bool optional

Optional: Master switch: true runs the detection on every outbound call of this caller (default: false; deployment setting ONDEWO_VTSI_AMD_ACTIVE). While it is false no other field of this message has an effect and calls behave exactly as without AMD

action AnsweringMachineDetectionConfig.AmdAction optional

Optional: What the call does on a verdict that is not a person (default: HANG_UP; deployment setting ONDEWO_VTSI_AMD_ACTION). See AmdAction

sensitivity AnsweringMachineDetectionConfig.AmdSensitivity optional

Optional: How readily a machine is detected (default: LOW; deployment setting ONDEWO_VTSI_AMD_SENSITIVITY). See AmdSensitivity

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 ONDEWO_VTSI_AMD_MAX_DECISION_TIME_MS). When it is reached the verdict is UNKNOWN and the call continues with the greeting. It is roughly the longest a person waits for the bot when nothing pointed to a machine; a smaller value greets sooner, a larger one gives the detection more time

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 ONDEWO_VTSI_AMD_MAX_MACHINE_WAIT_MS). Such evidence extends the decision window from max_decision_time_ms to this value, because a mailbox greeting can be long. When it is reached without a decision the verdict is UNKNOWN and the call continues with the greeting

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 ONDEWO_VTSI_AMD_BEEP_WAIT_AFTER_GREETING_MS). Under LEAVE_VOICE_MESSAGE it is also the shortest silence after the greeting before the voice message may start without a beep, so a message does not talk over a late beep

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 ONDEWO_VTSI_AMD_INITIAL_SILENCE_MS). NO_SPEECH is treated like a person: the bot greets, the call is not hung up. Needs cadence_detection_active; without it a silent line ends as UNKNOWN at max_decision_time_ms

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 ONDEWO_VTSI_AMD_MAX_HUMAN_GREETING_MS). People answer briefly ("Hello?"), mailboxes talk longer. A long greeting alone never hangs up; it extends the window to max_machine_wait_ms and, from sensitivity MEDIUM, can decide together with other evidence. A larger value treats long-winded people more safely and recognises fewer machines by their greeting length

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 ONDEWO_VTSI_AMD_GREETING_END_SILENCE_MS). Under LEAVE_VOICE_MESSAGE it is also a lower bound of the silence after the machine greeting before the voice message may start

beep_detection_active bool optional

Optional: Whether the tone detector listens for the beep of an answering machine (default: true; deployment setting ONDEWO_VTSI_AMD_BEEP_DETECTION_ACTIVE). With false a beep is no evidence, and under LEAVE_VOICE_MESSAGE the message starts when the greeting ended in silence or at voice_message_max_beep_wait_ms instead of after the beep

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 INVALID_ARGUMENT; no deployment setting). Hearing one of them in the callee's greeting is strong evidence: it alone decides MACHINE, at every sensitivity. Phrases are matched word by word against the transcribed greeting, ignoring case, punctuation and the spelling of umlauts and tolerating small transcription differences. Empty (the default) adds nothing. Example: "mailbox von", the wording of a carrier's mailbox the built-in lists do not know. Needs keyword_detection_active

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 INVALID_ARGUMENT; no deployment setting). Hearing one of them counts as evidence of a person, matched like additional_machine_phrases, e.g. the way the people you call usually answer the phone. Empty (the default) adds nothing. Needs keyword_detection_active

hang_up_on_fax bool optional

Optional: Hang up on a FAX verdict (default: true; deployment setting ONDEWO_VTSI_AMD_HANG_UP_ON_FAX). Applies under HANG_UP and LEAVE_VOICE_MESSAGE (a fax never gets a voice message); false lets the call continue with the greeting

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: true; deployment setting ONDEWO_VTSI_AMD_HANG_UP_ON_NETWORK_ANNOUNCEMENT). Applies under HANG_UP and LEAVE_VOICE_MESSAGE (no voice message is left); false lets the call continue with the greeting

hang_up_on_ivr bool optional

Optional: Hang up on an IVR verdict, i.e. an automated menu such as "press 1 for ..." (default: false; deployment setting ONDEWO_VTSI_AMD_HANG_UP_ON_IVR). With the default the bot greets the IVR. Applies under HANG_UP and LEAVE_VOICE_MESSAGE (no voice message is left)

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: false; deployment setting ONDEWO_VTSI_AMD_HANG_UP_ON_CALL_SCREENING). With the default the bot greets the assistant, which may then put the call through to the person. Applies under HANG_UP and LEAVE_VOICE_MESSAGE (no voice message is left)

voice_message_intent string optional

Optional: Name of the NLU intent whose fulfillment is the voice message under LEAVE_VOICE_MESSAGE; it is triggered once per call (default: the welcome intent of the NLU project; 1 - 200 characters and not blank when set, otherwise refused with INVALID_ARGUMENT; deployment setting ONDEWO_VTSI_AMD_VOICE_MESSAGE_INTENT). Ignored under the other actions. Example: an intent i.voice_message whose response is "Hello, this is ... Please call us back at ..."

voice_message_max_beep_wait_ms int32 optional

Optional: Under LEAVE_VOICE_MESSAGE, the longest time in milliseconds after the verdict to wait for the beep, or for the machine greeting to end in silence, before the voice message is spoken anyway (default: 10000, valid range: 0 - 30000; deployment setting ONDEWO_VTSI_AMD_VOICE_MESSAGE_MAX_BEEP_WAIT_MS). 0 speaks it immediately at the verdict, possibly over the rest of the greeting. Ignored under the other actions

voice_message_timeout_ms int32 optional

Optional: Under LEAVE_VOICE_MESSAGE, the time in milliseconds after the verdict at which the call is hung up at the latest, also when the voice message has not finished playing (default: 30000, valid range: 5000 - 120000; deployment setting ONDEWO_VTSI_AMD_VOICE_MESSAGE_TIMEOUT_MS). It bounds the wait for the beep plus the message itself, so choose it above voice_message_max_beep_wait_ms plus the length of the message, or the message is cut off. Ignored under the other actions

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 additional_machine_phrases and additional_human_phrases (default: true; deployment setting ONDEWO_VTSI_AMD_KEYWORD_DETECTION_ACTIVE). With false the call is decided on tones and the rhythm of speech and silence alone: a mailbox phrase can no longer lead to a hangup, and the two phrase lists have no effect

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: true; deployment setting ONDEWO_VTSI_AMD_CADENCE_DETECTION_ACTIVE). With false the call is decided on tones and phrases alone; max_human_greeting_ms, greeting_end_silence_ms and initial_silence_ms then no longer decide the verdict, and a silent line ends as UNKNOWN at max_decision_time_ms instead of NO_SPEECH. The start of a voice message is still timed

AudioObjectStorageConfig

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.

FieldTypeLabelDescription
activate_audio_object_storage bool optional

Optional: Master switch of the audio storage of the call. Unset or false: no audio of the call is stored, whatever the per-side flags say

audio_object_storage_services_activation_config AudioObjectStorageServicesActivationConfig

Which side of the conversation is stored while activate_audio_object_storage is true

AudioObjectStorageServicesActivationConfig

Which side of the conversation is stored. Only takes effect while AudioObjectStorageConfig.activate_audio_object_storage is true; every unset flag counts as false

FieldTypeLabelDescription
activate_s2t bool optional

Optional: Store the caller's audio (the audio sent to speech-to-text), one file per final transcription. Unset: false

activate_t2s bool optional

Optional: Store the bot's audio (the synthesized answers as they were played). Unset: false

BaseServiceConfig

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.

FieldTypeLabelDescription
host string

Host name or IP address of the service, as the call reaches it, e.g. s2t.example.com. Required: an empty host (or one of only whitespace) is refused with INVALID_ARGUMENT.

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 INVALID_ARGUMENT.

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 (\n) newlines. Used for the S2T, NLU and T2S services: the connection to them is always TLS, and the server certificate and host name are always verified; there is no plaintext mode.

Empty (the default): the server is verified against the deployment's CA bundle, ONDEWO_VTSI_CALL_UPSTREAM_CLIENT_CA_FILE. Set: it is verified against these certificates instead.

Only -----BEGIN CERTIFICATE----- blocks are accepted. A value carrying a private key, a file path, any other PEM block type or a certificate that cannot be parsed is refused with INVALID_ARGUMENT: the value is stored with the call and handed to the call, so it must never hold secret material.

BotTransferConfig

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"

FieldTypeLabelDescription
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). 0 is the blind transfer: the bot leaves the call at once without waiting, so a rejection cannot be noticed and failed_action does not apply to it

failed_action string optional

Optional: What happens when a transfer the bot started fails while the call is still up (default: continue). continue: the bot keeps the call and the conversation goes on. hangup: the call is ended. exit: the call is transferred once more, to the exit extension of the project's phone system, and ended if that fails too; while the first transfer is still waiting for its answer, the call is kept instead. The same action applies when a bot transfer that was handed to a warm intro is not taken up in time. Case-insensitive; any other value is refused with INVALID_ARGUMENT

warm_transfer_outcome_commit_timeout_seconds float optional

Optional: Only used with warm intros (WarmTransferConfig). After a warm transfer failed (the target declined or could not be reached, or a bot transfer handed to a warm intro was not taken up), the bot tells the caller. An NLU that answers warm transfer outcomes writes what the bot says; this is how many seconds the bot waits for that answer, and for a moment in which nobody speaks, before it speaks the notice's fallback text instead (WarmTransferConfig.caller_declined_message / caller_unreachable_message, else a built-in text) (default: 5.0, valid range: above 0 - 60). The notice is never dropped by this timeout

CommonServicesConfig

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.

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.)

FieldTypeLabelDescription
s2t_vtsi_config S2tVtsiConfig

Speech-to-text configuration (see S2tVtsiConfig). Required

nlu_vtsi_config NluVtsiConfig

NLU configuration: the agent, its login and its language (see NluVtsiConfig). Required

t2s_vtsi_config T2sVtsiConfig

Text-to-speech configuration (see T2sVtsiConfig). Required

csi_vtsi_config CsiVtsiConfig

Speech-to-speech service (CSI) configuration: callbacks, message broker, audio storage and preemptive generation (see CsiVtsiConfig)

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 VoiceInteractionConfig). Unset: the call runs with the deployment's settings and the built-in defaults of every one of them

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 SipVtsiConfig). Unset, or an unset field: the container's default applies

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 INVALID_ARGUMENT. It can only shorten a call: the deployment's own cap on callers (ONDEWO_VTSI_CALLER_MAX_CALL_DURATION_SEC, default 1200 s, counted from the deployment of the caller; for a pooled caller with that cap off, ONDEWO_VTSI_CALLER_POOLED_MAX_CALL_DURATION_SEC) still applies, and whichever is reached first ends the call. Unset: only the deployment's cap applies, and an inbound call of a listener is not capped. Example: max_call_duration_seconds=300 ends a survey call after five minutes

Credentials

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.

FieldTypeLabelDescription
account_name string

Account name the call logs in with, usually an email address, e.g. technical-user@example.com

password string

Password of account_name. Stored with the call and never logged

CsiPreemptiveGenerationConfig

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.

FieldTypeLabelDescription
enabled bool optional

Optional: Enable preemptive generation on this call. Precedence: this field, else the deprecated ResponseTimingConfig.preemptive_generation_enabled, else the deployment-wide setting ONDEWO_VTSI_CSI_PREEMPTIVE_GENERATION_ACTIVE (default true). Set together with the deprecated field to a different value, the request is refused with INVALID_ARGUMENT; the same value in both is accepted

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 T2sPreemptiveSynthesisConfig.chunked is off the wait is for the whole draft; while it is on, only for the draft's first chunk. Only matters while preemptive generation is on

CsiVtsiConfig

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.

FieldTypeLabelDescription
s2t_vtsi_callbacks S2tVtsiCallbacks

Speech-to-text callbacks. Accepted and validated, but they have no effect: see S2tVtsiCallbacks

nlu_vtsi_callbacks NluVtsiCallbacks

NLU callbacks. Accepted and validated, but they have no effect: see NluVtsiCallbacks

t2s_vtsi_callbacks T2sVtsiCallbacks

Text-to-speech callbacks. Accepted and validated, but they have no effect: see T2sVtsiCallbacks

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 AudioObjectStorageConfig

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 MessageBrokerConfig

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 service (ondewo_nlu, ondewo_s2t, ondewo_t2s or ondewo_sip), a method and its parameters; with this switch on, the bot performs that action in the call when the intent answers (e.g. a SIP action of the call or a change of the speech settings). false: payloads are ignored and the answers are only spoken. Control messages that arrive over RabbitMQ are not governed by this switch but by message_broker_config.

Unset is NOT the same as false: unset keeps the deployment-wide setting ONDEWO_VTSI_CSI_SERVER_ACTIVATE_CONTROL_MESSAGES (default true), while false switches control messages off for this call.

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 CsiPreemptiveGenerationConfig

DictationConfig

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 }

FieldTypeLabelDescription
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), and a turn that asks for none is never held. True: the generic rule (hold_generic_max_seconds) holds turns without an expected value too. False: the master switch is off, and nothing else in this message holds a turn. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_HOLD_ACTIVE

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 hold_enabled true only the generic rule holds). The slot comes from a slot-filling prompt for a required parameter, a read-back intent, or an AI Team's expected input; every answer replaces it, so a slot never leaks into a later turn. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_EXPECTED_INPUT_ACTIVE

read_back_from_bot_text_enabled bool optional

Optional: With expected_input_enabled, take a bot answer that reads a complete value back and asks for confirmation ("Ich wiederhole: 0664 1234567. Ist das korrekt?") as asking to confirm that value, also when the NLU answer carries no read-back marker (default: false). After such a read-back (from the marker or from this text rule) and while the hold is on, a lone "nein" is held up to the confirm_value cap for the correction that usually follows ("Nein, die letzte ist sieben"), and a lone "ja" for 0.6 s. Recognises digit, phone, card, IBAN, BIC and social security numbers read back in German; dates, times, addresses and e-mail addresses are not recognised. No deployment setting exists for it

hold_generic_max_seconds float optional

Optional: Seconds the generic rule (no expected value; only with hold_enabled true) holds at most, and the longest hold of an expected value that is only weakly complete (e.g. an address with only the street line, a date with only day and month) (valid range: 0 - 2; default: 1.5; 0 switches both off). The generic rule holds on a guess, which is why its ceiling is lower than a category's. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_HOLD_GENERIC_MAX_SECONDS

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: digits 2.5, phone 2.5, card 3.0, expiry_cvc 2.0, iban 3.5, bic 2.5, svnr 2.5, address 3.0, date 2.0, time 1.5, email 2.5 and confirm_value 2.5 (the correction after a read-back). The rule without an expected value is not a category: it is set with hold_generic_max_seconds. An unknown category, generic included, is refused with INVALID_ARGUMENT. The map is ONE field: a non-empty map replaces the whole table of the deployment setting ONDEWO_VTSI_CSI_DICTATION_HOLD_MAX_SECONDS, so a category not listed here keeps its default above, not a cap the deployment setting chose; an empty map keeps the deployment setting

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: ONDEWO_VTSI_CSI_DICTATION_HOLD_INVALID_CHECKSUM_SECONDS

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 hold_enabled false), expected_input_enabled and partial transcriptions; without an expected value it does nothing. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_EARLY_COMMIT_ON_COMPLETE_VALUE

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 expected_input_enabled (not hold_enabled); after the turn the minimum silence is set back to s2t_slot_min_duration_off_restore_seconds. It only takes effect when the call's speech-to-text configuration carries a pyannote block (supplied in S2tVtsiConfig.s2t_transcribe_request_config, or created from TurnDetectionConfig.min_endpointing_delay_seconds on a deployment that supports creating it) and the restore value is known (set, or a minimum silence in that block), and it needs a speech-to-text service that accepts the change mid-call. A value between 0 and 0.5 is refused with INVALID_ARGUMENT. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_S2T_SLOT_MIN_DURATION_OFF_SECONDS

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, s2t_slot_min_duration_off_seconds stays off. Deployment setting: ONDEWO_VTSI_CSI_DICTATION_S2T_SLOT_MIN_DURATION_OFF_RESTORE_SECONDS

DictationConfig.HoldMaxSecondsByCategoryEntry

FieldTypeLabelDescription
key string

value float

DtmfConfig

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" }

FieldTypeLabelDescription
enabled bool optional

Optional: Whether the caller's keys are used at all (default: true; deployment setting ONDEWO_VTSI_CSI_DTMF_ACTIVE and ONDEWO_VTSI_SIP_DTMF_FORWARD_ACTIVE). false ignores every key of the call: no key interrupts the bot and no key turn reaches the NLU, also when the bot declared a menu or an entry. true switches keys on for this call even when the deployment switched them off. The other fields have no effect while this is false

barge_in bool optional

Optional: Whether a key pressed while the bot speaks stops the bot at once, like a spoken interruption (default: true; deployment setting ONDEWO_VTSI_CSI_DTMF_BARGE_IN_ACTIVE).

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 (InterruptionHandlingConfig): a key is the caller's deliberate choice. A key entry interrupts at its first key, a menu key when it is taken. Only a key the bot asked for interrupts; a key that is ignored (see undeclared_policy) never does.

false lets the bot finish its sentence first; the key is still collected and sent as the caller's next turn.

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 ONDEWO_VTSI_CSI_DTMF_INTER_DIGIT_TIMEOUT_MS). A value outside the range is refused with INVALID_ARGUMENT.

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 timeout_ms=N of ondewo-voice:dtmf-digits wins. An entry ended by this timeout with fewer keys than the declared minimum is sent as [DTMF:INVALID].

Example: 4000 gives callers who type a long customer number slowly more time between two keys; a smaller value answers sooner after the last key.

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; deployment setting ONDEWO_VTSI_CSI_DTMF_UNDECLARED_POLICY). The values, written exactly in upper case:

  • DROP: the key is ignored; it does not interrupt the bot and starts no turn, so a project that declares no keys sees no change
  • COMMIT_SINGLE: every such key is taken as a one-key menu choice: it interrupts a speaking bot (when barge_in is on) and is sent to the NLU as its own turn, e.g. [DTMF:1]
Any other value (also 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 INVALID_ARGUMENT. 0 switches this guard off. It does not change that speech is ignored while a key entry is still open, nor while an entry declared with the tag option nospeech is asked for

text_template string optional

Optional: The text a key choice or key entry is sent to the NLU as, with {digits} standing for the keys (default: [DTMF:{digits}]; no deployment setting). Example: Taste {digits} sends the entry 4711 as Taste 4711 and an invalid entry as Taste INVALID.

Rules: 1 - 64 characters, no control character; {digits} must occur exactly once and no other placeholder may occur (write a literal brace twice: {{ / }}, but not around the word digits). Otherwise refused with INVALID_ARGUMENT.

Change it only together with the training phrases of the NLU agent: the ONDEWO NLU recognises a key turn by the default [DTMF:...] form only (it passes that form to intent detection unchanged, matches [DTMF:ANY] training phrases and stores masked entries masked). With another template the turn is handled like ordinary text.

InterruptionHandlingConfig

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.

FieldTypeLabelDescription
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 DtmfConfig.barge_in, on by default; set it to false as well for a disclaimer that must be heard in full). The speech-related fields of this message only matter when this is true. Exceptions: transcribe_on_disabled_interruptions and cancel_on_speech_while_thinking, plus interruption_fade_out_ms, t2s_cancel_on_barge_in, nlu_turn_control_enabled, heard_report_enabled, heard_text_alignment_enabled and ai_teams_cancel_pending_on_interrupt, which also apply when a key stops the bot, when an operator mutes it and when a turn is replaced

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 SEMANTIC_MODEL and AUDIO_MODEL: a FINAL transcription with at least one word always interrupts, so a short "no" still stops the bot, and with VAD any recognised speech interrupts. Higher values keep the bot talking over short remarks until the caller has said more

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 decides (default: 2.0, valid: 0 or more). Each partial transcription that changes what the caller said re-arms the window. The window lasts at most twice this value after the interruption, and never more than 9 s (a window of 9 s or more is not extended). The paused rest of an answer is kept for at most 10 s, so a longer window cannot resume it

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 interruption_fade_out_ms is (default: true). False: the rest of the answer is dropped

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 enabled is false

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 ONDEWO_VTSI_INTERRUPTION_FADE_OUT_MS

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 enabled is set; has no effect with ResponseTimingConfig.streaming_enabled=false. The greeting and DTMF key entries are never replaced. An NLU that supports turn control is told to cancel the replaced turn (nlu_turn_control_enabled); another NLU still finishes it, but its answer is not spoken. A set value wins over the deployment's ONDEWO_VTSI_CSI_CANCEL_ON_SPEECH_WHILE_THINKING

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 cancel_on_speech_while_thinking, by an operator mute or takeover, or by the end of the call while its answer is still being generated (default: unset = the NLU deployment's own setting, which is on unless its operator turned it off). True or false decides it for this call alone, also against the deployment's setting.

Only tools, agents or members whose team document declares async.on_interrupt: cancel_pending are ever cancelled (one declaring keep never is), only while the task is still pending (a task already running is delivered as usual), and only when the caller did not hear the dispatch acknowledged. Needs an NLU with turn control, nlu_turn_control_enabled and the call-length NLU request (ResponseTimingConfig.nlu_call_stream_enabled); without them nothing is cancelled and this value never reaches the NLU. Example: false keeps a callback the caller asked for even when they talked over the bot's confirmation

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 resume_after_false_interruption is false. In that case the answer's speech synthesis is cancelled at once, and a call action the answer carries (e.g. a transfer or hangup the answer would have triggered) is dropped. While a false interruption may still resume the answer, a further message of it is held until that is decided instead of starting. False restores the previous behaviour: the interrupted answer is synthesised to its end unheard, nothing is held and its call actions still run. A set value wins over the deployment's ONDEWO_VTSI_CSI_T2S_CANCEL_ON_BARGE_IN

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 cancel_on_speech_while_thinking, and a turn still being generated when the call ends. The NLU then stops generating it and stores it as an interrupted turn. An NLU without turn control is sent nothing either way. An operator mute or takeover through call control also tells the NLU that the current turn was cut. Turn control rides the call-length NLU request, so it needs ResponseTimingConfig.streaming_enabled and nlu_call_stream_enabled (both true by default); without them nothing is sent. heard_report_enabled and ai_teams_cancel_pending_on_interrupt depend on it. A set value wins over the deployment's ONDEWO_VTSI_CSI_NLU_TURN_CONTROL_ACTIVE

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 nlu_turn_control_enabled and the call-length NLU request (ResponseTimingConfig.nlu_call_stream_enabled). A set value wins over the deployment's ONDEWO_VTSI_CSI_HEARD_REPORT_ACTIVE

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 (heard_report_enabled) more precise and only matters with it; with a text-to-speech service that returns no timings nothing changes. A set value wins over the deployment's ONDEWO_VTSI_CSI_HEARD_TEXT_ALIGNMENT_ACTIVE

MessageBrokerConfig

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.

FieldTypeLabelDescription
activate_message_broker bool optional

Optional: Master switch of the message broker for the call. Unset or false: nothing is published, no control message is received over RabbitMQ, and rabbit_mq_config is not validated

message_broker_services_activation_config MessageBrokerServicesActivationConfig

Which services publish their events while activate_message_broker is true

rabbit_mq_config RabbitMqConfig

Address and credentials of the RabbitMQ server. Required while activate_message_broker is true

MessageBrokerServicesActivationConfig

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

FieldTypeLabelDescription
activate_s2t bool optional

Optional: Publish every final transcription of the caller. Unset: false

activate_nlu bool optional

Optional: Publish every NLU answer. Unset: false

activate_t2s bool optional

Optional: Publish every synthesized answer. Unset: false

activate_sip bool optional

Optional: Publish the SIP information of the call with every NLU answer. Unset: false

NluPreemptiveGenerationConfig

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.

FieldTypeLabelDescription
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 max_drafts_per_turn at once. Unset: 0.5. Valid range: 0 - 5; 0 = no minimum interval

NluVtsiCallbacks

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.

FieldTypeLabelDescription
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)

NluVtsiConfig

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).

FieldTypeLabelDescription
nlu_base_config BaseServiceConfig

Required: Address of the NLU gRPC server (host, port and the certificate its server certificate chains to). See BaseServiceConfig for what is refused

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 (SipBaseConfig.sip_sim_version) may still use it. Use credentials instead

agent_name string

Required: Resource name of the NLU agent that answers the caller. An empty or unknown agent is refused with INVALID_ARGUMENT. Format:

projects/<uuid>/agent

language_code string

Language of the NLU requests of the call: an ISO 639-1 code (e.g. de, en) or a language tag the agent supports (e.g. de-DE). It is sent with every NLU request of the call and also selects the language of the default failure_apology_message. VTSI does not check it against the agent. An empty value is accepted with a warning, but the call then asks the NLU in no language, the agent cannot answer and the bot stays silent: always set a language the agent supports

initial_intent string

Display name of the intent that opens the conversation, e.g. Default Welcome Intent. When the call is connected the bot triggers this intent before the caller says anything and speaks its answer (the greeting). Empty: the bot says nothing first and waits for the caller to speak. With answering machine detection active the intent is triggered only once the detector decided to greet

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 name (the context id) is used: the context is created in the session of the call. A context without a name is skipped. Example: a context named c-customer with the parameter customer_id lets the agent greet a known customer by the data behind that id

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: PLATFORM_UNSPECIFIED, the messages without a platform. Set it to the platform the agent's voice answers are written for. A platform the agent's answers carry no text message for leaves the bot silent, so check the agent before changing it

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 CsiVtsiConfig.preemptive_generation_config.enabled

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. false: every filler is dropped and only the answers are spoken. Only fillers the NLU marks as fillers are affected; agents that are not AI Teams agents send none. Default: true. There is no deployment-wide setting for it; a value set here wins for this call

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 language_code, German for de / de-* and English for every other language ("Sorry, I didn't quite catch that. Could you please repeat that?"). An empty text switches the apology off: the failed turn then stays unanswered. Leading and trailing spaces are removed. At most 500 characters and no control characters (a line break included); otherwise refused with INVALID_ARGUMENT. There is no deployment-wide setting for it; a value set here wins for this call

session_id_from_sip_context bool optional

Optional: Take the call's SIP context into the NLU session. true (default): the NLU session id of the call is derived from the SIP header X-ondewo-phonesystem-call-id when the call carries it (an @ becomes _at_), so the conversation can be found by the phone system's own call id; and the session gets the context c-sip-context, whose parameters are the SIP account (account_name), the called party (callee_id) and the SIP headers of the call, so the agent can read e.g. a customer header the dialer added. false: the session id is the one generated for the call, no c-sip-context is created, and an agent that reads SIP headers from that context finds nothing. There is no deployment-wide setting for it; a value set here wins

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 stale, because a result the caller asked for long ago is confusing once the conversation has moved on. Unit: seconds. Default: 30. Valid range: 0 - 3600; 0 switches the age limit off (every held push is spoken, subject to ai_teams_push_max_spoken). Pushes only reach the call with ResponseTimingConfig.nlu_call_stream_enabled; agents that are not AI Teams agents send none. A set value wins over the deployment's ONDEWO_VTSI_CSI_NLU_PUSH_MAX_AGE_SECONDS

ai_teams_push_max_spoken int32 optional

Optional: Number of held pushes (see ai_teams_push_max_age_seconds) spoken at most when the floor becomes free: of the pushes still held after the age limit, only the NEWEST ones up to this number are spoken, oldest first; every older one is dropped without being spoken and reported as dropped with the reason coalesced. Example: three tool results arrived while the caller was talking; with 2 the caller hears the two latest. Default: 2. Valid range: 0 - 16; 0 switches the limit off (every held push is spoken). A set value wins over the deployment's ONDEWO_VTSI_CSI_NLU_PUSH_MAX_SPOKEN

RabbitMqConfig

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

FieldTypeLabelDescription
host string

Host name or IP address of the RabbitMQ server. Required while the broker is activated; empty is INVALID_ARGUMENT

port int32

AMQP port of the RabbitMQ server (typically 5672), 1 to 65535; used for the messages and for the connectivity check at start. 0 or below is INVALID_ARGUMENT

port_2 int32

Management (HTTP API) port of the RabbitMQ server (typically 15672), 1 to 65535. Required while the broker is activated (0 or below is INVALID_ARGUMENT), but currently not used: neither the connectivity check nor the call connects to it

user string

User name on the RabbitMQ server. Required while the broker is activated; empty is INVALID_ARGUMENT

password string

Password of user. Required while the broker is activated; empty is INVALID_ARGUMENT. Never logged, and can be withheld when the call configuration is read back

ResponseTimingConfig

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.

FieldTypeLabelDescription
turn_timeout_seconds float optional

Optional: Seconds of caller silence after which the bot re-engages the caller by triggering turn_timeout_intent (default: 20.0, valid range: 1.0 - 30.0). Has no effect unless turn_timeout_intent is set. As long as the caller stays silent, the re-engagement repeats every turn_timeout_seconds. Example: turn_timeout_seconds=8 with turn_timeout_intent="i.still.there" plays the answer of the intent i.still.there (e.g. "Are you still there?") after 8 s of silence

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 INVALID_ARGUMENT. The hangup happens at once, without a closing message. Every bot utterance restarts this window, a turn-timeout re-engagement included: with turn_timeout_intent set, the call only ends on silence when this value is below turn_timeout_seconds. Example: silence_end_call_timeout_seconds=30 without a turn_timeout_intent ends a call after 30 s in which neither the caller nor the bot said anything

soft_timeout_config SoftTimeoutConfig

Optional: Filler messages the bot speaks while an answer takes long to prepare (default: off). See SoftTimeoutConfig

preemptive_generation_enabled bool optional

Optional, DEPRECATED: use CsiVtsiConfig.preemptive_generation_config.enabled, which does the same. Ask the NLU for the answer of a stable partial transcription before the caller finished speaking, so that a matching answer is ready sooner (default: the deployment's ONDEWO_VTSI_CSI_PREEMPTIVE_GENERATION_ACTIVE, which is true unless changed). Still honoured when it is set alone; set together with CsiVtsiConfig.preemptive_generation_config.enabled to the same value it is accepted, to a different value the request is refused with INVALID_ARGUMENT

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. false waits for the whole synthesis of every answer. Applies to the answers of caller turns while streaming_enabled is on (its default); the opening message of the call and the turn-timeout re-engagement are always synthesized whole

streaming_enabled bool optional

Optional: Ask the NLU for each answer with its streaming request instead of the unary one (default: the deployment's ONDEWO_VTSI_CSI_STREAMING_ACTIVE, and true when that is not set). false asks every caller turn with the unary request, and the caller is not transcribed while an answer is being prepared, so speech in that time is lost. It also turns off nlu_call_stream_enabled (and with it turn control, heard reports and results the NLU delivers on its own), the chunked playback of answers (t2s_chunked_streaming_enabled) and InterruptionHandlingConfig.cancel_on_speech_while_thinking

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 ONDEWO_VTSI_CSI_NLU_CALL_STREAM_ACTIVE, and true when that is not set). Only takes effect while streaming_enabled is on. It is the only way an NLU can deliver a result on its own, e.g. the later result of an AI Teams tool that ran in the background: with false such results never reach the call

turn_timeout_intent string optional

Optional: Display name of the NLU intent the bot triggers to re-engage a silent caller after turn_timeout_seconds; the bot speaks the answer of that intent (default: none, i.e. silence never triggers a re-engagement). Name an intent of the NLU agent of the call. 1 - 256 characters, not blank, no control characters; any other value is refused with INVALID_ARGUMENT. Example: "i.still.there"

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 INVALID_ARGUMENT

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_enabled); past it the turn is treated as a failed NLU request, i.e. the bot speaks NluVtsiConfig.failure_apology_message (default: 120, valid range: 5 - 600). A lower value keeps a caller whose NLU hangs from waiting in silence for two minutes, but cuts off an agent that legitimately thinks longer. Only matters with streaming_enabled and nlu_call_stream_enabled on; the per-turn request has its own deadline. There is no deployment-wide setting for it; a value set here wins

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 streaming_enabled and nlu_call_stream_enabled on. There is no deployment-wide setting for it; a value set here wins

S2tVtsiCallbacks

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.

FieldTypeLabelDescription
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)

S2tVtsiConfig

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.

FieldTypeLabelDescription
s2t_base_config BaseServiceConfig

Address and server trust of the S2T service (see BaseServiceConfig). Required

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. s2t_pipeline_id is required: an empty one is refused with INVALID_ARGUMENT, and one that does not exist or is not active refuses the request.

VTSI adds what the call's VoiceInteractionConfig needs and never overwrites a value set here: for example, with interruptions enabled, preemptive generation enabled or a TurnDetectionConfig present, partial (not final) transcripts and the start-of-speech signal are requested unless this config already says otherwise. TurnDetectionConfig.min_endpointing_delay_seconds is applied through the pyannote block of this config. Supply a pyannote block when you set it: without one the delay is applied only where the deployment supports creating the block, and is otherwise dropped with a warning in the server log.

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 (the default when unset): the call is ended.
  • human_handover: a handover to a human agent is requested. This trigger carries no transfer target, so the call currently ends as with hangup.
  • none: nothing is done; the call stays up, but nothing the caller says is transcribed or answered any more.
Case-insensitive, e.g. HANGUP is accepted; any other value is refused with INVALID_ARGUMENT. There is no deployment-wide setting for it: unset always means hangup.

SipBaseConfig

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.

FieldTypeLabelDescription
sip_sim_version string

Optional: Tag of the SIP container image the call runs in, e.g. a semantic version (5.1.0, 1.1.0-pre-release), a moving tag (latest, develop) or a build tag. Empty (the default): the deployment's ONDEWO_VTSI_DEFAULT_SIP_IMAGE_TAG is filled in and stored with the call. A valid tag is up to 128 letters, digits, ., _ or -, starting with a letter, digit or _; anything else (a /, a :, whitespace, a leading . or -) is refused with INVALID_ARGUMENT. A host that already has the image runs its copy at once and refreshes it in the background, so after a moving tag was re-pointed a call may still run the previous image. Pin a version to know exactly which image a call ran. Part of the configuration a pooled persistent caller is matched by.

SipCallerConfig

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.

FieldTypeLabelDescription
sip_base_config SipBaseConfig

SIP container image of the call (see SipBaseConfig)

callee_id string

The callee to dial: a phone number, e.g. +4365012345678, or a SIP / VoIP id, e.g. ondewo0001@ondewo.com or a dialplan extension of the project's Asterisk. Required, at most 2048 characters. A value with no letter and no @ is a phone number and must match

^(?:(\+|00)\d{1,4})?\d{9,20}$
(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. {"X-ondewo-phonesystem-call-id": "4711"}. At most 64 entries, otherwise INVALID_ARGUMENT. Keys are sent as SIP header names, so they should be valid header names (by convention X- headers). X-ondewo-vtsi-caller-call-id is reserved: on a pooled persistent caller VTSI replaces it with the id of the call. VTSI does not restrict the other keys; a header the SIP stack or the Asterisk cannot send is dropped by them. Unlike TransferCallRequest.headers, which only takes X-ondewo-* keys because it is delivered through the dialplan, these are sent by the caller's own SIP stack. Updatable on a scheduled caller with UpdateScheduledCaller.

SipCallerConfig.SipHeadersEntry

FieldTypeLabelDescription
key string

value string

SipVtsiConfig

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.

FieldTypeLabelDescription
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 OUTGOING_CALL_INITIATED with no SIP session behind it before the call is failed and the caller is made ready for its next call. It has no effect on listeners or on callers that are not pooled. Unit: seconds. Default: 45. Valid range: above 30 up to 600 (30 itself is refused): it must stay above the 30 s a lookup of the callee's address may take, or a slow but working dial would be cut short.

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 ONDEWO_VTSI_SIP_REGISTER_INTERVAL_S; unset, that setting applies when the operator set it above 0, else the default.

call_audio_stream_max_concurrent uint32 optional

Optional: Live call audio streams (StreamCallAudio, ListenCallAudio) the call admits at the same time; at most one of them may TALK. A stream beyond the limit is refused with RESOURCE_EXHAUSTED. The deployment's own limit (ONDEWO_VTSI_CALL_AUDIO_STREAM_MAX_CONCURRENT) applies as well. Default: 2. Valid range: 1 - 2.

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 CALL_AUDIO_END_REASON_MAX_DURATION. A stream's own max_duration_s can only lower it, and the deployment's limit (ONDEWO_VTSI_CALL_AUDIO_STREAM_MAX_DURATION_S) applies as well. Unit: seconds. Default: 3600. Valid range: 1 - 86400.

SoftTimeoutConfig

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.

FieldTypeLabelDescription
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 INVALID_ARGUMENT. Fillers are only played while this is set. Recommended: 3.0

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 INVALID_ARGUMENT. Write them in the language of the call: when the list is empty, a short built-in filler is used

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 INVALID_ARGUMENT; 0 plays no filler at all). With a value above 1, the next filler follows about timeout_seconds after the previous one while the answer is still not ready

T2sPreemptiveSynthesisConfig

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).

FieldTypeLabelDescription
enabled bool optional

Optional: Synthesize the answer of a draft already while the caller is still speaking (default: true). true: a matching draft is played at once, without waiting for its speech synthesis. false: drafts only ask the NLU; the answer of a matching draft is synthesized after the final transcription, like a normal answer. This saves the speech synthesis of every draft that is discarded, and gives back the part of the time saving that comes from synthesizing early

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 enabled is true (or unset) and chunked text-to-speech streaming is on (ResponseTimingConfig.t2s_chunked_streaming_enabled, true by default); otherwise it is ignored. Example: enabled=true and chunked=true give the shortest pause after the caller finished speaking for a long answer

T2sVtsiCallbacks

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.

FieldTypeLabelDescription
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)

T2sVtsiConfig

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).

FieldTypeLabelDescription
t2s_base_config BaseServiceConfig

Host, port and trust anchor of the text-to-speech service the call uses. Required; see BaseServiceConfig for what is refused

t2s_request_config ondewo.t2s.RequestConfig

Request configuration sent with the speech synthesis of the bot's utterances. t2s_pipeline_id is required and selects the text-to-speech pipeline, i.e. the voice the bot speaks with; the other fields (e.g. length_scale, the time stretching of the speech) are optional and keep the pipeline's defaults when unset. Example: t2s_pipeline_id="my-german-voice" lets the bot speak with that pipeline

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 T2sPreemptiveSynthesisConfig. Only matters while preemptive generation is on (CsiVtsiConfig.preemptive_generation_config.enabled)

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):

  • call (the default when unset): everything synthesized during a call is dropped when the call ends. Audio synthesized when the speech-to-speech service starts (the greeting, the answers of static intents, fillers) is kept, so the next call still starts without a synthesis wait.
  • process: nothing is dropped; an utterance repeated in a later call served by the same container is not synthesized again. The audio of one caller (e.g. a name or an amount the bot read back) then stays in memory while later callers of a listener are served. The audio is reused only for the identical request, so it is never played to another caller unless the bot says the same text.
Any other value is refused with INVALID_ARGUMENT. There is no deployment-wide setting for it; a value set here wins

TurnDetectionConfig

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 } }

FieldTypeLabelDescription
mode TurnDetectionConfig.TurnDetectionMode

How the end of the caller's turn is detected (see TurnDetectionMode). Default: TURN_DETECTION_MODE_UNSPECIFIED

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 turn_eagerness (e.g. 1.0 with PATIENT becomes 1.7 s, clamped to 10). Unset keeps the minimum silence of the call's speech-to-text pipeline. It is delivered only where the call's speech-to-text configuration can carry it: when S2tVtsiConfig.s2t_transcribe_request_config contains a pyannote block, or when the deployment declares a pyannote speech-to-text pipeline (ONDEWO_VTSI_S2T_PYANNOTE_PARTIAL_BLOCK_SUPPORTED=True); otherwise the value is not applied and the VTSI server logs a warning naming the call. A larger value lets a hesitant caller pause longer, at the cost of a longer wait before every answer. When both delays are set it must not be larger than max_endpointing_delay_seconds; min > max, or a value outside the range, is refused with INVALID_ARGUMENT

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). Default: 0 = off, the turn always waits for the final transcription. The risk is answering a caller who only paused longer than this mid-sentence; when the final transcription then differs, the bot answers again. Use a value above the usual end-of-turn latency, e.g. 3.0. When both delays are set it must be at least min_endpointing_delay_seconds (so 0 together with a minimum above 0 is refused); a value outside the range is refused with INVALID_ARGUMENT

turn_eagerness TurnDetectionConfig.TurnEagerness

How eagerly the bot takes the turn: scales min_endpointing_delay_seconds and max_endpointing_delay_seconds (see TurnEagerness). It only scales delays set in this message: with neither delay set it has no effect. Default: TURN_EAGERNESS_UNSPECIFIED (NORMAL)

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 SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL it is refused with INVALID_ARGUMENT. No length limit is enforced here; the speech-to-text service may refuse a prompt that exceeds its model's context. A value already set in the call's S2tVtsiConfig.s2t_transcribe_request_config wins

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 turn_detection_system_prompt

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 (or unspecified): a value above 0 together with VAD or AUDIO_MODEL, or a value outside the range, is refused with INVALID_ARGUMENT

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: livekit/turn-detector is an end-of-utterance model, a name starting with pipecat-smart-turn the audio Smart Turn model, a name starting with ondewo-s2t-model-de-vad-tsd-ondewo-qwen3 or ondewo-s2t-model-de-fusion-turn-detection one of the ONDEWO German turn detection models, any other name a chat-LLM model. A model or a detector already named in the call's S2tVtsiConfig.s2t_transcribe_request_config wins over this value (it is then applied only when it selects the same kind of model). Unset uses that model, else the deployment's ONDEWO_VTSI_S2T_TURN_DETECTION_MODEL. The model must be served by the deployment: its endpoint is deliberately not configurable per call. Valid: 1 - 256 characters, no whitespace or control characters. Only valid with the mode SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL, or invalid, it is refused with INVALID_ARGUMENT

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 SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL, or outside the range, it is refused with INVALID_ARGUMENT

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 EndOfTurnHoldBand. Only an end-of-utterance model reads it; the other models ignore it. Only valid with the mode SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL, or invalid, it is refused with INVALID_ARGUMENT. Example: bands (0.7, 1.0 s) and (0.9, 0.4 s) hold a turn judged finished with 0.6 for 1.0 s and one with 0.8 for 0.4 s, and commit one with 0.95 at once

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 SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL, or outside the range, it is refused with INVALID_ARGUMENT

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 SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL, or outside the range, it is refused with INVALID_ARGUMENT

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 prompt_logprobs); on any other deployment every turn waits for incomplete_max_silence_seconds, so leave it unset unless the operator confirmed that support. Only an end-of-utterance model reads it. Only valid with the mode SEMANTIC_MODEL (or unspecified): set together with VAD or AUDIO_MODEL it is refused with INVALID_ARGUMENT

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 INVALID_ARGUMENT

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 DictationConfig). Valid with every mode. Unset, and every unset field of it, keeps the deployment setting, else the default (a hold only for a turn whose NLU answer asks for a value)

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 ONDEWO_VTSI_CSI_S2T_EMIT_MS, else 40; a set value wins. A value outside the range is refused with INVALID_ARGUMENT

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, max_endpointing_delay_seconds, the merge window and the dictation hold's early commit all depend on them. Note that a call carrying this message already asks for both in its speech-to-text configuration (see the message comment), so false here does not switch them off; to switch partial transcriptions off, set utterance_detection.transcribe_not_final=false explicitly in S2tVtsiConfig.s2t_transcribe_request_config, which always wins

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. false saves one speech-to-text response per pause; it has no effect while preemptive generation is off

smart_turn_threshold float optional

Optional: End-of-turn probability threshold of the audio-native turn detection of the mode AUDIO_MODEL (valid range: 0 - 1; default: 0.5). The released speech-to-speech service does not run that model yet (see AUDIO_MODEL), so today the value does not change the call. The threshold of the speech-to-text service's turn detection model, the audio Smart Turn model included, is end_of_turn_probability_threshold. A value outside the range is refused with INVALID_ARGUMENT

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 InterruptionHandlingConfig.transcribe_on_disabled_interruptions off), the speech-to-text service can open an utterance right after the audio is unmuted although the caller says nothing, and the bot would answer words nobody said. A final transcription whose speech started within this many seconds after the unmute is dropped when no voiced caller audio arrived since the unmute; a caller who really starts speaking as the bot stops always keeps the turn. It has no effect while the caller's audio is not muted. A value outside the range is refused with INVALID_ARGUMENT

TurnDetectionConfig.EndOfTurnHoldBand

One hold band of an end-of-utterance turn detection model

FieldTypeLabelDescription
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 incomplete_max_silence_seconds when that is set in the same message)

TurnDetectionConfig.EndOfTurnHoldBands

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"

FieldTypeLabelDescription
bands TurnDetectionConfig.EndOfTurnHoldBand repeated

The bands (at most 10, in any order). They are sorted by upper_probability, and the first band whose upper probability is above the end-of-turn probability decides the hold; a probability at or above every band's upper bound is committed without a hold. Empty: no turn is held

VoiceInteractionConfig

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.

FieldTypeLabelDescription
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 TurnDetectionConfig). Unset keeps the defaults

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 InterruptionHandlingConfig). Unset: speech never interrupts the bot; a DTMF key the bot asked for still does unless DtmfConfig.barge_in is false

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 ResponseTimingConfig). Unset keeps the defaults

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 WarmTransferConfig). Unset inherits the project default VtsiProject.warm_transfer_defaults; a TransferCallRequest.warm_transfer_config wins over it for that one transfer

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 TransferCall (see BotTransferConfig). Unset keeps the defaults: wait up to 5 s for the outcome, and keep the call with the bot when the transfer fails

WarmIntroRecord

Audit of one warm intro, in CallTransferRecord.warm_intro. Output only. Holds NO intro text and NO decline reason text.

FieldTypeLabelDescription
intro_id string

Id of the intro: the participant id of the target's leg (the participant_id of the events)

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); false also when decline_reason_question is ""

intro_call_name string

The intro bot's call, labelled {"purpose": "warm_intro"}. Empty when no intro bot answered

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 for what was spoken

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. declined, no-decision, voicemail-suspected, intro-timeout, target-hung-up, busy, no-answer, no-free-listener, prepare-failed; empty on accept. New tokens may be added: treat an unknown one as a failure without a known cause

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 WARM_INTRO_DECISION_ACCEPTED); false there goes with VTSI_EVENT_CALL_WARM_TRANSFER_OUTCOME_NOTICE_UNDELIVERED: the caller may not have been told

intro_started bool

Whether the intro started (an intro bot answered). false with WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO means the target was joined without an intro; cause says why

WarmTransferConfig

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.

FieldTypeLabelDescription
enabled bool optional

Master switch of the warm intro: true turns every WARM transfer on this level into a WARM transfer with an intro. Unset at every level means false: the target is joined without an intro, as before 9.5.0. Only a WARM transfer gets an intro. enabled=true needs ONDEWO_VTSI_WARM_TRANSFER_ENABLED=true in the deployment, else FAILED_PRECONDITION reason=warm-intro-disabled. Set false on a TransferCallRequest to skip the intro for that one transfer while the project or the call enables it

intro_prompt string optional

With WARM_INTRO_TEXT_SOURCE_TEMPLATE: the briefing the target hears after the ready_question, with the placeholders {caller_name}, {callee_name}, and {topic} (what the call's NLU session knows of the caller and the topic; a value that is not known renders empty, an unknown caller as "Ein Anrufer" / "A caller"). {summary} is accepted but always renders empty with a TEMPLATE: only an LLM summary writes one. Unset or empty: the built-in template, (de) "{caller_name} möchte mit Ihnen sprechen. Es geht um {topic}." (without the second sentence when no topic is known). Example: "{caller_name} ruft wegen {topic} an." With WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY (phase B): the instruction to the LLM that writes the briefing from the call so far; unset or empty, a built-in instruction asks for at most two short sentences on who calls and why. The briefing spoken is capped at 600 characters. At most 4000 characters, else INVALID_ARGUMENT

intro_text_source WarmIntroTextSource

How the briefing is produced. WARM_INTRO_TEXT_SOURCE_UNSPECIFIED (default) means WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY when the deployment has enabled phase B, else WARM_INTRO_TEXT_SOURCE_TEMPLATE. An LLM summary that cannot be written (the project has no LLM service, the LLM fails, is too slow or answers nothing) falls back to the built-in template, and WarmIntroRecord.text_fell_back says so. An explicit WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY is phase B: refused with FAILED_PRECONDITION reason=phase-b-not-enabled while the deployment has not enabled phase B

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 {project} (the project's display name). Unset or empty: the NLU agent's text, else the built-in one, (de) "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." (the effective accept_dtmf in place of 1). A configured text should name the accept key itself. At most 1000 characters

confirm_human_before_intro bool optional

Whether the briefing is spoken only after the target confirmed being there, by saying yes or pressing accept_dtmf at the ready_question. Default true: the mailbox guard, so a voicemail that answers never records the briefing; an intro whose ready_question gets no yes ends with WARM_INTRO_DECISION_NO_DECISION (cause voicemail-suspected). false skips the ready_question: the target hears the briefing and the accept_question at once, which is faster but lets a mailbox record the briefing

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 accept_dtmf / decline_dtmf in place of 1 / 2). A configured text should name the keys itself. An answer that is neither yes nor no is asked once more, a second one ends the intro with WARM_INTRO_DECISION_NO_DECISION. At most 1000 characters

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?". "" means: do not ask; the intro bot thanks the target ("Danke, ich richte es aus.") and hangs up, and the caller hears the decline without a reason. Whatever the target says next is the reason (a key press gives none; no answer within decision_timeout_s is a decline without a reason). The reason is relayed to the caller only through the bot's NLU (normalised: SIP markup removed, at most 300 characters, digit runs of 12 or more masked); VTSI never receives it. At most 1000 characters

caller_declined_message string optional

What the caller hears after a decline, placeholders {callee_name} and {reason}. Unset or empty: the NLU agent's text, else the built-in one, (de) "{callee_name} kann das Gespräch gerade nicht übernehmen und lässt ausrichten: {reason}", or "{callee_name} kann das Gespräch gerade nicht übernehmen." when the target gave no reason. A configured text that names {reason} is used only when a reason was given (else the built-in text without a reason is spoken); one without {reason} is always used. An unknown target is named "Die gewünschte Person" / "The person you asked for". At most 1000 characters

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 WARM_INTRO_UNAVAILABLE_POLICY_RETURN_TO_CALLER. Placeholder {callee_name}. Unset or empty: the NLU agent's text, else the built-in one, (de) "{callee_name} ist gerade nicht erreichbar.", (en) "{callee_name} cannot be reached right now." At most 1000 characters

accept_dtmf string optional

The key the target presses to accept, which also answers the ready_question. Default 1; exactly one of 0-9 * #, else INVALID_ARGUMENT reason=invalid-dtmf-key. A key is decisive at once; speech ("ja", "yes", the NLU agent's extra phrases) works as well

decline_dtmf string optional

The key the target presses to decline. Default 2; exactly one of 0-9 * # and different from the effective accept_dtmf: equal keys on one level, or after inheritance when the transfer starts (e.g. the project sets accept_dtmf="2" and nothing overrides the default decline_dtmf), are refused with INVALID_ARGUMENT reason=dtmf-keys-equal

decision_timeout_s uint32 optional

Seconds the target has to answer each question (ready_question, accept_question, decline_reason_question), counted from the moment the question is asked plus the time it takes to speak. No answer in time ends the intro: WARM_INTRO_DECISION_NO_DECISION at the first two questions, a decline without a reason at the third. Default 20, valid range 5 - 60

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 WARM_INTRO_DECISION_NO_DECISION (cause intro-timeout). Default 90, valid range 30 - 300. The caller waits at most the ring time plus this

callee_display_name string optional

Who the target is, spoken as {callee_name} to the target and to the caller, e.g. "Frau Berger, Buchhaltung". Unset or empty: the target softphone account's display_name, then the target's entry in VtsiProject.transfer_target_directory, else no name (the texts then use a name-less wording). At most 128 characters. Meaningful per transfer only: set it on the TransferCallRequest, or let the directory name every target

callee_description string optional

The target's role and context, handed to the briefing (LLM_SUMMARY). Unset or empty: the target softphone account's description, then the target's entry in VtsiProject.transfer_target_directory. At most 512 characters. Meaningful per transfer only

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). WARM_INTRO_UNAVAILABLE_POLICY_UNSPECIFIED (default) means WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO; choose WARM_INTRO_UNAVAILABLE_POLICY_RETURN_TO_CALLER when a target must never be joined unannounced

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 enabled is effectively true and ONDEWO_VTSI_CALL_CONTROL_KEY is set; any other bot transfer is sent exactly as the bot asked. Default false. Valid on the call and project levels; set on a TransferCallRequest it is refused with INVALID_ARGUMENT reason=field-not-valid-on-level

caller_hold_message string optional

Spoken to the caller while the intro runs, after caller_disclosure_message, e.g. "Einen Moment bitte, ich verbinde Sie." "" or unset: none (silence, or the hold music). Repeated every caller_reassure_interval_s. At most 1000 characters

caller_hold_music bool optional

Phase B: music on hold for the caller between the hold messages while the intro runs. Default false (silence). true is refused with FAILED_PRECONDITION reason=phase-b-not-enabled while the deployment has not enabled phase B

caller_reassure_interval_s uint32 optional

Repeat caller_hold_message while the intro runs, with N seconds of silence between two repetitions. 0 (default): it is spoken once. Valid: 0 or 15 - 120, e.g. 20 to reassure a waiting caller about every 20 seconds. Without a caller_hold_message it has no effect

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 accept_question that the built-in phrases leave unclear). Empty (default): the NLU agent's warm transfer setting, else the project's first LLM service of the intro's language. A name the project has no LLM service of for that language means no LLM: the built-in template is spoken (WarmIntroRecord.text_fell_back). A non-empty value is refused with FAILED_PRECONDITION reason=phase-b-not-enabled while the deployment has not enabled phase B

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 {callee_name}, e.g. "Ich verbinde Sie jetzt mit {callee_name}." The target does not hear it; the join waits until it has been spoken, at most ONDEWO_VTSI_WARM_TRANSFER_ACCEPTED_CLIP_MAX_S (default 6 s). Default empty: none, the target is joined at once. At most 1000 characters

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 false. This version validates and inherits the field but does not act on it yet: setting it to true changes nothing

intro_listener_names string repeated

Project level only: listeners (

projects/<project_uuid>/listeners/<listener_uuid>
) 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

Enums

AnsweringMachineDetectionConfig.AmdAction

What the call does once a verdict is reached that is not a person

NameNumberDescription
AMD_ACTION_UNSPECIFIED 0

Not set explicitly. As a value of action it selects the built-in default HANG_UP; leave action unset instead to inherit the deployment setting ONDEWO_VTSI_AMD_ACTION

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 hang_up_on_* switch is on (default). The bot says nothing before the hangup

DETECT_ONLY 2

Shadow mode: detect and report the verdict, never hang up. OUTGOING_CALL_ANSWERING_MACHINE_DETECTED is still set for a verdict that would hang up, then the far end is treated as a person: the call continues with the greeting and ends normally. Use it to measure how the detection would decide on real calls before switching to 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 hang_up_on_* switch is on.

The fulfillment of voice_message_intent is prepared at the verdict and spoken once, when the first of these happens: the beep of the mailbox ended, the greeting ended in silence, or voice_message_max_beep_wait_ms passed. The call is hung up when the message finished playing or when voice_message_timeout_ms after the verdict elapsed, whichever comes first. If the NLU fails, no apology is spoken onto the mailbox. The voice message intent is triggered on the call's NLU session at the verdict, also when the machine hangs up before the message is played. See the compliance note above before enabling it

AnsweringMachineDetectionConfig.AmdSensitivity

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

NameNumberDescription
AMD_SENSITIVITY_UNSPECIFIED 0

Not set explicitly. As a value of sensitivity it selects the built-in default LOW; leave sensitivity unset instead to inherit the deployment setting ONDEWO_VTSI_AMD_SENSITIVITY

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

TurnDetectionConfig.TurnDetectionMode

How the end of the caller's turn is detected

NameNumberDescription
TURN_DETECTION_MODE_UNSPECIFIED 0

No mode chosen: the speech-to-text side is configured as for SEMANTIC_MODEL (its turn detection model is used where the deployment provides one), and the interruption rules follow what the call actually got: those of SEMANTIC_MODEL when a turn detection model is active for the call, those of VAD otherwise. Every field of this message is valid with it

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 (min_endpointing_delay_seconds). VTSI asks no turn detection model, not even a deployment-wide one; a turn detection block already in the call's S2tVtsiConfig.s2t_transcribe_request_config is passed on unchanged, so remove it there as well. With interruptions enabled, any caller speech that lasts the minimum interruption duration interrupts the bot. The fields read only by a turn detection model are refused with this mode

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 ONDEWO_VTSI_S2T_TURN_DETECTION_BASE_URL, an audio Smart Turn model, or a turn detection block in the call's S2tVtsiConfig.s2t_transcribe_request_config); without one the call keeps silence-based endpointing and only the interruption rules below apply. With interruptions enabled, a final transcription with at least one meaningful word interrupts the bot, and a partial transcription needs InterruptionHandlingConfig.min_interruption_words, so a short "mhm" does not stop the bot

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 VAD, and applies the interruption rules of SEMANTIC_MODEL. The fields read only by a turn detection model are refused with this mode. To use an audio turn model today, choose SEMANTIC_MODEL with a Smart Turn model in semantic_model_name

TurnDetectionConfig.TurnEagerness

How eagerly the bot takes the turn

NameNumberDescription
TURN_EAGERNESS_UNSPECIFIED 0

No eagerness chosen: the same as NORMAL

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

WarmIntroDecidedBy

How the decision of a warm intro was taken

NameNumberDescription
WARM_INTRO_DECIDED_BY_UNSPECIFIED 0

Not decided

WARM_INTRO_DECIDED_BY_DTMF 1

A key (accept_dtmf / decline_dtmf)

WARM_INTRO_DECIDED_BY_SPEECH 2

A spoken answer

WARM_INTRO_DECIDED_BY_TIMEOUT 3

No answer within decision_timeout_s / max_intro_duration_s

WarmIntroDecision

The target's decision in a warm intro

NameNumberDescription
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 caller_declined_message

WARM_INTRO_DECISION_NO_DECISION 3

The target answered but gave no decision: no answer within decision_timeout_s or max_intro_duration_s, two unclear answers, or no yes to the ready_question (also a mailbox that answered). The call stays with the bot, which tells the caller caller_unreachable_message

WarmIntroTextSource

How the briefing of a warm intro is produced

NameNumberDescription
WARM_INTRO_TEXT_SOURCE_UNSPECIFIED 0

Chosen by the deployment: WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY with phase B enabled, else WARM_INTRO_TEXT_SOURCE_TEMPLATE (see WarmTransferConfig.intro_text_source)

WARM_INTRO_TEXT_SOURCE_TEMPLATE 1

WarmTransferConfig.intro_prompt as a template with placeholders, else the built-in template. Predictable wording, no LLM

WARM_INTRO_TEXT_SOURCE_LLM_SUMMARY 2

Phase B: an LLM summary of the call so far, instructed by WarmTransferConfig.intro_prompt; the built-in template when no summary can be written (WarmIntroRecord.text_fell_back)

WarmIntroUnavailablePolicy

What a WARM transfer does when its warm intro cannot run

NameNumberDescription
WARM_INTRO_UNAVAILABLE_POLICY_UNSPECIFIED 0

Same as WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO

WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO 1

Ring the target and join them directly, as a WARM transfer without an intro (WarmIntroRecord.intro_started = false, cause says why). The caller still reaches a person; the target is not briefed

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 caller_unreachable_message (TRANSFER_OUTCOME_INTRO_UNAVAILABLE) and goes on with the conversation

ondewo/vtsi/calls.proto

Top

Services

Calls

ONDEWO VTSI API

Service Methods

StartCaller

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.

StartCallers

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.

ListCallers

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.

GetCaller

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.

UpdateCaller

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).

UpdateCallers

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.

DeleteCaller

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.

DeleteCallers

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.

StopCaller

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.

StopCallers

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.

StartListener

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.

StartListeners

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.

StopListener

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.

StopListeners

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.

ListListeners

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.

GetListener

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.

UpdateListener

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).

UpdateListeners

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.

DeleteListener

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.

DeleteListeners

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.

StartScheduledCaller

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.

StartScheduledCallers

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.

AddCallersToCampaign

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.

AddScheduledCallersToCampaign

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.

GetScheduledCaller

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.

ListScheduledCallers

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.

UpdateScheduledCaller

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.

CancelScheduledCaller

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.

CancelScheduledCallers

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.

RetryScheduledCaller

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.

StopCall

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.

StopCalls

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.

StopAllCalls

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.

TransferCall

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.

TransferCalls

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.

GetCall

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.

ListCalls

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.

GetCallStatistics

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).

UpdateCall

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).

UpdateCalls

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.

StreamCallerStatus

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.

StreamListenerStatus

rpc StreamListenerStatus (StreamListenerStatusRequest) returns (stream StreamCallResourceStatusResponse)

Streams the status of the listeners of a project, like StreamCallerStatus.

StreamScheduledCallerStatus

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.

InviteToCall

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.

RemoveCallParticipant

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.

SetCallMediaControl

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.

SendCallDtmf

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.

StreamCallAudio

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.

ListenCallAudio

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.

Messages

AddCallersToCampaignRequest

The request message for Calls.AddCallersToCampaign.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the callers and the campaign. The format is:

projects/<project_uuid>/project

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.campaign_common_services_config / campaign_sip_caller_config), the entry's own value winning, so an entry may leave out whatever the campaign supplies; the effective configuration must be one a StartCallerRequest would be accepted with. The campaign defaults are read again whenever the call is dispatched (its first attempt and every retry), so a campaign update reaches every attempt not yet dispatched; only the callee is fixed when the call is added (see Campaign.campaign_sip_caller_config). A field set neither by the entry nor by the campaign inherits the deployment-wide ONDEWO_VTSI_* setting, otherwise the built-in default. Example: set voice_interaction_config once in the campaign's defaults to give every call of the campaign the same turn taking, and set only sip_caller_config.callee_id per entry. Campaign calls are served by pooled callers like StartCaller requests with the same effective 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 INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no common_services_config: the server keeps no second copy of the credentials it holds. To make a single caller or listener idempotent, send it as a batch of one.

AddCallersToCampaignResponse

The response message for Calls.AddCallersToCampaign.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the callers and the campaign. The format is:

projects/<project_uuid>/project

campaign Campaign

The campaign the callers were added to. Its call defaults (campaign_common_services_config, campaign_sip_caller_config) are always left unset here; read them with Campaigns.GetCampaign.

campaign_call_names string repeated

The campaign calls created by this request, in request order.

AddScheduledCallersToCampaignRequest

The request message for Calls.AddScheduledCallersToCampaign.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the scheduled callers and the campaign. The format is:

projects/<project_uuid>/project

scheduled_caller_requests StartScheduledCallerRequest repeated

Scheduled callers to add, at least one. A scheduled caller of a campaign can be cancelled with CancelScheduledCaller only while its campaign call has no attempt dispatching or in progress.

Each entry's configuration (request) is merged over the campaign's call defaults at every dispatch, exactly as for AddCallersToCampaignRequest.caller_requests, and applies to that entry's call only. Like every scheduled caller, its calls are never served by a pooled caller.

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 INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no common_services_config: the server keeps no second copy of the credentials it holds. To make a single caller or listener idempotent, send it as a batch of one.

AddScheduledCallersToCampaignResponse

The response message for Calls.AddScheduledCallersToCampaign.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the scheduled callers and the campaign. The format is:

projects/<project_uuid>/project

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_common_services_config, campaign_sip_caller_config) are always left unset here; read them with Campaigns.GetCampaign.

campaign_call_names string repeated

The campaign calls created by this request, in request order.

AllServicesStatuses

Status of ondewo-sip instance

FieldTypeLabelDescription
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

AmdVerdictCount

Number of calls with one answering machine detection verdict, an entry of CallStatistics.amd_verdict_counts.

FieldTypeLabelDescription
verdict ondewo.sip.AnsweringMachineDetectionResult.Verdict

The verdict, read from Call.sip_status.amd_result.verdict.

count int32

Number of matching calls with that verdict.

AsteriskConfig

Asterisk configuration

FieldTypeLabelDescription
asterisk_base_config BaseServiceConfig

Host, Port, and [Optional] GRPC cert

Call

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.

FieldTypeLabelDescription
name string

call name For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

sip_account string

The SIP account (on the project's Asterisk) the call's container registered with, e.g. ondewo0007

container_name string

Name of the call's ondewo-sip container, as docker ps shows it

call_type CallType

LISTENER, CALLER or SCHEDULED_CALLER; never BOTH (see 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

projects/<project_uuid>/project

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 (InviteToCall), oldest invitation first. FULL view: all of them, including those that FAILED or LEFT; SHALLOW view: only those still RINGING or JOINED; MINIMUM view: none. So the complete participant history of a call is read with GetCall, call_view = FULL (and field_mask = participants to read nothing else). Participants are kept as long as the call record.

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 (ondewo.sip.SipStatus.call_id). Empty until the call was identified; call control requests are refused (call-not-yet-identified) until then. Set in the SHALLOW and FULL views

labels Call.LabelsEntry repeated

Client-defined descriptive labels of the call, e.g. {"ticket": "4711", "outcome": "callback"}. Empty until a client sets them; the server never sets or interprets them. Written ONLY by UpdateCall / UpdateCalls with the update_mask path labels, which REPLACES the whole map (an empty map clears it); a path below it (e.g. labels.ticket) is rejected. Bounds, each refused with INVALID_ARGUMENT naming the label: at most 64 entries; a key of 1 to 63 characters of

[a-z0-9_.-]
, 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 X-ondewo-ivr-menu); empty when the call did not pass an IVR menu. Set in the SHALLOW and FULL views

ivr_path string

Output only. The option labels the caller took through the IVR menus, e.g. main:1>billing:2 (from X-ondewo-ivr-path, at most 256 characters); empty when the call did not pass an IVR menu. Set in the SHALLOW and FULL views

ivr_menu_name string

Output only. Resource name of the IVR menu that handled the call's IVR leg, i.e. the menu ivr_menu_display_name names, so a client can find the menu by id instead of by its label. The format is:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>
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 X-ondewo-dialed-number, which the trunk's IVR entry hook sets on every inbound call), e.g. +493052187211: digits with an optional leading +, at most 32 characters. It is the company's own number, not the caller's (that is phone_number). Empty when the call did not come in over the carrier trunk, or the dialled number was not numeric. Set in the SHALLOW and FULL views

Call.LabelsEntry

FieldTypeLabelDescription
key string

value string

CallAudioEnded

Sent once when a call audio stream ends normally

FieldTypeLabelDescription
reason CallAudioEndReason

Why the stream ended

detail string

Optional detail, a stable token

CallAudioFrame

One 20 ms frame of call audio

FieldTypeLabelDescription
pcm_s16le bytes

LINEAR16 little-endian mono samples, sample_rate_hz * 0.02 * 2 bytes

sequence uint64

Monotonic sequence number of the frame within its direction of the stream

CallAudioStarted

Sent once when a call audio stream is connected

FieldTypeLabelDescription
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

CallAudioStats

Counters of a call audio stream, sent periodically

FieldTypeLabelDescription
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

CallFilter

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.

FieldTypeLabelDescription
call_names string repeated

Optional: Filter by call names (Call.name), exact match.

nlu_session_names string repeated

Optional: Filter by NLU session names (Call.nlu_session_name), exact match.

sip_accounts string repeated

Optional: Filter by SIP accounts (Call.sip_account), exact match.

phone_numbers string repeated

Optional: Filter by phone numbers (Call.phone_number), exact match as stored (no normalisation: +43... and 0043... are different values).

container_names string repeated

Optional: Filter by container names (Call.container_name), exact match.

sip_ports string repeated

Deprecated. Deprecated: use sip_port_numbers. Filter by SIP ports given as decimal strings, e.g. "5060"; a value that is not a decimal integer is INVALID_ARGUMENT. Still honoured, OR-ed with sip_port_numbers.

csi_ports string repeated

Deprecated. Deprecated: use csi_port_numbers. Filter by CSI ports given as decimal strings, with the rules of sip_ports. Still honoured, OR-ed with csi_port_numbers.

call_types CallType repeated

Optional: Filter by call types (Call.call_type). Empty, or a list containing BOTH, matches every type.

sip_status_types ondewo.sip.SipStatus.StatusType repeated

Optional: Filter by the call's current or last SIP status type (Call.sip_status_type).

call_status CallStatus optional

Optional: Only active (CALL_STATUS_ACTIVE) or only inactive (CALL_STATUS_INACTIVE) calls. Unset or CALL_STATUS_UNSPECIFIED does not filter.

start_time google.protobuf.Timestamp optional

Optional: Only calls that STARTED at or after this instant: Call.start_time >= start_time (inclusive). Calls without a start time (the waiting call of a persistent listener or pooled caller) never match while it is set. Unset, or the zero timestamp, does not filter.

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 start_time AND ended at or before end_time, i.e. it lies entirely inside the window. To find the calls that were running at some instant, use call_status and the duration bounds instead.

end_time google.protobuf.Timestamp optional

Optional: Only calls that ENDED at or before this instant: Call.end_time <= end_time (inclusive). An active call has no end time and therefore never matches while it is set. Unset, or the zero timestamp, does not filter. See start_time for the window semantics.

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 end_time - start_time, and for an active call the time since its start, so an active call can match. 0 does not filter, so the explicit value 0 is the same as unset.

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 duration_in_s_min. 0 does not filter.

platforms ondewo.nlu.Intent.Message.Platform repeated

Optional: Filter by the NLU message platform of the call (Call.platforms), e.g. Platform.PLATFORM_UNSPECIFIED (the default platform: text).

campaign_name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

campaign_display_name string

Exact, case-sensitive display_name of the campaign, resolved within the request's vtsi_project_name.

labels CallFilter.LabelsEntry repeated

Optional: Only calls carrying every one of these labels (Call.labels). An entry with an empty value matches on the presence of the key alone; otherwise the value must match exactly (case-sensitive). Keys must satisfy the key bounds of Call.labels and at most 64 entries are accepted, otherwise INVALID_ARGUMENT naming the key. Same semantics as SoftphoneAccountFilter.labels.

caller_names string repeated

Optional: Only calls placed by one of these callers (the calls whose name lies below one of them). Each entry is a caller resource name of the request's project,

projects/<project_uuid>/callers/<caller_uuid>
; 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 caller_names (OR-ed with it). Each entry is of the form

projects/<project_uuid>/listeners/<listener_uuid>

redial_recommended bool optional

Optional: Only calls whose Call.redial_recommended equals this value. Unset does not filter. false matches only calls whose field is SET to false (AMD ended the call with a voice message left, or on a fax); calls on which AMD did not decide, i.e. whose field is unset, match neither value.

transfer_outcomes TransferOutcome repeated

Optional: Only calls whose last transfer attempt (Call.last_transfer.outcome) had one of these outcomes. TRANSFER_OUTCOME_UNSPECIFIED in the list matches the calls without any transfer attempt. Empty does not filter.

sip_port_numbers int32 repeated

Optional: Filter by SIP ports (Call.sip_port), 1 to 65535 each, otherwise INVALID_ARGUMENT. Replaces the deprecated string field sip_ports; when both are set their values are combined (OR).

csi_port_numbers int32 repeated

Optional: Filter by CSI ports (Call.csi_port), 1 to 65535 each, otherwise INVALID_ARGUMENT. Replaces the deprecated string field csi_ports; when both are set their values are combined (OR).

Fields with deprecated option

Name Option
sip_ports

true

csi_ports

true

CallFilter.LabelsEntry

FieldTypeLabelDescription
key string

value string

CallMediaControlState

Effective media control state of a call

FieldTypeLabelDescription
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 StreamCallAudio / ListenCallAudio streams

joined_participants int32

Number of joined participants

CallParticipant

A participant invited into a call

FieldTypeLabelDescription
participant_id string

Identifier of the participant, 9 digits, unique among the project's live invites

softphone_account_name string

The invited softphone account:

projects/<project_uuid>/softphoneAccounts/<account_uuid>

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: NOANSWER, BUSY, CHANUNAVAIL, CALL_ENDED, REMOVED, HANGUP, HANDED_OVER, JOIN_FAILED or TIMEOUT; empty while ringing or joined. Kept for clients built before end_reason_type existed; both are always set together.

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 end_reason: PARTICIPANT_END_REASON_UNSPECIFIED while ringing or joined, otherwise the value of the string in end_reason (e.g. NOANSWER is PARTICIPANT_END_REASON_NO_ANSWER). A 9.0.0 server leaves it unset; read end_reason then.

CallResourceStatus

The status of one caller, listener or scheduled caller, as streamed by the status streams.

FieldTypeLabelDescription
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.

CallSorting

Sorting of a ListCalls listing.

FieldTypeLabelDescription
sorting_field CallSorting.CallSortingField

The sorting field. Unset means NO_CALL_SORTING.

sorting_mode VtsiProjectSortingMode

The sorting mode: ASCENDING (the zero value, oldest first) or DESCENDING (newest first). Calls with the same value are ordered by their uuid (the last segment of name), ascending, in either mode, so the order is stable across pages.

CallStatistics

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the request. The format is:

projects/<project_uuid>/project

total int32

Number of matching calls: the total_size a ListCalls with the same filter would report at the same moment.

active int32

Number of matching calls that are active (Call.active).

sip_status_type_counts SipStatusTypeCount repeated

Matching calls by their current or last SIP status type. The counts add up to total.

call_type_counts CallTypeCount repeated

Matching calls by type (LISTENER, CALLER, SCHEDULED_CALLER). The counts add up to total.

ended_calls int32

Number of matching calls that have a duration, i.e. that started and ended (start_time and end_time both set). Active calls and the waiting call of a persistent listener or pooled caller have none. The denominator of average_duration_s.

total_duration_s double

Sum of the durations (end_time - start_time) of the ended_calls, in seconds.

average_duration_s double

total_duration_s / ended_calls, in seconds; 0 when ended_calls is 0.

redial_recommended int32

Number of matching calls with Call.redial_recommended = true.

amd_verdict_counts AmdVerdictCount repeated

Matching calls by the verdict of their answering machine detection (Call.sip_status.amd_result.verdict). Calls without an AMD result are not counted here, so the counts add up to the number of calls that carry one.

transfer_outcome_counts TransferOutcomeCount repeated

Matching calls by the outcome of their last transfer attempt (Call.last_transfer.outcome). Calls without a transfer attempt are not counted here, so the counts add up to the number of calls that carry one.

CallTarget

Target of a transfer

FieldTypeLabelDescription
phone_number string

Phone number in E.164 form, e.g. +4312345678 (^\+[1-9][0-9]{6,14}$). Any E.164 number is allowed unless the project configures VtsiProject.transfer_phone_number_allowlist

softphone_account_name string

A softphone account of the same project:

projects/<project_uuid>/softphoneAccounts/<account_uuid>
. It must be enabled, routed and registered

listener_name string

A listener of the same project:

projects/<project_uuid>/listeners/<listener_uuid>
. 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:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>
. 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

CallTransferRecord

Record of the last transfer attempt of a call

FieldTypeLabelDescription
target CallTarget

Requested typed target; unset for a legacy transfer_id transfer

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 0

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 (TRANSFER_OUTCOME_TIMEOUT, ...)

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

CallTypeCount

Number of calls of one type, an entry of CallStatistics.call_type_counts.

FieldTypeLabelDescription
call_type CallType

LISTENER, CALLER or SCHEDULED_CALLER; never BOTH, which is not the type of a stored call.

count int32

Number of matching calls of that type.

Caller

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.

FieldTypeLabelDescription
name string

Resource name of the caller, of the form

projects/<project_uuid>/callers/<caller_uuid>
Output only. Identifies the caller on UpdateCaller.

call_name string

The call name that was assigned to the call

projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>
Output only.

sip_caller_config SipCallerConfig

SIP configuration of the caller's call: the callee it dials (callee_id), the SIP headers sent on the INVITE (sip_headers) and the ondewo-sip image version (sip_base_config.sip_sim_version; stored with the tag the server deployed, the deployment setting ONDEWO_VTSI_DEFAULT_SIP_IMAGE_TAG, when the request left it empty). Populated in the SHALLOW and FULL views. Updatable with UpdateCaller, which changes the STORED configuration only and never a running call (see there).

common_services_config CommonServicesConfig

Service configuration of the caller's call(s): speech-to-text, NLU agent, text-to-speech, CSI and, in voice_interaction_config and sip_vtsi_config, how the bot listens, takes turns, lets itself be interrupted, times its answers, detects answering machines and handles the call's media. Populated in the FULL view only, and redacted by role like Listener.common_services_config.

A field left unset here was left unset by the request, and the call INHERITS for it: the deployment-wide ONDEWO_VTSI_* setting where the server's operator configured one, otherwise the built-in default. A value set here wins over both.

Updatable with UpdateCaller (stored configuration only, see there): no update ever changes a call that is running or was already placed.

vtsi_project_name string

Output only. VTSI project of the caller, the project segment of name, of the form

projects/<project_uuid>/project
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. Call.active of call_name; false for an idle pooled caller and for a caller whose call ended. The same value as CallResourceStatus.active of the status streams. Set in the SHALLOW and FULL views.

sip_status_type ondewo.sip.SipStatus.StatusType

Output only. SIP status type of the caller's current or last call (Call.sip_status_type of call_name), as CallResourceStatus.sip_status_type. NO_SESSION (the zero value) when it never had a call record. Set in the SHALLOW and FULL views.

created_at google.protobuf.Timestamp

Output only. When the caller was created (StartCaller, the dispatch of a campaign attempt or of a scheduled caller, or a recycle by the server that recreated a pooled caller). Set in the SHALLOW and FULL views.

pooled bool

Output only. Whether the caller is a POOLED (persistent) caller, which the server keeps warm between calls and reuses for later StartCaller requests with the same configuration, rather than a one-shot caller that is one call. Set in the SHALLOW and FULL views.

campaign_name string

Output only. The campaign of the caller's current or last campaign attempt (CampaignCallAttempt.caller_name names this caller), of the form

projects/<project_uuid>/campaigns/<campaign_uuid>
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.

CancelScheduledCallerRequest

Represents a request to cancel a scheduled caller that has not fired yet.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

name string

The name of the scheduled caller to cancel of the form

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of CancelScheduledCallerResponse to populate, i.e. status, cancelled and error_message (the response carries no ScheduledCaller). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is cancelled. It shapes only the response: the scheduled caller is cancelled regardless. In a CancelScheduledCallers batch the batch's own field_mask applies.

CancelScheduledCallerResponse

Response to cancelling a scheduled caller, and one entry of CancelScheduledCallersResponse.

FieldTypeLabelDescription
name string

The name of the scheduled caller of the form

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>
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: cancelled = false, status = SCHEDULED_CALLER_STATUS_CANCELLED.

error_message string

Why the scheduled caller was not cancelled, where there is more to say than status: set (with cancelled = false) for a scheduled caller of a campaign whose attempt is dispatching or in progress; empty otherwise, also for a scheduled caller that was simply no longer PENDING. CancelScheduledCaller reports every other error as a gRPC status code. In an entry of CancelScheduledCallersResponse it is, in addition, the error of an entry that failed, prefixed with the name of the gRPC status code CancelScheduledCaller would have answered, e.g. NOT_FOUND: scheduled caller projects/.../scheduled_callers/... does not exist; status and cancelled are then left at their zero values.

CancelScheduledCallersRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of every scheduled caller of the request. The format is:

projects/<project_uuid>/project

names string repeated

The scheduled callers to cancel, 1 to 1000 distinct names of the form

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of CancelScheduledCallersResponse.cancel_scheduled_caller_responses, relative to the entry message CancelScheduledCallerResponse, i.e. status, cancelled and error_message. name of each entry and the response's own fields are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is cancelled. It shapes only the response.

CancelScheduledCallersResponse

The response message for Calls.CancelScheduledCallers.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the request. The format is:

projects/<project_uuid>/project

cancel_scheduled_caller_responses CancelScheduledCallerResponse repeated

One entry per name of the request, in request order, each like the response of CancelScheduledCaller (an entry that could not be cancelled because of its state is cancelled = false without an error_message, as there).

error_message string

A summary when at least one entry failed, i.e. carries an error_message prefixed with a gRPC status code name (e.g. 2 of 5 cancellations failed); empty when no entry failed. An entry with cancelled = false because of its state is not a failure, whether or not it explains itself in error_message.

DeleteCallerRequest

Represents a request to delete a specific caller.

FieldTypeLabelDescription
name string

The name of the caller to delete in the form

projects/<project_uuid>/callers/<caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of DeleteCallerResponse to populate, i.e. error_message (the response carries no Caller). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the caller is deleted regardless.

DeleteCallerResponse

Response to deleting a caller, and one entry of DeleteCallersResponse.

FieldTypeLabelDescription
name string

The name of the deleted caller in the form

projects/<project_uuid>/callers/<caller_uuid>

error_message string

Empty on success. DeleteCaller reports its errors as gRPC status codes, so it is empty there. In an entry of DeleteCallersResponse it is the error of that entry, prefixed with the name of the gRPC status code DeleteCaller would have answered, e.g. NOT_FOUND: caller projects/.../callers/... does not exist.

DeleteCallersRequest

Represents a request to delete multiple callers.

FieldTypeLabelDescription
names string repeated

The names of the callers to delete, 1 to 1000 distinct names, in the form

projects/<project_uuid>/callers/<caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of DeleteCallersResponse.delete_caller_responses, relative to the entry message DeleteCallerResponse, i.e. error_message (the entries carry no Caller). name of each entry and the response's own fields are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the callers are deleted regardless.

vtsi_project_name string

Optional. VTSI project of every caller of the request, of the form

projects/<project_uuid>/project
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.

DeleteCallersResponse

Response to delete multiple callers

FieldTypeLabelDescription
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.

error_message string

A summary when at least one entry failed (e.g. 2 of 5 callers were not deleted), empty when every entry succeeded. The failed entries carry their own error_message.

DeleteListenerRequest

Represents a request to delete a specific listener.

FieldTypeLabelDescription
name string

The name of the listener to delete in the form

projects/<project_uuid>/listeners/<listener_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of DeleteListenerResponse to populate, i.e. error_message (the response carries no Listener). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the listener is deleted regardless.

DeleteListenerResponse

Response to deleting a listener, and one entry of DeleteListenersResponse.

FieldTypeLabelDescription
name string

The name of the deleted listener in the form

projects/<project_uuid>/listeners/<listener_uuid>

error_message string

Empty on success. DeleteListener reports its errors as gRPC status codes, so it is empty there. In an entry of DeleteListenersResponse it is the error of that entry, prefixed with the name of the gRPC status code DeleteListener would have answered, e.g. NOT_FOUND: listener projects/.../listeners/... does not exist.

DeleteListenersRequest

Represents a request to delete multiple listeners.

FieldTypeLabelDescription
names string repeated

The names of the listeners to delete, 1 to 1000 distinct names, in the form

projects/<project_uuid>/listeners/<listener_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of DeleteListenersResponse.delete_listener_responses, relative to the entry message DeleteListenerResponse, i.e. error_message (the entries carry no Listener). name of each entry and the response's own fields are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the listeners are deleted regardless.

vtsi_project_name string

Optional. VTSI project of every listener of the request, of the form

projects/<project_uuid>/project
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.

DeleteListenersResponse

Response to delete multiple listeners

FieldTypeLabelDescription
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.

error_message string

A summary when at least one entry failed (e.g. 2 of 5 listeners were not deleted), empty when every entry succeeded. The failed entries carry their own error_message.

GetCallRequest

Request to get a call

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the call, of the form

projects/<project_uuid>/project
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

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

call_view CallView optional

Optional. How much of the call to populate; see CallView. Unset means SHALLOW.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the returned Call, relative to the Call message, e.g. call_type, phone_number, labels, sip_status.status_type. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty.

GetCallStatisticsRequest

The request message for Calls.GetCallStatistics.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose calls are counted. The format is:

projects/<project_uuid>/project

call_filter CallFilter

Optional. Counts only the calls this filter matches, with exactly the semantics, validation and errors of ListCallsRequest.call_filter (the campaign selector included). Unset or empty counts every call of the project that ListCalls would list, the waiting call of a persistent listener or pooled caller included.

GetCallerRequest

Represents a request to get a specific caller.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the caller, of the form

projects/<project_uuid>/project
Required (empty or malformed is INVALID_ARGUMENT, an unknown project NOT_FOUND).

Redundant with the project segment of name, and the same rule holds for every single-resource request that carries both a vtsi_project_name and a resource name (GetListener, GetCall, StopCall, GetScheduledCaller, CancelScheduledCaller, RetryScheduledCaller, TransferCall, InviteToCall, RemoveCallParticipant, SetCallMediaControl): the resource must belong to vtsi_project_name, and a resource name whose project segment differs is answered NOT_FOUND, not INVALID_ARGUMENT, so that the answer never confirms that the resource exists in another project. (The batch requests, which check their entries before anything is done, answer such an entry with INVALID_ARGUMENT instead.)

name string

The name of the caller to retrieve, of the form

projects/<project_uuid>/callers/<caller_uuid>

call_view CallView optional

Optional. How much of the caller to populate; see CallView. Unset means SHALLOW. MINIMUM: name, call_name and vtsi_project_name; SHALLOW: also sip_caller_config and the output-only state; FULL: also common_services_config (redacted by role).

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the returned Caller, relative to the Caller message, e.g. call_name, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty.

GetListenerRequest

Represents a request to get a specific listener.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the listener, of the form

projects/<project_uuid>/project
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

projects/<project_uuid>/listeners/<listener_uuid>

call_view CallView optional

Optional. How much of the listener to populate; see CallView. Unset means SHALLOW. The views populate the fields as GetCallerRequest.call_view does, with sip_base_config in place of sip_caller_config.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the returned Listener, relative to the Listener message, e.g. call_name, common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty.

GetScheduledCallerRequest

Represents a request to get a specific scheduled caller.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project
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

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>

call_view CallView optional

Optional. How much of the scheduled caller to populate; see CallView. Unset means SHALLOW.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the returned ScheduledCaller, relative to the ScheduledCaller message, e.g. status, scheduled_time, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty.

InviteToCallRequest

Request to invite a softphone account into a call

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the connected call to invite into For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

softphone_account_name string

Softphone account of the same project to invite:

projects/<project_uuid>/softphoneAccounts/<account_uuid>

mode ParticipantMode

How the participant takes part. Unspecified means PARTICIPANT_MODE_CONFERENCE

ring_timeout_s int32

How long the softphone may ring, in seconds, 5 to 120. 0 means 30

bot_policy BotPolicyOnJoin

What the bot does while the participant is ringing or joined. Unspecified means BOT_POLICY_ON_JOIN_KEEP (the bot keeps talking)

caller_id_display_name string

Caller-ID display name shown on the softphone. Sanitized by the server; default ONDEWO <listener or caller name>

request_id string

Optional idempotency key: 1 to 255 visible ASCII characters, scoped to call_name. A repeated request with the same call_name and request_id returns the participant of the first request (in its CURRENT state) instead of inviting again, for as long as the call record exists. The same key with a different softphone_account_name or mode is refused with INVALID_ARGUMENT and reason=request-id-conflict. Empty means no deduplication (the server generates a key of its own).

InviteToCallResponse

Response of InviteToCall

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

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 reason=<token> in the details. Kept for wire compatibility.

ListCallersRequest

Represents a request to list callers.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to perform the call. The format is:

projects/<project_uuid>/project

page_token string optional

Optional. The next_page_token of a previous response. Opaque: its content is not part of the API. Valid only with the same vtsi_project_name, campaign selector, active_only and sip_status_types; a token issued for another listing is rejected with INVALID_ARGUMENT. page_size, call_view and field_mask may change between pages.

call_view CallView optional

Optional. How much of each caller to populate; see CallView. Unset means SHALLOW.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned Caller, relative to the Caller message (no callers. prefix), e.g. call_name, sip_caller_config.callee_id, common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

campaign_name string

Resource name of the campaign. It must be a campaign of vtsi_project_name. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

campaign_display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name.

page_size int32

Optional. Maximum number of callers per page. 0 keeps the page size the page_token was issued with, and means the server default of 25 on a first page; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT. May differ between the pages of one listing.

active_only bool

Optional. Only callers whose current call is active (Caller.active), as StreamCallerStatusRequest.active_only. False does not filter.

sip_status_types ondewo.sip.SipStatus.StatusType repeated

Optional. Only callers whose current or last call has one of these SIP status types (Caller.sip_status_type). A caller that never had a call has none and matches no entry. Empty does not filter. Combined with the other filters by AND.

ListCallersResponse

Represents the response for listing callers.

FieldTypeLabelDescription
callers Caller repeated

The callers of this page, ordered by the caller's uuid (the last segment of name), ascending.

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 page_size), counted exactly when this page was read. It can change between the pages of one listing as callers are started, stopped or deleted.

ListCallsRequest

Request to list calls

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

call_view CallView optional

Optional. How much of each call to populate; see CallView. Unset means SHALLOW.

call_filter CallFilter optional

Optional. A filter to narrow the response down to calls of interest; see CallFilter. Unset or empty lists every call of the project.

page_token string optional

Optional. The next_page_token of a previous response. Opaque: its content is not part of the API. Valid only with the same vtsi_project_name, call_filter and call_sorting; a token issued for another listing is rejected with INVALID_ARGUMENT. page_size, call_view and field_mask may change between pages.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned Call, relative to the Call message (no calls. prefix), e.g. call_type, phone_number, start_time. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

page_size int32

Optional. Maximum number of calls per page. 0 keeps the page size the page_token was issued with, and means the server default of 25 on a first page; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT. May differ between the pages of one listing.

call_sorting CallSorting

Optional. Sorting of the listing. Unset keeps the default order (see ListCallsResponse.calls).

ListCallsResponse

Response to list the calls of a project

FieldTypeLabelDescription
calls Call repeated

The calls of this page, in the order call_sorting asked for. The default order (no call_sorting, or NO_CALL_SORTING) is by start_time, oldest first, calls without a start time (the waiting call of a persistent listener or pooled caller) last, and calls with the same start time by their uuid (the last segment of name), ascending.

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 page_size), counted exactly when this page was read. It can change between the pages of one listing as calls are created.

ListListenersRequest

Represents a request to list listeners.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to perform the call. The format is:

projects/<project_uuid>/project

page_token string optional

Optional. The next_page_token of a previous response. Opaque: its content is not part of the API. Valid only with the same vtsi_project_name, active_only and sip_status_types; a token issued for another listing is rejected with INVALID_ARGUMENT. page_size, call_view and field_mask may change between pages.

call_view CallView optional

Optional. How much of each listener to populate; see CallView. Unset means SHALLOW.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned Listener, relative to the Listener message (no listeners. prefix), e.g. call_name, common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

page_size int32

Optional. Maximum number of listeners per page, with the default, cap and validation of ListCallersRequest.page_size.

active_only bool

Optional. Only listeners whose current call is active (Listener.active), as StreamListenerStatusRequest.active_only. False does not filter.

sip_status_types ondewo.sip.SipStatus.StatusType repeated

Optional. Only listeners whose current or last call has one of these SIP status types (Listener.sip_status_type), with the rules of ListCallersRequest.sip_status_types.

ListListenersResponse

Represents the response for listing listeners.

FieldTypeLabelDescription
listeners Listener repeated

The listeners of this page, ordered by the listener's uuid (the last segment of name), ascending.

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 page_size), counted exactly when this page was read; as ListCallersResponse.total_size.

ListScheduledCallersRequest

Represents a request to list the scheduled callers of a VTSI project.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to perform the call. The format is:

projects/<project_uuid>/project

page_token string optional

Optional. The next_page_token of a previous response. Opaque: its content is not part of the API. Valid only with the same vtsi_project_name, statuses, campaign_name, scheduled_after and scheduled_before; a token issued for another listing is rejected with INVALID_ARGUMENT. page_size, call_view and field_mask may change between pages.

call_view CallView optional

Optional. How much of each scheduled caller to populate; see CallView. Unset means SHALLOW.

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 ScheduledCaller, relative to the ScheduledCaller message (no scheduled_callers. prefix), e.g. scheduled_time, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the call_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the call_view and the server's role-based redaction of common_services_config, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

page_size int32

Optional. Maximum number of scheduled callers per page. 0 keeps the page size the page_token was issued with, and means the server default of 25 on a first page; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT. May differ between the pages of one listing.

campaign_name string

Optional. Only the scheduled callers of this campaign (ScheduledCaller.campaign_name). Empty does not filter. It must be a campaign of vtsi_project_name: a malformed name or a campaign of another project is INVALID_ARGUMENT, an unknown campaign NOT_FOUND. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

scheduled_after google.protobuf.Timestamp

Optional. Only scheduled callers whose scheduled_time is at or after this instant (inclusive). Unset does not filter.

scheduled_before google.protobuf.Timestamp

Optional. Only scheduled callers whose scheduled_time is strictly before this instant (exclusive), so that consecutive windows never overlap. Unset does not filter. When both bounds are set, scheduled_before must be after scheduled_after, otherwise INVALID_ARGUMENT.

ListScheduledCallersResponse

Represents the response for listing scheduled callers.

FieldTypeLabelDescription
scheduled_callers ScheduledCaller repeated

The scheduled callers of this page, ordered by scheduled_time, oldest first; scheduled callers with the same scheduled_time are ordered by their uuid (the last segment of name), ascending.

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 page_size), counted exactly when this page was read. It can change between the pages of one listing as scheduled callers are created or change state.

ListenCallAudioRequest

Request of ListenCallAudio

FieldTypeLabelDescription
config StreamCallAudioConfig

Configuration of the stream; mode must be LISTEN or unspecified and take_over false

Listener

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.

FieldTypeLabelDescription
name string

Resource name of the listener, of the form

projects/<project_uuid>/listeners/<listener_uuid>
Output only. Identifies the listener on UpdateListener.

call_name string

The call name that was assigned to the call

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
Output only.

sip_base_config SipBaseConfig

SIP service configuration of the listener's container, i.e. which ondewo-sip image version (sip_sim_version) answers the listener's calls. As stored: a request that left sip_sim_version empty is stored (and returned) with the image tag the server deployed, the deployment setting ONDEWO_VTSI_DEFAULT_SIP_IMAGE_TAG. Applies to every call of the listener. Updatable with UpdateListener, which changes the STORED configuration only: the running container and every call it answers keep the configuration they were deployed with until the server recreates the listener (see UpdateListener).

common_services_config CommonServicesConfig

Service configuration of every call of the listener: speech-to-text, NLU agent, text-to-speech, CSI and, in voice_interaction_config and sip_vtsi_config, how the bot listens, takes turns, lets itself be interrupted, times its answers and handles the call's media. Populated in the FULL view only, and redacted by role: the whole configuration, credentials included, is returned only to a caller who may see the whole project; every other caller receives only the identity and routing fields (agent, language, service hosts and ports, ...) and voice_interaction_config, everything else left empty.

A field left unset here was left unset by the request, and the call INHERITS for it: the deployment-wide ONDEWO_VTSI_* setting where the server's operator configured one, otherwise the built-in default. A value set here wins over both. The returned configuration is what was requested, not the resolved values.

Updatable with UpdateListener (stored configuration only, see there): a change reaches the listener's calls only once the server recreates the listener from it. To apply a new configuration to the calls right away, stop the listener (which hangs up its current call) and start a new one with it.

vtsi_project_name string

Output only. VTSI project of the listener, the project segment of name, of the form

projects/<project_uuid>/project
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. Call.active of call_name; false while the listener waits for a call. The same value as CallResourceStatus.active of the status streams. Set in the SHALLOW and FULL views.

sip_status_type ondewo.sip.SipStatus.StatusType

Output only. SIP status type of the listener's current or last call (Call.sip_status_type of call_name), as CallResourceStatus.sip_status_type. NO_SESSION (the zero value) when it never had a call record. Set in the SHALLOW and FULL views.

created_at google.protobuf.Timestamp

Output only. When the listener was created (StartListener or a recycle by the server that recreated it). Set in the SHALLOW and FULL views.

ListenerQueueTarget

The project's listener queue as a transfer target. Carries no fields

RemoveCallParticipantRequest

Request to hang up a participant of a call

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the call

participant_id string

Identifier of the participant (CallParticipant.participant_id). It must be a participant of call_name: an unknown identifier, or one of another call, is NOT_FOUND with reason=participant-not-found.

RemoveCallParticipantResponse

Response of RemoveCallParticipant

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

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 reason=<token> in the details. Kept for wire compatibility.

RetryScheduledCallerRequest

The request message for Calls.RetryScheduledCaller.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the scheduled caller. Redundant with the project segment of name: when set it must name the same project (see GetCallerRequest.vtsi_project_name). The format is:

projects/<project_uuid>/project

name string

The FAILED scheduled caller to retry, of the form

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>

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, with the rules of GetScheduledCallerRequest.field_mask. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is created.

ScheduledCaller

ScheduledCaller message - a Caller with a schedule when to start calling

FieldTypeLabelDescription
name string

Resource name of the scheduled caller

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>

call_name string

The call name that was assigned to the call For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

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 StartScheduledCallerRequest.request. Fields left unset inherit, when the call is placed, the deployment-wide ONDEWO_VTSI_* setting, otherwise the built-in default; of a campaign's scheduled caller the campaign's call defaults are merged under it at every dispatch. Not updatable: cancel the scheduled caller and create a new one to change it. Redacted by role like Caller.common_services_config.

scheduled_time google.protobuf.Timestamp

Time at or after which the call is started, in UTC (see StartScheduledCallerRequest.scheduled_time). Updatable with UpdateScheduledCaller while the status is SCHEDULED_CALLER_STATUS_PENDING.

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 sip_headers is updatable (UpdateScheduledCaller, while the status is SCHEDULED_CALLER_STATUS_PENDING); a header change is used by the call placed after it, never by a call already placed.

status ScheduledCallerStatus

Lifecycle state of this scheduled caller

vtsi_project_name string

VTSI project name that owns this scheduled caller of the form

projects/<project_uuid>/project

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: status is PENDING while the call is not started or waits for a retry, FIRING while an attempt is being started or running, and DONE / FAILED / CANCELLED when the call is completed / failed / cancelled; call_name and error_message are those of the latest attempt. Its own retry settings are not used; the campaign's apply.

retry_of_scheduled_caller_name string

Output only. Set on a scheduled caller that RetryScheduledCaller created: the FAILED scheduled caller it retries, of the form

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>
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 RetryScheduledCaller retried it: the scheduled caller the retry created. A FAILED scheduled caller is retried at most once; retry the newest one of a chain. Empty otherwise.

SendCallDtmfRequest

Request of SendCallDtmf

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the connected call

digits string

The keys to press, in order: 1 to 64 of 0-9, *, # and A-D. Never logged; treat it like a password (it may be a PIN).

SendCallDtmfResponse

Response of SendCallDtmf

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the call

queued_keys int32

Number of keys queued: the length of digits

ServiceStatus

Status of service

FieldTypeLabelDescription
healthy bool

Whether the service answered its health check

error_message string

Why the service is unhealthy; empty when healthy is true

SetCallMediaControlRequest

Request to mute the bot of a call and/or stop it listening

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the connected call

bot_voice CallMediaSetting

CALL_MEDIA_SETTING_OFF mutes the bot, CALL_MEDIA_SETTING_ON lets it speak again, CALL_MEDIA_SETTING_UNCHANGED (the zero value) leaves it as it is.

Both bot_voice and bot_listening UNCHANGED is a valid READ of the call's current media control state: nothing is sent to the call, the response carries the effective state with changed = false, and no audit record and no event are written. The call must still be connected and controllable (the same refusals as a change apply). A 9.0.0 server refuses it with INVALID_ARGUMENT; Call.media_control (GetCall) reads the same state from any server.

bot_listening CallMediaSetting

CALL_MEDIA_SETTING_OFF stops the bot listening, CALL_MEDIA_SETTING_ON resumes it, CALL_MEDIA_SETTING_UNCHANGED (the zero value) leaves it as it is.

SetCallMediaControlResponse

Response of SetCallMediaControl

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

call_name string

Name of the call

state CallMediaControlState

Effective media control state after the request

changed bool

true if the effective state changed; false for a repeat of the current level and for a read (both settings UNCHANGED)

error_message string

Always empty: errors are reported as gRPC status codes with reason=<token> in the details. Kept for wire compatibility.

SipStatusTypeCount

Number of calls with one SIP status type, an entry of CallStatistics.sip_status_type_counts.

FieldTypeLabelDescription
sip_status_type ondewo.sip.SipStatus.StatusType

The SIP status type (Call.sip_status_type, the call's current or last status).

count int32

Number of matching calls whose Call.sip_status_type is sip_status_type.

StartCallerRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

sip_caller_config SipCallerConfig

SIP configuration of the call: callee_id (required: whom to dial), sip_headers (sent on the INVITE, at most 64) and sip_base_config.sip_sim_version (the ondewo-sip image version; empty uses the server's default, deployment setting ONDEWO_VTSI_DEFAULT_SIP_IMAGE_TAG). A missing callee_id or too many headers is INVALID_ARGUMENT. On a pooled caller the callee and the headers are sent per call, so two requests that differ only there can be served by the same warm caller.

common_services_config CommonServicesConfig

Service configuration of the call: speech-to-text, NLU agent, text-to-speech, CSI, the voice interaction (voice_interaction_config: turn detection, interruptions, response timing, answering machine detection, transfers, DTMF) and the call's media (sip_vtsi_config).

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 INVALID_ARGUMENT, an unreachable service with UNAVAILABLE. A value outside a field's documented range is refused with INVALID_ARGUMENT.

Inheritance: every field left unset inherits the deployment-wide ONDEWO_VTSI_* setting where the server's operator configured one, otherwise the built-in default; a value set here wins over both for this call.

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 (voice_interaction_config.answering_machine_detection_config) runs only on a pooled caller: while the deployment setting ONDEWO_VTSI_CALLER_PERSISTENT is off, and on every scheduled caller, a request carrying it is refused with INVALID_ARGUMENT (reason=amd-requires-persistent-caller).

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in StartCallerResponse.caller, relative to the Caller message (no caller. prefix), e.g. call_name, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. caller.name and the other fields of the response are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is started. Applied after the server's role-based redaction of common_services_config, so it can only narrow the response. It shapes only the response: the caller is started regardless.

Read only by the RPC this message is the request of. Where it is an entry of another request (StartCallersRequest.caller_requests, StartScheduledCallerRequest.request, AddCallersToCampaignRequest.caller_requests) it must be unset, otherwise that whole request is rejected with INVALID_ARGUMENT naming the entry and nothing is started; use the enclosing request's own field_mask where it has one.

validate_only bool

Optional. Dry run: when true, the request runs every validation StartCaller runs, including the live validation of the configuration against the upstream services (NLU, S2T, T2S, RabbitMQ) and the project's caller limit, but starts, deploys and stores NOTHING and emits no event. It answers with the same error a real request would answer, or with the response a real request would return, except that the returned caller was never created: its name, call_name and every other output-only field are empty. A request that passes a dry run can still fail for real, e.g. when the project reached its limit in between. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

Where this message is an entry of another request (StartCallersRequest.caller_requests, StartScheduledCallerRequest.request, AddCallersToCampaignRequest.caller_requests) it must be unset, otherwise that whole request is rejected with INVALID_ARGUMENT naming the entry; use the enclosing request's own validate_only where it has one.

StartCallerResponse

Response to start a caller, and one entry of StartCallersResponse

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

caller Caller

The caller that was started (with validate_only: the caller that would have been started), shaped by the request's field_mask

error_message string

Always empty: StartCaller reports its errors as gRPC status codes, and an entry of StartCallersResponse exists only for a caller that was started (failures are accounted for in StartCallersResponse.error_message)

StartCallersRequest

Request to start multiple callers

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

caller_requests StartCallerRequest repeated

Callers that should be started, one outbound call each, each with its OWN configuration (sip_caller_config, common_services_config) that applies to its own call only. Entries may differ in any field; entries that share one common_services_config are validated against the upstream services once. Pooled callers are matched per entry (see StartCallerRequest.common_services_config).

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 INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no common_services_config: the server keeps no second copy of the credentials it holds. To make a single caller or listener idempotent, send it as a batch of one.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the caller of EVERY entry of StartCallersResponse.caller_responses, relative to the Caller message (no prefix), e.g. call_name, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. caller.name and every other field of the response and of its entries are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is started. Applied after the server's role-based redaction of common_services_config, so it can only narrow the response. It shapes only the response: the callers are started regardless. The entries' own field_mask must be unset. Not part of the idempotency_key comparison: a retry with the same key and another mask replays the first response shaped by the retry's mask.

validate_only bool

Optional. Dry run of the whole batch: every entry is validated like StartCaller with validate_only (see StartCallerRequest.validate_only), the project's caller limit is checked for the batch as a whole, nothing is started, deployed or stored and no event is emitted. The The response is shaped like a real one: one entry per caller that would have been started, and the entries that would have failed accounted for in error_message. The idempotency_key is neither read nor stored by a dry run. The entries' own validate_only must be unset. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

StartCallersResponse

Response to the start callers request

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

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 accounts for it.

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

StartListenerRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

sip_base_config SipBaseConfig

SIP service configuration of the listener's container. sip_sim_version picks the ondewo-sip image version; empty uses the server's default (deployment setting ONDEWO_VTSI_DEFAULT_SIP_IMAGE_TAG), and the tag actually deployed is what the listener stores and returns.

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 (voice_interaction_config: turn detection, interruptions, response timing, transfers, DTMF) and the call's media (sip_vtsi_config).

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 INVALID_ARGUMENT, an unreachable service with UNAVAILABLE. A value outside a field's documented range is refused with INVALID_ARGUMENT. voice_interaction_config.answering_machine_detection_config is refused on a listener (INVALID_ARGUMENT, reason=amd-requires-persistent-caller): a listener never dials out.

Inheritance: every field left unset inherits the deployment-wide ONDEWO_VTSI_* setting where the server's operator configured one, otherwise the built-in default; a value set here wins over both for this listener's calls. A deployment setting is read when the listener's container is deployed, so a later change of it reaches a running listener only when the listener is recreated.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in StartListenerResponse.listener, relative to the Listener message (no listener. prefix), e.g. call_name, common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. listener.name and the other fields of the response are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is started. Applied after the server's role-based redaction of common_services_config, so it can only narrow the response. It shapes only the response: the listener is started regardless.

Read only by the RPC this message is the request of. Where it is an entry of another request (StartListenersRequest.listener_requests) it must be unset, otherwise that whole request is rejected with INVALID_ARGUMENT naming the entry and nothing is started; use the enclosing request's own field_mask where it has one.

validate_only bool

Optional. Dry run: when true, the request runs every validation StartListener runs, including the live validation of the configuration against the upstream services (NLU, S2T, T2S, RabbitMQ) and the project's listener limit, but starts, deploys and stores NOTHING and emits no event. It answers with the same error a real request would answer, or with the response a real request would return, except that the returned listener was never created: its name, call_name and every other output-only field are empty. A request that passes a dry run can still fail for real, e.g. when the project reached its limit in between. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

Where this message is an entry of another request (StartListenersRequest.listener_requests) it must be unset, otherwise that whole request is rejected with INVALID_ARGUMENT naming the entry; use the enclosing request's own validate_only where it has one.

StartListenerResponse

Response to start a listener, and one entry of StartListenersResponse

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

listener Listener

The listener that was started (with validate_only: the listener that would have been started), shaped by the request's field_mask

error_message string

Always empty: StartListener reports its errors as gRPC status codes, and an entry of StartListenersResponse exists only for a listener that was started (failures are accounted for in StartListenersResponse.error_message)

StartListenersRequest

Request to start multiple listeners

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

listener_requests StartListenerRequest repeated

Listeners that should be started, each with its OWN configuration (sip_base_config, common_services_config), which applies to every inbound call that listener answers. Entries may carry different configurations, e.g. a group of listeners with interruptions enabled beside a group without; nothing is shared between the entries.

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 INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no common_services_config: the server keeps no second copy of the credentials it holds. To make a single caller or listener idempotent, send it as a batch of one.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the listener of EVERY entry of StartListenersResponse.listener_responses, relative to the Listener message (no prefix), e.g. call_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. listener.name and every other field of the response and of its entries are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is started. Applied after the server's role-based redaction of common_services_config, so it can only narrow the response. It shapes only the response: the listeners are started regardless. The entries' own field_mask must be unset. Not part of the idempotency_key comparison: a retry with the same key and another mask replays the first response shaped by the retry's mask.

validate_only bool

Optional. Dry run of the whole batch: every entry is validated like StartListener with validate_only (see StartListenerRequest.validate_only), the project's listener limit is checked for the batch as a whole, nothing is started, deployed or stored and no event is emitted. The response is shaped like a real one: one entry per listener that would have been started, and the entries that would have failed accounted for in error_message. The idempotency_key is neither read nor stored by a dry run. The entries' own validate_only must be unset. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

StartListenersResponse

Response to start multiple listeners

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

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 accounts for it.

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

StartScheduledCallerRequest

Request for starting a scheduled call

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

request StartCallerRequest

The caller to start at scheduled_time, validated like a StartCallerRequest of StartCaller (the live checks of the configuration run when the call is started, not when it is scheduled). Its own field_mask and validate_only must be unset, otherwise the request is refused with INVALID_ARGUMENT.

Its sip_caller_config and common_services_config are stored now and are the configuration of the one call placed when the scheduled caller fires, with the same inheritance as StartCallerRequest.common_services_config (unset fields take the deployment-wide ONDEWO_VTSI_* setting in force at that time, otherwise the built-in default). After creation only scheduled_time and sip_caller_config.sip_headers can be changed (UpdateScheduledCaller); for any other change cancel it and create a new one. A scheduled caller is never served by a pooled caller: its call always gets a newly deployed caller, so answering machine detection (voice_interaction_config.answering_machine_detection_config) is refused with INVALID_ARGUMENT (reason=amd-requires-persistent-caller).

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 StartScheduledCallerResponse.scheduled_caller, relative to the ScheduledCaller message (no scheduled_caller. prefix), e.g. status, scheduled_time, sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. scheduled_caller.name and the other fields of the response are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is created. Applied after the server's role-based redaction of common_services_config, so it can only narrow the response. It shapes only the response: the scheduled caller is created regardless.

Read only by the RPC this message is the request of. Where it is an entry of another request (StartScheduledCallersRequest.scheduled_caller_requests, AddScheduledCallersToCampaignRequest.scheduled_caller_requests) it must be unset, otherwise that whole request is rejected with INVALID_ARGUMENT naming the entry and nothing is created; use the enclosing request's own field_mask where it has one.

StartScheduledCallerResponse

Response to start a scheduled caller, and one entry of StartScheduledCallersResponse

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

scheduled_caller ScheduledCaller

The scheduled caller that was created, shaped by the request's field_mask. Unset when error_message is set.

error_message string

Empty on success, otherwise why the scheduled caller was not created (nothing was created for this entry)

StartScheduledCallersRequest

Request to start scheduled callers

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

scheduled_caller_requests StartScheduledCallerRequest repeated

The scheduled callers to create, 1 to 1000, each like StartScheduledCaller and on its own (not atomic: an entry that fails is reported in its StartScheduledCallerResponse.error_message and does not stop the others). Each entry's vtsi_project_name is overwritten with this request's; its field_mask must be unset. Every entry carries its own configuration, which applies to its own call only (see StartScheduledCallerRequest.request).

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 INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no common_services_config: the server keeps no second copy of the credentials it holds. To make a single caller or listener idempotent, send it as a batch of one.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the scheduled_caller of EVERY entry of StartScheduledCallersResponse.scheduled_caller_responses, relative to the ScheduledCaller message (no prefix), as in StartScheduledCallerRequest.field_mask. scheduled_caller.name and every other field of the response and of its entries are always populated. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is created. The entries' own field_mask must be unset. Not part of the idempotency_key comparison: a retry with the same key and another mask replays the first response shaped by the retry's mask.

StartScheduledCallersResponse

Response to start multiple scheduled callers

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

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

StopAllCallsRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose calls are stopped, of the form

projects/<project_uuid>/project

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of StopCallsResponse.stop_call_responses, relative to the entry message StopCallResponse, i.e. vtsi_project_name and error_message (the entries carry no Call). call_name of each entry and StopCallsResponse.error_message are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the calls are stopped regardless.

call_filter CallFilter

Optional. Narrows the calls that are stopped: of the calls StopAllCalls stops without a filter (the project's current calls, each with the listener or caller that serves it), only those this filter matches, with the semantics, validation and errors of ListCallsRequest.call_filter (the campaign selector included). An invalid filter is INVALID_ARGUMENT and nothing is stopped. Unset or empty stops every call, as before 9.1.0. The filter is evaluated once, when the request arrives: a call that starts while the request runs is not stopped.

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.

StopCallRequest

Request to stop a call: hang it up and stop (release) the listener or caller that serves it.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the call, of the form

projects/<project_uuid>/project
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

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of StopCallResponse to populate, i.e. vtsi_project_name and error_message (the response carries no Call). call_name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the call is stopped regardless.

StopCallResponse

Response to stop a call, and one entry of StopCallsResponse.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the call, of the form

projects/<project_uuid>/project

call_name string

The call the request named For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

error_message string

Empty when the call's listener or caller was released. Call ... was not released when there was nothing left to release (e.g. it had already been stopped); the RPC still succeeds. Errors that are not about this outcome are gRPC status codes for StopCall; in an entry of StopCallsResponse / the response of StopAllCalls they are the error of that entry, prefixed with the name of the gRPC status code StopCall would have answered, e.g. NOT_FOUND: call projects/.../calls/... does not exist.

StopCallerRequest

Represents a request to stop a specific caller.

FieldTypeLabelDescription
name string

The name of the caller to stop in the form

projects/<project_uuid>/callers/<caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of StopCallerResponse to populate, i.e. error_message (the response carries no Caller). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the caller is stopped regardless.

StopCallerResponse

Response to stopping a caller, and one entry of StopCallersResponse.

FieldTypeLabelDescription
name string

The name of the stopped caller in the form

projects/<project_uuid>/callers/<caller_uuid>

error_message string

Empty on success. StopCaller reports its errors as gRPC status codes, so it is empty there. In an entry of StopCallersResponse it is the error of that entry, prefixed with the name of the gRPC status code StopCaller would have answered, e.g. NOT_FOUND: caller projects/.../callers/... does not exist.

StopCallersRequest

Represents a request to stop multiple callers.

FieldTypeLabelDescription
names string repeated

The names of the callers to stop, 1 to 1000 distinct names, in the form

projects/<project_uuid>/callers/<caller_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of StopCallersResponse.stop_caller_responses, relative to the entry message StopCallerResponse, i.e. error_message (the entries carry no Caller). name of each entry and the response's own fields are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the callers are stopped regardless.

vtsi_project_name string

Optional. VTSI project of every caller of the request, of the form

projects/<project_uuid>/project
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.

StopCallersResponse

Response to stop multiple callers

FieldTypeLabelDescription
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.

error_message string

A summary when at least one entry failed (e.g. 2 of 5 callers were not stopped), empty when every entry succeeded. The failed entries carry their own error_message.

StopCallsRequest

Request to stop several calls, each like StopCall.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of every call of the request, of the form

projects/<project_uuid>/project

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

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of StopCallsResponse.stop_call_responses, relative to the entry message StopCallResponse, i.e. vtsi_project_name and error_message (the entries carry no Call). call_name of each entry and StopCallsResponse.error_message are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the calls are stopped regardless.

StopCallsResponse

Response of StopCalls and StopAllCalls.

FieldTypeLabelDescription
stop_call_responses StopCallResponse repeated

One entry per stopped call: for StopCalls one per distinct requested name, in request order; for StopAllCalls one per call it stopped, ordered by call_name, ascending (empty when there was nothing to stop).

error_message string

Empty when no entry carries an error_message; otherwise the entries' messages joined, so a client can log one string. Read the entries for the per-call outcome.

StopListenerRequest

Represents a request to stop a specific listener.

FieldTypeLabelDescription
name string

The name of the listener to stop in the form

projects/<project_uuid>/listeners/<listener_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths of StopListenerResponse to populate, i.e. error_message (the response carries no Listener). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the listener is stopped regardless.

StopListenerResponse

Response to stopping a listener, and one entry of StopListenersResponse.

FieldTypeLabelDescription
name string

The name of the stopped listener in the form

projects/<project_uuid>/listeners/<listener_uuid>

error_message string

Empty on success. StopListener reports its errors as gRPC status codes, so it is empty there. In an entry of StopListenersResponse it is the error of that entry, prefixed with the name of the gRPC status code StopListener would have answered, e.g. NOT_FOUND: listener projects/.../listeners/... does not exist.

StopListenersRequest

Represents a request to stop multiple listeners.

FieldTypeLabelDescription
names string repeated

The names of the listeners to stop, 1 to 1000 distinct names, in the form

projects/<project_uuid>/listeners/<listener_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in EVERY entry of StopListenersResponse.stop_listener_responses, relative to the entry message StopListenerResponse, i.e. error_message (the entries carry no Listener). name of each entry and the response's own fields are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is stopped. It shapes only the response: the listeners are stopped regardless.

vtsi_project_name string

Optional. VTSI project of every listener of the request, of the form

projects/<project_uuid>/project
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.

StopListenersResponse

Response to stop multiple listeners

FieldTypeLabelDescription
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.

error_message string

A summary when at least one entry failed (e.g. 2 of 5 listeners were not stopped), empty when every entry succeeded. The failed entries carry their own error_message.

StreamCallAudioConfig

Configuration of a call audio stream. The first request of StreamCallAudio

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name of the form

projects/<project_uuid>/project

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: 8000 or 16000; 0 means 16000. Audio is LINEAR16 little-endian mono in 20 ms frames

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. 0 means the server maximum

StreamCallAudioRequest

Request of StreamCallAudio

FieldTypeLabelDescription
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

true: the agent's audio is not sent to the caller until set to false

StreamCallAudioResponse

Response of StreamCallAudio and ListenCallAudio

FieldTypeLabelDescription
started CallAudioStarted

The stream is connected

audio CallAudioFrame

Call audio

stats CallAudioStats

Stream counters

ended CallAudioEnded

The stream ended

StreamCallResourceStatusResponse

The response message of the three status streams.

FieldTypeLabelDescription
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.

StreamCallerStatusRequest

The request message for Calls.StreamCallerStatus.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project

caller_names string repeated

Only these callers. Empty means every caller of the project.

active_only bool

Only callers whose call is active.

StreamListenerStatusRequest

The request message for Calls.StreamListenerStatus.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project

listener_names string repeated

Only these listeners. Empty means every listener of the project.

active_only bool

Only listeners whose call is active.

StreamScheduledCallerStatusRequest

The request message for Calls.StreamScheduledCallerStatus.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project

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.

TransferCallRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

call_name string

call name to transfer For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

transfer_id string

LEGACY raw target: the dialplan extension, voip number or phone number to transfer the call to. Validated against ^\+?[A-Za-z0-9._-]{1,64}$. Mutually exclusive with target: setting both is INVALID_ARGUMENT. Always a BLIND transfer: with TRANSFER_MODE_WARM it is refused with INVALID_ARGUMENT (reason=warm-requires-typed-target). A phone number spelled here is checked against the project's transfer allowlist like a typed one. A request that sets ONLY this field (no mode, headers or ring_timeout_s) is answered as before 9.0.0: a failure after the call was found is reported in TransferCallResponse.error_message rather than as a gRPC status.

target CallTarget

Typed target of the transfer, resolved and validated by the server. Mutually exclusive with transfer_id. Exactly one of the two must be set; neither is INVALID_ARGUMENT. Required for a WARM transfer.

mode TransferMode

How to transfer. Unspecified means TRANSFER_MODE_BLIND: the call is handed to the dialplan, and a target that is busy or does not answer after the REFER was accepted loses the caller. TRANSFER_MODE_WARM rings the target first and keeps the caller with the bot when the target does not join; it needs a typed target other than an IVR menu. An unknown value is INVALID_ARGUMENT (reason=invalid-mode)

headers TransferCallRequest.HeadersEntry repeated

Optional headers handed to the transfer target. Keys must match X-ondewo-[A-Za-z0-9-]{1,64}, at most 16 entries, values at most 256 bytes. Merged over the call's own headers. They are delivered through the dialplan, not on the SIP REFER (Asterisk does not forward REFER headers to the target). Not delivered to a phone number target.

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 (error_reason invalid-header / too-many-headers), and the call is untouched. Example: {"X-ondewo-customer-id": "4711"} lets the receiving agent's softphone or listener see which customer is coming.

ring_timeout_s int32

WARM only: how long the target may ring, in seconds, 5 to 120. 0 means 30. When the target has not answered by then, the transfer ends with its no-answer outcome and the caller stays with the bot. Checked also on a BLIND transfer, where it has no effect: any other value is INVALID_ARGUMENT (reason=invalid-ring-timeout)

request_id string

Optional idempotency key, with the semantics of InviteToCallRequest.request_id: 1 to 255 visible ASCII characters, scoped to call_name. A repeated request with the same call_name and request_id returns the TransferCallResponse of the first request instead of transferring again, for as long as the call record exists; the same key with a different target, mode, headers, ring timeout or warm_transfer_config is refused with INVALID_ARGUMENT and reason=request-id-conflict. A first request that was refused with a gRPC status stored nothing, so its retry runs again; a first request that answered an outcome (also a telephony failure such as TRANSFER_OUTCOME_TIMEOUT) is replayed. A replay writes no second audit record and emits no event. Empty means no deduplication. In a TransferCallsRequest each entry carries its own key.

warm_transfer_config WarmTransferConfig

WARM only: the warm intro of this transfer, merged field by field over the call's VoiceInteractionConfig.warm_transfer_config and the project's VtsiProject.warm_transfer_defaults (see WarmTransferConfig): a field set here wins for this transfer only, a field left unset takes the call's value, then the project's, then the built-in default documented at the field (for ready_question, accept_question, decline_reason_question, caller_declined_message and caller_unreachable_message, the NLU agent's warm transfer text comes before the built-in one). The deployment switch decides only whether warm intros can run at all. Unset as a whole, those levels alone decide whether the intro runs. Set with TRANSFER_MODE_BLIND it is refused with INVALID_ARGUMENT. When the effective config enables the intro, the target must be a human (phone_number or softphone_account_name; a listener, the listener queue or an IVR menu is refused with INVALID_ARGUMENT reason=warm-intro-target-not-human), and these preconditions are checked before anything rings, each refused with FAILED_PRECONDITION and the reason: warm-intro-disabled (the deployment switch is off), asterisk-not-local / asterisk-version-unsupported, no-nlu-session (the call has no live NLU session), warm-intro-needs-listener (the project has no listener to run the intro), warm-intro-cross-project (the listeners use another NLU project than the call), warm-intro-notice-unsupported (the call's SIP container cannot deliver the outcome to the caller), call-control-disabled and phase-b-not-enabled. The response is then TRANSFER_OUTCOME_PENDING; the outcome arrives in Call.last_transfer and the events VTSI_EVENT_CALL_WARM_INTRO_*

TransferCallRequest.HeadersEntry

FieldTypeLabelDescription
key string

value string

TransferCallResponse

Response to transfer a call to a phone number or voip number

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

call_name string

call name to transfer For listener this is

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
For callers this is
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

transfer_id string

The legacy raw target of the request (TransferCallRequest.transfer_id), echoed; empty for a typed target (see resolved_target)

error_message string

Empty unless the transfer failed. TransferCall reports a refusal before any side effect as a gRPC status and a telephony outcome in outcome / error_reason, so it is empty there. In an entry of TransferCallsResponse it is the error of an entry TransferCall would have refused with a gRPC status, prefixed with the name of that status code, e.g. FAILED_PRECONDITION: reason=call-not-connected.

outcome TransferOutcome

Outcome of the transfer. A WARM transfer with a warm intro answers TRANSFER_OUTCOME_PENDING; its final outcome arrives in Call.last_transfer and the events

resolved_target string

The dialplan extension the target resolved to, e.g. ondewo0007, a softphone user name, ondewoqueue or the E.164 number

sip_response_code int32

SIP response code of the REFER where known (202 accepted, the refusal code otherwise), else 0

error_reason string

Stable reason token of a refusal or failure, e.g. target-not-registered, listener-busy, queue-empty, self-transfer, number-not-allowed; empty on success

TransferCallsRequest

Request to transfer multiple calls

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

transfer_call_requests TransferCallRequest repeated

The transfers, 1 to 1000, applied one by one and each like TransferCall (not atomic: a failed entry does not stop the others). An entry with an empty vtsi_project_name takes this request's; an entry naming another project, or a call of another project, fails on its own (its error_message). Each entry may carry its own request_id.

TransferCallsResponse

Response to transfer a call to a phone number or voip number

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

transfer_call_responses TransferCallResponse repeated

One entry per entry of the request, in request order: the outcome of that transfer, or its error_message

error_message string

A summary when at least one entry failed (e.g. Errors occurred during the transfer of 2 out of 5 calls.), empty when no entry carries an error_message. Telephony outcomes are read from each entry's outcome.

TransferOutcomeCount

Number of calls whose last transfer attempt had one outcome, an entry of CallStatistics.transfer_outcome_counts.

FieldTypeLabelDescription
outcome TransferOutcome

The outcome of the call's last transfer attempt (Call.last_transfer.outcome).

count int32

Number of matching calls whose last transfer attempt had that outcome.

UpdateCallRequest

The request message for Calls.UpdateCall.

FieldTypeLabelDescription
call Call

The call to update, identified by call.name (

projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>
or
projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
), carrying the new labels. Every other field is ignored.

update_mask google.protobuf.FieldMask

Required. Paths relative to Call, WITHOUT a call. prefix. The only updatable path is labels, which replaces the whole map with call.labels (unset or empty clears it). An empty mask, any other path (every other field of a Call is output only) or a path below labels (e.g. labels.ticket) is rejected with INVALID_ARGUMENT naming the path, and nothing is written. Labels outside the bounds of Call.labels are rejected with INVALID_ARGUMENT naming the label.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in UpdateCallResponse.call, relative to the Call message (no call. prefix), e.g. labels, active. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. call.name and the other fields of the response are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. The returned call is the one GetCall with call_view = FULL would return after the update, including the server's role-based redaction of common_services_config, and the mask is applied after that redaction. In an entry of UpdateCallsRequest it must be unset (use UpdateCallsRequest.field_mask).

UpdateCallResponse

The response message for Calls.UpdateCall, and one entry of UpdateCallsResponse.

FieldTypeLabelDescription
name string

The name of the call the request named. Always populated, also for a failed entry of UpdateCalls.

call Call

The call after the update, shaped by the request's field_mask. Unset for a failed entry.

error_message string

Empty on success; as UpdateCallerResponse.error_message.

UpdateCallerRequest

The request message for Calls.UpdateCaller.

FieldTypeLabelDescription
caller Caller

The caller to update, identified by caller.name (

projects/<project_uuid>/callers/<caller_uuid>
), 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 Calls.UpdateCaller); until then it keeps running, and being matched by, the configuration it was deployed with. To place a call with a new configuration, start a new caller with it.

update_mask google.protobuf.FieldMask

Required. Paths relative to Caller, WITHOUT a caller. prefix. Updatable paths: sip_caller_config and common_services_config, each also as any nested sub-path (e.g. sip_caller_config.callee_id, sip_caller_config.sip_headers, sip_caller_config.sip_base_config.sip_sim_version, common_services_config.nlu_vtsi_config.agent_name). An empty mask, or an unknown, output-only or immutable path (name, call_name, vtsi_project_name, active, sip_status_type, created_at, pooled, campaign_name; a nested path is checked against the message type it names), is rejected with INVALID_ARGUMENT naming the path, and nothing is written.

The semantics are those of UpdateCampaignRequest.update_mask for the campaign call defaults:

  • a path naming a message field REPLACES that whole message with the one sent; an unset one clears it (the create default of a message field is unset);
  • a path naming a scalar, repeated or map field replaces exactly that field; a repeated or map field is replaced as a whole, never appended to; a named scalar left at its zero value writes what StartCaller stores for that value (the create default);
  • a path naming an optional field (e.g. common_services_config.voice_interaction_config.interruption_handling_config.enabled) writes the value sent when the request's caller sets it, false and 0 included, and CLEARS it when it does not, so that the configuration inherits that setting again (the deployment-wide ONDEWO_VTSI_* setting, otherwise the built-in default);
  • a field that no path names is left untouched;
  • a path naming a member of a oneof (e.g. common_services_config.nlu_vtsi_config.auth_token) SETS that member, clearing the other members, when the request's caller has that member set; when it does not, the path CLEARS the member if it is the stored active one and changes nothing otherwise;
  • a path BELOW a repeated or map field (e.g. sip_caller_config.sip_headers.X-Foo) is rejected with INVALID_ARGUMENT naming it: name the repeated or map field itself;
  • a path and a sub-path of it in the same mask act as the shorter path alone.

The resulting stored configuration must be one a StartCallerRequest carrying it would be accepted with; otherwise the request is rejected with INVALID_ARGUMENT and nothing is written.

Credentials: values written to credential-bearing fields are stored like those of StartCaller and never logged. A caller that is returned the redacted common_services_config (see GetCaller) and writes it back whole with the path common_services_config overwrites the stored credentials with the withheld (empty) ones; update a sub-path instead.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in UpdateCallerResponse.caller, relative to the Caller message (no caller. prefix), e.g. sip_caller_config.callee_id. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. caller.name and the other fields of the response are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. The returned caller is the one GetCaller with call_view = FULL would return after the update, including the server's role-based redaction of common_services_config, and the mask is applied after that redaction, so it can only narrow the response. In an entry of UpdateCallersRequest it must be unset (use UpdateCallersRequest.field_mask).

validate_only bool

Optional. Dry run: when true, the request runs every validation UpdateCaller runs (the update_mask rules, the credential rule and the validation of the resulting configuration as a StartCallerRequest, the live checks against the upstream services included) but writes NOTHING and emits no event. It answers with the same error a real request would answer, or with the response a real request would return: the caller as it would be after the update. It does not wait for a running update, deploy or undeploy of the project. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it. In an entry of UpdateCallersRequest it must be unset (use UpdateCallersRequest.validate_only).

UpdateCallerResponse

The response message for Calls.UpdateCaller, and one entry of UpdateCallersResponse.

FieldTypeLabelDescription
name string

The name of the caller the request named, in the form

projects/<project_uuid>/callers/<caller_uuid>
Always populated, also for a failed entry of UpdateCallers.

caller Caller

The caller after the update, shaped by the request's field_mask. Unset for a failed entry.

error_message string

Empty on success. UpdateCaller reports every error as a gRPC status code, so it is always empty there. In an entry of UpdateCallersResponse it is the error of that entry, prefixed with the name of the gRPC status code UpdateCaller would have answered, e.g. NOT_FOUND: caller projects/.../callers/... does not exist or INVALID_ARGUMENT: update_mask path 'call_name' is output only.

UpdateCallersRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of every caller of the request. The format is:

projects/<project_uuid>/project

update_caller_requests UpdateCallerRequest repeated

The updates, applied one by one and each like UpdateCaller: each changes the stored configuration of its caller only, and no running or placed call (see UpdateCallerRequest.caller).

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the caller of EVERY entry of UpdateCallersResponse.update_caller_responses, relative to the Caller message (no prefix), as in UpdateCallerRequest.field_mask. caller.name, name and error_message of each entry and the response's own fields are always populated.

validate_only bool

Optional. Dry run of every entry, each like UpdateCallerRequest.validate_only: the request-level checks and every entry are validated and reported as for a real request, and nothing is written. The entries' own validate_only must be unset. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

UpdateCallersResponse

The response message for Calls.UpdateCallers.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the request. The format is:

projects/<project_uuid>/project

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. 2 of 5 updates failed), empty when every entry succeeded. The failed entries carry their own error_message.

UpdateCallsRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of every call of the request. The format is:

projects/<project_uuid>/project

update_call_requests UpdateCallRequest repeated

The updates, applied one by one and each like UpdateCall.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the call of EVERY entry of UpdateCallsResponse.update_call_responses, relative to the Call message (no prefix), as in UpdateCallRequest.field_mask. call.name, name and error_message of each entry and the response's own fields are always populated.

UpdateCallsResponse

The response message for Calls.UpdateCalls.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the request. The format is:

projects/<project_uuid>/project

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 UpdateCallersResponse.error_message.

UpdateListenerRequest

The request message for Calls.UpdateListener.

FieldTypeLabelDescription
listener Listener

The listener to update, identified by listener.name (

projects/<project_uuid>/listeners/<listener_uuid>
), 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. UpdateListener does NOT redeploy the listener: its running container answers its current call and every following inbound call with the configuration it was deployed with. The stored configuration takes effect only when the server recreates the listener from it, i.e. when it recycles the project's listeners 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); a restart of the same container keeps the old configuration. To make every following call use the new configuration at once, stop the listener and start a new one with it.

update_mask google.protobuf.FieldMask

Required. Paths relative to Listener, WITHOUT a listener. prefix. Updatable paths: sip_base_config and common_services_config, each also as any nested sub-path (e.g. sip_base_config.sip_sim_version, common_services_config.nlu_vtsi_config.agent_name). name, call_name, vtsi_project_name, active, sip_status_type and created_at are output only. Rejections, path semantics, validation (against a StartListenerRequest carrying the result) and the credential note are exactly those of UpdateCallerRequest.update_mask.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in UpdateListenerResponse.listener, relative to the Listener message (no listener. prefix), with the rules of UpdateCallerRequest.field_mask (GetListener with call_view = FULL after the update, redacted, then masked). In an entry of UpdateListenersRequest it must be unset (use UpdateListenersRequest.field_mask).

validate_only bool

Optional. Dry run, as UpdateCallerRequest.validate_only with UpdateListener and a StartListenerRequest as the validation of the result: nothing is written, the response is the listener as it would be after the update. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it. In an entry of UpdateListenersRequest it must be unset (use UpdateListenersRequest.validate_only).

UpdateListenerResponse

The response message for Calls.UpdateListener, and one entry of UpdateListenersResponse.

FieldTypeLabelDescription
name string

The name of the listener the request named, in the form

projects/<project_uuid>/listeners/<listener_uuid>
Always populated, also for a failed entry of UpdateListeners.

listener Listener

The listener after the update, shaped by the request's field_mask. Unset for a failed entry.

error_message string

Empty on success; as UpdateCallerResponse.error_message.

UpdateListenersRequest

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.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of every listener of the request. The format is:

projects/<project_uuid>/project

update_listener_requests UpdateListenerRequest repeated

The updates, applied one by one and each like UpdateListener: each changes the stored configuration of its listener only, which its calls use once the server recreates the listener, never before (see UpdateListenerRequest.listener).

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in the listener of EVERY entry of UpdateListenersResponse.update_listener_responses, relative to the Listener message (no prefix), as in UpdateListenerRequest.field_mask. listener.name, name and error_message of each entry and the response's own fields are always populated.

validate_only bool

Optional. Dry run of every entry, each like UpdateListenerRequest.validate_only; nothing is written. The entries' own validate_only must be unset. Default false. A server older than 9.1.0 ignores this field and runs the request for real; check the server version before relying on it.

UpdateListenersResponse

The response message for Calls.UpdateListeners.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project of the request. The format is:

projects/<project_uuid>/project

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 UpdateCallersResponse.error_message.

UpdateScheduledCallerRequest

The request message for Calls.UpdateScheduledCaller.

FieldTypeLabelDescription
scheduled_caller ScheduledCaller

The scheduled caller to update, identified by scheduled_caller.name (

projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>
), 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 ScheduledCaller, WITHOUT a scheduled_caller. prefix. The only updatable paths are:

  • scheduled_time: the new time at or after which the call is started. Unset is INVALID_ARGUMENT (a scheduled caller always has a time). A time in the past makes it due at once.
  • sip_caller_config.sip_headers: replaces the whole header map (an empty map clears it), validated like the sip_headers of a StartCallerRequest. A path below it (e.g. sip_caller_config.sip_headers.X-Foo) is rejected.
An empty mask, or any other path (output-only, immutable or unknown, e.g. 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 ScheduledCaller, relative to the ScheduledCaller message, with the rules of GetScheduledCallerRequest.field_mask. The returned scheduled caller is the one GetScheduledCaller with call_view = FULL would return after the update. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written.

Enums

BotPolicyOnJoin

What the bot does while a CONFERENCE participant is ringing or joined

NameNumberDescription
BOT_POLICY_ON_JOIN_UNSPECIFIED 0

Same as BOT_POLICY_ON_JOIN_KEEP: the bot keeps talking

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

CallAudioEndReason

Why a call audio stream ended

NameNumberDescription
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

CallAudioMode

Mode of a call audio stream

NameNumberDescription
CALL_AUDIO_MODE_UNSPECIFIED 0

Same as CALL_AUDIO_MODE_LISTEN

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 take_over

CallMediaSetting

Desired setting of one media control flag of a call

NameNumberDescription
CALL_MEDIA_SETTING_UNCHANGED 0

Leave the flag as it is

CALL_MEDIA_SETTING_ON 1

On: the bot speaks (bot_voice) or listens (bot_listening)

CALL_MEDIA_SETTING_OFF 2

Off: the bot is muted (bot_voice) or does not listen (bot_listening)

CallSorting.CallSortingField

The field by which calls are sorted.

NameNumberDescription
NO_CALL_SORTING 0

The default order of ListCalls (see ListCallsResponse.calls): by start_time, ascending. sorting_mode is ignored.

SORT_CALL_BY_START_TIME 1

Sort by Call.start_time. Calls without a start time (the waiting call of a persistent listener or pooled caller) come last in either mode.

CallStatus

Whether a call is active (set up or connected) or not, as a filter value of CallFilter.call_status.

NameNumberDescription
CALL_STATUS_UNSPECIFIED 0

Unspecified call status: does not filter

CALL_STATUS_ACTIVE 1

Call is active (Call.active is true)

CALL_STATUS_INACTIVE 2

Call is inactive (Call.active is false): ended, or the waiting call of a persistent listener or pooled caller

CallType

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.

NameNumberDescription
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

CallView

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.

NameNumberDescription
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

ParticipantEndReason

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.

NameNumberDescription
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 CallParticipant.end_reason then)

PARTICIPANT_END_REASON_NO_ANSWER 1

NOANSWER: the softphone rang until ring_timeout_s without being answered

PARTICIPANT_END_REASON_BUSY 2

BUSY: the softphone answered busy

PARTICIPANT_END_REASON_CHANNEL_UNAVAILABLE 3

CHANUNAVAIL: the softphone could not be reached (not registered, unreachable contact)

PARTICIPANT_END_REASON_CALL_ENDED 4

CALL_ENDED: the call (the bot's leg) ended, which hangs up every participant

PARTICIPANT_END_REASON_REMOVED 5

REMOVED: RemoveCallParticipant hung the participant up

PARTICIPANT_END_REASON_HANGUP 6

HANGUP: the participant hung up

PARTICIPANT_END_REASON_HANDED_OVER 7

HANDED_OVER: the participant took the call over from the bot (a WARM TransferCall)

PARTICIPANT_END_REASON_JOIN_FAILED 8

JOIN_FAILED: the participant answered but could not be joined into the call

PARTICIPANT_END_REASON_TIMEOUT 9

TIMEOUT: the server gave up waiting for the participant's state

ParticipantMode

How an invited participant takes part in a call

NameNumberDescription
PARTICIPANT_MODE_UNSPECIFIED 0

Same as PARTICIPANT_MODE_CONFERENCE

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

ParticipantState

State of an invited participant

NameNumberDescription
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; end_reason says why

PARTICIPANT_STATE_LEFT 4

The participant left the call; end_reason says why

ScheduledCallerStatus

Lifecycle state of a ScheduledCaller

NameNumberDescription
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

TransferMode

How a call is transferred

NameNumberDescription
TRANSFER_MODE_UNSPECIFIED 0

Same as TRANSFER_MODE_BLIND

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

TransferOutcome

Outcome of a transfer

NameNumberDescription
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 VTSI_EVENT_CALL_TRANSFERRED / VTSI_EVENT_CALL_TRANSFER_FAILED (and the VTSI_EVENT_CALL_WARM_INTRO_* events) or Call.last_transfer

TRANSFER_OUTCOME_TARGET_INVALID 3

Refused before anything was sent; the call is untouched. error_reason says why

TRANSFER_OUTCOME_REFER_REJECTED 4

The SIP server refused the REFER (including an unknown target extension); the call is KEPT with the bot. sip_response_code carries the code where known

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. CallTransferRecord.warm_intro.cause says which

TRANSFER_OUTCOME_INTRO_UNAVAILABLE 12

Warm intro: the intro could not run and WarmTransferConfig.on_intro_unavailable is WARM_INTRO_UNAVAILABLE_POLICY_RETURN_TO_CALLER; the target was hung up and the call stays with the bot

ondewo/vtsi/campaigns.proto

Top

Services

Campaigns

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):

  1. the call's own value (its entry of AddCallersToCampaign / AddScheduledCallersToCampaign); for a warm transfer, the TransferCall request's own warm_transfer_config wins over all of these;
  2. the campaign's value (campaign_common_services_config / campaign_sip_caller_config);
  3. a project default where one exists (e.g. VtsiProject.warm_transfer_defaults for a warm transfer);
  4. the deployment-wide ONDEWO_VTSI_* setting of the server, where the operator set one;
  5. the built-in default of the setting.

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.

Service Methods

CreateCampaign

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.

GetCampaign

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.

UpdateCampaign

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).

DeleteCampaign

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.

ListCampaigns

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.

GetCampaignStatistics

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.

ListCampaignCalls

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.

StartCampaign

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.

StopCampaign

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.

HardStopCampaign

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.

ResumeCampaign

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.

StreamCampaignStatus

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).

GetCampaignCall

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.

CancelCampaignCalls

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).

RetryCampaignCalls

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).

CloneCampaign

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.

Messages

CallingWindowSlot

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}.

FieldTypeLabelDescription
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 start_minute.

Campaign

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.

FieldTypeLabelDescription
name string

Output only. Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>
Ignored on create; identifies the campaign on update.

campaign_id string

Output only. The <campaign_uuid> part of name.

vtsi_project_name string

Output only. Resource name of the VTSI project the campaign belongs to. The format is:

projects/<project_uuid>/project

display_name string

Human-readable name, unique within the project, at most 128 characters. Empty on create means campaign-<campaign_uuid>. Updatable.

max_parallel_calls int32

Maximum number of calls of this campaign that are being started or are running at the same time. 0 on create means the server default (ONDEWO_VTSI_CAMPAIGN_DEFAULT_MAX_PARALLEL_CALLS, 1 by default); the allowed range is 1 to the server limit (ONDEWO_VTSI_CAMPAIGN_MAX_PARALLEL_CALLS_LIMIT, 1000 by default). The project's max_callers still bounds the number of callers that exist at all. Updatable; lowering it never ends a running call.

max_attempts int32

Maximum number of attempts per call, the first one included. 0 on create means the server default of 1, i.e. no retry; the allowed range is 1 to ONDEWO_VTSI_CAMPAIGN_MAX_ATTEMPTS_LIMIT (10 by default). Updatable. It is read LIVE, never snapshotted per call: every decision after an attempt fails uses the value current at that moment, and a call waiting in RETRY_PENDING whose attempts is no longer below a lowered value becomes FAILED at the next check (its last error stays). Raising it never revives a FAILED call; RetryCampaignCalls does. A call requeued by RetryCampaignCalls may exceed it (see CampaignCall.max_attempts).

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 (ONDEWO_VTSI_CAMPAIGN_DEFAULT_RETRY_DELAY_S, 60 s by default); allowed range 0 s to 7 days. Updatable. With a calling_window, a retry that falls due outside every slot waits for the next slot.

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. stopped after 3 consecutive failures that cannot succeed by repetition: .... Empty otherwise.

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 STOPPED or HARD_STOPPED.

completed_at google.protobuf.Timestamp

Output only. When the campaign reached COMPLETED.

campaign_common_services_config CommonServicesConfig

Optional. Default CommonServicesConfig of EVERY call of the campaign (speech-to-text, NLU, text-to-speech, CSI and voice interaction). Settable on CreateCampaign and on CampaignAssignment.new_campaign; updatable with the update_mask path campaign_common_services_config or a nested sub-path of it (e.g. campaign_common_services_config.nlu_vtsi_config.agent_name). Unset (the default) changes nothing: every call runs exactly with its own StartCallerRequest config, as before 9.1.0.

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 common_services_config of that call is:

effective = copy(campaign.campaign_common_services_config)
effective.MergeFrom(caller_request.common_services_config)

i.e. protobuf MergeFrom semantics, the call's own value WINNING:

  • a singular scalar, enum or string the call sets to a non-default value (or, for an optional field, sets at all) replaces the campaign's value; one the call leaves at its default keeps the campaign's value. A plain (non-optional) scalar therefore cannot be reset to its zero value by the call;
  • a message field is merged recursively by the same rules;
  • a repeated field is CONCATENATED, the campaign's entries first (e.g. nlu_vtsi_config.contexts, the lists of the csi_vtsi_config callbacks, voice_interaction_config.response_timing_config.soft_timeout_config.messages);
  • a map field is merged by key, the call's entry winning on a shared key;
  • a oneof member the call sets replaces whichever member the campaign set (e.g. nlu_vtsi_config.credentials versus nlu_vtsi_config.auth_token).

What this means for the call-behaviour settings: almost every one of them (turn detection, interruptions, response timing, DTMF, dictation, bot transfers, sip_vtsi_config, ...) is an optional scalar, where unset means "inherit". A setting the campaign leaves unset falls through to the deployment-wide ONDEWO_VTSI_* setting, if the operator set one, and otherwise to its built-in default. A setting the campaign sets applies to every call of the campaign and wins over the deployment-wide setting. A call can override it in either direction, because an optional field the call sets wins also when it is false or 0; but a call cannot take a campaign value back to "inherit": to let the calls inherit again, clear the field in the campaign (see UpdateCampaignRequest.update_mask).

Example: with

campaign_common_services_config {
  voice_interaction_config {
    interruption_handling_config { enabled: true }
    response_timing_config { turn_timeout_seconds: 8 turn_timeout_intent: "i.still.there" }
  }
}

every call of the campaign lets the callee interrupt the bot and, after 8 s of callee silence, plays the answer of the intent i.still.there, while every other interruption and timing setting the campaign leaves unset keeps the deployment's value. A call whose entry carries interruption_handling_config { enabled: false } is not interruptible and still uses 8 s; a call whose entry carries response_timing_config { turn_timeout_seconds: 5 } uses 5 s (the intent still comes from the campaign) and is interruptible.

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 StartCallerRequest carrying it, so an entry of AddCallersToCampaign / AddScheduledCallersToCampaign may leave out what the campaign supplies, and a value out of its range, set by the campaign or by the entry, refuses that request with INVALID_ARGUMENT naming the entry's index; nothing is added. Because the default is read live, an update that makes the effective configuration of a not yet dispatched call invalid fails that call at dispatch as a failure that cannot succeed by repetition (it is not retried).

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 CreateCampaign, GetCampaign, UpdateCampaign, ListCampaigns, StartCampaign, StopCampaign, HardStopCampaign and ResumeCampaign. Left UNSET (whatever is stored) in StreamCampaignStatusResponse.campaigns and in the campaign of AddCallersToCampaignResponse / AddScheduledCallersToCampaignResponse; read it with GetCampaign.

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 common_services_config of a started caller; the server never logs them. They are RETURNED only to a caller whose role on the project was resolved with authorization enforced and who may see the whole project (SERVER_ADMIN, PROJECT_ADMIN, PROJECT_DEVELOPER). Every other caller receives only the identity and routing fields (agent, language, initial intent, platform, service hosts and ports, CSI control messages, voice interaction config): a PROJECT_EXECUTOR, and also every caller when authorization is disabled or only monitored, because a Campaign has no view that could leave the config out by default. Every field outside that list reads back unset for them, also when the campaign sets it, so such a reader cannot tell from the response whether the calls inherit a setting there. A client that reads such a campaign and writes the whole config back with update_mask path campaign_common_services_config overwrites the stored credentials with the withheld (empty) ones; update a sub-path instead.

campaign_sip_caller_config SipCallerConfig

Optional. Default SipCallerConfig of EVERY call of the campaign (SIP image version, callee and SIP headers). Settable on CreateCampaign and on CampaignAssignment.new_campaign; updatable with the update_mask path campaign_sip_caller_config or a nested sub-path of it (e.g. campaign_sip_caller_config.sip_headers). Unset (the default) changes nothing.

Read LIVE at every dispatch and merged exactly like campaign_common_services_config: the effective sip_caller_config of a call is a copy of this value with the call's own StartCallerRequest.sip_caller_config merged over it (MergeFrom, the call winning); sip_headers are merged by key with the call's header winning on a shared name, so every call sends the campaign's headers plus its own. Example: a campaign default sip_headers { key: "X-Campaign" value: "spring" } and an entry with sip_headers { key: "X-Customer" value: "42" } dial with both headers.

Validation: what this default sets is checked when it is created or updated (INVALID_ARGUMENT naming the field): sip_base_config.sip_sim_version must be a valid image tag, callee_id at most 2048 characters and, when it holds no letter and no @, a valid phone number, and at most 64 sip_headers. The complete effective configuration is validated when a call is added and again at dispatch, as for campaign_common_services_config. The callee and the SIP headers never keep a call from reusing an idle pooled caller; the image version does.

EXCEPT callee_id, which is resolved ONCE, when the call is added to the campaign: the call's own callee_id or, when that is empty, this value's callee_id at that moment. The result is stored as CampaignCall.phone_number and is the callee_id of every attempt of that call, retries included. A later update of campaign_sip_caller_config.callee_id (or of the whole config) therefore changes the callee only of calls added after it, never of calls already in the campaign, so the number a campaign call reports (and that ListCampaignCallsRequest.phone_number filters on) is always the number it dials. An AddCallersToCampaign / AddScheduledCallersToCampaign request of which an entry takes the default callee is refused with ABORTED (nothing is added; retry it) when an update of the default callee commits while the request runs, so no call added after an update dials the previous default.

Returned by the same RPCs as campaign_common_services_config and left unset in the same responses.

campaign_callers string repeated

Output only. Resource names (

projects/<project_uuid>/callers/<caller_uuid>
) 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; campaign_callers_truncated says whether there are more. Bounded in work too: the server reads only the campaign's earliest 10000 attempts, by start, to compute it, so a campaign with 10000 or more attempts reports campaign_callers_truncated, also with fewer than 1000 names. The complete, paginated list is Calls.ListCallers with the campaign selector, and the calls they placed are Calls.ListCalls with CallFilter.campaign_name.

On UpdateCampaign and the four lifecycle RPCs the change has already been applied when the callers are read; when that read fails, the RPC still succeeds and returns the campaign with campaign_callers empty and campaign_callers_truncated true (read them with GetCampaign).

Populated by CreateCampaign (always empty: a new campaign has placed no call), GetCampaign, UpdateCampaign, StartCampaign, StopCampaign, HardStopCampaign and ResumeCampaign; subject to their field_mask like any other path (path campaign_callers; a path below it is rejected). ListCampaigns populates it ONLY when its field_mask names it explicitly, and an unset or empty mask, which returns every other field, leaves it empty: at up to 1000 names (~90 bytes each) per campaign, a default page would otherwise exceed gRPC's default 4 MiB message limit. Left empty in StreamCampaignStatusResponse.campaigns and in the campaign of AddCallersToCampaignResponse / AddScheduledCallersToCampaignResponse. Setting it on create is an output-only field set (INVALID_ARGUMENT), naming it in an update_mask is rejected as output only.

campaign_callers_truncated bool

Output only. True when campaign_callers may be incomplete: it was cut at its bound of 1000 names and the campaign has more callers, the campaign has 10000 or more attempts (the most the server reads for it), or (on UpdateCampaign and the lifecycle RPCs only) the callers could not be read after the change was applied. Read them all with Calls.ListCallers and the campaign selector. Populated and left unset by the same RPCs as campaign_callers, and in ListCampaigns also only when the field_mask names it explicitly; a field_mask names it like any other path (name both to read the names and whether they are complete).

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 CreateCampaign, CampaignAssignment.new_campaign and copied by CloneCampaign; updatable with the update_mask path calling_window (replaces the whole window; unset removes it) or the sub-paths calling_window.time_zone and calling_window.slots (the repeated field is replaced whole). Its output-only fields must be unset on create and are rejected in an update_mask. An invalid window is rejected with INVALID_ARGUMENT naming the problem (see CampaignCallingWindow). Returned by every RPC that returns a Campaign, StreamCampaignStatusResponse.campaigns and the campaign of the Add*ToCampaign responses included.

outside_calling_window bool

Output only. True while the campaign is RUNNING, has a calling_window and the current time is outside every slot of it, i.e. it starts no call until calling_window.next_window_start. False in every other case (no window, inside a slot, or another state). Evaluated when the campaign is read, so it is exact for the moment of the response; VTSI_EVENT_CAMPAIGN_CALLING_WINDOW_OPENED / ..._CLOSED report the edges of a running campaign. Returned like calling_window.

CampaignAssignment

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.

FieldTypeLabelDescription
campaign_name string

Add the calls to this existing campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

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, max_parallel_calls, max_attempts, retry_delay, campaign_common_services_config, campaign_sip_caller_config and calling_window are read; output-only fields (calling_window.next_window_start included) must be unset. Its call defaults are checked as on CreateCampaign and then apply to the calls of this request and to every later call of the campaign exactly as described at Campaign; the entries of this request are validated with them merged in.

display_name string

Add the calls to the existing campaign with this exact, case-sensitive display name, resolved within the enclosing request's project (AddCallersToCampaignRequest.vtsi_project_name / AddScheduledCallersToCampaignRequest.vtsi_project_name). Replaces the 9.0.0 CampaignDisplayName campaign_display_name = 4.

start_mode CampaignStartMode

Whether the campaign starts dialling; see CampaignStartMode. The default starts a new campaign and leaves an existing one in its state.

CampaignCall

One call of a campaign. Every field is output only.

FieldTypeLabelDescription
name string

Resource name of the campaign call. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>/campaign_calls/<campaign_call_uuid>

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: SipCallerConfig.callee_id of the call's request or, when the request leaves it empty, of Campaign.campaign_sip_caller_config at the time the call was added. Fixed from then on: every attempt of the call dials exactly this number, whatever later updates of the campaign's campaign_sip_caller_config say.

source CampaignCallSource

How the call was added.

scheduled_caller_name string

For CAMPAIGN_CALL_SOURCE_SCHEDULED_CALLER: resource name of its scheduled caller.

scheduled_time google.protobuf.Timestamp

For CAMPAIGN_CALL_SOURCE_SCHEDULED_CALLER: the scheduled time.

attempts int32

Attempts started so far.

max_attempts int32

The attempt limit of this call: the campaign's CURRENT max_attempts (read live, see Campaign.max_attempts), repeated here so a page of calls is readable alone. For a call requeued by RetryCampaignCalls it is the larger of that value and the call's own limit set by the requeue (its attempts at the time plus additional_attempts).

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 CAMPAIGN_CALL_STATE_RETRY_PENDING: when the next attempt may start.

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 COMPLETED, FAILED or CANCELLED.

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 (ListCampaignCallsRequest.include_attempts).

CampaignCallAttempt

One attempt of a campaign call.

FieldTypeLabelDescription
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:

projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

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 outcome is FAILED.

CampaignCallRefusal

One campaign call a CancelCampaignCalls / RetryCampaignCalls request did not act on, and why. A refusal is a result, not an error.

FieldTypeLabelDescription
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; CAMPAIGN_CALL_STATE_UNSPECIFIED for reason=not-found.

reason string

Why, a stable kebab-case token: attempt-in-progress (the call is DISPATCHING or IN_PROGRESS), already-finished (cancel: the call is COMPLETED, FAILED or CANCELLED), not-finished (retry: the call is not FAILED or CANCELLED), completed (retry: a COMPLETED call is never retried), state-not-selected (the named call is not in one of the request's states), not-found (no such call in the campaign).

CampaignCallingWindow

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.

FieldTypeLabelDescription
time_zone string

Required. IANA time zone name in which the slots are read, e.g. Europe/Vienna. At most 64 characters.

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 RUNNING.

CampaignFilter

Filter of a campaign listing.

FieldTypeLabelDescription
states CampaignState repeated

Only campaigns in one of these states. Empty means every state.

display_name_contains string

Only campaigns whose display_name contains this text, case-insensitive.

display_name string

Only the campaign whose display_name is exactly this (case-sensitive). Empty means no constraint. Combined with the other fields by AND.

created_after google.protobuf.Timestamp

Only campaigns created at or after this time (created_at >= created_after). Unset means no lower bound.

created_before google.protobuf.Timestamp

Only campaigns created strictly before this time (created_at < created_before). Unset means no upper bound. When both are set, created_after must be before created_before (INVALID_ARGUMENT otherwise).

created_by string

Only campaigns whose created_by is exactly this user (case-sensitive, the value the server returns in Campaign.created_by). Empty means no constraint.

modified_since google.protobuf.Timestamp

Only campaigns modified at or after this time (modified_at >= modified_since; state changes made by the server count as modifications). Unset means no constraint. Useful for incremental polling with CAMPAIGN_ORDER_BY_MODIFIED_AT_DESC.

CampaignStatistics

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):

Bounds: 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.

FieldTypeLabelDescription
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 (CAMPAIGN_CALL_STATE_NOT_STARTED).

in_progress int32

Calls being started or running (DISPATCHING + IN_PROGRESS).

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 not_started: scheduled calls whose scheduled time has not come yet.

calls_retried int32

Calls that needed more than one attempt (attempts > 1), whatever their state.

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 OUTGOING_CALL_CONNECTED to the moment it ended, averaged over those attempts (a running call is not counted until it ended). Unset when no attempt has connected and ended yet. Millisecond precision.

answering_machine_detected int32

Attempts whose call reported OUTGOING_CALL_ANSWERING_MACHINE_DETECTED (answering machine detection), whatever the call did next; each attempt counts once. 0 also when answering machine detection is not configured for the campaign's calls.

CancelCampaignCallsRequest

The request message for Campaigns.CancelCampaignCalls.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 (

projects/<project_uuid>/campaigns/<campaign_uuid>/campaign_calls/<campaign_call_uuid>
), 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 CAMPAIGN_CALL_STATE_NOT_STARTED and CAMPAIGN_CALL_STATE_RETRY_PENDING are allowed (INVALID_ARGUMENT for any other value). With campaign_call_names, narrows the named calls (a named call in another state is refused with reason=state-not-selected). At least one of the two fields must be set.

CancelCampaignCallsResponse

The response message for Campaigns.CancelCampaignCalls.

FieldTypeLabelDescription
campaign_name string

Resource name of the campaign.

cancelled_campaign_call_names string repeated

The calls this request cancelled (now CAMPAIGN_CALL_STATE_CANCELLED), by position.

refused CampaignCallRefusal repeated

The selected calls this request did not cancel, with the reason, by position (refusals of unknown names last, in request order).

remaining_count int32

With states only (no names): how many further calls matched after the first 1000 that this request acted on. Repeat the request while it is above 0. 0 otherwise.

CloneCampaignRequest

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.

FieldTypeLabelDescription
source_name string

Resource name of the source campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

source_display_name string

Exact, case-sensitive display_name of the source campaign, resolved within vtsi_project_name, which is then required.

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:

projects/<project_uuid>/project
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 campaign-<campaign_uuid> of the clone, as on CreateCampaign.

include_calls bool

Also copy the source's calls (see Campaigns.CloneCampaign). false (the default): the clone has no call.

call_states CampaignCallState repeated

With include_calls: copy only the calls in one of these states (e.g. CAMPAIGN_CALL_STATE_FAILED to call the failed numbers again in a new campaign). Empty means every state. Set without include_calls, or holding CAMPAIGN_CALL_STATE_UNSPECIFIED or an unknown value, is rejected with INVALID_ARGUMENT.

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).

CreateCampaignRequest

The request message for Campaigns.CreateCampaign.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project in which to create the campaign. The format is:

projects/<project_uuid>/project

campaign Campaign

The campaign to create. Output-only fields must be unset. campaign_common_services_config and campaign_sip_caller_config may be set: they become the defaults of every call of the campaign (see Campaign): every call added later takes each setting from them unless its own entry sets it, and a setting neither sets inherits the deployment-wide ONDEWO_VTSI_* setting or the built-in default. Only what campaign_sip_caller_config sets is checked here (INVALID_ARGUMENT naming the field); campaign_common_services_config is checked with each call when calls are added, so an out-of-range value in it is refused by AddCallersToCampaign / AddScheduledCallersToCampaign, not by this RPC.

field_mask google.protobuf.FieldMask

Optional. Partial response: the Campaign field paths to populate, relative to the returned Campaign and WITHOUT a campaign. prefix, e.g. state, statistics.completed, campaign_common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. The mask is applied after the server's role-based redaction, so it never reveals a redacted value. It shapes only the response: the whole campaign is created regardless.

idempotency_key string

Optional client idempotency key, with the semantics of AddCallersToCampaignRequest.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 (the same campaign, as it was returned then) instead of creating a second campaign, 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 INVALID_ARGUMENT; field_mask is not part of that comparison (a retry with another mask is the same request and its response is shaped by the retry's mask). A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the request again. A replayed response carries no campaign_common_services_config and no campaign_sip_caller_config: the server keeps no second copy of the credentials it holds; read them with GetCampaign.

DeleteCampaignRequest

The request message for Campaigns.DeleteCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 DeleteCampaignResponse field paths to populate, e.g. deleted_campaign_call_count. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. It shapes only the response: the campaign is deleted regardless.

force bool

Optional. Delete also a campaign that is RUNNING, STOPPING or HARD_STOPPING: the server hard stops it (every running call is hung up, see HardStopCampaign) and deletes it once the end of each call is confirmed, waiting at most ONDEWO_VTSI_CAMPAIGN_FORCE_DELETE_WAIT_S (30 s by default, bounded by the client's deadline); otherwise DEADLINE_EXCEEDED, and the campaign stays hard stopped and undeleted (repeat the request). false (the default): such a campaign is refused with FAILED_PRECONDITION, as before. No effect on a campaign in any other state.

DeleteCampaignResponse

The response message for Campaigns.DeleteCampaign.

FieldTypeLabelDescription
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.

GetCampaignCallRequest

The request message for Campaigns.GetCampaignCall.

FieldTypeLabelDescription
name string

Required. Resource name of the campaign call. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>/campaign_calls/<campaign_call_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT; authorization is checked on its project segment.

include_attempts bool

Populate CampaignCall.attempt_history (every attempt, oldest first). false (the default) leaves it empty.

field_mask google.protobuf.FieldMask

Optional. Partial response: the CampaignCall field paths to populate, relative to the returned CampaignCall, e.g. state, attempts, attempt_history. A path below a repeated field (e.g. attempt_history.outcome) is rejected. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. attempt_history is still populated only with include_attempts.

GetCampaignRequest

The request message for Campaigns.GetCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 Campaign field paths to populate, relative to the returned Campaign and WITHOUT a campaign. prefix, e.g. state, statistics.completed, campaign_common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. The mask is applied after the server's role-based redaction, so it never reveals a redacted value.

GetCampaignStatisticsRequest

The request message for Campaigns.GetCampaignStatistics.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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).

HardStopCampaignRequest

The request message for Campaigns.HardStopCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 Campaign field paths to populate, relative to the returned Campaign, exactly as GetCampaignRequest.field_mask. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before the state is changed. It shapes only the response: the state change is applied regardless.

ListCampaignCallsRequest

The request message for Campaigns.ListCampaignCalls.

FieldTypeLabelDescription
campaign_name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName campaign_display_name = 7.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 phone_number). Empty means every callee.

page_size int32

Optional. Maximum calls per page. 0 means 50; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT.

page_token string optional

Optional. The next_page_token of a previous response; valid only with the same campaign and filter (every filter field above and below, the 9.1.0 ones included).

include_attempts bool

Populate CampaignCall.attempt_history.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned CampaignCall, relative to the CampaignCall message (no campaign_calls. prefix), e.g. state, phone_number, attempt_history. Nested paths through singular message fields are allowed; a path below a repeated or map field (e.g. attempt_history.outcome) is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. attempt_history is still populated only with include_attempts: a mask naming it without include_attempts returns it empty. Not part of the paging contract: a page_token stays valid with another mask.

phone_numbers string repeated

Only calls to one of these callees (exact match on phone_number), at most 1000 entries. Combined with phone_number by OR (a call matches when its number is phone_number or one of these); both empty means every callee.

sources CampaignCallSource repeated

Only calls added in one of these ways. Empty means every source. An unknown value or CAMPAIGN_CALL_SOURCE_UNSPECIFIED is rejected with INVALID_ARGUMENT.

finish_time_min google.protobuf.Timestamp

Only calls that finished (finish_time set: COMPLETED, FAILED, CANCELLED) at or after this time. A call without finish_time never matches when this or finish_time_max is set. Unset means no lower bound.

finish_time_max google.protobuf.Timestamp

Only calls that finished strictly before this time. Unset means no upper bound. When both are set, finish_time_min must be before finish_time_max (INVALID_ARGUMENT otherwise).

modified_since google.protobuf.Timestamp

Only calls whose modified_at is at or after this time, i.e. that changed since then (incremental reads). Unset means no constraint.

min_attempts int32

Only calls with at least this many attempts started (attempts >= min_attempts). 0 means no constraint; negative is rejected with INVALID_ARGUMENT.

campaign_call_names string repeated

Only these calls, by resource name (

projects/<project_uuid>/campaigns/<campaign_uuid>/campaign_calls/<campaign_call_uuid>
), 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.

ListCampaignCallsResponse

The response message for Campaigns.ListCampaignCalls.

FieldTypeLabelDescription
campaign_calls CampaignCall repeated

The calls of this page, by position.

next_page_token string

Token for the next page. Empty when there are no more results.

ListCampaignsRequest

The request message for Campaigns.ListCampaigns.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose campaigns to list. The format is:

projects/<project_uuid>/project

filter CampaignFilter

Optional. Narrows the listing.

page_size int32

Optional. Maximum campaigns per page. 0 means 20; values above 1000 are clamped to 1000 (to 20 when field_mask names campaign_callers or campaign_callers_truncated); negative values are rejected with INVALID_ARGUMENT.

page_token string optional

Optional. The next_page_token of a previous response; valid only with the same project and filter.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned Campaign, relative to the Campaign message (no campaigns. prefix), as in GetCampaignRequest.field_mask. name is always populated. Unset or empty returns every field EXCEPT campaign_callers and campaign_callers_truncated, which are populated only when the mask names them explicitly (a page of full caller lists could exceed gRPC's default 4 MiB message limit). When the mask names either of them, the page holds at most 20 campaigns: a larger page_size is clamped to 20 (not rejected). For the complete, paginated callers of one campaign use Calls.ListCallers with the campaign selector. An unknown path is rejected with INVALID_ARGUMENT naming it. Not part of the paging contract: a page_token stays valid with another mask.

order_by CampaignOrderBy

Optional. Order of the listing; unset means newest first (CAMPAIGN_ORDER_BY_CREATED_AT_DESC), as before this field existed. Part of the paging contract: a page_token is valid only with the order_by it was issued for (INVALID_ARGUMENT otherwise). An unknown value is rejected with INVALID_ARGUMENT.

ListCampaignsResponse

The response message for Campaigns.ListCampaigns.

FieldTypeLabelDescription
campaigns Campaign repeated

The campaigns of this page, in the request's order_by (newest first by default).

next_page_token string

Token for the next page. Empty when there are no more results.

ResumeCampaignRequest

The request message for Campaigns.ResumeCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 Campaign field paths to populate, relative to the returned Campaign, exactly as GetCampaignRequest.field_mask. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before the state is changed. It shapes only the response: the state change is applied regardless.

RetryCampaignCallsRequest

The request message for Campaigns.RetryCampaignCalls.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 CancelCampaignCallsRequest.campaign_call_names.

states CampaignCallState repeated

Requeue the calls in one of these states: only CAMPAIGN_CALL_STATE_FAILED and CAMPAIGN_CALL_STATE_CANCELLED are allowed (INVALID_ARGUMENT for any other value). With campaign_call_names, narrows the named calls. At least one of the two fields must be set.

additional_attempts int32

Attempts each requeued call may make from now on, on top of the attempts it already made: its attempt limit becomes attempts + additional_attempts (never below the campaign's live max_attempts), reported as CampaignCall.max_attempts. 0 means 1; allowed 0 to ONDEWO_VTSI_CAMPAIGN_MAX_ATTEMPTS_LIMIT (10 by default). Between the new attempts the campaign's retry_delay applies as usual.

not_before google.protobuf.Timestamp

Optional. The first new attempt starts no earlier than this time (and, with a calling_window, inside a slot). Unset or in the past means as soon as the campaign has a free slot. At most 7 days ahead (INVALID_ARGUMENT otherwise).

RetryCampaignCallsResponse

The response message for Campaigns.RetryCampaignCalls.

FieldTypeLabelDescription
campaign_name string

Resource name of the campaign.

requeued_campaign_call_names string repeated

The calls this request requeued (now RETRY_PENDING or NOT_STARTED), by position.

refused CampaignCallRefusal repeated

The selected calls this request did not requeue, with the reason (see CancelCampaignCallsResponse.refused).

remaining_count int32

With states only: how many further calls matched after the first 1000. Repeat the request while it is above 0. 0 otherwise.

campaign_state CampaignState

State of the campaign after the request (a COMPLETED campaign that got a call back is CAMPAIGN_STATE_RUNNING).

StartCampaignRequest

The request message for Campaigns.StartCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 Campaign field paths to populate, relative to the returned Campaign, exactly as GetCampaignRequest.field_mask. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before the state is changed. It shapes only the response: the state change is applied regardless.

StopCampaignRequest

The request message for Campaigns.StopCampaign.

FieldTypeLabelDescription
name string

Resource name of the campaign. The format is:

projects/<project_uuid>/campaigns/<campaign_uuid>

display_name string

Exact, case-sensitive display_name of the campaign, resolved within vtsi_project_name, which is then required. Replaces the 9.0.0 CampaignDisplayName display_name = 2.

vtsi_project_name string

VTSI project of the campaign. The format is:

projects/<project_uuid>/project
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 Campaign field paths to populate, relative to the returned Campaign, exactly as GetCampaignRequest.field_mask. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before the state is changed. It shapes only the response: the state change is applied regardless.

StreamCampaignStatusRequest

The request message for Campaigns.StreamCampaignStatus.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose campaigns to stream. The format is:

projects/<project_uuid>/project

campaign_names string repeated

Only these campaigns (resource names). Empty, together with an empty campaign_display_names, means every campaign of the project, including campaigns created while the stream is open.

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 campaign_names by OR.

include_calls bool

Also stream every campaign call that changes after the stream opened. The snapshot never contains campaign calls; read them with ListCampaignCalls.

states CampaignState repeated

Only campaigns in one of these states. Empty means every state. Combined with campaign_names / campaign_display_names by AND. The snapshot carries the matching campaigns in a selected state. Later, a campaign that ENTERS a selected state is sent (with every field, as in a snapshot), and a campaign that LEAVES the selection is sent once more with its new state and then no longer (so a client sees why it left); a campaign deleted while selected is reported in deleted_campaign_names. With include_calls, only calls of campaigns that are selected at the moment are sent. CAMPAIGN_STATE_UNSPECIFIED or an unknown value is rejected with INVALID_ARGUMENT.

StreamCampaignStatusResponse

The response message for Campaigns.StreamCampaignStatus.

FieldTypeLabelDescription
campaigns Campaign repeated

Campaigns that changed (every matching campaign in the snapshot), with their statistics. The call defaults campaign_common_services_config and campaign_sip_caller_config are always left unset here; read them with GetCampaign.

campaign_calls CampaignCall repeated

Campaign calls that changed, when include_calls is set.

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 instead.

end_reason_type StreamEndReason

Set on the last message when the server ended the stream, next to end_reason: STREAM_END_REASON_MAX_DURATION, STREAM_END_REASON_SERVER_SHUTDOWN or STREAM_END_REASON_PROJECT_DELETED. STREAM_END_REASON_UNSPECIFIED on every other message (and on the last message of a server that predates this field).

UpdateCampaignRequest

The request message for Campaigns.UpdateCampaign.

FieldTypeLabelDescription
campaign Campaign

The campaign to update, identified by campaign.name, carrying the new values of the fields named in update_mask.

update_mask google.protobuf.FieldMask

Required. Paths WITHOUT a campaign. prefix. Updatable paths: display_name, max_parallel_calls, max_attempts, retry_delay, campaign_common_services_config and campaign_sip_caller_config, the last two also as any nested sub-path (e.g. campaign_common_services_config.nlu_vtsi_config.agent_name, campaign_sip_caller_config.sip_headers). An empty mask, or an unknown, output-only or immutable path (a nested path is checked against the message type it names), is rejected with INVALID_ARGUMENT naming the path. A path in the mask with an unset value writes the create default (display_name empty writes campaign-<campaign_uuid>).

The two call-default configs follow FieldMask semantics:

  • a path naming a message field (campaign_common_services_config, or a submessage below it such as campaign_common_services_config.nlu_vtsi_config) REPLACES that whole message with the one sent; an unset one clears it (clearing campaign_common_services_config or campaign_sip_caller_config removes the campaign default);
  • a path naming a scalar, repeated or map field below them replaces exactly that field; a repeated or map field is replaced as a whole, never appended to;
  • a field below them that no path names is left untouched, and is not validated either: only what the paths write must be valid;
  • clearing, by sub-paths, every field of a stored default removes the default (it then reads back unset, exactly as after clearing the whole config);
  • a path naming a member of a oneof (e.g. campaign_common_services_config.nlu_vtsi_config.auth_token in the authentication oneof) SETS that member, clearing the other members, when the request's campaign has that member set; when it does not, the path CLEARS the member if it is the stored active one and changes nothing otherwise (another active member is kept);
  • a path BELOW a repeated or map field (e.g. campaign_sip_caller_config.sip_headers.X-Foo) is rejected with INVALID_ARGUMENT naming it: name the repeated or map field itself;
  • a path and a sub-path of it in the same mask act as the shorter path alone.

For the optional call-behaviour settings this gives a precise way to change one of them for the whole campaign: a path naming the setting with a value in campaign SETS it for every call that does not set its own; the same path with the setting left unset in campaign CLEARS it, so the calls inherit the deployment-wide ONDEWO_VTSI_* setting or the built-in default again. Example: path campaign_common_services_config.voice_interaction_config.interruption_handling_config.enabled with enabled: true makes every later call of the campaign interruptible and leaves every other stored setting as it is; the same path with enabled unset removes the campaign's choice. The path campaign_common_services_config.voice_interaction_config instead REPLACES the whole voice interaction default with the one sent, dropping every setting the request does not carry.

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. campaign_common_services_config is not validated here but with each call, when calls are added and again at dispatch: an update that makes a waiting call's effective configuration invalid fails that call without a retry.

field_mask google.protobuf.FieldMask

Optional. Partial response: the Campaign field paths to populate, relative to the returned Campaign and WITHOUT a campaign. prefix, e.g. state, statistics.completed, campaign_common_services_config.nlu_vtsi_config.agent_name. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. The mask is applied after the server's role-based redaction, so it never reveals a redacted value.

Enums

CallingWindowDayOfWeek

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).

NameNumberDescription
CALLING_WINDOW_DAY_OF_WEEK_UNSPECIFIED 0

Unspecified. Refused in a slot with INVALID_ARGUMENT.

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.

CampaignCallAttemptOutcome

Outcome of one attempt of a campaign call.

NameNumberDescription
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 HardStopCampaign (the attempt counts).

CampaignCallSource

How a call was added to a campaign.

NameNumberDescription
CAMPAIGN_CALL_SOURCE_UNSPECIFIED 0

Unspecified.

CAMPAIGN_CALL_SOURCE_CALLER 1

Added by AddCallersToCampaign: started as soon as the campaign has a free slot.

CAMPAIGN_CALL_SOURCE_SCHEDULED_CALLER 2

Added by AddScheduledCallersToCampaign: started at or after its scheduled time when the campaign has a free slot. Its ScheduledCaller follows the campaign call.

CampaignCallState

State of one call of a campaign.

NameNumberDescription
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 next_attempt_time.

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 HardStopCampaign (confirmed), or its scheduled caller was cancelled before an attempt was running.

CampaignOrderBy

Order of a ListCampaigns listing. Every order breaks ties by the campaign's resource name, ascending, so paging is stable.

NameNumberDescription
CAMPAIGN_ORDER_BY_UNSPECIFIED 0

The default: created_at, newest first (the order of every release before this value existed); identical to CAMPAIGN_ORDER_BY_CREATED_AT_DESC.

CAMPAIGN_ORDER_BY_CREATED_AT_DESC 1

created_at, newest first.

CAMPAIGN_ORDER_BY_MODIFIED_AT_DESC 2

modified_at, most recently modified first (state changes by the server included). A campaign modified while a client pages can move between pages; page with CREATED_AT_DESC when a complete, duplicate-free walk is required.

CAMPAIGN_ORDER_BY_DISPLAY_NAME_ASC 3

display_name, ascending, compared byte-wise (case-sensitive, B before a).

CampaignStartMode

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.

NameNumberDescription
CAMPAIGN_START_MODE_UNSPECIFIED 0

The default: a NEW campaign is created RUNNING; an EXISTING campaign keeps its state (except that a COMPLETED one becomes RUNNING again). An existing CREATED campaign therefore stays CREATED.

CAMPAIGN_START_MODE_START 1

Start the campaign: a new one is created RUNNING, an existing CREATED one is started. Does NOT resume a stopped campaign.

CAMPAIGN_START_MODE_DO_NOT_START 2

Do not start: a new campaign is created CREATED; an existing one keeps its state (a COMPLETED one still becomes RUNNING, because it has unfinished calls again).

CampaignState

Lifecycle state of a campaign.

NameNumberDescription
CAMPAIGN_STATE_UNSPECIFIED 0

Unspecified.

CAMPAIGN_STATE_CREATED 1

Created; calls may be added, nothing is dialled until StartCampaign.

CAMPAIGN_STATE_RUNNING 2

Calls are being started, at most max_parallel_calls at a time. A campaign with a calling_window stays in this state outside its slots and starts no call there; see Campaign.outside_calling_window.

CAMPAIGN_STATE_STOPPING 3

StopCampaign was requested, or the server stopped the campaign after repeated failures that cannot succeed by repetition (see state_reason): no new call is started, running calls continue.

CAMPAIGN_STATE_STOPPED 4

Stopped (reached from STOPPING once no call of the campaign is running). No call is running. Can be resumed.

CAMPAIGN_STATE_HARD_STOPPING 5

HardStopCampaign was requested: running calls are being ended.

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 RUNNING again.

StreamEndReason

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).

NameNumberDescription
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 end_reason is set): reconnect.

STREAM_END_REASON_MAX_DURATION 1

The server's maximum stream duration was reached. Reconnect (with the resume_token where the stream has one).

STREAM_END_REASON_CLIENT_TOO_SLOW 2

The client read too slowly and the server's buffer for the stream overflowed; events were skipped (SubscribeVtsiEventsResponse.dropped_event_count). Reconnect with the resume_token; the skipped events are replayed from the journal while it still holds them.

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 FAILED_PRECONDITION until it is enabled again.

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/events.proto

Top

Services

Events

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):

then 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).

Service Methods

CreateVtsiEventSubscription

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).

GetVtsiEventSubscription

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.

UpdateVtsiEventSubscription

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.

DeleteVtsiEventSubscription

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).

ListVtsiEventSubscriptions

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.

CreateWebhook

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.

GetWebhook

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.

UpdateWebhook

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.

DeleteWebhook

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).

ListWebhooks

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.

TestWebhook

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.

RedeliverWebhookEvents

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).

SubscribeVtsiEvents

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).

Messages

CreateVtsiEventSubscriptionRequest

The request message for Events.CreateVtsiEventSubscription.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with NOT_FOUND.

event_subscription VtsiEventSubscription

The subscription to create. Output-only fields (name, vtsi_project_name, created_*, modified_*) must be unset.

field_mask google.protobuf.FieldMask

Optional. Partial response: the VtsiEventSubscription field paths to populate, relative to the returned VtsiEventSubscription (no prefix), e.g. name, events. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

CreateWebhookRequest

The request message for Events.CreateWebhook.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with NOT_FOUND.

webhook Webhook

The webhook to create. Output-only fields (name, vtsi_project_name, delivery_statistics, created_*, modified_*) must be unset.

field_mask google.protobuf.FieldMask

Optional. Partial response: the Webhook field paths to populate, relative to the returned Webhook (no prefix), e.g. name, url. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

DeleteVtsiEventSubscriptionRequest

The request message for Events.DeleteVtsiEventSubscription.

FieldTypeLabelDescription
name string

Resource name of the subscription. The format is:

projects/<project_uuid>/event_subscriptions/<subscription_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT.

field_mask google.protobuf.FieldMask

Optional. Partial response: the DeleteVtsiEventSubscriptionResponse field paths to populate (as DeleteCampaignRequest.field_mask). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the subscription is deleted regardless.

DeleteVtsiEventSubscriptionResponse

The response message for Events.DeleteVtsiEventSubscription.

FieldTypeLabelDescription
name string

Resource name of the deleted subscription.

DeleteWebhookRequest

The request message for Events.DeleteWebhook.

FieldTypeLabelDescription
name string

Resource name of the webhook. The format is:

projects/<project_uuid>/webhooks/<webhook_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT.

field_mask google.protobuf.FieldMask

Optional. Partial response: the DeleteWebhookResponse field paths to populate, e.g. detached_subscription_count (as DeleteCampaignRequest.field_mask). name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is deleted. It shapes only the response: the webhook is deleted regardless.

DeleteWebhookResponse

The response message for Events.DeleteWebhook.

FieldTypeLabelDescription
name string

Resource name of the deleted webhook.

detached_subscription_count int32

How many event subscriptions referenced it and no longer do.

GetVtsiEventSubscriptionRequest

The request message for Events.GetVtsiEventSubscription.

FieldTypeLabelDescription
name string

Resource name of the subscription. The format is:

projects/<project_uuid>/event_subscriptions/<subscription_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT.

field_mask google.protobuf.FieldMask

Optional. Partial response: the VtsiEventSubscription field paths to populate, relative to the returned VtsiEventSubscription (no prefix), e.g. events, webhook_names. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

GetWebhookRequest

The request message for Events.GetWebhook.

FieldTypeLabelDescription
name string

Resource name of the webhook. The format is:

projects/<project_uuid>/webhooks/<webhook_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT.

field_mask google.protobuf.FieldMask

Optional. Partial response: the Webhook field paths to populate, relative to the returned Webhook (no prefix), e.g. url, delivery_statistics. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

ListVtsiEventSubscriptionsRequest

The request message for Events.ListVtsiEventSubscriptions.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with NOT_FOUND.

page_size int32

Optional. 0 means 20; above 1000 clamped; negative rejected.

page_token string optional

Optional. The next_page_token of a previous response.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned VtsiEventSubscription, relative to the VtsiEventSubscription message (no event_subscriptions. prefix), e.g. display_name, events. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the server's redaction, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

ListVtsiEventSubscriptionsResponse

The response message for Events.ListVtsiEventSubscriptions.

FieldTypeLabelDescription
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.

ListWebhooksRequest

The request message for Events.ListWebhooks.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project
Empty or malformed is rejected with INVALID_ARGUMENT, an unknown project with NOT_FOUND.

page_size int32

Optional. 0 means 20; above 1000 clamped; negative rejected.

page_token string optional

Optional. The next_page_token of a previous response.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned Webhook, relative to the Webhook message (no webhooks. prefix), e.g. display_name, url, delivery_statistics. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the masking of the custom header values (a returned value stays ********), so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

ListWebhooksResponse

The response message for Events.ListWebhooks.

FieldTypeLabelDescription
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.

RedeliverWebhookEventsRequest

The request message for Events.RedeliverWebhookEvents.

FieldTypeLabelDescription
webhook_name string

Required. Resource name of the webhook to send the events to; it must be enabled. The format is:

projects/<project_uuid>/webhooks/<webhook_uuid>

event_ids string repeated

The events to send again, by event_id (uuid), at most 1000, duplicates ignored. Sent in journal order (oldest first), whatever the webhook's subscriptions select (naming an event is the selection) but only events of the webhook's project: an id that the journal does not hold for this project, whether expired, never journaled, unknown or of another project, is counted in not_in_journal_count and sent nowhere. Exactly one of event_ids and start_time must be set.

start_time google.protobuf.Timestamp

Start of a time window, inclusive, on the event's event_time: send the journaled events of the project in the window that the webhook's ENABLED event subscriptions select now (as for a live event), narrowed by filter, oldest first. Older than the journal retention is OUT_OF_RANGE.

end_time google.protobuf.Timestamp

End of the window, exclusive. Unset means now. Must be after start_time and is only valid with it.

filter VtsiEventFilter

Optional. Narrows the selection further (AND), with the semantics of the inline filter of SubscribeVtsiEventsRequest; applied to event_ids too.

RedeliverWebhookEventsResponse

The response message for Events.RedeliverWebhookEvents.

FieldTypeLabelDescription
enqueued_count int32

Events queued for the webhook by this request.

not_in_journal_count int32

Named event_ids the journal does not hold for the webhook's project (expired, never journaled, unknown, or of another project). 0 for a window.

not_enqueued_count int32

Selected events that were NOT queued: beyond the per-request bound of 1000, or because the server's webhook queue (ONDEWO_VTSI_WEBHOOK_MAX_QUEUED_EVENTS_PER_WEBHOOK, 1000 by default) was full. Send them with another request (for a window: from next_start_time).

next_start_time google.protobuf.Timestamp

For a window with not_enqueued_count above 0: the event_time of the first event that was not queued; pass it as the next request's start_time (with the same end_time). Events with the same event_time as the last queued one may then be sent twice; receivers de-duplicate by event_id. Unset otherwise.

SubscribeVtsiEventsRequest

The request message for Events.SubscribeVtsiEvents.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project. The format is:

projects/<project_uuid>/project
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 events or all_events, minus its excluded_events, narrowed by its resource_name_prefixes and campaign_names (its webhook_names are irrelevant here). Read when the stream opens and re-read within a few seconds of an update, so an update applies to the open stream; disabling or deleting the subscription ends the stream. It must be a subscription of vtsi_project_name (INVALID_ARGUMENT otherwise) and enabled (FAILED_PRECONDITION otherwise). The format is:

projects/<project_uuid>/event_subscriptions/<subscription_uuid>

filter VtsiEventFilter

An inline filter.

resume_token string optional

Optional. The resume_token of a previous response: continue after it. Unset starts with events that happen from now on (or at start_time). Mutually exclusive with start_time (both set is INVALID_ARGUMENT).

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 resume_token: use start_time for a first connection or after losing the token, the token for every reconnect. Older than the journal retention (ONDEWO_VTSI_EVENT_JOURNAL_RETENTION_S, 24 h by default) is OUT_OF_RANGE; later than the server's clock is INVALID_ARGUMENT. The journal holds only events of periods in which the project had an open stream or an enabled subscription, so the replay can have gaps it cannot report; reconcile with the status RPCs when completeness matters. Unset (the default) starts live.

SubscribeVtsiEventsResponse

The response message for Events.SubscribeVtsiEvents.

FieldTypeLabelDescription
events VtsiEventMessage repeated

Events, oldest first. Empty on a keep-alive.

resume_token string

Pass this as SubscribeVtsiEventsRequest.resume_token after a disconnect. Opaque. It records every event this stream has delivered or passed over, so resuming neither skips an event that committed late nor (normally) repeats one; a stream far behind can receive an event twice, never miss one that is still in the journal.

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 instead.

end_reason_type StreamEndReason

Set on the last message when the server ended the stream, next to end_reason: one of STREAM_END_REASON_MAX_DURATION, STREAM_END_REASON_CLIENT_TOO_SLOW, STREAM_END_REASON_SUBSCRIPTION_DELETED, STREAM_END_REASON_SUBSCRIPTION_DISABLED, STREAM_END_REASON_PROJECT_DELETED, STREAM_END_REASON_SERVER_SHUTDOWN. STREAM_END_REASON_UNSPECIFIED on every other message (and on the last message of a server that predates this field).

TestWebhookRequest

The request message for Events.TestWebhook.

FieldTypeLabelDescription
name string

Resource name of the webhook. The format is:

projects/<project_uuid>/webhooks/<webhook_uuid>
Empty or malformed is rejected with INVALID_ARGUMENT.

sample_event VtsiEvent

Optional. Send an event shaped like this real event instead of VTSI_EVENT_WEBHOOK_TEST, so a receiver can be tested against the payload it will get: event is this value, the header X-Ondewo-Vtsi-Event its name, event_id a fresh uuid, vtsi_project_name the webhook's project, event_time now, and every field and attribute key the event carries (see its VtsiEvent value) is filled with a placeholder of the documented format: resource names use the all-zero uuid 00000000-0000-0000-0000-000000000000 (e.g. projects/<project_uuid>/callers/00000000-0000-0000-0000-000000000000/calls/00000000-0000-0000-0000-000000000000), a phone number is +10000000000, counts are 0, times are now. It always carries the attribute test = true, description webhook test and the header X-Ondewo-Vtsi-Test: true, so a receiver can tell it from a real event and must not act on it. No resource is read or changed. VTSI_EVENT_UNSPECIFIED (the default) sends VTSI_EVENT_WEBHOOK_TEST as before; a reserved value or one the server does not know is rejected with INVALID_ARGUMENT.

TestWebhookResponse

The response message for Events.TestWebhook.

FieldTypeLabelDescription
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

event_id of the test event that was sent.

UpdateVtsiEventSubscriptionRequest

The request message for Events.UpdateVtsiEventSubscription.

FieldTypeLabelDescription
event_subscription VtsiEventSubscription

The subscription, identified by event_subscription.name (projects/<project_uuid>/event_subscriptions/<subscription_uuid>; malformed is INVALID_ARGUMENT), carrying the new values of the fields named in update_mask.

update_mask google.protobuf.FieldMask

Required. Paths without prefix: display_name, events, all_events, resource_name_prefixes, campaign_names, webhook_names, disabled. An empty mask or another path is rejected with INVALID_ARGUMENT. A path in the mask writes the sent value, including false and empty lists. excluded_events is updatable too.

field_mask google.protobuf.FieldMask

Optional. Partial response: the VtsiEventSubscription field paths to populate, relative to the returned VtsiEventSubscription (no prefix). Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

UpdateWebhookRequest

The request message for Events.UpdateWebhook.

FieldTypeLabelDescription
webhook Webhook

The webhook, identified by webhook.name (projects/<project_uuid>/webhooks/<webhook_uuid>; malformed is INVALID_ARGUMENT), carrying the new values of the fields named in update_mask.

update_mask google.protobuf.FieldMask

Required. Paths without prefix: display_name, url, http_method, custom_headers, disabled, timeout. An empty mask or another path is rejected with INVALID_ARGUMENT. A path in the mask writes the sent value, including false; an unset timeout writes the server default. When url moves to another origin and the webhook has stored headers, custom_headers must be in the mask with real values (see UpdateWebhook). signing_secret is updatable too: a new value rotates it, an empty one removes it, ******** keeps it (see Webhook.signing_secret).

field_mask google.protobuf.FieldMask

Optional. Partial response: the Webhook field paths to populate, relative to the returned Webhook (no prefix). Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it, before anything is written. Applied after the masking of secrets, so it never reveals one. It shapes only the response.

VtsiEventFilter

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).

FieldTypeLabelDescription
events VtsiEvent repeated

Only these events. Empty means every event (unlike VtsiEventSubscription.events, where empty is refused unless all_events is set: a filter is a one-off request, so "no constraint" is its natural empty value). VTSI_EVENT_UNSPECIFIED or a reserved value is rejected with INVALID_ARGUMENT.

resource_name_prefixes string repeated

Only events whose resource_name starts with one of these prefixes. Empty means every resource of the project. Same semantics as VtsiEventSubscription.resource_name_prefixes.

campaign_names string repeated

Only events of these campaigns. Same semantics as VtsiEventSubscription.campaign_names.

all_events bool

Every event, explicitly; equivalent to an empty events and present for symmetry with VtsiEventSubscription.all_events. Set together with a non-empty events is rejected with INVALID_ARGUMENT.

excluded_events VtsiEvent repeated

Events NOT to select, subtracted from the selection of events / all_events. Same semantics and limits as VtsiEventSubscription.excluded_events.

VtsiEventMessage

One event. This is the body of a webhook request (proto3 JSON with the original field names) and the unit of the SubscribeVtsiEvents stream.

FieldTypeLabelDescription
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:

projects/<project_uuid>/project

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 VTSI_EVENT_CALL_SIP_STATUS_CHANGED.

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. caller_name, listener_name, phone_number, container_name, attempt_number, previous_status. The keys and value formats of each event are documented at its VtsiEvent value; at most 20 entries, each value at most 256 characters. Receivers must ignore keys they do not know: later versions may add keys.

campaign_statistics CampaignStatistics

Statistics of the campaign, on campaign events.

resource_sequence int64

Increases with every change of resource_name that produced an event, so a receiver can order events of one resource that arrived out of order. Defined (> 0) for call events (the call's status change number), campaign call events and campaign state events; 0 where the resource has no such counter, then order by event_time.

VtsiEventMessage.AttributesEntry

FieldTypeLabelDescription
key string

value string

VtsiEventSubscription

Which events of a project are delivered to which webhooks.

FieldTypeLabelDescription
name string

Output only. Resource name. The format is:

projects/<project_uuid>/event_subscriptions/<subscription_uuid>

vtsi_project_name string

Output only. VTSI project of the subscription. The format is:

projects/<project_uuid>/project

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 is set; must be empty when it is. At most one entry per value (duplicates are ignored). Updatable.

all_events bool

Deliver every event, including events added in later versions, except excluded_events. Updatable.

resource_name_prefixes string repeated

Deliver only events whose resource_name starts with one of these prefixes, e.g. a caller name (projects/<p>/callers/<c> also selects that caller's calls) or a campaign name (selects the campaign and its campaign calls, NOT the calls a campaign placed, whose resource names are under callers/; use campaign_names for those). Empty means every resource of the project. At most 50. Updatable.

webhook_names string repeated

Webhooks of the same project the events are sent to. Empty means none (the subscription is then only useful to SubscribeVtsiEvents). At most 20. Updatable.

disabled bool

false (the default): events are delivered. true: nothing is delivered and SubscribeVtsiEvents refuses the subscription. Updatable.

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 campaign_name is one of these campaign resource names: the campaign's own events, its campaign call events and the call, caller and scheduled caller events of the calls it placed. Call events produced while a campaign attempt is being started (CALL_CREATED, CALL_INITIATED) can lack the campaign and are then not matched; VTSI_EVENT_CAMPAIGN_CALL_DISPATCHED always carries both campaign_name and call_name. Empty means no constraint. Combined with resource_name_prefixes by AND. At most 50. Updatable.

excluded_events VtsiEvent repeated

Events NOT to deliver, subtracted from the selection of events / all_events, e.g. all_events with VTSI_EVENT_CALL_SIP_STATUS_CHANGED and VTSI_EVENT_CAMPAIGN_PROGRESS excluded. Empty means nothing is excluded. VTSI_EVENT_UNSPECIFIED, a reserved value, or a value that is also in events is rejected with INVALID_ARGUMENT. At most 100 entries. Updatable (path excluded_events, replaced whole).

Webhook

An HTTP(S) endpoint that receives one request per event.

FieldTypeLabelDescription
name string

Output only. Resource name. The format is:

projects/<project_uuid>/webhooks/<webhook_uuid>

vtsi_project_name string

Output only. VTSI project of the webhook. The format is:

projects/<project_uuid>/project

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. Authorization. WRITE-ONLY VALUES: every RPC returns each value as ********. At most 20 headers; names are HTTP tokens of at most 128 characters; values at most 4096 characters without line breaks. Reserved and refused: Host, Content-Length, Content-Type, Transfer-Encoding, Connection and every X-Ondewo-Vtsi-* name. Updatable (see UpdateWebhook for the mask value and for moving the url to another origin).

disabled bool

false (the default): events are sent. true: nothing is sent (except by TestWebhook). Updatable.

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 ******** when a secret is stored and an empty string when none is; it is never logged and never put on an event. 32 to 256 printable ASCII characters without whitespace (generate at least 32 random characters); anything else, and the mask value itself on create, is rejected with INVALID_ARGUMENT. Empty (the default) means requests are not signed.

Signature: each request carries the header

X-Ondewo-Vtsi-Signature: t=<unix seconds>,v1=<signature>

where t is the time the request was sent (base-10 seconds since the Unix epoch, a new value for every attempt) and the signature is the lowercase hex HMAC-SHA256, keyed with the secret's bytes, of the ASCII string <t>. followed by the exact bytes of the request body:

v1 = hex(HMAC_SHA256(key = signing_secret, message = t + "." + body))

To verify: recompute it over the raw body as received (before any JSON parsing), compare in constant time with each v1 value of the header (there can be two, see rotation), and reject the request when none matches or when t is more than 5 minutes away from the receiver's clock (replay protection; de-duplicate by event_id as well). Further signature schemes may be added later as additional comma-separated v<n>= entries: ignore entries you do not know.

Rotation: UpdateWebhook with update_mask path signing_secret and the new value. For ONDEWO_VTSI_WEBHOOK_SIGNING_ROTATION_GRACE_S (24 h by default) after a rotation every request carries two signatures, t=...,v1=<new>,v1=<previous>, so the receiver can switch to the new secret at any time within that window; afterwards only the new one. Writing an empty string removes signing at once (no grace); writing ******** keeps the stored secret, so a Get-modify-Update round trip does not change it. TestWebhook signs like a real delivery and is the way to check a receiver's verification before relying on it.

Webhook.CustomHeadersEntry

FieldTypeLabelDescription
key string

value string

WebhookDeliveryStatistics

Delivery counters of a webhook. Approximate: summed over every server replica and flushed every few seconds.

FieldTypeLabelDescription
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. timeout, connection_error, http_503. Never contains a header value or a URL query.

Enums

VtsiEvent

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.

NameNumberDescription
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: INCOMING_CALL_INITIATED / OUTGOING_CALL_INITIATED. Call status attributes.

VTSI_EVENT_CALL_CONNECTED 102

The call was answered: INCOMING_CALL_CONNECTED / OUTGOING_CALL_CONNECTED. Call status attributes.

VTSI_EVENT_CALL_FINISHED 103

The call ended normally: INCOMING_CALL_FINISHED / OUTGOING_CALL_FINISHED. Call status attributes.

VTSI_EVENT_CALL_FAILED 104

The call failed: INCOMING_CALL_FAILED / OUTGOING_CALL_FAILED. Call status attributes.

VTSI_EVENT_CALL_TRANSFER_INITIATED 105

A transfer of the call started: TRANSFER_CALL_INITIATED. Emitted when a BLIND transfer was accepted, or when the target of a WARM transfer starts ringing.

Attributes: transfer_id (the target, a phone number masked to its last 3 digits, e.g. ***678, or an extension), target_type (phone_number, softphone, listener, listener_queue, ivr_menu, legacy, unknown), mode (blind / warm; WARM, upper case, when reported for the ringing WARM leg), outcome (accepted, pending, ...), sip_response_code (SIP code, 0 when unknown), error_reason (kebab-case token, may be empty), participant_id (WARM leg), source (call_monitor when observed by the call monitor). Sets call_name.

VTSI_EVENT_CALL_TRANSFERRED 106

TransferCall transferred the call. Emitted at the call's terminal edge: a *_CALL_FINISHED status whose description is Call transferred.

Attributes: transfer_id (masked as above), mode (blind / warm), outcome (accepted), sip_response_code, source (call_monitor), and the call status attributes (caller_name / listener_name / scheduled_caller_name, phone_number). Sets the call status fields. A WARM transfer whose warm intro was enabled but skipped (WARM_INTRO_UNAVAILABLE_POLICY_CONNECT_WITHOUT_INTRO) also carries intro_skipped_reason (a kebab-case token such as no-free-listener or prepare-failed).

VTSI_EVENT_CALL_TRANSFER_FAILED 107

A transfer failed and the call was KEPT with the bot: TRANSFER_CALL_FAILED, a refused or unanswered REFER, or a WARM target that was busy or did not answer.

Attributes: as VTSI_EVENT_CALL_TRANSFER_INITIATED, with outcome naming the failure (target_invalid, refer_rejected, timeout, call_ended, call_scope_mismatch, sip_unreachable, refused, or the SIP reason in snake case), error_reason and, for a WARM leg, participant_id and end_reason (as on VTSI_EVENT_CALL_PARTICIPANT_FAILED). description says why.

VTSI_EVENT_CALL_HANGUP_INITIATED 108

A hang-up started: SOFT_HANGUP_INITIATED / HARD_HANGUP_INITIATED. Call status attributes.

VTSI_EVENT_CALL_ANSWERING_MACHINE_DETECTED 109

An answering machine was detected: OUTGOING_CALL_ANSWERING_MACHINE_DETECTED. Call status attributes.

VTSI_EVENT_CALL_STOPPED 110

The call was ended by StopCall, StopCalls, StopAllCalls or a campaign hard stop. No attributes; call_name is not set (the call is the resource_name).

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). previous_sip_status_type holds the status before. Call status attributes.

VTSI_EVENT_CALL_PARTICIPANT_INVITED 112

A participant was invited into the call (InviteToCall).

Attributes (the participant attributes, also on 113 to 115): participant_id, mode (CONFERENCE / MONITOR), purpose (invite / warm_transfer), state (ParticipantState name, e.g. PARTICIPANT_STATE_RINGING), softphone_account_name (when a softphone account was invited), end_reason (on 114 and 115: NOANSWER, BUSY, CHANUNAVAIL, CALL_ENDED, REMOVED, HANGUP, HANDED_OVER, JOIN_FAILED, TIMEOUT), actor (who caused it: the authenticated user, or system:call-control), source. Sets call_name and description.

VTSI_EVENT_CALL_PARTICIPANT_JOINED 113

An invited participant answered and joined the call. The participant attributes (see 112); actor is who invited it.

VTSI_EVENT_CALL_PARTICIPANT_FAILED 114

An invited participant never joined (busy, no answer, unavailable, the call ended, ...). The participant attributes (see 112), with end_reason.

VTSI_EVENT_CALL_PARTICIPANT_LEFT 115

A joined participant left the call. The participant attributes (see 112), with end_reason.

VTSI_EVENT_CALL_BOT_MUTED 116

The bot of the call was muted. Attributes: source (operator for SetCallMediaControl, call_monitor when the server observed it) and actor (the authenticated user where a person caused it, system for the call monitor). Sets call_name.

VTSI_EVENT_CALL_BOT_UNMUTED 117

The bot of the call was unmuted. Attributes as VTSI_EVENT_CALL_BOT_MUTED.

VTSI_EVENT_CALL_LISTENING_PAUSED 118

The bot of the call stopped listening to the caller. Attributes as VTSI_EVENT_CALL_BOT_MUTED.

VTSI_EVENT_CALL_LISTENING_RESUMED 119

The bot of the call listens to the caller again. Attributes as VTSI_EVENT_CALL_BOT_MUTED.

VTSI_EVENT_CALL_AUDIO_STREAM_CONNECTED 120

A live call audio stream (StreamCallAudio / ListenCallAudio) connected. Attributes: stream_id (uuid), mode (LISTEN / TALK), rpc (ListenCallAudio / StreamCallAudio), actor (the authenticated user, when known). Sets call_name.

VTSI_EVENT_CALL_AUDIO_STREAM_DISCONNECTED 121

A live call audio stream disconnected. Attributes as VTSI_EVENT_CALL_AUDIO_STREAM_CONNECTED, plus end_reason (the CallAudioEndReason name without prefix: CLIENT_CLOSED, CALL_ENDED, CALL_TRANSFERRED, MAX_DURATION, STALLED, INTERNAL, UNSPECIFIED).

VTSI_EVENT_CALL_UPDATED 122

The stored record of the call was updated (UpdateCall, UpdateCalls); the call itself is unchanged. Attribute updated_fields (the update_mask paths, e.g. labels). Never carries a label value. Sets call_name. Not emitted for an entry of a batch that failed, nor when the update changed nothing.

VTSI_EVENT_CALL_DTMF_SENT 123

DTMF keys were queued on the call (SendCallDtmf). Attributes: keys (the NUMBER of keys, never the keys) and actor (the authenticated user, when known). Sets call_name.

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): intro_id (the participant id of the target's leg), target_kind (phone_number / softphone), text_source (template / llm_summary), decided_by (dtmf / speech / timeout, on 125 to 127), reason_present (true / false, on 126), intro_ms (milliseconds from the target's answer, on 125 to 128) and cause (kebab-case token). Never carries an intro text, a decline reason or a full phone number. Sets call_name.

VTSI_EVENT_CALL_WARM_INTRO_ACCEPTED 125

The target of a warm intro accepted. VTSI_EVENT_CALL_TRANSFERRED follows once the target joined. The warm intro attributes (see 124).

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 WARM_INTRO_UNAVAILABLE_POLICY_RETURN_TO_CALLER; the call stays with the bot. The warm intro attributes (see 124), cause being voicemail-suspected, target-hung-up or intro-unavailable.

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; CallTransferRecord.warm_intro.notice_delivered is false. Attributes: intro_id and reason (kebab-case token: the bot's refusal, e.g. disabled, invalid, pending, or sip-unreachable). Sets call_name.

VTSI_EVENT_CALLER_STARTED 200

A caller started and placed its call. No attributes; sets call_name.

VTSI_EVENT_CALLER_START_FAILED 201

A caller could not be started; description says why. No attributes.

VTSI_EVENT_CALLER_STOPPED 202

A caller was stopped (StopCaller, StopCallers). No attributes.

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: container_name, reason (free text, at most 64 characters, e.g. end-call-marker-expired).

VTSI_EVENT_CALLER_UNHEALTHY 205

A caller's container was found not running or unhealthy. Attribute container_name; description is container not running or container unhealthy; sets call_name.

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 call_name where known.

VTSI_EVENT_CALLER_UPDATED 207

The stored configuration of a caller was updated (UpdateCaller, UpdateCallers); its running container is unchanged. Attribute updated_fields (the update_mask paths). Never carries a configuration value.

VTSI_EVENT_LISTENER_STARTED 300

A listener started and is waiting for calls. No attributes; sets call_name.

VTSI_EVENT_LISTENER_START_FAILED 301

A listener could not be started; description says why. No attributes.

VTSI_EVENT_LISTENER_STOPPED 302

A listener was stopped (StopListener, StopListeners). No attributes.

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 container_name; sets call_name.

VTSI_EVENT_LISTENER_UNHEALTHY 305

A listener's container was found not running or unhealthy. Attribute container_name; description as for VTSI_EVENT_CALLER_UNHEALTHY.

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 (UpdateListener, UpdateListeners); its running container is unchanged. Attribute updated_fields. Never carries a configuration value.

VTSI_EVENT_SCHEDULED_CALLER_CREATED 400

A scheduled caller was created. Attribute scheduled_time (RFC 3339). Sets campaign_name for a scheduled call of a campaign.

VTSI_EVENT_SCHEDULED_CALLER_FIRED 401

A scheduled caller fired: its call was started (call_name set). Attributes: outside a campaign attempt (the attempt number); in a campaign attempt_number and campaign_call_name (and campaign_name is set).

VTSI_EVENT_SCHEDULED_CALLER_FAILED 402

A scheduled caller failed for good; description says why. Attributes: outside a campaign attempt and reason (a classification token, e.g. transient_grpc:unavailable, configuration_error, optionally suffixed :attempt_budget_exhausted); in a campaign attempt_number and campaign_call_name.

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 attempt, reason and retry_not_before (RFC 3339); in a campaign attempt_number and campaign_call_name.

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 RetryCampaignCalls, its status and scheduled time. Attribute updated_fields (e.g. status,scheduled_time) and, when it changed, scheduled_time (RFC 3339); in a campaign also campaign_call_name (and campaign_name is set). Never carries a configuration value.

VTSI_EVENT_CAMPAIGN_CREATED 500

A campaign was created (CreateCampaign, a CampaignAssignment.new_campaign, CloneCampaign). No attributes, except for a clone: cloned_from (the source campaign's resource name) and copied_call_count. An idempotent replay emits nothing.

VTSI_EVENT_CAMPAIGN_UPDATED 501

A campaign's settings were updated. Attribute updated_fields (the update_mask paths). Never carries a call-default value.

VTSI_EVENT_CAMPAIGN_DELETED 502

A campaign was deleted. Attributes: deleted_campaign_call_count, cancelled_scheduled_caller_count.

VTSI_EVENT_CAMPAIGN_STARTED 503

A campaign was started. Attributes: previous_state, state; none when the campaign was created running by a CampaignAssignment. description is calls were added when adding calls started it.

VTSI_EVENT_CAMPAIGN_STOP_REQUESTED 504

StopCampaign was requested; running calls continue. Attributes: previous_state, state.

VTSI_EVENT_CAMPAIGN_STOPPED 505

A campaign is stopped: it reached STOPPED (after a stop request or an automatic stop) once no call of it was running. Attributes: state and display_name when the engine observed it; none (with description no call of the campaign was in flight) when the stop request stopped it at once.

VTSI_EVENT_CAMPAIGN_HARD_STOP_REQUESTED 506

HardStopCampaign (or a forced DeleteCampaign) was requested. Attributes: previous_state, state.

VTSI_EVENT_CAMPAIGN_HARD_STOPPED 507

A campaign is hard stopped. Attributes as VTSI_EVENT_CAMPAIGN_STOPPED.

VTSI_EVENT_CAMPAIGN_RESUMED 508

A campaign was resumed (ResumeCampaign, or a COMPLETED campaign that got calls back from a CampaignAssignment or RetryCampaignCalls). Attributes: previous_state, state; description says what resumed it when it was not ResumeCampaign.

VTSI_EVENT_CAMPAIGN_COMPLETED 509

Every call of a campaign is finished. Attributes: state, display_name; description is the state_reason.

VTSI_EVENT_CAMPAIGN_PROGRESS 510

The statistics of a running campaign changed (throttled, at most once per ONDEWO_VTSI_CAMPAIGN_PROGRESS_EVENT_MIN_INTERVAL_S, 5 s by default, per campaign). campaign_statistics is set. Attributes: state, display_name.

VTSI_EVENT_CAMPAIGN_MAX_PARALLEL_CALLS_CHANGED 511

max_parallel_calls changed; attributes previous_max_parallel_calls and max_parallel_calls.

VTSI_EVENT_CAMPAIGN_CALLS_ADDED 512

Calls were added to a campaign (an Add*ToCampaign request, or CloneCampaign with include_calls); attribute added_call_count.

VTSI_EVENT_CAMPAIGN_CALL_DISPATCHED 513

An attempt of a campaign call was started (call_name set). Campaign call attributes.

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; description is the error.

VTSI_EVENT_CAMPAIGN_CALL_RETRY_SCHEDULED 516

An attempt of a campaign call failed and the call will be retried. Campaign call attributes; description is the error.

VTSI_EVENT_CAMPAIGN_CALL_CANCELLED 517

A campaign call was cancelled (hard stop, cancelled scheduled caller, or CancelCampaignCalls). Campaign call attributes; description says what cancelled it.

VTSI_EVENT_CAMPAIGN_AUTO_STOPPED 518

The SERVER stopped a campaign (it is now STOPPING) after repeated failures that cannot succeed by repetition, e.g. a rejected credential; description holds the state_reason. VTSI_EVENT_CAMPAIGN_STOPPED follows once no call runs. Attributes: state (STOPPING), display_name.

VTSI_EVENT_CAMPAIGN_CALL_REQUEUED 519

A FAILED or CANCELLED campaign call was put back into the queue by RetryCampaignCalls. Campaign call attributes, plus attempt_limit (the call's new attempt limit) and, for a call now RETRY_PENDING, next_attempt_time (RFC 3339).

VTSI_EVENT_CAMPAIGN_CALLING_WINDOW_OPENED 520

A RUNNING campaign with a calling_window entered a slot and may start calls again (also when it is started or resumed inside a slot after having been outside one, and when an update of the window opens it). Attributes: state, display_name, window_end (RFC 3339, when the current run of slots ends). Best effort, at most one per edge, reported by the replica whose engine ticked the campaign.

VTSI_EVENT_CAMPAIGN_CALLING_WINDOW_CLOSED 521

A RUNNING campaign with a calling_window left its last slot and starts no call until the next one (also when it is started, or its window updated, outside every slot). Running calls continue. Attributes: state, display_name, next_window_start (RFC 3339). Best effort, at most one per edge.

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; description says why. No attributes.

VTSI_EVENT_VTSI_PROJECT_UNDEPLOYED 605

A VTSI project was undeployed. No attributes.

VTSI_EVENT_VTSI_PROJECT_STATUS_CHANGED 606

The VtsiProjectStatus of a project changed; attributes previous_status and status, each a VtsiProjectStatus name (DEPLOYED, UPDATING, ...).

VTSI_EVENT_VTSI_PROJECT_UNDEPLOY_FAILED 607

Undeploying a VTSI project failed; description says why. No attributes.

VTSI_EVENT_ASTERISK_DEPLOYED 700

The project's Asterisk container was deployed. Attribute container_name.

VTSI_EVENT_ASTERISK_REMOVED 701

The project's Asterisk container was removed. Attribute container_name.

VTSI_EVENT_ASTERISK_RESTARTED 702

The project's Asterisk was restarted. Attribute restart_reason (plan or escalation).

VTSI_EVENT_ASTERISK_CONFIG_RELOADED 703

The project's Asterisk configuration was reloaded in place. Attribute container_name.

VTSI_EVENT_ASTERISK_UNHEALTHY 704

The project's Asterisk container is not running or unhealthy. Attribute container_name.

VTSI_EVENT_ASTERISK_HEALTHY 705

The project's Asterisk container is healthy again. Attribute container_name.

VTSI_EVENT_ASTERISK_TRUNK_REGISTERED 706

The SIP trunk registered with the carrier. Attribute container_name.

VTSI_EVENT_ASTERISK_TRUNK_UNREGISTERED 707

The SIP trunk is no longer registered (rejected, unregistered or failed); attributes container_name and registration_status (Asterisk's own token, e.g. Rejected, Unregistered, Unknown).

VTSI_EVENT_ASTERISK_DEPLOY_FAILED 708

Deploying the project's Asterisk container failed; description says why. Attribute container_name.

VTSI_EVENT_ASTERISK_RESTART_FAILED 709

Restarting the project's Asterisk failed; description says why. Attribute restart_reason.

VTSI_EVENT_ASTERISK_CONFIG_RELOAD_FAILED 710

Reloading the project's Asterisk configuration in place failed; description says why. Attribute container_name.

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 updated_fields.

VTSI_EVENT_SOFTPHONE_ACCOUNT_DELETED 802

A softphone account was deleted. Attribute revoked_certificate_count.

VTSI_EVENT_SOFTPHONE_CREDENTIALS_ROTATED 803

The credentials of a softphone account were rotated. Attribute certificate_rotated (boolean).

VTSI_EVENT_SOFTPHONE_CERTIFICATE_REVOKED 804

A softphone certificate was revoked (resource_name: the certificate). Attribute account_locked (boolean).

VTSI_EVENT_WEBHOOK_TEST 900

Sent by TestWebhook only (when it names no sample_event). No attributes; description is webhook test.

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 updated_fields (the mask paths). Never carries a header value or the signing secret.

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 updated_fields.

VTSI_EVENT_EVENT_SUBSCRIPTION_DELETED 906

An event subscription was deleted. No attributes.

VTSI_EVENT_IVR_MENU_CREATED 1001

An IVR menu was created (CreateIvrMenu, CloneIvrMenu).

VTSI_EVENT_IVR_MENU_UPDATED 1002

An IVR menu was updated; attribute updated_fields (the mask paths).

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. description says why (no personal data).

VTSI_EVENT_IVR_MENU_TESTED 1006

A test call of an IVR menu finished; attributes test_id, state (IvrMenuTestState name without prefix) and steps (the number of nodes entered).

WebhookHttpMethod

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.

NameNumberDescription
WEBHOOK_HTTP_METHOD_UNSPECIFIED 0

Unspecified: POST.

WEBHOOK_HTTP_METHOD_POST 1

POST.

WEBHOOK_HTTP_METHOD_PUT 2

PUT.

ondewo/vtsi/ivr_menus.proto

Top

Services

IvrMenus

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.

Service Methods

CreateIvrMenu

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.

GetIvrMenu

rpc GetIvrMenu (GetIvrMenuRequest) returns (IvrMenu)

Returns an IVR menu at its current revision.

UpdateIvrMenu

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.

DeleteIvrMenu

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.

ListIvrMenus

rpc ListIvrMenus (ListIvrMenusRequest) returns (ListIvrMenusResponse)

Lists the IVR menus of a project.

ValidateIvrMenu

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.

PublishIvrMenu

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.

CloneIvrMenu

rpc CloneIvrMenu (CloneIvrMenuRequest) returns (IvrMenu)

Copies a menu (its current or a given revision) into a new DRAFT menu without phone numbers.

ListIvrMenuRevisions

rpc ListIvrMenuRevisions (ListIvrMenuRevisionsRequest) returns (ListIvrMenuRevisionsResponse)

Lists the saved revisions of a menu, newest first.

TestIvrMenu

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.

GetIvrMenuTest

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.

GetIvrMenuDialplan

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.

Messages

CloneIvrMenuRequest

Request to clone an IVR menu. The clone has no inbound_phone_numbers, default_inbound false and the state DRAFT.

FieldTypeLabelDescription
name string

Required. The source menu:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

display_name string

Required. The clone's display name, unique within the project.

revision int64

The source revision; 0: the current one.

idempotency_key string

Optional client idempotency key, as CreateIvrMenuRequest.idempotency_key.

CreateIvrMenuRequest

Request to create an IVR menu

FieldTypeLabelDescription
vtsi_project_name string

Required. The project:

projects/<project_uuid>/project

ivr_menu IvrMenu

Required. The menu; its output-only fields must be unset.

field_mask google.protobuf.FieldMask

Optional. Partial response: the IvrMenu field paths to return. name is always returned. Unset or empty returns every field except node_stats.

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.

DeleteIvrMenuRequest

Request to delete an IVR menu

FieldTypeLabelDescription
name string

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

display_name string

The display name, resolved within vtsi_project_name

vtsi_project_name string

The project, required with display_name.

force bool

false refuses a PUBLISHED menu with bound phone numbers (FAILED_PRECONDITION reason=menu-published); true unroutes them and deletes.

DeleteIvrMenuResponse

Response to the deletion of an IVR menu

FieldTypeLabelDescription
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 default_inbound menu.

GetIvrMenuDialplanRequest

Request to get the rendered dialplan of an IVR menu revision

FieldTypeLabelDescription
name string

Required.

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

revision int64

0: the published revision.

GetIvrMenuDialplanResponse

Response with the rendered dialplan of an IVR menu revision

FieldTypeLabelDescription
dialplan string

The rendered dialplan contexts of that revision

prompt_files string repeated

Absolute paths of its prompt files inside the Asterisk container

GetIvrMenuRequest

Request to get an IVR menu

FieldTypeLabelDescription
name string

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

display_name string

The display name, resolved within vtsi_project_name

vtsi_project_name string

The project:

projects/<project_uuid>/project
. Required with display_name; checked against name when both are set.

field_mask google.protobuf.FieldMask

Optional. Partial response, as CreateIvrMenuRequest.field_mask. The path node_stats adds the traffic counters, which are never returned otherwise.

GetIvrMenuTestRequest

Request to get a test call of an IVR menu

FieldTypeLabelDescription
name string

Required. The test, as IvrMenuTest.name.

IvrMenu

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.

FieldTypeLabelDescription
name string

Output only. Resource name of the menu. The format is:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

display_name string

Required. Unique within the project, 1 to 128 characters. Sent sanitized to a bot as X-ondewo-ivr-menu.

description string

At most 1000 characters.

entry_node_id string

Required. The node a caller enters first; must name a node of nodes.

nodes IvrNode repeated

Required. The nodes, 1 to ONDEWO_VTSI_IVR_MAX_NODES; order is irrelevant. Every node must be reachable from entry_node_id.

language_code string

Language of the text prompts for text-to-speech, e.g. de-DE. Empty: the project's default.

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

true: the menu's numbers are unrouted on the next publish (the menu is kept).

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; 0 = never published.

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 node_id. Opaque to the server and not versioned.

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 field_mask path node_stats: how often callers entered each node, keyed by node_id, for EVERY call through the menu (also those routed straight to a person, which leave no call record). Approximate: counted in the Asterisk and collected about once a minute.

node_stats_updated_at google.protobuf.Timestamp

Output only, with node_stats: when the counters were last collected.

IvrMenu.LayoutEntry

FieldTypeLabelDescription
key string

value IvrNodePosition

IvrMenu.NodeStatsEntry

FieldTypeLabelDescription
key string

value IvrNodeStats

IvrMenuFilter

Filter of ListIvrMenus; every set field must match

FieldTypeLabelDescription
display_name_contains string

Case-insensitive substring of display_name; empty does not filter.

state IvrMenuState

IVR_MENU_STATE_UNSPECIFIED: any state.

inbound_phone_number string

Exact E.164 number of inbound_phone_numbers; empty does not filter.

IvrMenuIssue

One problem of an IVR menu draft

FieldTypeLabelDescription
severity IvrMenuIssueSeverity

Whether the issue blocks a save or a publish

code string

Stable kebab-case token, e.g. dangling-next-node, duplicate-key, unreachable-node, keyless-cycle, number-not-allowed, unknown-softphone, unknown-listener, unknown-menu, self-goto, number-bound-twice, second-default-inbound, prompt-format, prompt-too-large, field-not-for-node-type, menu-without-prompt (a WARNING). The list in docs/ivr_menus.md is complete.

path string

Path of the offending field, e.g. nodes[node_id=billing].options[dtmf=2].next_node_id.

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 code.

IvrMenuRevision

One saved revision of an IVR menu

FieldTypeLabelDescription
revision int64

The revision number

snapshot IvrMenu

The graph fields as saved at that revision (no layout, no routing fields, no output-only fields)

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)

IvrMenuTest

A test call of an IVR menu, started by TestIvrMenu. Leaves no call record and no NLU session.

FieldTypeLabelDescription
name string

Resource name of the test. The format is:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>/tests/<test_id>

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, route:<kind>:<target> (kind being phone_number with the number masked to its last 3 digits, softphone, listener or listener_queue); empty when the test did not end on a ROUTE node

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

IvrNode

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.

FieldTypeLabelDescription
node_id string

Required. ^[a-z0-9_-]{1,64}$, unique within the menu.

display_name string

At most 128 characters: the node's name in the editor and its label in X-ondewo-ivr-path (reduced to [A-Za-z0-9_-]{1,32}).

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; 0 = 5, valid 1 - 30.

max_retries uint32

MENU: how often an invalid key or a timeout replays the prompt before invalid_next_node_id / timeout_next_node_id; 0 = 2, valid 1 - 5.

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: timeout_next_node_id.

next_node_id string

PLAY: the node after the prompt. SCHEDULE: the node inside the opening hours.

route_target CallTarget

ROUTE (required): phone_number (must pass VtsiProject.transfer_phone_number_allowlist), softphone_account_name, listener_name or listener_queue of the same project; ivr_menu_name is refused (use a GOTO_MENU node).

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,

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>
. 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.

IvrNodePosition

Position of a node on the editor canvas

FieldTypeLabelDescription
x double

Horizontal position

y double

Vertical position

IvrNodeStats

Traffic counters of one node, in IvrMenu.node_stats. Approximate.

FieldTypeLabelDescription
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.

IvrOption

One key of a MENU node

FieldTypeLabelDescription
dtmf string

Required. Exactly one of 0-9 * #, unique within the node.

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 X-ondewo-ivr-path (sanitized as IvrNode.display_name).

IvrPrompt

An audio prompt. Exactly one source must be set.

FieldTypeLabelDescription
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 ONDEWO_VTSI_IVR_MAX_PROMPT_BYTES and 120 seconds.

asterisk_sound string

A stock Asterisk sound from the allowlist in docs/ivr_menus.md, e.g. beep.

sha256 string

Output only. SHA-256 (hex) of the rendered audio; empty before the first publish.

IvrTestStep

One step of the key script of a test call

FieldTypeLabelDescription
wait_ms uint32

Milliseconds to wait after the previous step (for the first step: after the call entered the menu) before dtmf is pressed. 0 means 1000; at most 30000. A key pressed during a prompt interrupts it, as for a real caller.

dtmf string

The keys to press, ^[0-9*#]{0,8}$; empty presses nothing, so the next step waits out the node's timeout (the timeout path).

IvrTraversalStep

One node entry of a test call

FieldTypeLabelDescription
node_id string

The node entered (of the menu named by ivr_menu_name, which changes after a GOTO_MENU node)

input string

What led out of the node: the key, t (timeout) or i (invalid key); empty for a node left without input

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 node_id:

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

ListIvrMenuRevisionsRequest

Request to list the revisions of an IVR menu

FieldTypeLabelDescription
name string

Required.

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

page_size int32

Optional. Maximum revisions per page. 0 means 20; values above 100 are clamped to 100.

page_token string optional

Optional. The next_page_token of a previous response for the same menu.

ListIvrMenuRevisionsResponse

Response to list the revisions of an IVR menu

FieldTypeLabelDescription
revisions IvrMenuRevision repeated

The revisions of this page, newest first

next_page_token string

Token of the next page; empty on the last page.

ListIvrMenusRequest

Request to list the IVR menus of a project

FieldTypeLabelDescription
vtsi_project_name string

Required. The project:

projects/<project_uuid>/project

filter IvrMenuFilter

Optional. Narrows the listed menus.

page_size int32

Optional. Maximum menus per page. 0 means 20; values above 1000 are clamped to 1000; negative values are refused with INVALID_ARGUMENT.

page_token string optional

Optional. The next_page_token of a previous response; valid only with the same project, filter and order.

field_mask google.protobuf.FieldMask

Optional. Partial response: the IvrMenu field paths of each listed menu, as CreateIvrMenuRequest.field_mask.

order_by IvrMenuOrderBy

Optional. Sort order.

ListIvrMenusResponse

Response to list the IVR menus of a project

FieldTypeLabelDescription
ivr_menus IvrMenu repeated

The menus of this page.

next_page_token string

Token of the next page; empty on the last page.

PublishIvrMenuRequest

Request to publish an IVR menu

FieldTypeLabelDescription
name string

Required.

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

revision int64

0: the current revision. Any other revision must be the current one, else ABORTED reason=revision-mismatch.

TestIvrMenuRequest

Request to start a test call through the published revision of an IVR menu

FieldTypeLabelDescription
name string

Required.

projects/<project_uuid>/ivr_menus/<ivr_menu_uuid>

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; 0 means 60, at most ONDEWO_VTSI_IVR_TEST_MAX_DURATION_S (300). A test still in a menu then is IVR_MENU_TEST_STATE_TIMED_OUT.

UpdateIvrMenuRequest

Request to update an IVR menu

FieldTypeLabelDescription
ivr_menu IvrMenu

Required. The menu, identified by ivr_menu.name, carrying the new values of the fields named in update_mask.

update_mask google.protobuf.FieldMask

Required. Paths within ivr_menu WITHOUT an ivr_menu. prefix, e.g. nodes, inbound_phone_numbers, layout. Repeated and map fields are replaced whole. A path named but not set clears the field. An unknown or output-only path is refused with INVALID_ARGUMENT naming it.

field_mask google.protobuf.FieldMask

Optional. Partial response, as CreateIvrMenuRequest.field_mask.

validate_only bool

Optional. Run every check and return the would-be menu; write and emit nothing.

expected_revision int64

Optional. 0: no check. Otherwise the revision the client edited; a different current revision is refused with ABORTED reason=revision-mismatch and nothing is written.

ValidateIvrMenuRequest

Request to validate an IVR menu draft

FieldTypeLabelDescription
vtsi_project_name string

Required. The project:

projects/<project_uuid>/project

ivr_menu IvrMenu

Required. The draft as edited; name may be empty for a menu not created yet.

ValidateIvrMenuResponse

Response to validate an IVR menu draft

FieldTypeLabelDescription
issues IvrMenuIssue repeated

Every issue found

valid bool

Whether no issue is an ERROR

Enums

IvrMenuIssueSeverity

Severity of an IvrMenuIssue

NameNumberDescription
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

IvrMenuOrderBy

Sort order of ListIvrMenus

NameNumberDescription
IVR_MENU_ORDER_BY_UNSPECIFIED 0

Same as IVR_MENU_ORDER_BY_DISPLAY_NAME

IVR_MENU_ORDER_BY_DISPLAY_NAME 1

By display name, ascending

IVR_MENU_ORDER_BY_MODIFIED_AT_DESC 2

By modified_at, newest first

IvrMenuState

Publication state of an IVR menu

NameNumberDescription
IVR_MENU_STATE_UNSPECIFIED 0

Not set

IVR_MENU_STATE_DRAFT 1

The current revision is not published (revision > published_revision)

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

IvrMenuTestState

State of a test call of an IVR menu

NameNumberDescription
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 max_duration_s

IVR_MENU_TEST_STATE_FAILED 4

The test call could not run or ended unexpectedly; error_message says why

IvrNodeType

The kind of an IVR node

NameNumberDescription
IVR_NODE_TYPE_UNSPECIFIED 0

Not allowed

IVR_NODE_TYPE_MENU 1

A prompt and one key (options)

IVR_NODE_TYPE_PLAY 2

A prompt, then next_node_id

IVR_NODE_TYPE_ROUTE 3

Leave the menu to route_target (terminal unless busy_next_node_id)

IVR_NODE_TYPE_HANGUP 4

Hang up (terminal)

IVR_NODE_TYPE_SCHEDULE 5

Opening hours: next_node_id inside, closed_next_node_id outside

IVR_NODE_TYPE_GOTO_MENU 6

Continue in another published menu of the project (goto_menu_name)

ondewo/vtsi/logs.proto

Top

Services

Logs

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.

Service Methods

StreamCallLogs

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.

ListCallLogs

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.

GetCallLogStream

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.

ListCallLogStreams

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.

DeleteCallLogs

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.

ExportCallLogs

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.

Messages

CallLogEntry

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.

FieldTypeLabelDescription
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 seq + 1; use resume_token, or before_seq / after_seq when the filter resolves to exactly one log stream.

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 timestamp is the instant VTSI ingested the record rather than the instant docker observed it, which happens when the daemon's timestamp prefix could not be parsed. The entry is still stored and still ordered; only the clock is approximate.

level ondewo.nlu.LogSeverity

The severity of the record. LOG_SEVERITY_UNSPECIFIED means the emitter does not log in a recognised format and no severity heuristic matched.

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

<module>:<function>:<line> of the emitting log statement. Empty for output that is not in the ONDEWO logging format.

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:

projects/<project_uuid>/logStreams/<log_stream_uuid>

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 Call.name of the call, for a listener's call

projects/<project_uuid>/listeners/<listener_uuid>/calls/<call_uuid>
and for a caller's call
projects/<project_uuid>/callers/<caller_uuid>/calls/<call_uuid>

nlu_session_name string

The NLU session the entry was attributed to. The format is:

projects/<project_uuid>/agent/sessions/<session_uuid>

physical_line_count int32

How many physical docker log lines were folded into message. 1 for an ordinary single-line record.

CallLogFilter

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.

FieldTypeLabelDescription
call_names string repeated

Call resource names of the form

projects/<project_uuid>/{callers|listeners}/<uuid>/calls/<call_uuid>

caller_names string repeated

Caller resource names of the form

projects/<project_uuid>/callers/<caller_uuid>

listener_names string repeated

Listener resource names of the form

projects/<project_uuid>/listeners/<listener_uuid>

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

projects/<project_uuid>/logStreams/<log_stream_uuid>

sip_accounts string repeated

Asterisk SIP account names, for example sut@asterisk.local.

sip_ports string repeated

Deprecated. Deprecated: use sip_port_numbers. SIP ports of the per-call container, as decimal strings. A value that is not a decimal integer is ignored (logged by the server); when no value parses the filter matches nothing. Combined with sip_port_numbers by OR.

csi_ports string repeated

Deprecated. Deprecated: use csi_port_numbers. ONDEWO CSI ports of the per-call container, as decimal strings, parsed like sip_ports.

asterisk_ports string repeated

Deprecated. Deprecated: use asterisk_port_numbers. Asterisk ports of the project, as decimal strings, parsed like sip_ports.

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

projects/<project_uuid>/agent/sessions/<session_uuid>

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. BOTH disables the filter, matching the semantics of CallFilter.

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_SEVERITY_UNSPECIFIED (the default) applies no lower bound. Ignored when log_levels is non-empty.

log_levels ondewo.nlu.LogSeverity repeated

Exact severities to include. When non-empty this OVERRIDES min_log_level.

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 >= WARNING filter would otherwise hide exactly the crash output being searched for. Defaults to false.

text string optional

Case-insensitive substring match against the message.

regex string optional

Regular expression (Python re syntax) matched against the message. At most 512 characters; an invalid or oversized pattern is rejected with INVALID_ARGUMENT.

emitter_prefixes string repeated

Prefix match against <module>:<function>:<line>, for example ondewo_csi.servicers.conversations.

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 start_time after end_time is rejected with INVALID_ARGUMENT (equal instants select the entries of exactly that instant).

sip_port_numbers int32 repeated

SIP ports of the per-call container (1..65535). Identity filter; replaces the deprecated string sip_ports, with which it is combined by OR. A value outside 1..65535 is rejected with INVALID_ARGUMENT.

csi_port_numbers int32 repeated

ONDEWO CSI ports of the per-call container (1..65535). Identity filter, like sip_port_numbers; combined with the deprecated csi_ports by OR.

asterisk_port_numbers int32 repeated

Asterisk ports of the project (1..65535). Identity filter, like sip_port_numbers; combined with the deprecated asterisk_ports by OR.

Fields with deprecated option

Name Option
sip_ports

true

csi_ports

true

asterisk_ports

true

CallLogStream

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.

FieldTypeLabelDescription
name string

Resource name of the log stream. The format is:

projects/<project_uuid>/logStreams/<log_stream_uuid>

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 vtsi_project_name.

voip_call_name string

Resource name of the caller, listener or scheduled caller the container serves:

projects/<project_uuid>/callers/<caller_uuid>
,
projects/<project_uuid>/listeners/<listener_uuid>
or
projects/<project_uuid>/scheduled_callers/<scheduled_caller_uuid>
. 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_state is LOG_CAPTURE_STATE_FAILED.

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 seq currently stored for this stream.

max_available_seq int64

The largest seq currently stored for this stream.

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 project_id. The format is:

projects/<project_uuid>/project

DeleteCallLogsRequest

The request message for Logs.DeleteCallLogs.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to delete the logs. The format is:

projects/<project_uuid>/project

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 false.

DeleteCallLogsResponse

The response message for Logs.DeleteCallLogs.

FieldTypeLabelDescription
deleted_log_entry_count int64

How many log entries were deleted (with validate_only: would be deleted).

deleted_log_stream_count int64

How many log streams were deleted because no entries remained (with validate_only: would be deleted).

ExportCallLogsRequest

The request message for Logs.ExportCallLogs.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose logs to export. The format is:

projects/<project_uuid>/project

filter CallLogFilter

The entries to export. Every field of CallLogFilter applies, identity and content filters alike, with the semantics of ListCallLogs. REQUIRED, with both start_time and end_time set and start_time before end_time; otherwise INVALID_ARGUMENT.

format LogExportFormat

The file format. Unset means LOG_EXPORT_FORMAT_TEXT.

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 false.

ExportCallLogsResponse

One message of an ExportCallLogs stream.

FieldTypeLabelDescription
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 last = true was cut off (error status, disconnect) and its file is incomplete.

truncated bool

True on the last message when the export stopped early because it reached ONDEWO_VTSI_LOG_EXPORT_MAX_ENTRIES or ONDEWO_VTSI_LOG_EXPORT_MAX_BYTES: matching entries after the last exported one were left out.

GetCallLogStreamRequest

The request message for Logs.GetCallLogStream.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name which to perform the call of the form

projects/<project_uuid>/project

name string

The name of the log stream to retrieve of the form

projects/<project_uuid>/logStreams/<log_stream_uuid>
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 CallLogStream field paths to populate, e.g. capture_state, line_count. Same convention as ListCallLogStreamsRequest.field_mask: name is always populated, unset or empty returns every field, an unknown path is rejected with INVALID_ARGUMENT naming it.

ListCallLogStreamsRequest

The request message for Logs.ListCallLogStreams.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to list the log streams. The format is:

projects/<project_uuid>/project

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 next_page_token of a previous response. OPAQUE: never construct or parse it (its format is internal and may change). Keep every other request field unchanged while paging: a token sent with another filter is not guaranteed to be rejected and then returns that position of the other listing.

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned CallLogStream, relative to the CallLogStream message (no log_streams. prefix), e.g. container_name, capture_state. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the server's redaction, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

page_size int32

Optional. Maximum number of log streams per page. 0 means the server default of 25; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT.

capture_states LogCaptureState repeated

Optional. Only log streams in one of these capture states, e.g. LOG_CAPTURE_STATE_CAPTURING for the containers being captured now. Empty matches every state. LOG_CAPTURE_STATE_UNSPECIFIED is rejected with INVALID_ARGUMENT.

ListCallLogStreamsResponse

The response message for Logs.ListCallLogStreams.

FieldTypeLabelDescription
log_streams CallLogStream repeated

The log streams of this page, newest capture_started_at first.

next_page_token string

Token to retrieve the next page of results. Opaque (see ListCallLogStreamsRequest.page_token). Empty when there are no more results.

ListCallLogsRequest

The request message for Logs.ListCallLogs.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to list the logs. The format is:

projects/<project_uuid>/project

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. 0 (the default) and negative values apply the server default (ONDEWO_VTSI_LOG_DEFAULT_MAX_LINES, default 5000); values above the server hard cap (ONDEWO_VTSI_LOG_HARD_MAX_LINES, default 50000) are clamped to it.

before_seq int64 optional

Optional cursor for infinite-scroll UP: return the newest entries with seq less than this value. Valid only when the filter resolves to exactly one log stream.

after_seq int64 optional

Optional cursor for infinite-scroll DOWN: return entries with seq greater than this value. Valid only when the filter resolves to exactly one log stream.

resume_token string optional

Optional. An opaque, server-encoded per-log-stream cursor from a previous response. Use this instead of after_seq whenever the filter can match more than one container.

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 CallLogEntry, relative to the CallLogEntry message (no log_entries. prefix), e.g. timestamp, level, message. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. log_stream and seq, which together identify an entry, are always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the server's secret redaction of the log text, so it can only narrow the response and never populates a field that was left empty. It shapes only the entries: the window and cursor fields of the response (truncated, the seq bounds, next_resume_token) are computed exactly as without a mask.

include_counts bool

Optional. Also count the matching entries: fills ListCallLogsResponse.total_matching_count and count_by_level over the WHOLE filtered history (not only the returned window, and ignoring the cursors). Counting reads every matching entry and can be slow on a large project, so it is off by default; set it on the first page only.

ListCallLogsResponse

The response message for Logs.ListCallLogs.

FieldTypeLabelDescription
log_entries CallLogEntry repeated

The matching entries, oldest first.

truncated bool

True when matching entries were dropped because max_lines was reached.

min_available_seq int64

The smallest seq available under the request's IDENTITY filters. Deliberately not narrowed by the content filters, so that a regex which empties one page does not make a client believe it has reached the beginning of history.

max_available_seq int64

The largest seq available under the request's identity filters.

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 include_counts was requested (unset otherwise, and by a 9.0.0 server). APPROXIMATE when scope_limited_filters is non-empty: the filters listed there are not applied to the count, so it is then an UPPER BOUND.

count_by_level ListCallLogsResponse.CountByLevelEntry repeated

The matching entries counted per severity, keyed by the ondewo.nlu.LogSeverity value NAME (e.g. LOG_SEVERITY_ERROR; entries without a recognised severity under LOG_SEVERITY_UNSPECIFIED). Severities with no entry are omitted; the values sum to total_matching_count. Filled only with include_counts; approximate (upper bounds) under the same condition as total_matching_count.

ListCallLogsResponse.CountByLevelEntry

FieldTypeLabelDescription
key string

value int64

SipHeaderFilter

A key/value predicate over the SIP headers captured on a call.

FieldTypeLabelDescription
key string

The SIP header key, for example Call-ID or X-ondewo-callrouting.

value string

The value the header must have. Empty matches on the presence of the key alone.

StreamCallLogsRequest

The request message for Logs.StreamCallLogs.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project name for which to stream the logs. The format is:

projects/<project_uuid>/project

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 INVALID_ARGUMENT rather than silently ignored.

tail_lines int32 optional

Replay at most this many of the most recent stored entries before switching to live follow. 0 (the default) starts the follow with no historical replay; a negative value is treated as 0; values above the server hard cap (ONDEWO_VTSI_LOG_HARD_MAX_LINES, default 50000) are clamped to it. Applied to the FILTERED result, so tail_lines = 100 with a severity floor returns up to 100 matching entries rather than the matches within the last 100 entries.

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: a single scalar cannot express a cursor across several containers, and using one when the filter matches more than one container SKIPS entries.

after_seq int64 optional

Optional. Resume after this seq. Valid ONLY when the filter resolves to exactly one log stream; otherwise the request is rejected with INVALID_ARGUMENT. Ignored when resume_token is set.

StreamCallLogsResponse

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.

FieldTypeLabelDescription
log_entries CallLogEntry repeated

The entries in this batch, oldest first. May be empty, e.g. on the final message that carries end_reason. (No keep-alive messages are sent; see Logs.StreamCallLogs.)

capture_state LogCaptureState

The capture state of the log streams being followed, aggregated: FAILED if any has failed, else DETACHED if any is detached, else CAPTURING if any is capturing, else STOPPED.

capture_error string

Why capture failed, when capture_state is LOG_CAPTURE_STATE_FAILED.

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 StreamCallLogsRequest.resume_token after a disconnect.

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.

end_reason_code LogStreamEndReason

Set on the final message when the stream was ended by the server, together with end_reason; LOG_STREAM_END_REASON_UNSPECIFIED on every other message.

Enums

CallLogFilterField

Identifies a field of CallLogFilter. Used by ListCallLogsResponse.scope_limited_filters to declare which filters could only be applied inside the returned window.

NameNumberDescription
CALL_LOG_FILTER_FIELD_UNSPECIFIED 0

Unspecified.

CALL_LOG_FILTER_FIELD_TEXT 1

CallLogFilter.text.

CALL_LOG_FILTER_FIELD_REGEX 2

CallLogFilter.regex.

CALL_LOG_FILTER_FIELD_LOG_SOURCES 3

CallLogFilter.log_sources.

CALL_LOG_FILTER_FIELD_CHANNELS 4

CallLogFilter.channels.

CALL_LOG_FILTER_FIELD_EMITTER_PREFIXES 5

CallLogFilter.emitter_prefixes.

CALL_LOG_FILTER_FIELD_THREAD_NAMES 6

CallLogFilter.thread_names.

CALL_LOG_FILTER_FIELD_SIP_HEADERS 7

CallLogFilter.sip_headers.

LogCaptureState

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.

NameNumberDescription
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 capture_error says why.

LOG_CAPTURE_STATE_DETACHED 4

Another VTSI replica holds the capture lease for this container.

LogExportFormat

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.

NameNumberDescription
LOG_EXPORT_FORMAT_UNSPECIFIED 0

Unspecified: identical to LOG_EXPORT_FORMAT_TEXT.

LOG_EXPORT_FORMAT_TEXT 1

Plain text in the manner of docker logs --timestamps: one line per entry, <RFC 3339 UTC timestamp> <message>; continuation lines of a multi-line entry are indented by one tab. With include_metadata the timestamp is followed by the severity, the container name and the call resource name (- when none), separated by single spaces.

LOG_EXPORT_FORMAT_NDJSON 2

Newline-delimited JSON: one JSON object per line, the proto3 JSON form of a CallLogEntry (lowerCamelCase keys). Without include_metadata only seq, logStream, timestamp, level and message are written; with it every field.

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 include_metadata: timestamp,level,message; with it: seq,timestamp,timestamp_is_exact,level, log_source,channel,container_name,container_id,emitter,thread_name,log_stream,call, nlu_session_name,physical_line_count,message.

LogSource

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.

NameNumberDescription
LOG_SOURCE_UNSPECIFIED 0

Unspecified or unrecognised source.

LOG_SOURCE_SIP 1

The ondewo-sip server, i.e. an ondewo_sip.* logger.

LOG_SOURCE_CSI 2

The ondewo-csi server or its speech2speech child, i.e. an ondewo_csi.* logger.

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.

LogStreamChannel

The docker output channel an entry arrived on.

NameNumberDescription
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.

LogStreamEndReason

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.

NameNumberDescription
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 end_reason there).

LOG_STREAM_END_REASON_ALL_CAPTURES_TERMINATED 1

The capture of every followed log stream has terminated (STOPPED or FAILED) and every stored entry was sent. Nothing more will arrive for this filter.

LOG_STREAM_END_REASON_MAX_DURATION 2

The server-side maximum stream duration (ONDEWO_VTSI_LOG_STREAM_MAX_DURATION_S) was reached. Reconnect with the resume_token of the final message to continue seamlessly.

LOG_STREAM_END_REASON_SERVER_SHUTDOWN 3

The VTSI server is shutting down. Reconnect, to another replica if there is one, with the resume_token.

LOG_STREAM_END_REASON_PERMISSION_REVOKED 4

The caller lost the role the stream requires. The stream then ends with PERMISSION_DENIED.

LOG_STREAM_END_REASON_CREDENTIALS_EXPIRED 5

The caller's credential expired. The stream then ends with UNAUTHENTICATED; reconnect with a fresh credential and the resume_token.

ondewo/vtsi/projects.proto

Top

Services

Projects

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.

Service Methods

CreateVtsiProject

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.

GetVtsiProject

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.

UpdateVtsiProject

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).

DeleteVtsiProject

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.

DeployVtsiProject

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.

UndeployVtsiProject

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.

ListVtsiProjects

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).

Messages

AsteriskConfigs

Configurations object for the Asterisk server

FieldTypeLabelDescription
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 VtsiProject.asterisk_port (see there). 0 on create assigns a free port.

asterisk_version string optional

OPTIONAL: The Asterisk version to start, given as the docker image tag of the ONDEWO Asterisk image, e.g.

alpine-3.18-18.20.2
. The tag must match the docker tag grammar
[A-Za-z0-9_][A-Za-z0-9._-]{0,127}
. Explicitly optional: when the field is not set, the server keeps using its configured default (the
ONDEWO_VTSI_ASTERISK_IMAGE_TAG
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.

AsteriskConfigsFiles

Configuration files for the Asterisk server

FieldTypeLabelDescription
pjsip_conf_file_string string

pjsip.conf file as string. Renamed from

sip_conf_file_string
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
pjsip.conf
. Field number 1 and type
string
are unchanged and no
json_name
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

AsteriskConfigsVariables

Configuration variables for the Asterisk server

FieldTypeLabelDescription
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 asterisk_configs (see the Projects service description for who that is). Server logs and status_message redact it. On UpdateVtsiProject WITHOUT an update_mask an empty value KEEPS the stored password (an empty string cannot be told from "not sent"); WITH an update_mask naming this field, or a parent of it such as asterisk_configs or asterisk_configs.asterisk_configs_variables, an empty value CLEARS it.

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 ==

SIP_TRUNK_TRANSPORT_UNSPECIFIED
==
SIP_TRUNK_TRANSPORT_TLS
: 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.

203.0.113.7/32
. REQUIRED when
sip_trunk_transport
is
SIP_TRUNK_TRANSPORT_UDP
or
SIP_TRUNK_TRANSPORT_TCP
, where the trunk is matched by source address rather than authenticated by a TLS certificate; ignored otherwise. A hostname is REFUSED with
INVALID_ARGUMENT
: Asterisk drops a
type=identify
section whose
match=
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

-----BEGIN CERTIFICATE-----
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
sip_trunk_verify_server
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
sip_trunk_transport
is
SIP_TRUNK_TRANSPORT_UDP
or
SIP_TRUNK_TRANSPORT_TCP
is REFUSED with
INVALID_ARGUMENT
, 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

sip_trunk_ca_certificates_pem
and its host name against
sip_trunk_host
(
verify_server=yes
), and refuses a carrier that fails either check. true WITHOUT a CA bundle is REFUSED with
INVALID_ARGUMENT
, 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
SIP_TRUNK_TRANSPORT_UDP
or
SIP_TRUNK_TRANSPORT_TCP
trunk is REFUSED with
INVALID_ARGUMENT
; 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. 203.0.113.0/24). Every softphone account gets deny for every IPv4 and IPv6 source plus one permit per entry. This is the source allow-list of the project's EXTERNAL TLS port for softphones; it applies to every softphone account on BOTH TLS ports, because an account's ACL cannot tell ports apart and its transport restricts nothing inbound. Empty: the server's ONDEWO_VTSI_ASTERISK_SOFTPHONE_PERMIT_CIDRS, by default the private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7). That server value is a CEILING: every entry here must lie inside it, so a project can only narrow the list; only the operator can open the port to every source. Entries outside the ceiling, a default route (0.0.0.0/0), entries that together cover a whole address family and shorthand spellings are refused with INVALID_ARGUMENT. The list is only effective when the port sees the real client addresses (no SNAT or proxy in front of it). The carrier trunk is not affected (it is matched by sip_trunk_source_cidr or authenticated by its registration); VTSI's own call containers are scoped separately by the server. Updatable with the rest of asterisk_configs.

CreateVtsiProjectRequest

Request for creating a VTSI project

FieldTypeLabelDescription
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:

projects/<project_uuid>/project

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 CreateVtsiProjectResponse.vtsi_project, but write, reserve and emit nothing. The fields the server assigns at creation are left empty in that answer because nothing is reserved: name when the request gave none, the ports when the request gave 0, vtsi_project_status and the audit fields. A successful validation does not guarantee that a later create succeeds (e.g. a name or port taken meanwhile). Default false.

Fields with deprecated option

Name Option
error_message

true

CreateVtsiProjectResponse

Response of the create project

FieldTypeLabelDescription
vtsi_project VtsiProject

The created project, UNDEPLOYED, with its assigned name and port (with validate_only: the would-be project).

error_message string

Never set: errors are reported as gRPC status codes (see the Projects service description). Kept for wire compatibility.

DeleteVtsiProjectRequest

Request to delete a VTSI project A deployed VTSI project is undeployed automatically before it is deleted (see DeleteVtsiProject).

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

DeleteVtsiProjectResponse

Response to delete a VTSI project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

Never set: errors are reported as gRPC status codes. Kept for wire compatibility.

DeployVtsiProjectRequest

Request to deploy a vtsi project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

DeployVtsiProjectResponse

Response to deploy a vtsi project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

Never set: errors are reported as gRPC status codes. Kept for wire compatibility.

GetVtsiProjectRequest

Request to retrieve a VTSI project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

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 VtsiProject field paths to populate, e.g. display_name, vtsi_project_status, status_message, asterisk_configs.asterisk_version. Same convention as ListVtsiProjectsRequest.field_mask: name is always populated, unset or empty returns every field the vtsi_project_view populates, an unknown path is rejected with INVALID_ARGUMENT naming it, and the mask is applied after the view and any redaction.

ListVtsiProjectsRequest

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.

FieldTypeLabelDescription
vtsi_project_view VtsiProjectView

Optional. Specify the view of the returned VtsiProject (full view by default)

page_token string optional

Optional. The next_page_token of a previous response. OPAQUE: never construct or parse it (its format is internal and may change). Keep every other request field (filters, sorting, page_size) unchanged while paging: a token sent with other filters or sorting is not guaranteed to be rejected and then returns that position of the other listing.

vtsi_project_sorting VtsiProjectSorting optional

Optional. Field to define the sorting of the list of VTSI projects in the response. Unset or NO_VTSI_PROJECT_SORTING: by display_name, ascending (ties by the project's internal id), which is a stable order.

nlu_agent_names string repeated

Optional. Only projects associated with at least one of these NLU agents. Format:

projects/<Project ID>/agent

field_mask google.protobuf.FieldMask

Optional. Partial response: the field paths to populate in every returned VtsiProject, relative to the VtsiProject message (no vtsi_projects. prefix), e.g. display_name, vtsi_project_status, asterisk_configs.asterisk_configs_variables. Nested paths through singular message fields are allowed; a path below a repeated or map field is not. name is always populated. Unset or empty returns every field the vtsi_project_view populates. An unknown path is rejected with INVALID_ARGUMENT naming it. Applied after the vtsi_project_view and the server's role-based redaction, so it can only narrow the response and never populates a field that was left empty. Not part of the paging contract: a page_token stays valid with another mask.

page_size int32

Optional. Maximum number of projects per page. 0 means the server default of 25; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT. Fewer projects than page_size may be returned (e.g. after the authorization filter), and only an empty next_page_token means the end of the list.

statuses VtsiProjectStatus repeated

Optional. Only projects in one of these statuses. UNSPECIFIED is rejected with INVALID_ARGUMENT.

display_name_contains string

Optional. Case-insensitive substring match against display_name. Empty does not filter. At most 256 characters.

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 (created_after) is not before its end is rejected with INVALID_ARGUMENT.

ListVtsiProjectsResponse

This is a protobuf message definition for the response of getting a list of VTSI projects.

FieldTypeLabelDescription
vtsi_projects VtsiProject repeated

The VTSI projects of this page.

next_page_token string

Token to retrieve the next page of results. Opaque (see ListVtsiProjectsRequest.page_token). Empty when there are no more results.

TransferTargetDirectoryItem

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.

FieldTypeLabelDescription
display_name string

Required. Who the target is, spoken as {callee_name} in a warm intro, e.g. Frau Berger, Buchhaltung. 1 to 128 characters, not blank.

description string

OPTIONAL: The target's role and context, given to the intro bot for its briefing, e.g. Handles invoices and payment reminders. At most 512 characters; empty: no description.

UndeployVtsiProjectRequest

Request to undeploy a vtsi project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

UndeployVtsiProjectResponse

Response to undeploy a vtsi project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

Never set: errors are reported as gRPC status codes. Kept for wire compatibility.

UpdateVtsiProjectRequest

Request to update a VTSI project

FieldTypeLabelDescription
vtsi_project VtsiProject

The project to update, identified by vtsi_project.name (

projects/<project_uuid>/project
), 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

vtsi_project
and carry no leading
vtsi_project.
prefix, e.g.
display_name
,
max_callers
,
nlu_agent_names
or
asterisk_configs.asterisk_version
. Semantics:
  • Mask unset or empty: the update is merged additively over the stored project, which is the behaviour of every release before this field existed.
  • Path in the mask and set in
    vtsi_project
    : the field is written with the value sent.
  • Path in the mask but NOT set in
    vtsi_project
    : the field is CLEARED, i.e. reset to its default. This is the only way to unset a field: a scalar carries no presence, so an additive merge cannot distinguish "reset this to the default" from "say nothing about it", and the stored value survives. It is what makes an
    asterisk_version
    that has once been pinned track the deployment default again.
  • Path absent from the mask: the field is left untouched, whether or not
    vtsi_project
    carries a value for it.
  • Path the server does not recognise: the request is REFUSED with
    INVALID_ARGUMENT
    naming the path. It is never ignored. This matters most for the one mistake this surface invites: ONDEWO's own
    ondewo.nlu.UpdateAgentRequest
    documents the PREFIXED form (
    agent.display_name
    ), so a caller who copies that sibling will send
    vtsi_project.display_name
    here. Silently ignoring it would leave the field un-cleared while the call reported success - the exact failure this field exists to remove - so an unrecognised path fails loudly at the first request instead.

field_mask google.protobuf.FieldMask

Optional. Partial response: the VtsiProject field paths to populate in UpdateVtsiProjectResponse.vtsi_project, relative to the VtsiProject (no vtsi_project. prefix). Same convention as GetVtsiProjectRequest.field_mask; the name of the response is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT before anything is written. A mask never changes what is updated (that is update_mask).

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 UpdateVtsiProjectResponse.vtsi_project, but write nothing, touch no Asterisk, end no call and emit nothing. A successful validation does not guarantee that a later update succeeds (the project may change meanwhile). Default false.

UpdateVtsiProjectResponse

Response to the update of a VTSI project

FieldTypeLabelDescription
name string

VTSI project name with which to perform the call of the form

projects/<project_uuid>/project

error_message string

Never set: errors are reported as gRPC status codes (see the Projects service description). Kept for wire compatibility.

vtsi_project VtsiProject

The project after the update (with validate_only: the would-be project), in the full view, redacted like GetVtsiProject and narrowed by UpdateVtsiProjectRequest.field_mask. Left unset by a 9.0.0 server.

VtsiProject

The VTSI project with its configuration setting

FieldTypeLabelDescription
name string

Required. The project name. Format:

projects/<project_uuid>/project
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. 0 means NO caller can be started (it is not "unlimited"); negative values are refused with INVALID_ARGUMENT. A StartCaller / StartCallers beyond the free capacity is refused with RESOURCE_EXHAUSTED; an idle pooled (persistent) caller does not count. Changing it on a DEPLOYED project REDEPLOYS the project, which ends every running call (see UpdateVtsiProject); lowering it below the number of running callers is not refused.

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 max_callers: 0 means no listener can be started, a StartListener / StartListeners beyond the free capacity is RESOURCE_EXHAUSTED, and a change on a DEPLOYED project redeploys it.

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 asterisk_configs.asterisk_port, of which it is a convenience copy: asterisk_configs.asterisk_port is authoritative, and every response carries the project's port in both. On create and update, 0 means "not stated" (on create: assign a free port); a value set here is copied into asterisk_configs.asterisk_port; both set and different is refused with INVALID_ARGUMENT. Changing the port of a DEPLOYED project redeploys it and voids every softphone client certificate (the certificate authorities belong to the port).

nlu_agent_names string repeated

Associated NLU agents. Format:

projects/<Project ID>/agent

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 (+ and 1 to 15 digits, the first not 0: ^\+[1-9][0-9]{0,14}$), and a number is allowed when it STARTS WITH any entry.

Empty (the default): no project restriction. A CallTarget.phone_number target must still be a number the deployment accepts as dialable (by default + and 7 to 15 digits; the operator can change the accepted format). A legacy transfer_id and the bot's own transfers are not held to that format unless the operator changed it. There is no per-call setting and no deployment-wide list: the allowlist is the project's alone and applies to every listener, caller, campaign and scheduled caller of the project.

Example: ["+43", "+4930123456"] allows every Austrian number, the number +4930123456 and every extension dialled behind it (+4930123456789), and refuses +4989....

What it is checked against:

  • TransferCall with a CallTarget.phone_number target, BLIND or WARM: a number outside the list answers TRANSFER_OUTCOME_TARGET_INVALID with error_reason = number-not-allowed; nothing is sent and the call stays as it was. Read at the moment of the transfer, so an edit applies to the next transfer of every running call.
  • The legacy raw transfer_id of TransferCall when it is shaped like a phone number (+ and digits, or 4 digits followed by more characters, e.g. +4312345678, 4312345678 or 12345): its digits must pass the list, so the raw field is no way around it; while the list is non-empty such an id that carries anything but digits is refused too. A softphone user name routed in the project is not checked even when it looks like a number, nor is an id of any other shape.
  • The bot's OWN transfers (a transfer the NLU agent asks for during the call): checked inside the call; there every phone-shaped target, a numeric softphone user name included, counts as a number. A listener or caller receives the list when it is DEPLOYED, so a running listener keeps the list it was started with until it is redeployed; a pooled (persistent) caller started before an edit is not reused afterwards, a new one is deployed with the new list. A listener or caller whose project allowlist cannot be read is not deployed (FAILED_PRECONDITION, reason=transfer-allowlist-unreadable), rather than started with no restriction.
  • The phone-number keys of transfer_target_directory and the phone-number targets of IVR menu ROUTE nodes: an update that leaves a directory key outside the list is refused with INVALID_ARGUMENT (reason=number-not-allowed), and a menu routing to such a number does not validate.

At most 256 entries; a malformed entry or a longer list is refused with INVALID_ARGUMENT naming it. Duplicates are dropped. Order does not matter. Withheld from PROJECT_EXECUTOR and PROJECT_USER. Updatable with the update mask path transfer_phone_number_allowlist (the whole list is replaced; an empty list removes the restriction); it touches no Asterisk and ends no call.

status_message string

Output only. Human-readable detail of the current vtsi_project_status: the reason of a DEPLOY_FAILED project (the same text as the description of the VTSI_EVENT_VTSI_PROJECT_DEPLOY_FAILED event), or the reason the last undeploy or update of the project failed. Empty when there is nothing to report; cleared by the next successful status change. Secrets are redacted. Ignored on create and update.

status_changed_at google.protobuf.Timestamp

Output only. When vtsi_project_status last changed. Unset for a project whose status has not changed since an older server created it. Ignored on create and update.

trunk_registration_state TrunkRegistrationState

Output only. Registration state of the project's SIP trunk with the carrier, as last observed on the running Asterisk (pjsip show registrations), refreshed every ONDEWO_VTSI_ASTERISK_OBSERVER_INTERVAL_S seconds (default 30), so it may lag by that much. TRUNK_REGISTRATION_STATE_UNSPECIFIED when the project is not DEPLOYED or has not been observed yet. Ignored on create and update.

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: asterisk_configs.asterisk_version when pinned, otherwise the server default (ONDEWO_VTSI_ASTERISK_IMAGE_TAG) at the moment of the deployment. Empty when the project is not deployed. It can differ from what a new deployment would start, e.g. after the server default changed. Ignored on create and update.

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: TransferCallRequest.warm_transfer_config (one transfer) > the call's VoiceInteractionConfig.warm_transfer_config (set when the listener, caller, campaign or scheduled caller was started) > these project defaults > the built-in default of the field. A field left unset here inherits the built-in default; a text left unset everywhere is the ONDEWO NLU agent's warm transfer text, else the built-in text in the intro's language.

Example: set enabled=true and decision_timeout_s=30 here to give every WARM transfer of the project an intro in which the target has 30 seconds to accept; a campaign that sets enabled=false in its own warm_transfer_config then joins its targets without an intro, and a single TransferCall may still switch it back on.

When the deployment switch ONDEWO_VTSI_WARM_TRANSFER_ENABLED is off no intro runs, whatever any level says (a WARM transfer joins the target as before warm intros existed), and writing enabled=true here is refused with FAILED_PRECONDITION reason=warm-intro-disabled; defaults stored earlier are kept and apply again once it is on. A phase-B field (an LLM summary, hold music) while the deployment has not enabled phase B is refused with FAILED_PRECONDITION reason=phase-b-not-enabled. Check feature_availability first. A field out of its documented range is refused with INVALID_ARGUMENT naming it; intro_listener_names is valid on this level only.

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 apply_to_bot_transfers (or enabled) on reaches a running listener, and a pooled caller deployed before the edit, only after they are redeployed. Switching it off applies to the next bot transfer of every running call, which is then sent without an intro.

Unset: no project defaults; only the call's and the transfer's values and the built-in defaults apply (enabled unset everywhere is false). Withheld from PROJECT_EXECUTOR and PROJECT_USER. Updatable with the update mask path warm_transfer_defaults or its leaf paths, e.g. warm_transfer_defaults.enabled. The update itself reloads no Asterisk and ends no call; a changed intro_listener_names reaches the project's Asterisk the next time its configuration is written, e.g. on the next deploy.

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 GetVtsiProject, ListVtsiProjects and UpdateVtsiProject answer at no extra cost. Read it before offering or configuring a feature instead of learning from a refusal: e.g. a warm_intro other than WARM_INTRO_AVAILABILITY_AVAILABLE means a warm intro cannot be expected to run in this project, whatever warm_transfer_defaults or a call configures. Withheld from PROJECT_EXECUTOR and PROJECT_USER. Ignored on create and update.

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 true.

false switches every route of the project off at once: an inbound call to any number reaches the project's listener queue exactly as if no menu existed. The menus and their phone number bindings are kept and can still be edited and published, so setting true again restores every route as published. It does not change feature_availability.ivr, which is about the deployment, not this switch. There is no per-call setting.

Withheld from PROJECT_EXECUTOR and PROJECT_USER. Updatable with the update mask path ivr_menus_enabled; on a DEPLOYED project it only rewrites the inbound routes of the running Asterisk: no reload, and no call ends.

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 ({callee_name}) and brief the bot about them. It changes what the intro bot SAYS, never where a call is transferred to.

Keyed by the target: an E.164 phone number (+ and 7 to 15 digits, ^\+[1-9][0-9]{6,14}$, which must also pass transfer_phone_number_allowlist) or the sip_username of a softphone account of the project.

How it combines: the name and the description are each taken from the first source that has one: the transfer's effective WarmTransferConfig.callee_display_name / callee_description (the transfer, the call, then warm_transfer_defaults), then the target softphone account's display_name / description, then this directory. With none, the intro speaks a variant without a name. This is how the bot's own handover to a target (the NLU agent naming a softphone user, e.g. berger) names the right person.

Example (JSON):

{"berger": {"displayName": "Frau Berger, Buchhaltung",
  "description": "Handles invoices and reminders"},
 "+4312345678": {"displayName": "Support hotline"}}

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 TransferTargetDirectoryItem), is refused with INVALID_ARGUMENT naming it. Empty (the default): targets are named only by the transfer's settings and the softphone accounts. Withheld from PROJECT_EXECUTOR and PROJECT_USER. Updatable with the update mask path transfer_target_directory (the whole map is replaced). Touches no Asterisk and ends no call.

VtsiProject.TransferTargetDirectoryEntry

FieldTypeLabelDescription
key string

value TransferTargetDirectoryItem

VtsiProjectFeatureAvailability

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.

FieldTypeLabelDescription
warm_intro WarmIntroAvailability

Whether a WARM transfer of this project can run a warm intro. Anything but WARM_INTRO_AVAILABILITY_AVAILABLE means an intro cannot be expected to run, whatever VtsiProject.warm_transfer_defaults, a call or a transfer configures; with WARM_INTRO_AVAILABILITY_DISABLED_BY_DEPLOYMENT a WARM transfer joins its target without one.

warm_intro_phase_b bool

Whether the phase-B fields of WarmTransferConfig (an LLM-written summary, hold music for the caller) are accepted: true exactly when the deployment has enabled warm intros AND phase B. While false, setting one of them at any level is refused with FAILED_PRECONDITION reason=phase-b-not-enabled.

ivr IvrAvailability

Whether the project can publish IVR menus and route inbound numbers through them. Independent of the project's own switch VtsiProject.ivr_menus_enabled.

VtsiProjectSorting

This protobuf message defines the sorting order for VTSI (Virtual Telephone System Integration) projects.

FieldTypeLabelDescription
sorting_field VtsiProjectSorting.VtsiProjectSortingField optional

sorting field for vtsi projects sorting

sorting_mode VtsiProjectSortingMode optional

Sorting mode

Enums

IvrAvailability

Whether a project can use IVR menus, and if not, why. The same for every project of a deployment.

NameNumberDescription
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 VtsiProject.ivr_menus_enabled = false).

IVR_AVAILABILITY_DISABLED_BY_DEPLOYMENT 2

The operator switched IVR menus off for the whole deployment (ONDEWO_VTSI_IVR_ACTIVE is false): no menu routes an inbound call.

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.

SipTrunkTransport

Transport for the SIP trunk of an Asterisk server.

NameNumberDescription
SIP_TRUNK_TRANSPORT_UNSPECIFIED 0

Unspecified transport: identical to

SIP_TRUNK_TRANSPORT_TLS
. 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_source_cidr
.

SIP_TRUNK_TRANSPORT_TCP 3

Plain TCP transport. Requires

sip_trunk_source_cidr
.

TrunkRegistrationState

Registration state of a VTSI project's SIP trunk with the carrier.

NameNumberDescription
TRUNK_REGISTRATION_STATE_UNSPECIFIED 0

Not known: the project is not DEPLOYED, or its Asterisk has not been observed yet.

TRUNK_REGISTRATION_STATE_REGISTERED 1

The carrier accepted the trunk's registration (Registered).

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 (Unregistered, Stopped, timeouts and any other state).

TRUNK_REGISTRATION_STATE_REJECTED 3

The carrier refused the registration (Rejected), typically wrong sip_trunk_username / sip_trunk_password. The Asterisk retries on its own.

TRUNK_REGISTRATION_STATE_NOT_CONFIGURED 4

The project's running Asterisk has no outbound trunk registration to observe (no trunk-registration in pjsip show registrations), e.g. no SIP trunk is configured, or asterisk_configs_files / a target directory define none.

VtsiProjectSorting.VtsiProjectSortingField

Enum to specify the sorting field for VTSI projects. Enum defining the field by which VTSI projects can be sorted

NameNumberDescription
NO_VTSI_PROJECT_SORTING 0

The default order: by display_name, ascending.

SORT_VTSI_PROJECT_BY_NAME 1

Sort by project name such as

projects/<project_uuid>/project
.

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

VtsiProjectSortingMode

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).

NameNumberDescription
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.

VtsiProjectStatus

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.

NameNumberDescription
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 NOT_FOUND. Kept for wire compatibility.

DEPLOY_FAILED 8

The last deployment failed: its half-started container was removed and VtsiProject.status_message says why. Behaves like UNDEPLOYED: the project can be deployed again, updated or deleted, and undeploying it makes it UNDEPLOYED. Since 9.1.0; a 9.0.0 server reports a failed deployment as UNDEPLOYED, and a client built against 9.0.0 sees the unknown value 8.

VtsiProjectView

Structure of VTSI_PROJECT view

NameNumberDescription
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

WarmIntroAvailability

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.

NameNumberDescription
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 WarmTransferConfig.enabled is true runs one.

WARM_INTRO_AVAILABILITY_DISABLED_BY_DEPLOYMENT 2

The operator switched warm intros off for the whole deployment (ONDEWO_VTSI_WARM_TRANSFER_ENABLED is false, its default). Writing enabled=true at any level is refused with FAILED_PRECONDITION reason=warm-intro-disabled.

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 max_listeners is not above the number of listeners the deployment keeps free for customer calls (1 unless the operator changed it), and warm_transfer_defaults.intro_listener_names reserves none. A caller-only project (max_listeners = 0) is the typical case. Raise max_listeners or reserve intro listeners.

WARM_INTRO_AVAILABILITY_NEEDS_CALL_CONTROL_KEY 5

The operator has not configured in-call control for the deployment (no ONDEWO_VTSI_CALL_CONTROL_KEY), so the bot of a running call cannot be paused while the intro runs.

ondewo/vtsi/softphones.proto

Top

Services

Softphones

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.

Service Methods

CreateSoftphoneAccount

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).

GetSoftphoneAccount

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.

UpdateSoftphoneAccount

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.

DeleteSoftphoneAccount

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.

ListSoftphoneAccounts

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.

RotateSoftphoneCredentials

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.

ListSoftphoneCertificates

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.

GetSoftphoneCertificate

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.

RevokeSoftphoneCertificate

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).

GetSoftphoneProvisioning

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.

GetSoftphoneRegistration

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.

Messages

CreateSoftphoneAccountRequest

The request message for Softphones.CreateSoftphoneAccount.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project in which to create the account. The format is:

projects/<project_uuid>/project

softphone_account SoftphoneAccount

The account to create. sip_username is required. Output-only fields must be left unset and are otherwise rejected with INVALID_ARGUMENT.

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 ONDEWO_VTSI_IDEMPOTENCY_KEY_RETENTION_S), whichever server replica a retry reaches.

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 RotateSoftphoneCredentials (the SIP password always, and a new certificate for a SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE account), and returns the account with the NEW one-time secrets. The secrets of the first response, if anyone received them, stop working; a lost response is therefore always recoverable and never leaves two valid sets of secrets. This grants nothing a caller could not do anyway: both RPCs require the same role.

Reusing a key with a different request is refused with INVALID_ARGUMENT. A retry that arrives while the first attempt is still running is answered ABORTED and may be retried later. A first attempt that fails stores nothing, so a retry after a failure runs the create again. A retry after the account was deleted is NOT_FOUND; a retry while the account is locked is refused with FAILED_PRECONDITION (unlock it deliberately with RotateSoftphoneCredentials: a replayed key must not undo a revocation).

CreateSoftphoneAccountResponse

The response message for Softphones.CreateSoftphoneAccount.

FieldTypeLabelDescription
softphone_account SoftphoneAccount

The created account.

credentials SoftphoneCredentials

ONE-TIME secrets: the SIP password and, for SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, the PKCS#12 bundle and its password. For a replayed idempotency_key: the newly rotated secrets.

DeleteSoftphoneAccountRequest

The request message for Softphones.DeleteSoftphoneAccount.

FieldTypeLabelDescription
name string

Resource name of the account to delete. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

DeleteSoftphoneAccountResponse

The response message for Softphones.DeleteSoftphoneAccount.

FieldTypeLabelDescription
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).

GetSoftphoneAccountRequest

The request message for Softphones.GetSoftphoneAccount.

FieldTypeLabelDescription
name string

Resource name of the account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the SoftphoneAccount field paths to populate, e.g. display_name, enabled. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT.

GetSoftphoneCertificateRequest

The request message for Softphones.GetSoftphoneCertificate.

FieldTypeLabelDescription
name string

Resource name of the certificate. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>/certificates/<certificate_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response, as in ListSoftphoneCertificatesRequest.field_mask.

GetSoftphoneProvisioningRequest

The request message for Softphones.GetSoftphoneProvisioning.

FieldTypeLabelDescription
name string

Resource name of the account to provision. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

GetSoftphoneRegistrationRequest

The request message for Softphones.GetSoftphoneRegistration.

FieldTypeLabelDescription
name string

Resource name of the account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

field_mask google.protobuf.FieldMask

Optional. Partial response: the SoftphoneRegistration field paths to populate, e.g. contacts, observed_at. softphone_account_name is always populated. Unset or empty returns every field. An unknown path, or a path below contacts (a repeated field), is rejected with INVALID_ARGUMENT.

ListSoftphoneAccountsRequest

The request message for Softphones.ListSoftphoneAccounts.

FieldTypeLabelDescription
vtsi_project_name string

VTSI project whose accounts to list. The format is:

projects/<project_uuid>/project

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. 0 means the server default of 20; values above 1000 are clamped to 1000; negative values are rejected with INVALID_ARGUMENT.

page_token string optional

Optional. The next_page_token of a previous response. Opaque; valid only with the same vtsi_project_name, filter and softphone_account_sorting.

softphone_account_sorting SoftphoneAccountSorting

Optional. Sorting of the listing. Unset sorts by sip_username, ascending.

ListSoftphoneAccountsResponse

The response message for Softphones.ListSoftphoneAccounts.

FieldTypeLabelDescription
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.

ListSoftphoneCertificatesRequest

The request message for Softphones.ListSoftphoneCertificates.

FieldTypeLabelDescription
vtsi_project_name string

Every certificate of every account of this VTSI project. The format is:

projects/<project_uuid>/project

softphone_account_name string

The certificates of one softphone account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

filter SoftphoneCertificateFilter

Optional. Narrows the listing. Unset lists every certificate in scope.

field_mask google.protobuf.FieldMask

Optional. Partial response: the SoftphoneCertificate field paths to populate, e.g. status, not_after. name is always populated. Unset or empty returns every field. An unknown path is rejected with INVALID_ARGUMENT.

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 next_page_token of a previous response. Opaque; valid only with the same scope and filter.

ListSoftphoneCertificatesResponse

The response message for Softphones.ListSoftphoneCertificates.

FieldTypeLabelDescription
softphone_certificates SoftphoneCertificate repeated

The certificates of this page, newest created_at first.

next_page_token string

Token to retrieve the next page. Empty when there are no more results.

RevokeSoftphoneCertificateRequest

The request message for Softphones.RevokeSoftphoneCertificate.

FieldTypeLabelDescription
name string

Resource name of the certificate to revoke. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>/certificates/<certificate_uuid>

reason string

Optional. Why the certificate is revoked, e.g. device lost. At most 512 characters. Stored as revocation_reason.

RotateSoftphoneCredentialsRequest

The request message for Softphones.RotateSoftphoneCredentials. At least one of rotate_sip_password and rotate_certificate must be true.

FieldTypeLabelDescription
name string

Resource name of the account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

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 SOFTPHONE_CERTIFICATE_STATUS_SUPERSEDED.

RotateSoftphoneCredentialsResponse

The response message for Softphones.RotateSoftphoneCredentials.

FieldTypeLabelDescription
softphone_account SoftphoneAccount

The account after the rotation.

credentials SoftphoneCredentials

ONE-TIME secrets: sip_password always, the PKCS#12 bundle, its password and the certificate only when rotate_certificate was set.

SoftphoneAccount

A SIP account on a VTSI project's Asterisk for a human using a softphone. Never carries a secret.

FieldTypeLabelDescription
name string

Output only. Resource name of the softphone account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>
Ignored on create; identifies the account on update.

softphone_account_id string

Output only. The <softphone_account_uuid> part of name.

vtsi_project_name string

Output only. Resource name of the VTSI project the account belongs to. The format is:

projects/<project_uuid>/project

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

[A-Za-z0-9._-]
, 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 SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE. Updatable; switching to SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE requires an ACTIVE certificate.

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 true. Updatable.

max_contacts int32

Maximum number of simultaneous registrations (devices) of this account. 0 on create means the server default of 1; the allowed range is 1 to 10. Updatable.

labels SoftphoneAccount.LabelsEntry repeated

Free-form labels for organising and filtering accounts, e.g. team: support. Keys: 1 to 63 characters of

[a-z0-9_.-]
, 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. 100 or _1XX. Empty means the project default: the project's own listener extensions, and never the SIP trunk. Each entry is at most 64 characters of

[A-Za-z0-9_.!*#+\[\]-]
. 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:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>/certificates/<certificate_uuid>

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 openssl x509 -fingerprint -sha256. Empty when there is no ACTIVE certificate.

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: RevokeSoftphoneCertificate revoked its ACTIVE certificate, so the account is removed from the Asterisk and cannot register or call until RotateSoftphoneCredentials unlocks it. Independent of enabled: an account is usable only when it is enabled AND not 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 reason given to the RevokeSoftphoneCertificate that locked it (empty when none was given or the account is not locked).

description string

The person or role behind the account, e.g. Buchhaltung, Rechnungsfragen: the context a warm intro's briefing gives the target when the call is transferred to this account (see WarmTransferConfig.callee_description). At most 512 characters. Updatable.

SoftphoneAccount.LabelsEntry

FieldTypeLabelDescription
key string

value string

SoftphoneAccountFilter

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.

FieldTypeLabelDescription
transport_securities SoftphoneTransportSecurity repeated

Only accounts with one of these transport securities. SOFTPHONE_TRANSPORT_SECURITY_UNSPECIFIED is rejected with INVALID_ARGUMENT.

enabled bool optional

Only enabled (true) or only disabled (false) accounts. Unset matches both.

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 display_name. Empty does not filter. At most 128 characters.

sip_username_contains string

Case-insensitive substring match against sip_username. Empty does not filter. At most 64 characters.

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 for a window.

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 INVALID_ARGUMENT.

locked bool optional

Only locked (true) or only unlocked (false) accounts, see SoftphoneAccount.locked. Unset matches both.

SoftphoneAccountFilter.LabelsEntry

FieldTypeLabelDescription
key string

value string

SoftphoneAccountSorting

Sorting of a softphone account listing.

FieldTypeLabelDescription
sorting_field SoftphoneAccountSorting.SoftphoneAccountSortingField optional

The sorting field. Unset means NO_SOFTPHONE_ACCOUNT_SORTING.

sorting_mode VtsiProjectSortingMode optional

The sorting mode. Unset means ASCENDING.

SoftphoneCertificate

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.

FieldTypeLabelDescription
name string

Resource name of the certificate. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>/certificates/<certificate_uuid>

softphone_account_name string

Resource name of the softphone account the certificate was issued to. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

status SoftphoneCertificateStatus

Lifecycle status of the certificate. Independent of expiry: an expired certificate keeps its status and is recognised by not_after.

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 openssl x509 -fingerprint -sha256.

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 SOFTPHONE_CERTIFICATE_STATUS_SUPERSEDED. Unset otherwise.

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 SOFTPHONE_CERTIFICATE_STATUS_REVOKED. Unset otherwise.

revoked_by string

The user who revoked the certificate. Empty unless REVOKED.

revocation_reason string

The reason given at revocation, or account deleted. Empty unless REVOKED.

SoftphoneCertificateFilter

Narrows a softphone certificate listing. Combined like SoftphoneAccountFilter.

FieldTypeLabelDescription
statuses SoftphoneCertificateStatus repeated

Only certificates with one of these statuses. Empty matches every status. SOFTPHONE_CERTIFICATE_STATUS_UNSPECIFIED is rejected with INVALID_ARGUMENT.

expires_before google.protobuf.Timestamp

Only certificates whose not_after is strictly before this instant.

expires_after google.protobuf.Timestamp

Only certificates whose not_after is at or after this instant. A window whose start is not before its end is rejected with INVALID_ARGUMENT.

SoftphoneContact

One registered contact (device) of a softphone account.

FieldTypeLabelDescription
uri string

The contact URI the device registered, e.g. sip:alice@198.51.100.7:52114;transport=TLS.

user_agent string

The User-Agent header of the device's registration, e.g. Z 5.6.1 v2.10.20.3. Empty when the device sent none.

source_address string

The source address the registration arrived from, as host:port (an IPv6 host in brackets). It can differ from the host of uri behind a NAT.

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 OPTIONS) in milliseconds. 0 unless status is SOFTPHONE_CONTACT_STATUS_AVAILABLE.

status SoftphoneContactStatus

Reachability of the contact.

SoftphoneCredentials

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.

FieldTypeLabelDescription
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 (.p12) bundle, ready to import into a softphone. Set when a certificate was issued (create of a SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE account, or a certificate rotation), empty otherwise.

pkcs12_password string

The password protecting pkcs12_bundle. Set exactly when pkcs12_bundle is set.

certificate SoftphoneCertificate

Public view of the certificate inside pkcs12_bundle. Unset when no certificate was issued.

SoftphoneProvisioning

Everything needed to configure a softphone for one account, except the secrets. Every field is output only.

FieldTypeLabelDescription
softphone_account_name string

Resource name of the softphone account this describes. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

transport_security SoftphoneTransportSecurity

The account's transport security, which decides sip_server_port and whether a client certificate must be imported.

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_username@sip_domain.

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 SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, the external TLS port for SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY.

sip_transport string

Signalling transport. Always TLS.

outbound_proxy string

Outbound proxy as host:port: sip_server_host and sip_server_port. Zoiper: Outbound proxy.

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: opus, alaw (G.711 A-law, Zoiper PCMA), ulaw (G.711 mu-law, Zoiper PCMU).

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 SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY account on a deployment that configured its own certificate for the external TLS port, this is that certificate (chain) as configured.

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 SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY.

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 SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY. A softphone holding a bundle with a different fingerprint holds a superseded or revoked certificate.

client_certificate_expire_time google.protobuf.Timestamp

Expiry (notAfter) of the client certificate to import. Unset for SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY.

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 TLS, the port, the outbound proxy and SRTP; then the certificates to trust and, for SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE, to import. Plain text, lines separated by \n. Contains no secret: it refers to the SIP password and the PKCS#12 bundle by name.

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 SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE and needs an account with SOFTPHONE_TRANSPORT_SECURITY_SERVER_TLS_ONLY instead.

SoftphoneRegistration

The live registrations of one softphone account on its project's Asterisk. Every field is output only. Never carries a secret.

FieldTypeLabelDescription
softphone_account_name string

Resource name of the softphone account. The format is:

projects/<project_uuid>/softphoneAccounts/<softphone_account_uuid>

contacts SoftphoneContact repeated

The currently registered contacts (devices), at most the account's max_contacts, ordered by expire_time, latest first. Empty when no device is registered.

observed_at google.protobuf.Timestamp

When the server read the registrations from the Asterisk.

UpdateSoftphoneAccountRequest

The request message for Softphones.UpdateSoftphoneAccount.

FieldTypeLabelDescription
softphone_account SoftphoneAccount

The account to update, identified by softphone_account.name, carrying the new values of the fields named in update_mask.

update_mask google.protobuf.FieldMask

Required. The fields to update. Paths are field paths within softphone_account WITHOUT a softphone_account. prefix. Updatable paths: display_name, transport_security, enabled, max_contacts, labels, allowed_destinations, description. Semantics:

  • Mask unset or empty: rejected with INVALID_ARGUMENT. There is no implicit "update everything sent".
  • Path in the mask: the field is written with the value sent; a value that is not set is written as the field's create default (enabled unset writes true, max_contacts 0 writes the server default, an empty labels or allowed_destinations clears them).
  • Path absent from the mask: the field is left untouched, whether or not a value was sent.
  • Unknown, output-only or immutable path (name, sip_username, the certificate and audit fields): rejected with INVALID_ARGUMENT naming the path, never ignored.

Enums

SoftphoneAccountSorting.SoftphoneAccountSortingField

The field by which softphone accounts are sorted.

NameNumberDescription
NO_SOFTPHONE_ACCOUNT_SORTING 0

Default order: by sip_username, ascending.

SORT_SOFTPHONE_ACCOUNT_BY_DISPLAY_NAME 1

Sort by display_name.

SORT_SOFTPHONE_ACCOUNT_BY_SIP_USERNAME 2

Sort by sip_username.

SORT_SOFTPHONE_ACCOUNT_BY_CREATION_DATE 3

Sort by created_at.

SORT_SOFTPHONE_ACCOUNT_BY_LAST_MODIFIED 4

Sort by modified_at.

SORT_SOFTPHONE_ACCOUNT_BY_CERTIFICATE_EXPIRY 5

Sort by current_certificate_expire_time; accounts without an ACTIVE certificate sort last in either mode.

SoftphoneCertificateStatus

Lifecycle status of a softphone client certificate.

NameNumberDescription
SOFTPHONE_CERTIFICATE_STATUS_UNSPECIFIED 0

Unspecified. Never returned; in a filter it matches nothing and is rejected with INVALID_ARGUMENT.

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 RotateSoftphoneCredentials, which rotated the account's password with it. Still completes a TLS handshake until it expires, but no longer gets its holder the account.

SOFTPHONE_CERTIFICATE_STATUS_REVOKED 3

Explicitly revoked through RevokeSoftphoneCertificate, or because its account was deleted. Still completes a TLS handshake until it expires (the Asterisk has no revocation list), but no longer gets its holder the account.

SoftphoneContactStatus

Reachability of one registered contact of a softphone account, as the project's Asterisk qualifies it (SIP OPTIONS).

NameNumberDescription
SOFTPHONE_CONTACT_STATUS_UNSPECIFIED 0

Unspecified. Never returned.

SOFTPHONE_CONTACT_STATUS_AVAILABLE 1

The contact answered the last qualify (Avail); round_trip_ms is set.

SOFTPHONE_CONTACT_STATUS_UNAVAILABLE 2

The contact did not answer the last qualify (Unavail): the device is registered but currently unreachable, e.g. offline or behind a NAT that expired. Calls to it fail until it answers again or its registration expires.

SOFTPHONE_CONTACT_STATUS_NOT_QUALIFIED 3

The contact is not qualified (NonQual), so its reachability is not checked.

SOFTPHONE_CONTACT_STATUS_UNKNOWN 4

The Asterisk has not determined the reachability yet (Unknown, Created), e.g. right after the registration.

SoftphoneSrtpMode

Media encryption a softphone must use.

NameNumberDescription
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 SRTP (SDES).

SoftphoneTransportSecurity

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.

NameNumberDescription
SOFTPHONE_TRANSPORT_SECURITY_UNSPECIFIED 0

Unspecified: identical to SOFTPHONE_TRANSPORT_SECURITY_CLIENT_CERTIFICATE on create. The zero value is the stronger mode, so a caller that says nothing gets mutual TLS. Never returned on a stored account.

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.

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
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)