如需使用 Google Cloud提供的服务,您必须创建一个项目。
项目可以组织您的所有 Google Cloud 资源。
项目由一组协作者、已启用的 API(和其他资源)、监控工具、结算信息以及身份验证和访问权限控制组成。您可以创建一个项目,也可以创建多个项目,然后将其用于按资源层次结构组织 Google Cloud 资源。创建项目时,请记下项目 ID。您需要此 ID 才能进行 API 调用。
如需详细了解项目,请参阅 Resource Manager 文档。
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
点击顶部项目部分中的“播放”按钮,运行该部分代码。当系统提示时,允许笔记本访问您的 Google 凭据。
展开为 SIP/SIPREC 配置对话式 AI 部分。在创建虚拟 Dialogflow ES 代理...下,点击显示代码,然后运行代码,无需进行任何更改。此命令会创建一个虚拟 Dialogflow ES 代理,并将其层级设置为 Enterprise。需要一个虚拟 Dialogflow ES 代理才能访问 Dialogflow API 端点。每个 Google Cloud 项目只能有一个 Dialogflow ES 代理。
展开即可显示 Script to create a ConversationProfile... 部分下的代码。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Google Cloud project setup\n\nThis page documents the steps required to configure a Google Cloud project for\ntelephony integration.\n\nSelect or create a Google Cloud project\n---------------------------------------\n\nSIP Trunks are connected to a project for communication reasons only,\nbut their impact is not limited to a specific project.\n\nFor example, you may have three different projects\n(development, testing, production).\nIf the same SIP Trunk is used for all SBC to GTP communication,\nonly the first request to create the SIP Trunk will succeed,\nand the rest of the requests to create the SIP Trunk\nin the same region/hostname will fail.\n\nWe recommend that a different project be used\nfor the sole purpose of managing SIP Trunks.\nThis allows a different team to be responsible for the trunks,\nand within the Trunk UI,\nthey can establish different groups of SBCs for\ndevelopment, testing, and production.\n\n\nTo use services provided by Google Cloud,\nyou must create a *project* .\nA project organizes all your Google Cloud resources.\nA project consists of a set of collaborators,\nenabled APIs (and other resources), monitoring tools, billing information,\nand authentication and access controls.\nYou can create one project,\nor you can create multiple projects\nand use them to organize your Google Cloud resources in a\n[resource hierarchy](/resource-manager/docs/cloud-platform-resource-hierarchy).\nWhen creating a project, take note of the\n[project ID](/resource-manager/docs/creating-managing-projects#identifying_projects).\nYou will need this ID to make API calls.\nFor more information on projects, see the\n[Resource Manager documentation](/resource-manager/docs/creating-managing-projects).\n\n\u003cbr /\u003e\n\n\nIn the Google Cloud console, on the project selector page,\nselect or create a Google Cloud project.\n\n[Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\n\u003cbr /\u003e\n\nPermissions\n-----------\n\n1. In the Google Cloud Console, navigate to **IAM \\& Admin -\\\u003e IAM**.\n2. Either select an existing service account or create a new one, and make sure that it has the **`Dialogflow API Admin`** role assigned to it. This role is required for telephony integration.\n\nPhone number API access\n-----------------------\n\nUsing the phone number API methods requires special access.\nContact your Google representative for more information.\n\nConfigure Dialogflow, conversation profile, and phone number\n------------------------------------------------------------\n\nThis section walks you through the process of creating a\n[Conversational AI conversation profile](/agent-assist/docs/conversation-profile) with an\nassociated Google Telephony Platform (GTP) phone number.\n\n1. Navigate to [Colab Enterprise](https://console.cloud.google.com/vertex-ai/colab/) If prompted, enable the **Compute Engine** , **Dataform** , and **Vertex** APIs.\n2. Click **Import notebooks** , then select **URL** as the data source. Enter this [GitHub repository URL](https://github.com/GoogleCloudPlatform/dialogflow-integrations/blob/master/tools/SIP_SIPREC_integration_Dialogflow_CURL_commands_with_SIP_TRUNK_management.ipynb), then click **IMPORT**.\n3. In the `PROJECT_ID` field, enter the Google Cloud project ID for the project you'd like to associate with the integration. Your existing projects can be found in the drop-down menu at the top of the page in the [Cloud Console](https://console.cloud.google.com/).\n4. Enter your chosen region in the `REGION` field. All [Dialogflow regions](/dialogflow/cx/docs/concept/region) are supported.\n5. Either leave the `JWT` field as is, or enter your `JWT` value here. If left blank, SSO is used by default.\n6. Click the play button in the top **Project** section to run that section of code. When prompted, allow the notebook to access your Google credentials.\n7. Expand the **Configuring Conversational AI for SIP/SIPREC** section. Under **Create a dummy Dialogflow ES agent...** , click **Show code** and run the code without making any changes. This creates a dummy Dialogflow ES agent and sets its tier to Enterprise. A dummy Dialogflow ES agent is required in order to access Dialogflow API endpoints. Each Google Cloud project can have a single Dialogflow ES agent.\n8. Expand to display the code under the **Script to create a\n `ConversationProfile`...** section.\n - `CONVERSATION_PROFILE_NAME`: Can be any string. You can use the default value or input your own.\n - `SECURITY_SETTINGS`: Can be any string. You can use the default value or input your own.\n - `PHONE_NUMBER_COUNTRY_CODE`: Enter the country code you want to associate with your GTP phone number.\n - `CX_AGENT_NAME`: Enter the name of the Conversational Agents (Dialogflow CX) agent you want the generated conversation profile to be associated with.\n9. Run the code. The output will include the name of the generated `ConversationProfile`, security settings, and GTP phone number.\n10. Navigate to the [Dialogflow ES console](https://dialogflow.cloud.google.com/) to verify that an agent named `Dummy_ES_agent` has been created. Click **Settings** to verify that the agent is associated with the correct Google Cloud project and that it has been upgraded to the **Essentials** edition.\n11. Navigate to the [Agent Assist console](https://agentassist.cloud.google.com/). Click **Conversation profiles** in the left-hand menu to verify that a conversation profile with your entered `CONVERSATION_PROFILE_NAME` has been created.\n12. Navigate to the [Conversational AI Insights console](https://ccai.cloud.google.com/insights/projects). Verify that all conversation transcripts associated with your Conversational Agents (Dialogflow CX) agent have been imported.\n\n(Optional) Request a quota increase for Dialogflow CX Phone Gateway call length\n-------------------------------------------------------------------------------\n\nDialogflow ES Essentials and Conversational Agents (Dialogflow CX) subscriptions come with standard\navailable quotas. If you are not using Dialogflow at all, for example only\nAgent Assist, Transcription, or Call Recording, your default quota is\nthe same as the Dialogflow ES Essentials quota.\n\nYou have the option of requesting a quota increase if needed based on your\nestimated traffic. In most use cases the standard quota is sufficient for\nsetup and testing, but runtime applications require an increase. See the\n[Dialogflow quotas page](/dialogflow/quotas) for quota details and\ninstructions for requesting an increase.\n\n(Optional) Enable audit logging for the Dialogflow API\n------------------------------------------------------\n\nYou can optionally enable\n[audit logging](/logging/docs/audit/configure-data-access) for the\nDialogflow API (dialogflow.googleapis.com) for Admin Read, Data Read, and\nData Write. Doing so lets you see all the individual Conversational AI API calls\nmade and the credentials used for authorization and consumption. This can be\nuseful for troubleshooting and debugging.\n\nWhat's next\n-----------\n\nLearn how to [setup and configure an SBC](/dialogflow/cx/docs/concept/integration/sip-trunk/sbc-config)."]]