In the Your app name field, enter a name for your app.
In the External name of your company or organization field, enter
the common name for your company or organization. You don't need to include
suffixes such as Inc or LLC. This field is useful for the LLM to identify
the company that the app represents.
Select a location for your app. Google recommends that you use the default,
global (Global), unless you have a reason to restrict your data to a
particular geography.
Click Continue.
Optional: Add one of the following identity providers in the Identity
provider field. Skip this step if you've already
connected to your identity provider
This determines what identity provider your users sign into your app with.
Make sure your data source that you plan to use is on the same identity
provider.
Add your provider:
Google Identity Provider: If you plan for your users to
sign into your app with Google Identity, then select this option. This
adds the identity provider associated with the account that you're
signed into Agentspace with.
3rd Party Identity: If you plan for your users to sign into
your app with a third-party identity provider, enter the workforce pool
that applies for your data source and click Add.
To attach a data store, on the Data Stores page, select the data
stores to attach.
Select existing data stores.
Create one or more new data stores and ingest data into them. Do
this by clicking Create data store and following the steps in the
Create a new data store pane that opens. Then select your new data store. For information about importing from first-party data sources,
see
Create a first-party data store.
For creating connectors for third-party data sources, see
Connect a third-party data source.
Optional: To see a list of unavailable data stores, click Learn why.
A table is displayed with a list of data stores and the reason why they are
unavailable.
APP_ID: the ID of the app that you want to create.
APP_DISPLAY_NAME: the display name of the app that you want to create.
DATA_STORE_ENTITY_ID: if your data store
contains entities, use the specific entity IDs. If your data store does
not contain entities, use the data store ID instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Create an app\n\nThis page describes how to create an Agentspace app.\n| **Note:** You can't connect website data stores to your Agentspace search and assistant apps.\n\nCreate an app\n-------------\n\n### Console\n\n1. In the Google Cloud console, go to the **[Agentspace\n page](https://console.cloud.google.com/gen-app-builder/)**.\n2. On the **Apps** page, click **Create app**.\n3. On the **Create app** page, select **Agentspace**.\n4. In the **Your app name** field, enter a name for your app.\n5. In the **External name of your company or organization** field, enter the common name for your company or organization. You don't need to include suffixes such as Inc or LLC. This field is useful for the LLM to identify the company that the app represents.\n6. Select a location for your app. Google recommends that you use the default,\n **global (Global)**, unless you have a reason to restrict your data to a\n particular geography.\n\n7. Click **Continue**.\n\n8. Optional: Add one of the following identity providers in the **Identity\n provider** field. Skip this step if you've already\n [connected to your identity provider](/agentspace/docs/identity)\n\n This determines what identity provider your users sign into your app with.\n Make sure your data source that you plan to use is on the same identity\n provider.\n9. Add your provider:\n\n - **Google Identity Provider**: If you plan for your users to sign into your app with Google Identity, then select this option. This adds the identity provider associated with the account that you're signed into Agentspace with.\n - **3rd Party Identity** : If you plan for your users to sign into your app with a third-party identity provider, enter the workforce pool that applies for your data source and click **Add**.\n10. To attach a data store, on the **Data Stores** page, select the data\n stores to attach.\n\n - Select existing data stores.\n - Create one or more new data stores and ingest data into them. Do this by clicking **Create data store** and following the steps in the **Create a new data store** pane that opens. Then select your new data store. For information about importing from first-party data sources, see [Create a first-party data store](/agentspace/docs/create-data-store). For creating connectors for third-party data sources, see [Connect a third-party data source](/agentspace/docs/connect-third-party-data-source).\n11. Optional: To see a list of unavailable data stores, click **Learn why**.\n\n A table is displayed with a list of data stores and the reason why they are\n unavailable.\n12. Click **Create**.\n\n### REST\n\nBefore you use the command line to create an app, you must have an existing data\nstore. If you don't have a data store, you need to\n[connect a Google data source](/agentspace/docs/create-data-store)\nor a [third-party data source](/agentspace/docs/connect-third-party-data-source) to\nyour app.\n\nTo use the [`engines.create`](/agentspace/docs/reference/rest/v1/projects.locations.collections.engines/create)\nmethod to create an app from the command line, follow these steps:\n\n1. Find your data store ID. If you already have your data store\n ID, skip to the next step.\n\n 1. In the Google Cloud console, go to the **Agentspace** page and\n in the navigation menu, click **Data Stores**.\n\n [Go to the Data Stores page](https://console.cloud.google.com/gen-app-builder/data-stores)\n 2. Click the name of your data store.\n\n 3. On the **Data** page for your data store, get the data store ID.\n\n2. Create an app and connect it to a data store.\n\n **Key Term:** In Agentspace, the term *app* can be used interchangeably with the term *engine* in the context of APIs. An Agentspace engine is a generic search engine where the `app_type` field is set to `APP_TYPE_INTRANET`. \n\n curl -X POST \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"Content-Type: application/json\" \\\n -H \"X-Goog-User-Project: \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\" \\\n \"https://discoveryengine.googleapis.com/v1/projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/global/collections/default_collection/engines?engineId=\u003cvar translate=\"no\"\u003eAPP_ID\u003c/var\u003e\" \\\n -d '{\n \"displayName\": \"\u003cvar translate=\"no\"\u003eAPP_DISPLAY_NAME\u003c/var\u003e\",\n \"dataStoreEntityIds\": [\"\u003cvar translate=\"no\"\u003eDATA_STORE_ENTITY_ID_1\u003c/var\u003e\", \"\u003cvar translate=\"no\"\u003eDATA_STORE_ENTITY_ID_2\u003c/var\u003e\", \"\u003cvar translate=\"no\"\u003eDATA_STORE_ENTITY_ID_3\u003c/var\u003e\"],\n \"solutionType\": \"SOLUTION_TYPE_SEARCH\",\n \"industryVertical\": \"GENERIC\",\n \"appType\": \"APP_TYPE_INTRANET\"\n }'\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your project.\n - \u003cvar translate=\"no\"\u003eAPP_ID\u003c/var\u003e: the ID of the app that you want to create.\n - \u003cvar translate=\"no\"\u003eAPP_DISPLAY_NAME\u003c/var\u003e: the display name of the app that you want to create.\n - \u003cvar translate=\"no\"\u003eDATA_STORE_ENTITY_ID\u003c/var\u003e: if your data store contains entities, use the specific entity IDs. If your data store does not contain entities, use the data store ID instead.\n\n #### Example command and result\n\n ```\n curl -X POST \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"Content-Type: application/json\" \\\n -H \"X-Goog-User-Project: my-project-123\" \\\n \"https://discoveryengine.googleapis.com/v1/projects/my-project-123/locations/global/collections/default_collection/engines?engineId=my-app\" \\\n -d '{\n \"displayName\": \"my-app\",\n \"dataStoreIds\": [\"slack_1234567890123_conversation\", \"slack_1234567890123_file\", \"slack_1234567890123_message\"],\n \"solutionType\": \"SOLUTION_TYPE_SEARCH\",\n \"industryVertical\": \"GENERIC\",\n \"appType\": \"APP_TYPE_INTRANET\"\n }'\n\n {\n \"name\": \"projects/123456/locations/global/collections/default_collection/operations/create-engine-12345678901234567890\",\n \"done\": true,\n \"response\": {\n \"@type\": \"type.googleapis.com/google.cloud.discoveryengine.v1.Engine\",\n \"name\": \"projects/123456/locations/global/collections/default_collection/engines/my-app\",\n \"displayName\": \"my-app\",\n \"dataStoreIds\": [\n \"slack_1234567890123_conversation\",\n \"slack_1234567890123_file\",\n \"slack_1234567890123_message\"\n ],\n \"solutionType\": \"SOLUTION_TYPE_SEARCH\",\n \"searchEngineConfig\": {\n \"searchTier\": \"SEARCH_TIER_STANDARD\"\n },\n \"industryVertical\": \"GENERIC\",\n \"appType\": \"APP_TYPE_INTRANET\"\n }\n }\n ```\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- [Preview search results](/agentspace/docs/preview-search-results)"]]