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.
------------------------------
Original Message:
Sent: 01-03-2025 14:30
From: Robert Wakefield-Carl
Subject: Retrieve Base64 version of attached image in Digital Bot Flow
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
Original Message:
Sent: 12-23-2024 06:42
From: Kavita Kirdkude
Subject: Retrieve Base64 version of attached image in Digital Bot Flow
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:
- Users can attach an image using the attachment icon in the chat (this option has been enabled through Messanger Configuration).
- 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 - Once the image is retrieved, we need to convert it into Base64 format within the bot flow.
- 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.
------------------------------