How do I get the contact id of a contact created by agent.connect()?
See original GitHub issueWhen I call:
agent.connect(endpoint, {
queueARN: QUEUE_ARN,
success: function() { ... },
failure: function() { ... }
});
How do I get the contact id of the dialed contact? The success
callback doesn’t seem to include it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Display contact information to the agent in the CCP
You can use contact attributes to capture information about the contact and then present it to the agent through the Contact Control Panel...
Read more >amazon-connect-streams/Documentation.md at master
Amazon Connect Streams - a browser-based contact center integration API, ... ID and consuming Voice ID CTRs, or updating speaker ID in your...
Read more >Amazon Connect softphone controls - Getting started
Locate the handlers for contact "onConnecting" (Look for the "handleContactConnecting()" function) and move the code that write the table to that handler (Code ......
Read more >class Connect. Client - Boto3 Docs 1.26.40 documentation
Amazon Connect is a cloud-based contact center solution that you use to set up and manage a customer contact center and provide reliable...
Read more >Contact Trace Record Import - Amazon Connect.github.io
Save the Set contact attributes block. · Wait approximately 2 minutes to give the contact flow time to publish. · Place a call,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is it safe to assume that when I call
The next contact received by this method will be the one that was dialed?
Is there any chance of a race condition where the agent receives an inbound milliseconds after they call
agent.connect()
and thus theconnect.contact()
call returns the wrong contact?I do things a bit differently to you: I only call connect.contact() in my connect.agent() handler - not per call. So far I have no reports of failures to make calls from production agents. I have always assumed that we don’t get the contact in the success handler because it doesn’t exist yet. I only use the success handler to generate a log message. My guess is that the connect call only kicks off the process of setting up a new connection/contact after doing some basic checks. I never worried about it because it is a common model for CTI solutions: you instruct it to make a call, and a bit later you get one or more events that tell you that a call is in progress. I’ve seen this model used by 3 other CTI providers.