Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Retrieve Base64 version of attached image in Digital Bot Flow

    Posted 12-23-2024 06:42
    No replies, thread closed.

    Hello All,

    I am currently working on a requirement in Genesys Digital Bot and would appreciate your guidance on how to implement the following scenario:

    1. Users can attach an image using the attachment icon in the chat (this option has been enabled through Messanger Configuration).
    2. We want to retrieve the attached image in the bot flow using a Data Action that calls the Genesys API:
      GET /api/v2/conversations/{conversationId}/messages
      I was referring to the Genesys API documentation - Genesys Web Chat APIs
    3. Once the image is retrieved, we need to convert it into Base64 format within the bot flow.
    4. Finally, we need to pass the Base64-encoded image to our external API for further processing.

    I would like to know how we can achieve this workflow in a Genesys Digital Bot?

    Specifically, I am looking for a way to handle Base64 encoding of the image. If this is not directly possible in the bot flow, I would appreciate any suggestions or alternatives to achieve this requirement.

    Thank you for your help and support!

     


    #API/Integrations
    #ConversationalAI(Bots,AgentAssist,etc.)
    #DigitalChannels

    ------------------------------
    Kavita Kirdkude,
    K2 Power Inc d/b/a Bruviti Inc.
    ------------------------------


  • 2.  RE: Retrieve Base64 version of attached image in Digital Bot Flow

    Posted 12-23-2024 10:41
    No replies, thread closed.

    Hi @Kavita Kirdkude

    Hopefully someone in the community can help with this, but it may also be worth asking in the Genesys Cloud Developer Forum 



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Retrieve Base64 version of attached image in Digital Bot Flow
    Best Answer

    Posted 01-03-2025 14:31
    No replies, thread closed.

    File manipulation in Genesys is practically non-existent, so don't expect to do this in Genesys alone.  You will need to create a web service that get the URI for the attachment, downloads it, transcodes it and sends it to the other web service.  I don't see any way of doing the file download and upload any other way.  You can do th Base64 encoding, but that is only for strings, not files.  Not sure if anyone else can give you a solution inside Genesys. 



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 4.  RE: Retrieve Base64 version of attached image in Digital Bot Flow

    Posted 01-05-2025 23:22
    No replies, thread closed.

    Thanks for the response @Robert Wakefield-Carl.

    Yes, I end up with the suggested approach; I created a web service to handle everything as per my requirement.



    ------------------------------
    Kavita Kirdkude,
    K2 Power Inc d/b/a Bruviti Inc.
    ------------------------------