GoogleCloudPlatform / agent-assist-integrations

Apache License 2.0
10 stars 9 forks source link

Google Agent Assist Integration with Genesys Cloud. UI Modules are not loading. #17

Closed manitej-springml closed 3 days ago

manitej-springml commented 1 week ago

We’re trying to set up the Agent Assist Interaction Widget in our Genesys Dev Environment, following the documentation here and this guide.

However, when I click on the hosted application server URL, it gets stuck on reloading.

When hosted application server URL is opened in browser: Screenshot (1297)

After Integrating with genesys and clicking on the agent assist widget: Screenshot (1298)

carinali100 commented 1 week ago

Hi Mani. Did you have the Agent Assist integration backend setup? The objective first step is to deploy the backend server: https://cloud.google.com/agent-assist/docs/genesys-cloud-app#objectives. If you already have the backend server setup. Is there any other error that you see in the chrome developer tool?

manitej-springml commented 1 week ago

Hi @carinali100, I have done backend setup, it is performing authentication and redirecting. Attaching environment variables and logs of backend server screenshots for reference. I cannot see any other error in chrome. I have a doubt - Do we need to build anything on top of Genesys Cloud frontend code or make any changes to frontend UI modules? Screenshot (1300) Screenshot (1299)

carinali100 commented 1 week ago

Thanks Mani, I will go trough the deployment steps and see if there is anything missing or code changes need to be made. By design, we should not need to add anything for the frontend. Will get back to you by EOD tomorrow PST.

One more thing that I probably need your help is to enable the debug logging for the frontend event, I wanted to check the event order. you could do that by adding the three lines at the main.ejs. `

` image

Then in the developer tool console log, you should see events like 'active-conversation-selected' , 'conversation-initialized'. would you do me a favor and copy the whole console log and sent to me if there is no client information? Thanks!

manitej-springml commented 1 week ago

Hi @carinali100 I cannot see the events 'active-conversation-selected', 'conversation-initialized'. I am attaching screenshot.

Screenshot (1302)

Also, I can see some module (https://apis.google.com/js/platform.js) imported in your screenshot, but this line is not there in github code repo. Just wanted to know am I missing any code which is not in github repo?.

I also see some 404 (css.map) errors. Please refer below. Also, please check my files in left panel. Let me know if i missed anything. Screenshot (1303)

manitej-springml commented 1 week ago

Hi @carinali100, could you please send a reply if you have any update on this issue.

carinali100 commented 4 days ago

@manitej-springml Hi sorry I was OOO last Friday, I tested the repo and can reproduce the issue, and created a PR for this issue, not sure if you could view the pr https://github.com/GoogleCloudPlatform/agent-assist-integrations/pull/19

image

The repo owner will review the PR and merge it tomorrow.

nategd-google commented 4 days ago

Accidental close. Change has been uploaded. Please verify with the newest code.

manitej-springml commented 3 days ago

Hi @carinali100, It is working now. Thank you so much for fixing the issue.