Regionalization and location settings

When you create an agent, you must specify a region as the agent's location. Requests sent to your agent are handled by Google services in this region and Dialogflow CX keeps data-at-rest physically within the geographical region or location. For the best performance, you should choose a region that is near your services and end-users.

Once an agent is created, its location cannot change. In order to change an agent's location, you must export and restore to a new agent with a different location.

Each location has associated settings that apply across your project. In most cases, you do not need to edit these location settings, and the default settings will work well. If your system requires customer-managed encryption keys (often required by government entities or regulated industries), read more about location settings.

Limitations

The following limitations apply:

Available regions

Dialogflow CX supports the following regions for agent location. Data store agents are also supported in the regions listed in the following table, but the region IDs used by data stores differ slightly from the agent regions (as listed). All regions with a value entered in the Data store region ID column are supported by data store agents in Vertex AI Agents.

Country grouping Geographical location Agent region ID Data store region ID
Americas Iowa us-central1 us (multi-region)
Americas Montréal northamerica-northeast1 global (multi-region)
Americas South Carolina us-east1 us (multi-region)
Americas Oregon us-west1 us (multi-region)
Americas United States multi-region us * us (multi-region)
Europe Belgium europe-west1 eu (multi-region)
Europe London europe-west2 eu (multi-region)
Europe Frankfurt europe-west3 eu (multi-region)
Europe Netherlands europe-west4 eu (multi-region)
Europe Zurich europe-west6 eu (multi-region)
Asia Pacific Sydney australia-southeast1 global (multi-region)
Asia Pacific Tokyo asia-northeast1 global (multi-region)
Asia Pacific Mumbai asia-south1 global (multi-region)
Asia Pacific Singapore asia-southeast1 global (multi-region)
Asia Pacific Jakarta asia-southeast2 global (multi-region)
Global Global multi-region (global serving, data-at-rest in United States) global (preferred) or no region (default) ¶ global (multi-region) ¶

You can read more about regions used by Google Cloud at Google Cloud regions and Google Cloud geography and regions.

Location settings

If your system requires customer-managed encryption keys (often required by government entities or regulated industries), you can use location settings to configure this feature.

Location settings are shared across the project, and each unique location has its own location settings.

Once settings for a specific location are configured for a project, an immutable dialogflow.googleapis.com/LocationSettings resource is created, and the settings cannot change for that location. If you need to change these settings or to delete the resource, you must create a new project.

If you need to allow your organization's developers to configure agents only in specific locations, you can set up an organization policy that includes a resource locations constraint.

If you create an agent without editing the location settings, the default settings will be configured for that location, and they cannot be changed for the project. In addition, once an agent is created, its location cannot change. In order to change an agent's location, you must export and restore to a new agent with a different location.

The following location settings are available:

  • Encryption: This setting controls whether Google-managed or customer-managed encryption keys are used to protect data. The default is Google-managed. You must request access (by contacting your Google representative) to the customer-managed encryption keys feature to change this setting.

You can configure location settings in two ways:

Specify a region with the API

You must specify a region for all API requests.

For REST calls, you must do both of the following:

  • Provide the region ID for the location URL path parameter.

  • For the global region, use dialogflow.googleapis.com for the hostname. For all other regions, use [region-id]-dialogflow.googleapis.com for the hostname. For the us multi-region, you can also use the US multi-regional endpoint.

For example:

  • dialogflow.googleapis.com/projects/{PROJECT_ID}/locations/global/agents/{AGENT_ID}

  • us-central1-dialogflow.googleapis.com/projects/{PROJECT_ID}/locations/us-central1/agents/{AGENT_ID}

For client libraries, see the client library documentation for a region configuration option.

You can find examples in the API quickstart.

Use the US multi-regional endpoint

If your agents are in the us multi-region, you can send API requests to the US multi-regional endpoint, dialogflow.us.rep.googleapis.com. A multi-regional endpoint terminates TLS and processes your requests within the multi-region, so your request data stays in the US while it's in transit. Using this endpoint doesn't change where your agent data is stored. For more information, see Regional and multi-regional API endpoints overview in the Google Cloud security guide.

To use the US multi-regional endpoint, make the following changes to each request:

  1. Use dialogflow.us.rep.googleapis.com for the hostname.

  2. Set the location URL path parameter to us.

For example:

  • dialogflow.us.rep.googleapis.com/v3/projects/{PROJECT_ID}/locations/us/agents/{AGENT_ID}

Use the US multi-regional endpoint only for resources in the us location. For resources in other locations, including us-central1, us-east1, and us-west1, use the hostname for that location.

To use the US multi-regional endpoint with the client libraries, set the API endpoint option of the client to dialogflow.us.rep.googleapis.com. For example, in Python, pass client_options={"api_endpoint": "dialogflow.us.rep.googleapis.com"} when you create the client. If you use Terraform, set the dialogflow_cx_custom_endpoint field of the Google provider to https://dialogflow.us.rep.googleapis.com/v3/. That setting sends all of the provider's Dialogflow CX requests to the US multi-regional endpoint, so use it only for resources in the us location.

For the list of regional and multi-regional service endpoints, see Regional and multi-regional service endpoints in the Virtual Private Cloud guide.

Cloud logging

See the Cloud logging guide to control the region in which logs are stored.