Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Trigger event for file upload completed in live chat

    Posted 12-03-2024 09:28
    Edited by Vincent Cheng 12-09-2024 09:12
    No replies, thread closed.

    Hi,

    We are migrating our various customer service centers from on-prem Cisco infrastructure to Genesys Cloud. We have a requirement that every time a customer upload a file in a live chat session, we will need to save that file in our Enterprise Content Management System and update our Case Management with the Content ID in the Enterprise Content Management System. We prefer the process to be done in a "push" fashion instead of "pull", so we need an indicator when the file finishes uploading. The indicator can trigger a series of actions, e.g., scans the file for potential malicious code, downloads the file and does the store and update as describe above.

    We need the best way to do it is if there's an event in a topic that contains such indicator as the trigger for the process. So far the only event we can find is the events in v2.routing.queues.{queueId}.conversations.messages topic. when a file finishes uploading, we'll see this object in the event in the topic:

    "media": [
                {
    "url": "<the_url_for the file store>",
                  "mediaType": "text/plain",
                  "contentLengthBytes": 534,
    "name": "<file_name>",
                  "id": "<media_id_of_the_file>"
                }
              ],
              "messageMetadata": {
                "type": "Text",
                "content": [
                  {
    "contentType": "Attachment",
    "subType": "File"
                  }
                ]

    The problem is, this topic is very chatty because it sends events for cumulative messages in the conversation, meaning an event is published every time one side of the session types in a message, and the event includes all the messages from the beginning of the session till the most recent one. Plus, we will need to subscribe to topics for all the queues. It might not a good option because of these.

    Does anybody know of any better event that indicates the file upload is completed so we can use to trigger our process? Any suggestion is welcome. Thank you very much for your help.

    Best Regards,

    Vincent


    #Implementation #livechat #FileAttachments #ChatMessages

    ------------------------------
    Vincent Cheng
    na
    ------------------------------



  • 2.  RE: Trigger event for file upload completed in live chat
    Best Answer

    Posted 12-03-2024 10:18
    No replies, thread closed.

    Hello Vincent, 

    I have the list of available topics here. But I dont see any topic that gets more granular than this. I would like to see community feedback with other possible solutions. 

    Cheers, 



    ------------------------------
    Cameron
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Trigger event for file upload completed in live chat

    Posted 12-03-2024 11:01
    No replies, thread closed.

    Thanks, Cameron. We've looked through the whole topic list and tried several of them, and v2.routing.queues.{queueId}.conversations.messages is the only one we could find that gives us the indicator. Hope somebody had gone through the same need and has some idea how to tackle it. Thanks.

    Best Regards,

    Vincent



    ------------------------------
    Vincent Cheng
    na
    ------------------------------