Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  How to export a architech flow

    Posted 01-16-2026 14:53
    Edited by Jesus Garces 01-16-2026 14:54

    I need export a architech flow using the CLI, Terraform or Archy, but I the idea is no use a Client credential Oauth. I prefer use a temporal token.

    The idea is not to use the UI since the goal is to automate the process of exporting and importing it into another ORG.


    If you can give me an examples I appreciate it


    #Architect
    #Archy
    #CXasCode

    ------------------------------
    Jesus Garces
    NA
    ------------------------------



  • 2.  RE: How to export a architech flow

    Posted 01-16-2026 15:18

    I believe I'll only be able to do this via OAuth.



    ------------------------------
    Kaio Oliveira
    Sr Systems Analyst
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR
    ------------------------------



  • 3.  RE: How to export a architech flow

    Posted 01-18-2026 23:37

    Hello Jesus,

    Based on our resources, we can only export via OAuth or the UI.



    ------------------------------
    Matthew Lawrence De Mesa
    Senior Technical Support Engineer
    ------------------------------



  • 4.  RE: How to export a architech flow

    Posted 7 days ago

    Can you please look into that? https://community.genesys.com/discussion/archyapi-alter-flow-values-during-import-process



    ------------------------------
    Artur Dishunts
    Software Developer
    ------------------------------



  • 5.  RE: How to export a architech flow

    Posted 01-21-2026 06:18

    Hi Jesus,

    Here is a blog describing how you can use our export resource to export Architect flow config files; https://developer.genesys.cloud/blog/2025-03-26-archy-export-cxascode/#how-to-enable-architect-flow-export - you shouldn't need to use the Archy CLI thanks to this feature.

    Have you tried using the `access_token` field in the provider config? That may suit your use case https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs 



    ------------------------------
    Charlie Conneely
    Software Engineer
    ------------------------------



  • 6.  RE: How to export a architech flow

    Posted 01-26-2026 20:46
    Edited by Beatriz Sanches 01-26-2026 20:46

    Thanks for the explanation and for sharing the links. This was helpful to better understand the available options for exporting Architect flows.


    ------------------------------
    Beatriz Sanches
    -
    ------------------------------



  • 7.  RE: How to export a architech flow

    Posted 7 days ago

    Can you please look into that? https://community.genesys.com/discussion/archyapi-alter-flow-values-during-import-process



    ------------------------------
    Artur Dishunts
    Software Developer
    ------------------------------



  • 8.  RE: How to export a architech flow

    Posted 6 days ago

    Thanks Charlie, this clarifies the options available.



    ------------------------------
    Kashaf Chaudhry
    Customer Success Director
    ------------------------------



  • 9.  RE: How to export a architech flow

    Posted 7 days ago

    You can also export a flow through code alone using the Architect Scripting library.

    Interestingly the library has two methods for auth. I suspect the latter still relates to an OAuth Client's token, but seemed worth mentioning:

    • startWithClientIdAndSecret(...)

      • This has two interesting arguments: authToken & isClientCredentialsOAuthClientopt
    • startWithAuthToken(...)

      • This too has the same interesting arguments: authToken & isClientCredentialsOAuthClientopt

    You can then use the library to export to YAML. Here's a snippet from my project:

    // ...
    const loadedFlow: ArchBaseFlow = await flowFactory.loadFlowByFlowIdAsync(
        flowId,
        archEnums.FLOW_TYPES.inboundShortMessage,
        'latest',
      );
    
    //...
    output.flowYaml = await loadedFlow.exportToObjectAsync((exportObject) => {
        return exportObject;
      }, archEnums.FLOW_FORMAT_TYPES.yaml);



    ------------------------------
    Lucas Woodward
    Winner of Orchestrator of the Year, Developer (2025)

    LinkedIn - https://www.linkedin.com/in/lucas-woodward-the-dev
    Newsletter - https://makingchatbots.com
    ------------------------------



  • 10.  RE: How to export a architech flow

    Posted 2 days ago

    Good stuff Lucas :)



    ------------------------------
    Tytus Bunka
    Senior Manager, Professional Services
    ------------------------------