Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

  • 1.  What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago
    Edited by Jason Kleitz 8 days ago

    What is your best practice for working and reverting in Architect, specifically for Inbound Message Flows?
    The available version history doesn't really revert back to the older version to a production status.  If I click on a older version, it opens the older version but doesn't set it to a production status. There is no Restore or Revert options only as Save As.
    I could see the benefits of using Save as when working on a inbound call flow, you can easily change the routing in Call Routing but for Messaging flows you would have to create a new message routing and that's not convenient.

    For example I make changes to my Messaging flow and it becomes ver 4.0, if needed I want to revert or roll back to version 3.0 and put that into production.


    #ArchitectandDesign
    #System/PlatformAdministration
    #Other

    ------------------------------
    Jean
    ------------------------------



  • 2.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    Hi @Jean Lam,

    Good question. There is actually a cleaner way to roll back an Inbound Message Flow without creating another flow or changing the Message Routing association.
     
    If v3.0 is your last known-good version and v4.0 has the unwanted change:
     
    1. Open the existing Inbound Message Flow.
    2. Go to Versions and open v3.0.
    3. Export v3.0 as an .i3flow.
    4. Return to the original flow and open it for editing.
    5. Import the v3.0 .i3flow.
    6. Validate the flow.
    7. Publish.
     
    This publishes the older configuration as a new version of the same flow, rather than literally making v3.0 current again. The benefit is that you don't need to create another flow with Save As or change the existing Message Routing association.
     
    In our environment, we also keep flow changes versioned and tested, with related configuration such as routing, Data Tables, schedules, prompts, queues, skills and Data Actions documented alongside them.
    So I'd keep an export of the last known-good production version before any major change. If a rollback is needed:
     
    Export → Import → Validate → Publish
     
    One thing to remember is that the import replaces the flow configuration rather than merging it with the current changes.


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



  • 3.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    Hi Akhil,

    Thank you for sharing this great tip. I tested it and imported the older version on my test Messaging flow and it worked great!  All the changes were reverted back to their original state on version 1.  Note, I did not use the "unpublished" button.

    Question, what is your process for testing SMS flows?  Our environment is using a SMS enabled TFN that is keyword enabled in the Messaging flow, this flow routes to a specific task that is replicating a production flow if you text the keyword. That works well but it's not efficient when troubleshooting.





    ------------------------------
    Jean
    ------------------------------



  • 4.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    Hi Jean,

    Glad it worked! 

    For SMS testing, I think your current approach with a test keyword/path is reasonable. The main limitation is that for a true end-to-end test you still need to send an actual SMS, so using reusable tasks would make the flow easier to maintain, but it wouldn't necessarily make that testing loop much faster.

    Can you please tell what part is slowing you down. Are you mainly troubleshooting the SMS/keyword recognition itself, or the Architect logic that runs after the keyword is received? If it's the latter, that's where separating and simplifying the test logic could help most.

    Curious to hear how others are handling this as well.



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



  • 5.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    Because the entire flow resides in a Reusable Tasks in the keyword/path flow, troubleshooting like you mentioned doesn't fully replicated a true end-to-end test. In some instance, broken behaviors goes to the default path of the test keyword/path flow instead of the actual flow that's sitting within a Tasks. 

    Also, if I build my SMS flow in the test keyword/path flow then I have to copy all of that from the task to a new Messaging flow.  Maybe I should start by build a new Messaging flow then move it into the test keyword/path flow for testing.



    ------------------------------
    Jean
    ------------------------------



  • 6.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    I think building the actual Inbound Message Flow first is a better approach, especially since you want to validate the complete SMS journey rather than just the logic inside a Reusable Task.

    One suggestion would be to create a dedicated test Inbound Message Flow and associate your test TFN directly with it through Message Routing.

    That way, you can build and test the complete flow, including keyword recognition, default paths without having to move the logic into another task-based flow.

    This also avoids maintaining duplicate copies of the same logic in multiple places.



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



  • 7.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 11 days ago

    If I recycle a SMS enabled TFN by deleting and recreating a dedicated test Inbound Message Flow and assign it to a new messaging flow, is that possible or would that create issues with the carrier?

    Unlike voice flows routing that can be easily changed in Call Routing, Messaging flows doesn't have that feature.



    ------------------------------
    Jean
    ------------------------------



  • 8.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    Hi Jean,

    I see the challenge now, particularly where the default and error paths in your keyword-based test flow don't match those of the independent Inbound Message Flow.

    I haven't found a documented way to test an entire unpublished Inbound Message Flow using the same SMS number without changing the production Message Routing configuration.

    One thing that may help with troubleshooting your existing approach is Architect Execution History and Replay Mode, which can help trace the execution path and identify where the flow diverged:

    https://help.genesys.cloud/articles/use-replay-mode-to-troubleshoot-an-architect-flow/

    It doesn't replace a full end-to-end SMS test, though.

    Hopefully someone who's handled this scenario can share a more effective testing approach.



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



  • 9.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 13 days ago

    It has always seemed like a huge oversight that there isn't a one-click "publish" option on the older flow versions.

    If we want to roll back, we tend to use the API (easily done through the API explorer) to publish the older version.



    ------------------------------
    James
    Telecoms Specialist
    ------------------------------



  • 10.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 11 days ago

    Hi James,

    do you mind sharing the steps to do that in API Explorer. Is it something similar to this process?

    Step 1: Find the Flow ID
    Step 2:POST /api/v2/flows/{flowId}/publish


    ------------------------------
    Jean
    ------------------------------



  • 11.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 11 days ago

    Hi Jean,

    If you already know the Flow ID and the version you want to publish, try the following endpoint in API Explorer:

    POST /api/v2/flows/actions/publish

    flow: Existing Flow ID

    version: Target version (e.g. 5.0 instead of 5)

    If you try it, could you please share the result and confirm whether the older version gets published successfully?



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



  • 12.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 9 days ago

    Hi Jean, two things that have helped us with message flows.

    Rollback: to add to James' point, the API route is POST /api/v2/flows/actions/publish?flow={flowId}&version=3.0 (version is an optional query parameter; it needs architect:flow:publish). If you'd like a copy outside Genesys too, Archy can export any specific version: archy export --flowName "My SMS flow" --flowType inboundshortmessage --flowVersion 3.0 --exportType yaml. We keep that YAML in Git before each publish, so a rollback starts from a known file instead of a search through the version list.

    Testing without sending real SMS: the same Inbound Message Flow can be the target of more than one messaging address. We create an Open Messaging integration (its outbound webhook can point to a simple test endpoint), route it to the same flow in Message Routing, and send test messages with POST /api/v2/conversations/messages/{integrationId}/inbound/open/message from a small script (client credentials, conversation:message:receive). That runs the real flow, including the default and error paths, and Execution History shows where each test went. If the flow branches on the channel type, that branch will behave differently, and you still want a final real SMS for carrier-specific things like keywords and opt-out, but most of the testing loop no longer depends on a phone.



    ------------------------------
    Sebastian
    Ingeniero de Proyecto
    ------------------------------



  • 13.  RE: What is your best practice for working on messaging flow, testing, publishing to production and roll back if needed.

    Posted 8 days ago
    Thanks Sebastian, really useful approach. Using Open Messaging for the main testing loop and keeping real SMS for the final channel-specific validation makes a lot of sense.


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