- Newest
- Most votes
- Most comments
If I understand your ask correctly, you're calling a Lambda on one of the whisper flows before the customer and agent are connected to each other, yes? Is the Lambda successful after the connection is completed or after the call?
I haven't personally tested to confirm, but I'm thinking the agent won't show as assigned until the two parties are actually connected after the whispers play.
Yes that is exactly it, I am calling the lambda from the whisper flow. The lambda does successfully return the AgentInfo if it is ran during/after the call as opposed to in the whisper, however documentation says that the whisper flow runs after the agent has joined the call "A whisper flow is triggered after the agent accepts the contact (either auto-accept or manual accept)" which led me to believe that the agent info should be available at that point given the agent has accepted the call and is now the assigned agent. Is there another method similar to DescribeContact that can be used to retrieve the joined agent from within the whisper flow? Or alternatively, is there a way to call the lambda after the whisper flow finishes and the agent and caller are actually connected? My use case is to retrieve the assigned agent as early on as possible
Another piece of documentation hinted that the agent info is available in a contact attribute and indeed the username is available in the whisper flow, which is sufficient for me.
Thanks for the help.
Relevant content
- asked 6 months ago
- asked 10 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago