Legacy Dev Forum Posts

 View Only

Sign Up

Web Messenger Logic to ID Asynchronous

  • 1.  Web Messenger Logic to ID Asynchronous

    Posted 06-05-2025 18:36

    Jaime_Perez | 2022-09-29 17:29:25 UTC | #1

    Hello,

    Wondering if someone could provide options to identify when a Messenger conversation is within the 72 hours (asynchronous). I'm trying to add a logic that would identify them in the flow so that it won't offer the initial greeting. Instead, it should offer a "welcome back message."

    My initial thought was to pull the ".participants[0].startTime" using a data action to determine if the conversation is new.

    Here is my logic: Flow.msgStartTimeConverted < AddHours(GetCurrentDateTimeUtc(), -4)

    Using Chrome in incognito mode, it works fine when I close the browser. However, when I return to the same conversation in the same session, it still identifies it as a new conversation and not an existing conversation.

    The below example should be providing a welcome back message.


    Angelo_Cicchitto | 2022-09-30 13:33:07 UTC | #2

    Hi Jaime - good question, thanks for diving deeper into Messenger. In my demos I typically use a more simple approach, leveraging Architect's Built-In Variables (see the Message tab). There's a handy variable to determine whether this is new or existing conversation Message.IsNewConversation: you could use that boolean in a Decision block. If the conversation is not-New, then you could infer that it's happened within last 72 hours. Hope it helps!


    Jaime_Perez | 2022-09-30 12:28:52 UTC | #3

    Hi @AngeloCicchitto! Thanks for sharing the variable and the link to the resource center. I'll update the flow with this variable. I appreciate the response! :slightsmile:


    system | 2022-10-30 12:29:49 UTC | #4

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 16519