Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Testing Multiple Inbound Message Flows with a Single Messaging Number

    Posted 14 days ago

    Hi everyone,

    I'm exploring a way to test multiple Inbound Message Flows while having only a single messaging number available.

    My current approach is to use a Workflow triggered by customer.start that queries a Data Table using the tester's number and determines which flow is assigned to that tester.

    If the current Message Routing is already associated with the intended flow, the interaction simply continues. If not, the workflow would disconnect the interaction via API, optionally send an email notification informing that the routing is being updated, update the Message Routing configuration, and ask the tester to initiate a new interaction. The next interaction should then be directed to the correct flow.

    My main concern is relying on the Message Routing API, especially in a production org. Continuously changing routing configurations feels risky, and I'm wondering whether there are side effects, propagation delays, race conditions, or governance concerns that I may be overlooking.

    Has anyone implemented something similar?

    • Have you used the Message Routing API dynamically in this way?
    • What risks or limitations did you encounter?
    • Is there a cleaner pattern for sharing a single messaging number across multiple flow tests?
    • How would you approach this challenge?

    I'd appreciate any thoughts or alternative approaches.


    #Architect
    #DataActions
    #Triggers

    ------------------------------
    Leonardo Correa,
    Architect Developer.
    ------------------------------


  • 2.  RE: Testing Multiple Inbound Message Flows with a Single Messaging Number

    Posted 13 days ago

    Hi Leaonardo,

    Interesting approach. I'd be cautious about dynamically changing Message Routing in production for each tester.
     
    In our environment, we generally use Data Tables to drive routing decisions within Architect. For example, we have an inbound pattern where ANI is used as the Data Table key, configuration is retrieved at runtime, and Architect determines the subsequent routing path.
     
    So I'd explore keeping the single messaging number mapped to a stable Inbound Message Flow, then identifying the tester, performing the Data Table lookup and selecting the appropriate test path within Architect, rather than changing Message Routing and forcing a reconnect.
     
    We haven't used the Message Routing API dynamically like this in our environment, so I'd also be interested to hear from anyone who has, especially around simultaneous testers, active interactions and routing changes.


    ------------------------------
    Akhil
    ------------------------------



  • 3.  RE: Testing Multiple Inbound Message Flows with a Single Messaging Number

    Posted 13 days ago

    Hi Akhil,

    Thanks for the insight! The Data Table approach definitely makes sense and aligns well with what we're already considering as part of the solution.

    My main challenge is how to move a tester from one test path to another once they have been identified. From what I've found so far, the APIs that previously allowed inbound message flow transfers appear to be deprecated, and I haven't been able to find a native Architect action that transfers an active messaging interaction to a different inbound message flow.

    Are you handling this by keeping everything within a single Inbound Message Flow and branching the logic internally based on the Data Table result, then directing testers to reusable tasks? Or have you found another way to effectively separate and manage different test scenarios by leveraging multiple inbound message flows within the same interaction?

    That's the gap I'm trying to solve at the moment. If the recommendation is to consolidate all test paths into a single flow and use Data Tables purely to drive routing decisions within Architect, that may be the most practical approach, although it would require some additional effort to redesign and maintain the architecture.

    Thanks again for sharing your experience. I'm interested to hear whether others have found alternative patterns for messaging testing and flow isolation as well.



    ------------------------------
    Leonardo Correa,
    Architect Developer.
    ------------------------------



  • 4.  RE: Testing Multiple Inbound Message Flows with a Single Messaging Number

    Posted 13 days ago

    Thanks Leonardo, that clarifies it. Yes, I was thinking of keeping the number mapped to one stable Inbound Message Flow, then using the Data Table result to branch internally into reusable tasks for each test scenario.

    I agree that it's not the same as testing completely separate Inbound Message Flows. But if moving an active messaging interaction between flows isn't supported, I'd personally prefer this over dynamically changing Message Routing in production.It may mean a little more setup, but the routing association stays stable and you avoid changing org-level routing configuration every time a tester switches scenarios.

    Would be interesting to hear if anyone has found a supported pattern for testing multiple independent Inbound Message Flows behind a single number.



    ------------------------------
    Akhil
    ------------------------------