Skip to content

contact.isInbound() is returning false for inbound Email interaction in Amazon connect

0

In Amazon Connect Emails contact.isInbound() is returning false even though the initiationMethod is "Inbound". Additionally, contactData is only available in the onDestroy event, and not in the onConnected event. Can someone please assist me. Thanks

Enter image description here
Enter image description here
Enter image description here

1 Answer
-2

The behavior you're experiencing with Amazon Connect's email interactions is not typical and may indicate a misunderstanding or a potential issue. Let's clarify a few points:

  1. Inbound Email Contacts: In Amazon Connect, email contacts initiated through the StartEmailContact API are indeed considered inbound contacts. The InitiationMethod for these should be "API", not "INBOUND" as you mentioned. The "INBOUND" initiation method is typically used for voice (phone) contacts initiated by customers.

  2. contact.isInbound(): This method should return true for inbound email contacts. If it's consistently returning false, it could indicate a problem with how the contact is being initiated or how the method is being called.

  3. Contact Data Availability: It's unusual that contactData is only available in the onDestroy event and not in the onConnected event. Typically, basic contact information should be available when the contact is connected.

To troubleshoot this issue:

  1. Verify that you're using the correct API (StartEmailContact) to initiate the email contact.
  2. Check your Amazon Connect instance configuration to ensure email handling is set up correctly.
  3. Review your contact flow to make sure it's properly configured for email contacts.
  4. Examine the full contact event data to see if there are any anomalies in how the contact is being processed.

If the issue persists after these checks, it would be advisable to contact AWS Support for further assistance, as this behavior is not expected and may indicate a deeper problem with your Amazon Connect configuration or a potential bug in the system.
Sources
Best practices for handling email messages within a flow | AWS Contact Center
StartEmailContact - Amazon Connect
Amazon Connect contact events - Amazon Connect

answered a year ago
  • I'm initiating email interaction from my outlook. If there is any issue with the contact flow, then I would not get email interaction to my agent login account itself. contact.isInbound() is returning true for inbound call, chat, task. It is not working for Emails only

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.