Stay organized with collectionsSave and categorize content based on your preferences.
You can set up an application server for rendering Agent Assist suggestions on the web inGenesys Cloud.
Objectives
Genesys Cloud integration involves the following processes:
Deploythe backend serverfor the UI module to call the Dialogflow API, register an authentication token, and setup cloud Pub/Sub and Memorystore for Redis.
Deploy the Genesys Cloud application server for rendering the Agent Assist UI module inCloud Run.
Reach out to agent-assist-ui-modules-support@google.com for access to theGenesys Cloud repository.
Deploy an Agent Assist UI modulesbackend. When you deploy the backend server, specify the environment variableAUTH_OPTIONto beGenesysCloud, following thedeployment instructions.
Deploy Genesys Cloud application server using CLI
Clone thegit repositoryonto your local machine or development environment with the following code:
In your local terminal, use the following code to change the active directory to the repository root directory where the Docker file resides before running the Google Cloud CLI builds.
cd genesyscloud/frontend
When prompted for a service name, pressEnterto accept the default.
Deploy the integration using the following command. ReplacePROJECT-IDwith your agent's Google Cloud project ID,UI_MODULE_SERVICE_ACCOUNTwith your service account client email, andset theREGIONfor Cloud Run.
For details, seeCloud Run documentation. In the Google Cloud console, you can view a list of your active integration deployments underCloud Run.
Create an OAuth client
Follow theinstructionsin the Genesys Cloud documentation to create a new OAuth client (Token Implicit Grant).
Ensure the grant type isImplicit Grant (Browser).
Add your application URL to theAuthorized redirect URIssection.
Update the Oauth 2.0 client token duration to 3600 second. This matches the JWT token for the Dialogflow API access of 1 hour.
{Application_SERVER_URL}?conversationProfile={CONVERSATION_PROFILE_NAME}&features={FEATURES}Replace {APPLICATION_SERVER_URL} with the URL of your UI application server.
ReplaceCONVERSATION_PROFILE_NAMEwith the name of theconversation profile, such asprojects/your-project/locations/your-location/conversationProfiles/abc123.
Replace{FEATURES}with a comma-separated list of Agent Assist features you would like the application to include. Important: Only include features configured in your conversation profile. Genesys cloud supports the followingfeatures
To add scopes to the oauth client, navigate to theScopesection and select your tags.
. The scopes should include alerting, authorization, conversations, notifications, and organization.
[[["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-04 UTC."],[[["\u003cp\u003eThis guide explains how to set up an application server for rendering Agent Assist suggestions within Genesys Cloud, utilizing various Google Cloud services and the Dialogflow API.\u003c/p\u003e\n"],["\u003cp\u003eThe integration process involves deploying a backend server, setting up an application server in Cloud Run, creating an OAuth client, and configuring environment variables within Genesys Cloud.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, you must install the Google Cloud CLI, set up a service account with the Dialogflow API client role, and gain access to the Genesys Cloud repository.\u003c/p\u003e\n"],["\u003cp\u003eDeploying the application server requires cloning a repository, navigating to the correct directory, and running a \u003ccode\u003egcloud\u003c/code\u003e command, including specifying a service account and project ID, to deploy to Cloud Run.\u003c/p\u003e\n"],["\u003cp\u003eKey configurations include setting environment variables such as \u003ccode\u003eOAUTH_CLIENT_ID\u003c/code\u003e, \u003ccode\u003eGENESYS_CLOUD_REGION\u003c/code\u003e, and \u003ccode\u003eCONVERSATION_PROFILE\u003c/code\u003e, which are essential for the Genesys Cloud integration to function correctly.\u003c/p\u003e\n"]]],[],null,["# Deploy the Genesys Cloud application server\n\nYou can set up an application server for rendering Agent Assist suggestions on the web in [Genesys Cloud](https://www.genesys.com/genesys-cloud).\n\nObjectives\n----------\n\nGenesys Cloud integration involves the following processes:\n\n1. Deploy [the backend server](/agent-assist/docs/backend-module-install) for the UI module to call the Dialogflow API, register an authentication token, and setup cloud Pub/Sub and Memorystore for Redis.\n2. Deploy the Genesys Cloud application server for rendering the Agent Assist UI module in [Cloud Run](/run/docs/overview/what-is-cloud-run).\n3. Create [OAuth client](/agent-assist/docs/genesys-cloud-app#create_an_oauth_client).\n4. Complete the [environment variables](/agent-assist/docs/genesys-cloud-app#complete_the_environment_variables).\n5. Set up the [interaction widget](/agent-assist/docs/genesys-cloud-chat#configure_the_interaction_widget) in Genesys Cloud.\n6. Configure the Agent Assist integration with the interaction widget in Genesys Cloud.\n7. [Configure Messenger](/agent-assist/docs/genesys-cloud-chat#configure_the_messenger) in Genesys Cloud.\n8. Use the Genesys Cloud [web chat and messaging tools](/agent-assist/docs/genesys-cloud-testing) to test the integration.\n\nBefore you begin\n----------------\n\nYou must complete the following actions before starting the Genesys Cloud integration:\n\n1. Install the [Google Cloud CLI](/sdk/docs/install), if you haven't already configured it.\n2. Follow the Google Cloud instructions to [create a service account](/iam/docs/service-accounts-create) and [assign the Dialogflow API client role](/dialogflow/es/docs/access-control#roles).\n3. Reach out to agent-assist-ui-modules-support@google.com for access to the [Genesys Cloud repository](https://github.com/GoogleCloudPlatform/agent-assist-integrations).\n4. Deploy an Agent Assist UI modules [backend](/agent-assist/docs/backend-module-install). When you deploy the backend server, specify the environment variable `AUTH_OPTION` to be `GenesysCloud`, following the [deployment instructions](https://github.com/GoogleCloudPlatform/agent-assist-integrations/tree/HEAD/aa-integration-backend#customize-user-authentication-method).\n\nDeploy Genesys Cloud application server using CLI\n-------------------------------------------------\n\n1. Clone the [git repository](https://github.com/GoogleCloudPlatform/agent-assist-integrations) onto your local machine or development environment with the following code: \n\n ```\n git clone https://github.com/GoogleCloudPlatform/agent-assist-integrations\n ```\n2. In your local terminal, use the following code to change the active directory to the repository root directory where the Docker file resides before running the Google Cloud CLI builds. \n\n ```\n cd genesyscloud/frontend\n ```\n3. When prompted for a service name, press **Enter** to accept the default.\n4. Deploy the integration using the following command. Replace `PROJECT-ID` with your agent's Google Cloud project ID, `UI_MODULE_SERVICE_ACCOUNT` with your service account client email, and [set the `REGION` for Cloud Run](/run/docs/locations). \n\n ```\n gcloud run deploy $AA_MODULE_APPLICATION_SERVER \n\n --source ./ \n\n --service-account=$ui_module_service_account \n\n --memory 1Gi --platform managed \n\n --region us-central1 \n\n --allow-unauthenticated \n\n ```\n5. Click **Enter** to accept the default service name.\n\nFor details, see [Cloud Run documentation](/run/docs/deploying). In the Google Cloud console, you can view a list of your active integration deployments under [Cloud Run](https://console.cloud.google.com/run).\n\n### Create an OAuth client\n\n1. Follow the [instructions](https://help.mypurecloud.com/articles/create-an-oauth-client/) in the Genesys Cloud documentation to create a new OAuth client (Token Implicit Grant).\n2. Ensure the grant type is **Implicit Grant (Browser)**.\n3. Add your application URL to the **Authorized redirect URIs** section.\n4. Update the Oauth 2.0 client token duration to 3600 second. This matches the JWT token for the Dialogflow API access of 1 hour. \n\n ```\n {Application_SERVER_URL}?conversationProfile={CONVERSATION_PROFILE_NAME}&features={FEATURES}Replace {APPLICATION_SERVER_URL} with the URL of your UI application server.\n ```\n5. Replace `CONVERSATION_PROFILE_NAME` with the name of the [conversation profile](/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles), such as `projects/your-project/locations/your-location/conversationProfiles/abc123`.\n6. Replace `{FEATURES}` with a comma-separated list of Agent Assist features you would like the application to include. Important: Only include features configured in your conversation profile. Genesys cloud supports the following [features](/agent-assist/docs/ui-modules-container-documentation)\n7. To add scopes to the oauth client, navigate to the **Scope** section and select your tags.\n\n. The scopes should include alerting, authorization, conversations, notifications, and organization.\n\nExample URL: \n\n```bash\nhttps://my-project.wm.run.app?conversationProfile=projects/my-project/conversationProfiles/abc123&features=ARTICLE_SUGGESTION,CONVERSATION_SUMMARIZATION\n```\n\n\u003cbr /\u003e\n\n### Complete the environment variables\n\nThe Genesys Cloud application uses the following environment variables. To set the environment variables, follow the [Cloud Run instructions](/run/docs/configuring/environment-variables).\n\n- `OAUTH_CLIENT_ID`: Genesys Cloud OAuth Client ID.\n- `GENESYS_CLOUD_REGION`: [Genesys Cloud region](https://developer.genesys.cloud/platform/api/). For example, `usw2.pure.cloud` for US West(Oregon). The default value is [`mypurecloud.com`](http://mypurecloud.com).\n- `GENESYS_CLOUD_ENVIRONMENT`: Genesys cloud environment. The default value is `prod`.\n- `PROXY_SERVER`: The URL of the Agent Assist backend connector.\n- `APPLICATION_SERVER_URL`: URL of the UI application server.\n- `PROJECT_ID`: Your Google Cloud project ID.\n- `CONVERSATION_PROFILE`: The [conversation profile](/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles) to use. This should match the profile in the redirect URL of the OAuth client.\n- `FEATURES`: Comma-separated constant for [Agent Assist features](/agent-assist/docs/ui-modules-container-documentation). This should match the features in the redirect URL of the OAuth client.\n- `CHANNEL`: Choose integration type, the value could be \"voice\" or \"chat\".\n\nSample .env file: \n\n```bash\nOAUTH_CLIENT_ID={your-oauth-client-id}\nGENESYS_CLOUD_REGION={your-pure-cloud-region}\nGENESYS_CLOUD_ENVIRONMENT={your-pure-cloud-environment}\nPROXY_SERVER={your-proxy-server-endpoint}\nPROJECT_ID={your-gcp-project-id}\nCONVERSATION_PROFILE={your-conversation-profile}\nFEATURES=ARTICLE_SUGGESTION,CONVERSATION_SUMMARIZATION\nCHANNEL={use-voice-or-chat}\n```\n\n\u003cbr /\u003e\n\nWhen you create an OAuth client, Genesys Cloud also provides a client ID.\n\nRun the deployment command with updated environment variables. \n\n```\n gcloud run deploy $AA_MODULE_APPLICATION_SERVER \n\n --source ./ \n\n --service-account=$ui_module_service_account \n\n --memory 1Gi --platform managed \n\n --region us-central1 \n\n --allow-unauthenticated \n\n --set-env-vars ^~^OAUTH_CLIENT_ID=$OAUTH_CLIENT_ID~GENESYS_CLOUD_REGION=$GENESYS_CLOUD_REGION~GENESYS_CLOUD_ENVIORNMENT=$GENESYS_CLOUD_ENVIORNMENT~CONVERSATION_PROFILE=$CONVERSATION_PROFILE~FEATURES=$FEATURES~PROJECT_ID=$PROJECT_ID~APPLICATION_SERVER_URL=''~PROXY_SERVER=$PROXY_SERVER~APPLICATION_SERVER_URL=$APPLICATION_SERVER_URL\n```\n\n\u003cbr /\u003e\n\nThe Genesys Cloud application server must be deployed to a Google Cloud hosting service. Use App Engine or Cloud Run.\n\n### Shut down the application server\n\n1. Delete the Cloud Run service.\n2. In your local terminal, run the following command: \n\n ```\n gcloud run services list\n ```\n3. Select the previously chosen target platform to list active deployments.\n4. Run the following command: \n\n ```\n gcloud run services delete agent-assist-modules-application-server\n ```\n\nPrice disclaimer\n----------------\n\nIf you use Genesys Cloud integration, there is a cost associated with the underlying [Cloud Run](/run/pricing) service.\n\nWhat's next\n-----------\n\n- [Configure for chat integration](/agent-assist/docs/genesys-cloud-chat)\n- [Test chat integration](/agent-assist/docs/genesys-cloud-testing)"]]