Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Get last message sender information in Architect flow

    Posted 09-08-2026 08:50

    Hello Team,

    We have a requirement for  handle customer inactivity when an agent is engaged in a message interaction through the Genesys WhatsApp integration.

    Once the configured inactivity timer expires while the interaction is in the queue, the message interaction needs to be routed to an Architect flow. The flow should send reminder messages to the customer at regular intervals and check whether the customer has responded.

    If the customer responds before the maximum number of configured reminders is reached, the interaction should be transferred back to the ACD queue for an agent to handle. If the customer does not respond after the maximum number of reminders, the interaction should be disconnected with an appropriate closure message.

    Is there any way to determine in an Architect flow whether the most recent chat message was sent by the customer? Is this information available through any built-in variable?

    Best Reagrds,


    #ArchitectandDesign

    ------------------------------
    Tibin Thomas
    ------------------------------


  • 2.  RE: Get last message sender information in Architect flow
    Best Answer

    Posted 09-08-2026 09:17

    Good Day Tibin

    With regards to the inactivity timer and routing the interaction somewhere else, I found the following articles on resrouce center that should assist with this request.

    https://help.genesys.cloud/articles/disconnect-or-reroute-inactive-messaging-conversations/

    https://help.genesys.cloud/articles/create-queues/

    I was unable to find any info regarding a built-in variable that you can use for this.  Perhaps you can look at a Data Action against the Conversation Messaging API - call GET /api/v2/conversations/messages/{conversationId}/messages, which returns the message history including each message's direction (inbound/outbound). Compare the ID/timestamp of the newest inbound message to a value you stored (in a flow variable) at the point the reminder cycle started. If a newer inbound message ID/timestamp shows up, the customer has responded.  Transfer back to ACD

    Hope this helps.

    Regards



    ------------------------------
    Stephan Taljaard
    EMBEDIT s.r.o
    ------------------------------



  • 3.  RE: Get last message sender information in Architect flow

    Posted 09-08-2026 10:04

    Hi Tibin,

    My understanding is that the queue-level Messaging Inactivity Handling applies to both the agent and customer, and the inactivity timer resets whenever either side sends a message.

    So I think the challenge with this design is not only detecting a customer response in the flow, but also determining whether the inactivity that caused the interaction to be routed to the flow was actually customer inactivity.

    I couldn't find a built-in Architect variable that directly identifies whether the last message was from the customer or agent, so some additional logic may be required to distinguish the two.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------