Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Genesys Cloud Integration with Azure Voice Bot via External SIP Trunk – Custom SIP Headers and Routing Queries

    Posted 4 days ago
    Edited by Jason Kleitz 4 days ago

    Dear Community,

    We have a requirement to integrate Genesys Cloud with an Azure Voice Bot via an External SIP Trunk. The bot will transfer calls to Genesys Cloud live agents. During the transfer, the bot will send an incident number through a custom SIP header so that a CRM screen pop can be triggered using the created incident ID.

    My queries are as follows:

    1. Can we use the Get SIP Headers action to retrieve the custom SIP header value and store it in a variable? If not, is there an alternative approach to capture and use this value within the Architect flow?

    2. Is there a recommended custom SIP header naming convention (for example, X-Incident-Number) that should be used by the bot team? Or can any custom SIP header name be used, provided it is included in the SIP INVITE and supported by Genesys Cloud?

    3. The customer will call the bot using a single DID number. Based on the customer's intent, the bot will transfer the call to Genesys Cloud and route it to the appropriate department. For example:

      • Sales → +12345678900

      • Finance → +12345678901

      • HR → +12345678902

      In Genesys Cloud, can we use Call.CalledAddress within a Switch action to identify the destination number and route the interaction to the corresponding queue?

      Alternatively, is there a better or recommended approach for routing from the Azure Voice Bot to Genesys Cloud?

    Any guidance, recommendations, or best practices would be greatly appreciated.

    Thank you.


    #ArchitectandDesign

    ------------------------------
    Muhammed Shaibant
    x
    ------------------------------



  • 2.  RE: Genesys Cloud Integration with Azure Voice Bot via External SIP Trunk – Custom SIP Headers and Routing Queries

    Posted 4 days ago

    Dear Team,

    Could you please confirm on the below query when you have a chance?

    Your clarification would be greatly appreciated.

    Regards,
    Shaiban



    ------------------------------
    Muhammed Shaibant
    x
    ------------------------------



  • 3.  RE: Genesys Cloud Integration with Azure Voice Bot via External SIP Trunk – Custom SIP Headers and Routing Queries
    Best Answer

    Posted 4 days ago
    Edited by Jason Kleitz 4 days ago

    Hi Muhammed Shaibant,

     
    After reviewing the proposed Azure Voice Bot to Genesys Cloud integration requirements, I would recommend the following approach to support both intelligent routing and CRM screen-pop functionality using the incident number generated by the bot.
    1. Passing the Incident Number from Azure Bot to Genesys Cloud
     
    The recommended method is for the Azure Voice Bot to include the incident number as a custom SIP header when transferring the call to Genesys Cloud via the External SIP Trunk.
     
    Example:
     
    X-Incident-Number: INC123456
     
    Within the Architect Inbound Call Flow, the **Get SIP Headers** action can be used to retrieve the value of the custom SIP header and store it in a flow variable (e.g., Flow.IncidentNumber). This value can then be leveraged for:
     
    * CRM screen pop
    * Participant attributes
    * Data Actions
    * Agent Scripts
    * Salesforce/Dynamics integrations
     
    If the transfer mechanism uses SIP REFER instead of a SIP INVITE, custom headers may not always be preserved. Therefore, the preferred design is for the Azure Bot to initiate the transfer using a SIP INVITE containing the required custom headers.
     
    2. Custom SIP Header Naming Convention
     
    While custom SIP header names are generally flexible, it is recommended to follow standard SIP conventions by prefixing custom headers with "X-".
     
    Examples:
     
    * X-Incident-Number
    * X-Department
    * X-CRM-ID
     
    This approach helps avoid conflicts with standard SIP headers and improves maintainability.
     
    3. Routing Strategy
     
    Although routing can be performed using multiple destination numbers and evaluating Call.CalledAddress within Architect, this approach requires maintaining multiple DIDs and routing configurations.
     
    Example:
     
    *Sales → +12345678900
    *Finance → +12345678901
    *HR → +12345678902
     
    Architect can evaluate Call.CalledAddress within a Switch action and route calls to the appropriate queue.
     
    However, a more scalable and maintainable approach would be to use a single DID for all bot transfers and pass the target department as a custom SIP header.
     
    Example SIP headers:
     
    X-Department: Sales
    X-Incident-Number: INC123456
     
    Architect Flow:
     
    1. Retrieve X-Department using Get SIP Headers.
    2. Store the value in a flow variable.
    3. Route calls using a Switch action based on the department value.
     
    Example:
     
    * Sales → Sales Queue
    * Finance → Finance Queue
    * HR → HR Queue
     
    4. CRM Screen Pop Recommendation
     
    Upon receiving the interaction:
     
    1. Retrieve the X-Incident-Number SIP header.
    2. Store the value as a Participant Attribute.
    3. Invoke a Data Action or CRM integration using the incident number.
    4. Present the corresponding incident details to the agent through a screen pop before the interaction is answered.
     
    This method provides a more reliable customer context than performing CRM lookups solely based on ANI.
     
    ### Recommended End-State Architecture
     
    Azure Voice Bot transfers the call to Genesys Cloud using a single destination number and includes:
     
    * X-Incident-Number
    * X-Department
     
    Genesys Cloud Architect:
     
    1. Retrieves custom SIP headers.
    2. Stores values in flow variables and participant attributes.
    3. Routes interactions based on X-Department.
    4. Performs CRM lookup using X-Incident-Number.
    5. Delivers the interaction to the appropriate queue with the relevant customer context.
     
    ### Benefits of this Approach
     
    * Single DID to manage
    * Simplified routing logic
    * Easy onboarding of new departments
    * Reduced telephony administration
    * Reliable CRM screen pop capability
    * Improved scalability and maintainability
     
    Regards,
    Niraj Kumar



    ------------------------------
    Niraj Kumar
    ------------------------------