> [!NOTE]
> Choose whether to manage agents with the Business Communications [Developer
> Console](https://business-communications.cloud.google.com?utm_source=/business-communications/business-messages/guides/how-to/locations&utm_medium=devsite&utm_campaign=business-messages) or [API](https://developers.google.com/business-communications/business-messages/reference/business-communications/rest). <button value="console" default="">Developer Console</button> <button value="api">API</button>

If the brand that an agent represents has physical locations, you can associate
the locations with the agent so that users can message specific locations with
Business Messages. Business Messages identifies locations by Place ID.

> [!IMPORTANT]
> **Place ID** : A unique identifier for a location in the Google Places database and on Google Maps. Identify a location's Place ID with the [Place
> ID Finder](https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder). For [service-area businesses](https://support.google.com/business/answer/9157481), use the [Service-Area Business Place ID Finder](https://developers-dot-devsite-v2-prod.appspot.com/my-business/content/tools/placeid-lookup). Get an address for a Place ID with [Get
> address from Place ID](https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/geocoding-place-id).

With Place IDs, you can identify which physical location a user messages and
determine the best course of action for responding to the user.

You must claim ownership of physical locations through
[Business Profile](https://www.google.com/business/)
before you can associate locations with a Business Messages agent.

## Managing multiple locations

If the brand is part of a chain, you must add all locations for that chain where
you have permission to enable messaging. To verify all locations in the chain,
you will make a **single
[verify](https://developers.google.com/business-communications/business-messages/guides/how-to/verify)
request for one location**. Once we verify that location, we will automatically
verify the other associated locations that you have added.

After verification, if you add additional locations, you will need to request
location verification again.

To view locations associated with your agent,

1. Open the [Business Communications Developer
   Console](https://business-communications.cloud.google.com?utm_source=/business-communications/business-messages/guides/how-to/locations&utm_medium=devsite&utm_campaign=business-messages) and sign in with your Business Messages Google account.
2. Choose your agent.
3. Click **Locations** in the left navigation.

## Create a location

> [!NOTE]
> **Note:** If a location is managed in Business Profile, enable Business Messages for the location through the [Business Profile
> integration](https://developers.google.com/business-communications/business-messages/guides/how-to/integrate/business-profile).

To add a location to an agent,

1. Open the [Business Communications Developer
   Console](https://business-communications.cloud.google.com?utm_source=/business-communications/business-messages/guides/how-to/locations&utm_medium=devsite&utm_campaign=business-messages) and sign in with your Business Messages Google account.
2. Choose your agent.
3. Click **Locations** in the left navigation.
4. Click **Add**.
5. Search for a location or enter a Place ID, then click **Add**.

## Test a location

Each agent has test URLs that let you see how a conversation with that agent
appears to users and gives you the opportunity to verify your messaging
infrastructure.

To test an agent,

1. Open the [Business Communications Developer
   Console](https://business-communications.cloud.google.com?utm_source=/business-communications/business-messages/guides/how-to/locations&utm_medium=devsite&utm_campaign=business-messages) and sign in with your Business Messages Google account.
2. Choose your agent.
3. Click **Locations** in the left navigation.
4. Find the location in the list.
5. Under **Test URLs** , click the **Android** button or **iOS** button to copy the test URL to your device's clipboard.
6. To open the agent's test URL, use the [Business Messages Agent
   Launcher](https://business-messages-launcher.appspot.com) on a mobile device. Copying and pasting or otherwise manually navigating to a test URL doesn't work because of browser security measures.

## Update a location

You can [add](https://developers.google.com/business-communications/business-messages/guides/how-to/locations#add-location) and [delete](https://developers.google.com/business-communications/business-messages/guides/how-to/locations#delete-location) locations for an
agent with the Business Communications Developer Console.

To change a location's [messaging
availability](https://developers.google.com/business-communications/business-messages/guides/how-to/agents/availability),
[conversational
settings](https://developers.google.com/business-communications/business-messages/guides/how-to/agents/begin-conversation),
ro [localization
settings](https://developers.google.com/business-communications/business-messages/guides/how-to/agents/localization),
use the Business Communications API to [update the
location](https://developers.google.com/business-communications/business-messages/guides/how-to/locations?method=api#update-location).

## Delete a location

When you delete an agent, Business Messages deletes all location data. Business
Messages doesn't delete messages sent by your agent related to the location that
are in transit to or stored on a user's device. Messages to users aren't
location data.

Delete requests fail if you've attempted to verify the
location one or more times. To delete a location that you've verified or
attempted to verify,

contact us. (You must first [sign
in]() with a Business Messages Google account. To register for an account, see
[Register with Business
Messages](https://developers.google.com/business-communications/business-messages/guides/how-to/register).)

> [!WARNING]
> **Warning:** Deleting a location permanently removes all information about the location from Business Messages.

To delete a location,

1. Open the [Business Communications Developer
   Console](https://business-communications.cloud.google.com?utm_source=/business-communications/business-messages/guides/how-to/locations&utm_medium=devsite&utm_campaign=business-messages) and sign in with your Business Messages Google account.
2. Choose your agent.
3. Click **Locations** in the left navigation.
4. Find the location in the list.
5. Click the location's checkbox, the click **Delete**.
6. Click **Delete**.

## Next steps

Now that you have an agent with locations, you can [design your messaging
flows](https://developers.google.com/business-communications/business-messages/guides/how-to/message/message-lifecycle).