Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Architect rendering of backslashes from a knowledge article

    Posted 2 days ago

    Hello,

    Does anybody have experience or suggestions on how to handle double backslashes when surfacing a knowledge article in a digital bot flow?

    For example: I have several articles that reference mapping of network paths or printers in this format: \\server\folder or \\printserver\printername.

    These appear correctly when the knowledge article is surfaced in from the knowledge library but if surfaced from the bot, it will render as \server\folder or \printserver\printername.

    Thanks for any insight!


    #Architect

    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------


  • 2.  RE: Architect rendering of backslashes from a knowledge article

    Posted yesterday

    Hi Nicole,

    Interesting issue. I haven't come across this before, but it looks like the Digital Bot may be treating the leading double backslash as an escape sequence when rendering the response.

    Just out of curiosity, have you tried escaping the path with additional backslashes (for example, \\\\server\\folder) to see if it preserves the UNC path when rendered by the bot?

    I'd be interested to know whether that changes the output, or if the bot still normalizes it to a single leading backslash.



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



  • 3.  RE: Architect rendering of backslashes from a knowledge article

    Posted yesterday

    Hi Phaneedra,

    If I add the additional backslashes it renders as \\server\folder, which is how I am handling currently and I would just set it and forget it, but the issue is that we display both the messaging and knowledge channel in our Messenger Configuration so our customers can access the library if they don't want to chat with the digital bot.

    So, for now, I am stuck leaving the knowledge article as " \\server\folder " to render correctly in the Knowledge library and building out a full intent for that particular query that displays the same information in a communicate object with a " \\\\server\\folder " so it renders correctly if queried in the bot interaction.

    Thanks,

    Nicole



    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------



  • 4.  RE: Architect rendering of backslashes from a knowledge article

    Posted yesterday

    Hi Nicole, Maybe a simple thing to try before duplicating the content: have you tested putting the UNC path in inline code in the article? Example: `\\server\folder` For multiple paths, maybe a code block: ```text \\server\folder \\printserver\printername
    My guess is that the bot/Messenger rendering path may be treating the backslash as an escape character, while the Knowledge Library is rendering it more literally. Inline code might preserve the UNC path in both places. I haven't tested this exact case, but it feels like it could be worth a quick validation.


    ------------------------------
    Att,
    Breno Canyggia Ferreira Marreco
    ------------------------------