Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendMessage from agentChatSession #242

Open
atifatl opened this issue Nov 25, 2024 · 2 comments
Open

sendMessage from agentChatSession #242

atifatl opened this issue Nov 25, 2024 · 2 comments

Comments

@atifatl
Copy link

atifatl commented Nov 25, 2024

We are trying to create custom chat session for customer as well as for agents. From customer side we are able to integrate all the apis. From the agent side, it seems we are forced to integrate with web interface. If we are try to send Message from agentChatSession it always fails. We are trying with : https://github.com/amazon-connect/amazon-connect-in-app-calling-examples/blob/main/Web/amazon-connect-ccp-web-calling-example/src/services/ContactManager.js. Does agentChatSession support sendMessage. If yes what is the signature ?

@atifatl
Copy link
Author

atifatl commented Nov 25, 2024

I just checked the log when i try to use contact.getConnection and try to send message :
ERROR ["Send message error",{"type":"UnknownError","message":"User is not authorized to access this resource with an explicit deny",.......... "sessionType":"AGENT","region":"us-west-2"}
My amazon connect region is us-east-1. I am getting error from us-west-2 Can you please please check

@mliao95
Copy link
Collaborator

mliao95 commented Nov 28, 2024

Hi @atifatl,

Could you double check whether connect.ChatSession.setGlobalConfig() is set correctly for your given region? It makes sense that you would get an unauthorized error if your instance lives in a different region than where the API is calling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants