Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

Bulk disconnection email/interactions

  • 1.  Bulk disconnection email/interactions

    Posted 08-27-2025 11:21
    Edited by Lee Elliott 08-28-2025 02:24

    Afternoon all 

    I need a hand with something.  We have a queue that emails come in through, these emails are working from Outlook not Genesys.  

    Currently an agent needs to turn this queue on and accept/disconnect and NRR these emails to stop our contact centre clogging up and causing chaos.  This takes 1 person around a hour as there is often 300 emails to close down.

    Is it possible for myself to close all the emails down in bulk? I have all the access I need I just can't seem to do this.  


    #SystemAdministration

    ------------------------------
    Lee Elliott
    ------------------------------



  • 2.  RE: Bulk disconnection email/interactions
    Best Answer

    Posted 08-27-2025 13:41

    Hello Lee,

    Welcome to the Community! Thinking off of the top of my head, you may want to try to gather up all of the emails and disconnect them using and API call. There is a lot that you can do with our API tools so I would recommend taking a look at the API Explorer.



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 02:12

    Hey Jason, thank you :) 

    I will have a look at these today.  Totally new to me all this so any help is much appreciated.  I have given my role the permissions to Disconnect Interactions.. I just can't see anywhere to do it.



    ------------------------------
    Lee Elliott
    ------------------------------



  • 4.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:10

    We sometimes have to deal with this when there is a mail loop, I have tried the API way but I have found that going on queue, auto answer and set 5 or ?? emails at a time is quicker



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 5.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:23

    I've explored API tools and it's wrote me a python code to automate the whole process.  Not sure if I will continue down this road as it's a bit advance for me atm.  According to gemini there should be a disconnect button somewhere in Genesys?

    We are currently logging on each day and spending an hour manually closing them down.. we get around 300 a day :(



    ------------------------------
    Lee Elliott
    ------------------------------



  • 6.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:30

    Is there anything in the body you can search for and disconnect based on that within the flow?  I look for spam (SEO) surveys, marketing etc. plus loads of other things to remove them, also I have a table that I can add junk senders to that simply adds an external tag and disconnects



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 7.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:35

    Not really no, I just need to disconnect all emails waiting in the queue.  there should be a disconnect button here according the Gemini



    ------------------------------
    Lee Elliott
    ------------------------------



  • 8.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:40

    Its not there, its on the admin page under routing.  that's the other way, 2 windows open and then copy the conversation ID and paste it in the disconnect You might need to add it to your admin role if you don't see it.  the other option you have is to have an in-queue email flow that disconnects after X hours.  I am not sure what you are trying to target so just spit balling



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 9.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:47

    ah yes this, I have seen this






    ------------------------------
    Lee Elliott
    ------------------------------



  • 10.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:51

    That's it, paste the conversation ID in and click disconnect, I would look at doing something with the in queue flow though, you may be able to save yourself a heap of admin work



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 11.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 04:55

    Yeah I would still need to copy and past 300 ID's.... faster than what were currently doing but still not perfect.


    Can you confirm if I disconnect an interaction it will still go through to the Outlook inbox?



    ------------------------------
    Lee Elliott
    ------------------------------



  • 12.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 05:00

    It all depends how you do it, we have office 365 and we send a copy to both the Genesys AWS address and the on premise email address, if they are there when you don't disconnect then I would say so. Genesys doesn't write back to Exchange/O365



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 13.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 05:36

    Queue Flow is a great shout and potentially the best solution! I've been working with Gemini to create and In-Queue Email Flow..

    I have however found the Get An Interaction missing from my tool box. 

    I've check my permissions and I have all Architect permissions 



    ------------------------------
    Lee Elliott
    ------------------------------



  • 14.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:09

    On in queue flows you have to generally get the data from the main flow, using set participant data and then on the in-queue you get participant data.  Make sure the names of the participant data are identical so if you wanted email address for example the set and get have to be the same, its case sensitive, once you have got participant data you can use it..hope that sort of makes sense



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 15.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:08

    First, please vote for this idea when you both get a chance: https://genesyscloud.ideas.aha.io/ideas/REC-I-32

    Given that idea is in "future consideration" (i.e. limbo), in the meantime we're using Apps Script to run some JSON that queries that queue to get a list of queued conversationIds, and loops through the conversation disconnect API to disconnect each of them. Here soon we'll create an Architect flow in Genesys for our admins (e.g. via a voice, email, or messaging flow) that does the same thing using data actions to make it more user-friendly. Will let you know how that goes.



    ------------------------------
    Brian T. Jones | Ascension | Senior Specialist - Technology
    ------------------------------



  • 16.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:15

    CHEERS :D

    Between you guys and Genesys I might actually get this working



    ------------------------------
    Lee Elliott
    ------------------------------



  • 17.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:19

    What are you trying to achieve, no emails queueing overnight?



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 18.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:24

    I'm trying to auto disconnect any waiting emails in that queue. 



    ------------------------------
    Lee Elliott
    ------------------------------



  • 19.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:29

    A couple of ways, create a schedule and outside the schedule (Closed) don't allow them in (I assume you are shut overnight), or the in-queue wait XX seconds, minutes whatever and disconnect



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 20.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:32

    I've been building this with Gemini



    ------------------------------
    Lee Elliott
    ------------------------------



  • 21.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:39
    Edited by Brian Jones 08-28-2025 06:47

    Based on Andy's question and the flow example you just posted, can you share why you're queuing the emails in Genesys at all if you're simply going to disconnect them?

    Also, tell Gemini your flow can be simplified by only having a "Disconnect" block; i.e. cut to the chase, haha



    ------------------------------
    Brian T. Jones | Ascension | Senior Specialist - Technology
    ------------------------------



  • 22.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:44

    Good question mate, I honestly don't know lol 

    So I used to be the guy who had to manually disconnect them every night at 5 haha hence why now in this position I'm looking to fix them.. 

    The team who these emails are for are commercial lending specialists and they have case ownership so they use Outlook not Genesys.

    I did wonder why we even let them in a Genesys queue in the first place? I think maybe so they can search for QC purposes? Not sure I'd have to check.



    ------------------------------
    Lee Elliott
    ------------------------------



  • 23.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:57

    what you could do is in the inbound flow if email to is X goto a schedule step and if its after 5 (Closed) disconnect

    A decision step

    Email.Message.from=="this email@email.com"

    yes check a schedule

    closed > disconnect

    open > carry on

    This sort of thing



    ------------------------------
    Andy Jackson
    Senior Unified Communications Engineer
    ------------------------------



  • 24.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 06:47

    It's for audit purposes :) 



    ------------------------------
    Lee Elliott
    ------------------------------



  • 25.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 07:18
    Edited by Brian Jones 08-28-2025 07:39



  • 26.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 07:18

    Uh, haha. Could they be more specific? Is it so they can...

    • Keep track of how many emails are received a day?
    • Track the senders?
    • Keep a record of who is disconnecting the emails in Genesys so they can use them as a scapegoat later in a government trial 😆 My bad...somehow my system went into conspiracy theorist mode.

    Whatever the case, yes, as long as those emails are routing to your queue flow you should be able to simply have a Disconnect block to immediately end them when they queue.



    ------------------------------
    Brian T. Jones | Ascension | Senior Specialist - Technology
    ------------------------------



  • 27.  RE: Bulk disconnection email/interactions

    Posted 08-28-2025 07:25

    I don't have any specifics mate lol

    The stakeholders said for audit purposes which is enough for me lol

    as long as this disconnects them as they come it its all good :) we het around 200-300 a day so will save a bunch of time and hassle 



    ------------------------------
    Lee Elliott
    ------------------------------