Legacy Dev Forum Posts

 View Only

Sign Up

Customer Start and End - calculated duration and event duration not the same

  • 1.  Customer Start and End - calculated duration and event duration not the same

    Posted 06-05-2025 19:04

    alex7 | 2024-05-22 11:39:46 UTC | #1

    I have an EventBridge set up for the cutomer.start and customer.end events. I save the eventTime for both events and calculate the duration. I also look at the interactionDurationMs value in the customer.end event. There is a difference.

    e.g. Start time: 2024-05-22 11:22:53.158 End time: 2024-05-22 11:23:09.951

    Difference: 16793 milliseconds

    But in the end.event, the interactionDurationMs is: 16610

    How is interactionDurationMs calculated?


    tim.smith | 2024-05-22 13:34:38 UTC | #2

    We cannot investigate customer-specific data via the forum. If you believe the API (or EventBridge) is producing incorrect data, please open a case with Genesys Cloud Care to investigate.


    alex7 | 2024-05-22 13:47:53 UTC | #3

    The question was more on how is interactionDurationMs calculated. Is it incorrect for me to assume the eventTime of start and end events are the beginning and end of the interaction?


    tim.smith | 2024-05-22 14:03:06 UTC | #4

    That property is only documented as "The overall time a customer spent talking/interacting in milliseconds", so (end - start) seems like a reasonable assumption.

    BTW I assume you meant interactingDurationMs, not interactionDurationMs as you typed; I can't find the latter anywhere.


    alex7 | 2024-05-22 14:37:28 UTC | #5

    You are correct. My mistake.

    I opened a ticket as you suggested.


    This post was migrated from the old Developer Forum.

    ref: 26412