Session interface display method, task processing method, device and computer equipment
By displaying interface switching elements in the conversation interface, users can directly switch to the target organization's conversation interface in the cross-organization address book, which solves the problem of low communication efficiency between employees of different companies and improves the communication efficiency and collaborative work capabilities of cross-organization address books.
Patent Information
- Application Number
- CN202310483153.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-04-28
AI Technical Summary
Communication efficiency among employees of different companies is low, especially in supply chains consisting of multiple companies, making it difficult to conduct efficient collaboration.
A method for displaying a conversation interface is provided, which allows users to directly switch to a second conversation interface with the target organization's instant messaging application account by displaying interface switching elements in the first conversation interface, thereby improving communication efficiency by utilizing the functions in the cross-organization address book.
It enables one-click switching of the conversation interface, improves communication efficiency in cross-organizational address books, and enhances the collaborative work capabilities among conversation members.
Smart Images

Figure CN118869642B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for displaying a session interface, a method for processing tasks, an apparatus, and a computer device. Background Technology
[0002] As businesses diversify, more and more industries require cooperation and collaboration among companies across an entire supply chain. For example, employees of upstream companies in a supply chain need to communicate and exchange information with employees of downstream companies to determine industry information or industry plans.
[0003] However, as the industry develops and becomes more sophisticated, there are anywhere from a few to hundreds of companies in a single industrial chain. Therefore, how to achieve efficient communication among employees of different companies has become an urgent problem to be solved. Summary of the Invention
[0004] Therefore, it is necessary to provide a method for displaying a conversational interface, a method for processing tasks, an apparatus, a computer device, a computer-readable storage medium, and a computer program product that can improve the efficiency of conversational communication in response to the above-mentioned technical problems.
[0005] Firstly, this application provides a method for displaying a session interface, the method comprising:
[0006] When a communication session is established between the first organization instant messaging application account and the external communication account, the first session interface between the first organization instant messaging application account and the external communication account is displayed; the external communication account is a personal instant messaging application account or a second organization instant messaging application account; the second organization communication application account and the first organization instant messaging application account are not in the same cross-organization address book.
[0007] When there is a target organization instant messaging application account associated with the external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book, then the interface switching element is displayed in the first session interface.
[0008] In response to a trigger operation on the interface switching element, the first session interface is switched to a second session interface between the first organization instant messaging application account and the target organization instant messaging application account.
[0009] Secondly, this application also provides a session interface display device, the device comprising:
[0010] The first session interface display module is used to display the first session interface between the first organization instant messaging application account and the external communication account when a communication session is established between the first organization instant messaging application account and the external communication account; the external communication account is a personal instant messaging application account or a second organization instant messaging application account; the second organization instant messaging application account and the first organization instant messaging application account are not in the same cross-organization address book.
[0011] The interface switching element display module is used to display interface switching elements in the first session interface when there is a target organization instant messaging application account associated with the external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book.
[0012] The second session interface display module is used to switch the first session interface to the second session interface between the first organization instant messaging application account and the target organization instant messaging application account in response to the trigger operation of the interface switching element.
[0013] In one embodiment, the interface switching element display module is further configured to display a first push message on the first session interface when there is a target organization instant messaging application account associated with the external communication account and in the same cross-organization address book as the first organization instant messaging application account; wherein, the first push message includes a first prompt statement and the interface switching element; the first prompt statement is a statement prompting the establishment of a communication session between the first organization instant messaging application account and the target organization instant messaging application account.
[0014] In one embodiment, the interface switching element display module is further configured to obtain the cross-organizational address book where the first organization instant messaging application account is located, and search for candidate organization instant messaging application accounts associated with the external communication account in the obtained cross-organizational address book; and use the candidate organization instant messaging application accounts that are logged in as the target organization instant messaging application account.
[0015] In one embodiment, the interface switching element display module is further configured to cancel the display of the interface switching element in the first session interface when the target organization application communication account is removed from the cross-organization address book.
[0016] In one embodiment, the conversation interface display device further includes an account addition module, which is used to add the first organization instant messaging application account to the cross-organization address book in response to an addition event of the first organization instant messaging application account being added to the cross-organization address book pointed to by the addition event; when there is a docking organization instant messaging application account in the cross-organization address book pointed to by the addition event that has a docking relationship with the first organization instant messaging application account, a third conversation interface between the first organization instant messaging application account and the docking organization instant messaging application account is displayed.
[0017] In one embodiment, the account addition module is further configured to display a second push message on the third session interface; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that an existing account for the connected organization's instant messaging application already exists; the introductory statement is a statement introducing the cross-organization address book; triggering the organization's instant messaging application that has the connected organization's instant messaging application account to display a third push message; the third push message includes a third prompt statement, which is a statement indicating that a new session member has been added to the cross-organization address book.
[0018] In one embodiment, the third push message further includes a member node viewing element; the member node viewing element is used to trigger the display of an organization node tree corresponding to the cross-organization address book pointed to by the joining event, and to display the node location of the first organization instant messaging application account in the organization node tree.
[0019] In one embodiment, the account joining module is further configured to display a custom session message sent by the connected organization's instant messaging application account on the third session interface; the custom session message includes a statement welcoming the second session member to join the cross-organization address book.
[0020] Thirdly, this application also provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in any of the session interface display methods provided in the embodiments of this application.
[0021] Fourthly, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in any of the session interface display methods provided in the embodiments of this application.
[0022] Fifthly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the session interface display methods provided in the embodiments of this application.
[0023] The aforementioned conversation interface display method, apparatus, computer equipment, storage medium, and computer program product, when a first conversation member engages in a conversation with a second conversation member's external communication account through a first organization's instant messaging application account, determines whether the second conversation member possesses a target organization's instant messaging application account in the same cross-organizational address book as the first organization's instant messaging application account. If such a target organization's instant messaging application account exists, an interface switching element can be displayed in the first conversation interface. By displaying the interface switching element, in response to the triggering operation of the interface switching element, the first conversation interface can be switched to a second conversation interface between the first organization's instant messaging application account and the target organization's instant messaging application account. Since this application only requires triggering the interface switching element to switch the first conversation interface to a second conversation interface between different organization's instant messaging application accounts in the cross-organizational address book, it achieves one-click interface switching, improves the switching efficiency of the conversation interface, and further improves the communication efficiency between members based on the improved conversation interface switching efficiency.
[0024] Furthermore, by switching the conversation between an organization's instant messaging application account and an external communication account to a conversation between different organization's instant messaging application accounts in a cross-organizational address book, first and second conversation members can use features developed for cross-organizational address books, thereby further improving communication efficiency between conversation members based on more features.
[0025] Firstly, this application provides a task processing method, the method comprising:
[0026] When multiple custom session message sending tasks are obtained, for each of the multiple custom session message sending tasks, determine the instant messaging application account of the interface organization to send the custom session message pointed to by the custom session message sending task.
[0027] The identified instant messaging application account of the docking organization is used as the instant messaging application account of the docking organization corresponding to the targeted custom session message sending task.
[0028] Based on the instant messaging application accounts of the interfacing organizations corresponding to the multiple custom session message sending tasks, the multiple custom session message sending tasks are clustered to obtain at least one cluster.
[0029] For each of the at least one cluster, the custom session message sending tasks in the targeted cluster are processed serially to send the corresponding custom session messages to the organizational instant messaging application accounts added to the cross-organization address book.
[0030] Secondly, this application also provides a task processing apparatus, the apparatus comprising:
[0031] The account determination module is used to determine, for each of the multiple custom session message sending tasks, the instant messaging application account of the interfacing organization to send the custom session message pointed to by the target custom session message sending task; and to use the determined instant messaging application account of the interfacing organization as the instant messaging application account of the interfacing organization corresponding to the target custom session message sending task.
[0032] The clustering module is used to cluster the multiple custom session message sending tasks according to the instant messaging application accounts of the docking organizations corresponding to each task, and obtain at least one cluster.
[0033] The serial processing module is used to serially process the custom session message sending task in each of the at least one cluster cluster, so as to send the corresponding custom session message to the corresponding organizational instant messaging application account added to the cross-organization address book.
[0034] In one embodiment, the account determination module is further configured to receive a batch add request initiated by the terminal for the cross-organization address book; the batch add request carries the organization instant messaging application accounts to be added in batches by the terminal; when the batch-selected organization instant messaging application accounts to be added in batches are added to the cross-organization address book according to the batch add request, a custom session message sending task corresponding to each newly added organization instant messaging application account in the cross-organization address book is generated.
[0035] In one embodiment, each newly added organizational instant messaging application account to the cross-organizational address book is designated as the target newly added organizational instant messaging application account. The account determination module is further configured to determine the inviting organizational instant messaging application account that initiated the batch invitation request when the batch addition request is a batch invitation request, and designate the inviting organizational instant messaging application account as the corresponding docking organizational instant messaging application account to the target newly added organizational instant messaging application account; and generate a custom session message sending task corresponding to the target newly added organizational instant messaging application account based on the target newly added organizational instant messaging application account and the corresponding docking organizational instant messaging application account.
[0036] In one embodiment, the account determination module is further configured to determine whether a management organization instant messaging application account exists in the cross-organization address book when the batch join request is not a batch invitation request; if a management organization instant messaging application account exists, the management organization instant messaging application account is used as the docking organization instant messaging application account corresponding to the target newly joined organization instant messaging application account; and a custom session message sending task corresponding to the target newly joined organization instant messaging application account is generated based on the target newly joined organization instant messaging application account and the corresponding docking organization instant messaging application account.
[0037] In one embodiment, the serial processing module is further configured to, for each custom session message sending task in the targeted cluster, determine the number of times the instant messaging application account of the interface organization corresponding to the current custom session message sending task sends a custom session message within the current statistical period; when the number of custom session message sending times is less than a preset threshold, the instant messaging application account of the interface organization corresponding to the current custom session message sending task is triggered to send a custom session message.
[0038] Thirdly, this application also provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in any of the task processing methods provided in the embodiments of this application.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the task processing methods provided in the embodiments of this application.
[0040] Fifthly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the task processing methods provided in the embodiments of this application.
[0041] The aforementioned task processing method, apparatus, computer equipment, storage medium, and computer program product, by acquiring multiple custom session message sending tasks, can determine the corresponding instant messaging application account of the interfacing organization for each custom session message sending task. By determining the corresponding interfacing organization instant messaging application account for each custom session message sending task, the custom session message sending tasks can be clustered based on the interfacing organization instant messaging application account, resulting in at least one cluster. This allows for serial processing of the custom session message sending tasks within each cluster. Since the custom session message sending tasks within the same cluster correspond to the same interfacing organization communication account, serial processing of the custom session message sending tasks within the cluster reduces the problem of excessive preset messages being sent due to the interfacing organization communication account simultaneously sending custom session messages to multiple newly joined organizational instant messaging application accounts, thus improving concurrency security. Attached Figure Description
[0042] Figure 1 This is an application environment diagram of a session interface display method in one embodiment;
[0043] Figure 2 This is a flowchart illustrating a method for displaying a session interface in one embodiment;
[0044] Figure 3 This is a schematic diagram of the first session interface in one embodiment;
[0045] Figure 4 This is a schematic diagram of a cross-organizational address book in one embodiment;
[0046] Figure 5 This is a schematic diagram of interface switching elements in one embodiment;
[0047] Figure 6 This is a schematic diagram of the second session interface in one embodiment;
[0048] Figure 7 This is a schematic diagram illustrating the process of determining the instant messaging application account of a target organization in one embodiment;
[0049] Figure 8 This is a schematic diagram illustrating the display process of the third session interface in one embodiment;
[0050] Figure 9 This is a schematic diagram of a third session interface in one embodiment;
[0051] Figure 10 This is a schematic diagram of the seventh session interface in one embodiment;
[0052] Figure 11 This is a schematic diagram of organizing a node tree in one embodiment;
[0053] Figure 12 This is a flowchart illustrating a task processing method in one embodiment;
[0054] Figure 13 This is a schematic diagram illustrating the process of determining the instant messaging application account of the interface organization in one embodiment;
[0055] Figure 14 This is a flowchart illustrating a method for displaying a session interface in a specific embodiment;
[0056] Figure 15 This is a schematic diagram illustrating the interaction of executing tasks using a distributed lock in one embodiment;
[0057] Figure 16 This is an interactive diagram illustrating the execution of a task via a stored version lock in one embodiment.
[0058] Figure 17 This is an interactive diagram illustrating the sequential execution of tasks in one embodiment;
[0059] Figure 18 This is a structural block diagram of a session interface display device in one embodiment;
[0060] Figure 19 This is a structural block diagram of a task processing device in one embodiment;
[0061] Figure 20 This is an internal structural diagram of a computer device in one embodiment;
[0062] Figure 21 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0064] The session interface display method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the first terminal 102 communicates with the server 104 via a network, and the second terminal 106 communicates with the server 104 via a network. A data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed in the cloud or on another server. The first terminal 102, the second terminal 106, and the server 104 can each be used individually to execute the session interface display method provided in this embodiment. The first terminal 102, the second terminal 106, and the server 104 can also be used collaboratively to execute the session interface display method provided in this embodiment. Taking the example of the first terminal 102, the second terminal 104, and the server 104 collaboratively executing the session interface display method provided in this embodiment, a first user can communicate with a second user on the second terminal 104 via the first terminal 102, and the server 104 will forward the session messages sent by the first terminal 102 to the second terminal 106.
[0065] The first terminal 102 and the second terminal 106 can be, but are not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0066] It should be noted that the terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Unless the context clearly indicates otherwise, the singular forms "a," "one," or "the," etc., do not indicate a quantity limitation, but rather indicate the presence of at least one. The quantities of "multiple" or "multiple copies" mentioned in the embodiments of this application all refer to a quantity of "at least two," for example, "multiple" means "at least two," and "multiple copies" means "at least two copies."
[0067] It is worth noting that the session interface display method of this application can be applied to Figure 1 The first terminal or the second terminal, that is, both the first terminal and the second terminal, can display a first session interface including interface switching elements. The first session member corresponding to the first terminal and the second session member corresponding to the second terminal can switch from the first session interface to the second session interface through the interface switching elements. To better describe the session interface display method, the following explanation uses the first terminal as an example.
[0068] In one embodiment, such as Figure 2 As shown, a method for displaying a session interface is provided, which can be applied to... Figure 1 Taking the first terminal as an example, the explanation includes the following steps:
[0069] Step 202: When a communication session is established between the first organization instant messaging application account and the external communication account, the first session interface between the first organization instant messaging application account and the external communication account is displayed; the external communication account is either a personal instant messaging application account or a second organization instant messaging application account; the second organization instant messaging application account and the first organization instant messaging application account are not in the same cross-organization address book.
[0070] Organizational instant messaging application accounts refer to accounts created through organizational instant messaging applications, while personal instant messaging application accounts refer to accounts created through personal instant messaging applications. Personal instant messaging applications are user-oriented instant messaging (IM) applications that allow individuals to communicate, transfer files, or exchange emails, among other functions. Organizational instant messaging applications are designed for organizations, enabling members to communicate, collect statistics, manage attendance, and schedule meetings, thus facilitating collaborative work. The social relationship chain in personal instant messaging applications can be a friend / friend relationship chain; similarly, the social relationship chain in organizational instant messaging applications can be a relationship chain built based on departmental divisions and hierarchical relationships within an enterprise or organization.
[0071] Specifically, before establishing a communication session, a member of the first session can add a member of the second session's personal instant messaging application as a friend through the first organization's instant messaging application account. In this case, the personal instant messaging account becomes an external communication account of the first organization's communication account. Alternatively, a member of the first session can add a member of the second session's second organization's instant messaging application as a friend through the first organization's instant messaging application account. In this case, the second organization's instant messaging application account also becomes an external communication account of the first organization's instant messaging application account, provided that the second organization's instant messaging application account and the first organization's instant messaging application account do not belong to the same organization. For example, the first organization's instant messaging application account may belong to Company A, and the second organization's instant messaging application account may belong to Company B. When the first organization's instant messaging application account and the external communication account are friends, the first organization's instant messaging application account can establish a communication session with the external communication account, and the first terminal corresponding to the first organization's instant messaging application account can display the first session interface between the first organization's instant messaging application account and the external communication account. In this context, a session member refers to a user using an organizational instant messaging application or a personal instant messaging application. A session member can have both an organizational instant messaging application account and a personal instant messaging application account simultaneously, and a session member can also have multiple organizational instant messaging application accounts, with different organizational instant messaging application accounts belonging to different organizations. It is easily understood that "external communication account is a personal instant messaging application account or a second organizational instant messaging application account" means that the external communication account includes at least one of a personal instant messaging application account or a second organizational instant messaging application account.
[0072] In one embodiment, cross-application interaction is possible between the organizational instant messaging application and the personal instant messaging application, and the external communication account can specifically be a personal instant messaging application account. A first session member can communicate with a second session member through the organizational instant messaging application on a first terminal. At this time, the second session member is using the personal instant messaging application on the second terminal. For example, the first session member can log in to the organizational instant messaging application on the first terminal using their first organizational instant messaging application account and initiate a session with the second session member's personal instant messaging application account. The first terminal can then display the first session interface. For example, the first terminal can display... Figure 3 The first session interface shown is the session interface between the first organizational instant messaging application account of the first session member 301 and the personal instant messaging application of the second session member 302. It is easy to understand that the organizational instant messaging application account that conducts the communication session with the personal instant messaging application account of the second session member is referred to as the first organizational instant messaging application account. Figure 3 A schematic diagram of the first session interface in one embodiment is shown.
[0073] In one embodiment, a first session member can log in to the organization's instant messaging application on the first terminal using their first organization's instant messaging application account, find the second session member's personal instant messaging application account in the organization's instant messaging application's social relationship chain, and then initiate a session with the second session member's personal instant messaging application account. Similarly, a second session member can also log in to their personal instant messaging application using their instant messaging account, find the first session member's first organization's instant messaging application account in their personal instant messaging application's social relationship chain, and then initiate a session with the first organization's instant messaging application account, thereby displaying the first session interface on the first terminal.
[0074] In one embodiment, the external communication account may specifically be a second organizational instant messaging application account that is not in the same cross-organizational address book as the first organizational instant messaging application account. Before a first session member establishes a communication session with a second session member's second organizational instant messaging application account through the first organizational instant messaging application account, the first session member can add the first organizational instant messaging application account to the cross-organizational address book. After adding it to the cross-organizational address book, the first session member can establish a communication session with the second organizational instant messaging application account that is a friend of the first organizational instant messaging application account and is not in the same cross-organizational address book as the first organizational instant messaging application account. Thus, the first terminal logged in with the first organizational instant messaging application account can display the first session interface. It is easy to understand that the organizational instant messaging application account that belongs to the second session member, is not in the same cross-organizational address book as the first organizational instant messaging application account, and conducts a communication session with the first organizational instant messaging application account is referred to as the second organizational instant messaging application account.
[0075] In one embodiment, when a first session member establishes a communication session with a second session member's external communication account through a first organization's instant messaging application account, the session interface displayed on the first session member's first terminal is referred to as the first session interface, and the session interface displayed on the second session member's second terminal is referred to as the fourth session interface. The session content displayed on the fourth session interface may be the same as that displayed on the first session interface, but the interface display style may differ.
[0076] Step 204: When there is a target organization instant messaging application account associated with an external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book, then the interface switching element is displayed on the first session interface.
[0077] A cross-organizational address book refers to an address book jointly created by upper-level and lower-level organizations. It can also be called an upstream / downstream address book. Members from different organizations who join a cross-organizational address book can communicate and collaborate without adding each other as friends. Each cross-organizational address book corresponds to a unique identifier used to distinguish it from other cross-organizational address books. A cross-organizational address book can include upstream and downstream organizations. The upstream organization, also known as the upper-level organization, is the creator of the cross-organizational address book and acts as the upstream party in the industry chain collaboration process, such as an upstream distributor or brand owner. The downstream organization, also known as the lower-level organization, can join the cross-organizational address book after it has been created by the upstream organization to collaborate and communicate with it. Downstream organizations act as the downstream party in the industry chain collaboration process, such as suppliers. Typically, an upstream organization has collaborative relationships with multiple downstream organizations. Correspondingly, a cross-organizational address book usually includes one upstream organization and multiple downstream organizations. Both upstream and downstream organizations can include at least one organizational instant messaging application account. For example, refer to Figure 4 The interface can display an upstream organization node 401, under which at least one organization instant messaging application account may be included. The interface can also display multiple downstream organization nodes 402, under which at least one organization instant messaging application account may be included. Figure 4 A schematic diagram of a cross-organizational address book is shown in one embodiment.
[0078] It should be understood that an organization that is a downstream organization in one cross-organizational address book can also be an upstream organization in another cross-organizational address book; similarly, an organization that is an upstream organization in one cross-organizational address book can also be a downstream organization in another upstream-downstream address book.
[0079] An organizational instant messaging application account associated with an external communication account refers to an organizational instant messaging application account that belongs to the same session member as the external communication account.
[0080] Specifically, when a first session member establishes a communication session with a second session member's external communication account through a first organization's instant messaging application account, the first terminal can initiate an account lookup request and send the request, carrying both the first organization's instant messaging application account and the external communication account, to the server. This allows the server to check in the cross-organizational address book where the first organization's instant messaging application account resides whether a target organization's instant messaging application account associated with the external communication account exists. In other words, it allows the server to check in the cross-organizational address book where the first organization's instant messaging application account resides whether a target organization's instant messaging application account belonging to the second session member exists. When the target organization's instant messaging application account exists in the cross-organizational address book where the first organization's instant messaging application account resides, the server can return the target organization's instant messaging application account to the first terminal, allowing the first terminal to display interface switching elements on the first session interface.
[0081] In one embodiment, the external communication account may specifically be a personal instant messaging application account. When the server receives an account query request, the server can determine the cross-organizational address book where the first organizational instant messaging application account is located, and determine the member identifier of the session member to which the personal instant messaging application account belongs in the correspondence between session members and accounts. The server checks in the cross-organizational address book where the first organizational instant messaging application account is located whether there is an organizational instant messaging application account belonging to that member identifier. If there is an organizational instant messaging application account belonging to that member identifier, it can be assumed that the second session member has a target organizational instant messaging application account in the same cross-organizational address book as the first organizational instant messaging application account. At this time, the server can return the target organizational instant messaging application account to the first terminal.
[0082] In one embodiment, the external communication account may specifically be an organizational instant messaging application account. It is readily understood that a session member may have multiple organizational instant messaging accounts. For example, a second session member may have a second organizational instant messaging application account and a target organizational instant messaging application account. The second organizational instant messaging application account of the second session member is not in the same cross-organizational address book as the first organizational instant messaging application account of the first session member; however, the target organizational instant messaging application account of the second session member is in the same cross-organizational address book as the first organizational instant messaging application account of the first session member.
[0083] In one embodiment, when a second session member creates an organizational instant messaging application account at a historical time and adds the created organizational instant messaging application account to the cross-organizational address book where the first organizational instant messaging application account is located at a historical time, the server can find the organizational instant messaging application account belonging to the second session member in the cross-organizational address book where the first organizational instant messaging application account is located at the current time. This organizational instant messaging application account is the target organizational instant messaging application account.
[0084] In one embodiment, when a target organization instant messaging application account exists that is in the same cross-organization address book as the first organization instant messaging application account, the first terminal can display the following in the first session interface: Figure 5 The first push message shown is displayed, and the "Start Chat" control 501 is displayed in the first push message. The "Start Chat" control is the interface switching element. Figure 5 A schematic diagram of an interface switching element in one embodiment is shown.
[0085] In one embodiment, a screen switching element refers to an element used to switch screens. Screen switching elements can be controls, links, images, etc.
[0086] Step 206: In response to the triggering operation for the interface switching element, switch the first session interface to the second session interface between the first organization instant messaging application account and the target organization instant messaging application account.
[0087] Specifically, the first terminal can switch the first session interface to the second session interface in response to a trigger operation by a first session member on an interface switching element. The second session interface is the session interface between the first organization's instant messaging application account and the target organization's instant messaging application account. The trigger operation can be a click, press, touch swipe, etc.
[0088] In one embodiment, reference Figure 6 When the first member of the session clicks to switch elements on the interface, the first terminal can display something like this. Figure 6 The second session interface 601 shown allows the first session member to interact with the target organization's instant messaging application account of the second session member through the first organization's instant messaging application account. Figure 6 A schematic diagram of a second session interface in one embodiment is shown.
[0089] In one embodiment, the first terminal can migrate the session content in the first session interface to the second session interface so that the first session member can rewind the previous session content.
[0090] In one embodiment, when a conversation is conducted through the second conversation interface, members of the first and second conversations can utilize cross-organizational address book features. For example, the first group's communication application accounts can use the second conversation interface to share applications, online meetings, transfer large files, and share schedules with the target organization's instant messaging application. By switching from the first to the second conversation interface, members of the first and second conversations can utilize cross-organizational address book features, thus improving both user experience and conversation efficiency.
[0091] In one embodiment, when a first session member triggers an operation on an interface switching element, the first terminal may switch to displaying a second session interface. At this time, the second terminal may switch to displaying a fifth session interface. The session content displayed on the fifth session interface may be consistent with that on the second session interface.
[0092] In one embodiment, when the second terminal displays a fourth conversation interface, and when a second conversation member has a target organization instant messaging application account in the same cross-organization address book as the first organization instant messaging application account, a fourth push message may also be displayed in the fourth conversation interface. The fourth push message may also display an interface switching element, so that the second terminal, in response to the second conversation member's triggering operation on the interface switching element, displays a fifth conversation interface between the target organization instant messaging application account and the first organization instant messaging application account, and triggers the first terminal to display the second conversation interface. That is, when either the first or second conversation member clicks the interface switching element, the first terminal can display the second conversation interface, and the second terminal can display the fifth conversation interface, so that the conversation content entered by the first conversation member through the second conversation interface can be displayed in the fifth conversation interface on the second terminal.
[0093] In the aforementioned method for displaying the conversation interface, when a first conversation member engages in a conversation with a second conversation member's external communication account through a first organization's instant messaging application account, by determining whether the second conversation member possesses a target organization's instant messaging application account within the same cross-organizational address book as the first organization's instant messaging application account, an interface switching element can be displayed in the first conversation interface if such a target organization's instant messaging application account exists. By displaying the interface switching element, in response to its triggering operation, the first conversation interface can be switched to a second conversation interface between the first organization's instant messaging application account and the target organization's instant messaging application account. Since this application only requires triggering the interface switching element to switch the first conversation interface to a second conversation interface between different organization instant messaging application accounts within the cross-organizational address book, the switching efficiency of the conversation interface is improved, thereby enhancing communication efficiency between members based on the improved conversation interface switching efficiency.
[0094] Furthermore, by switching the conversation between an organization's instant messaging application account and an external communication account to a conversation between different organization's instant messaging application accounts in a cross-organizational address book, first and second conversation members can use features developed for cross-organizational address books, thereby further improving communication efficiency between conversation members based on more features.
[0095] In one embodiment, when there is a target organization instant messaging application account associated with an external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book, an interface switching element is displayed on the first session interface, including: when there is a target organization instant messaging application account associated with an external communication account and the first organization instant messaging application account are in the same cross-organization address book, a first push message is displayed on the first session interface; wherein, the first push message includes a first prompt statement and an interface switching element; the first prompt statement is a statement prompting the establishment of a communication session between the first organization instant messaging application account and the target organization instant messaging application account.
[0096] Specifically, when there exists a target organization instant messaging application account associated with an external communication account and located in the same cross-organizational address book as the first organization's instant messaging application account—that is, when a second session member has a target organization instant messaging application account in the same cross-organizational address book as the first organization's instant messaging application account—the first terminal can display the first push message in the first session interface. For example, the first terminal refers to... Figure 5 The first terminal may display a first push message 502 at the top of the first session interface. The first push message may include prompts and interface switching elements indicating that a session is being conducted between the first organization's instant messaging application account and the target organization's instant messaging application account. For ease of description, the prompts included in the first push message will be referred to as the first prompts.
[0097] In one embodiment, when a target organization's instant messaging application account exists, the first terminal can also display a first push message in a pop-up window in the first session interface.
[0098] In one embodiment, the first prompt statement can be used to indicate the identity of the organization's instant messaging application to whom the other party is being contacted. An organization's instant messaging application account can represent an organization's instant messaging application identity.
[0099] In one embodiment, the first prompt statement in the first push message can be used to guide the first session member to trigger the interface switching element.
[0100] In the above embodiments, by directly displaying a prompt message indicating a conversation between a first organizational instant messaging application account and a target organizational instant messaging application account, the displayed prompt message guides conversation members to communicate directly with the target organizational instant messaging application account via an interface switching element. This guides conversation members to switch from the first one-on-one chat mode (organizational instant messaging application account - external communication account) to a second one-on-one chat mode (different organizational instant messaging application accounts within the same cross-organizational address book). Since conversation members can use functions to improve communication efficiency in the second one-on-one chat mode (different organizational instant messaging application accounts within the same cross-organizational address book), such as checking message read / unread status, transferring large files, and sharing applications, guiding them to switch from the first one-on-one chat mode to the second one-on-one chat mode improves communication efficiency. Furthermore, guiding conversation members to switch from the first one-on-one chat mode to the second one-on-one chat mode also fully utilizes the communication application, increasing its utilization rate.
[0101] Furthermore, by directly displaying a prompt message indicating that a conversation is taking place between the first organization's instant messaging application account and the target organization's instant messaging application account, the efficiency of conversation members in knowing about the interface switching elements can be improved compared to the function of conversation members actively searching for interface switching elements, thereby improving the efficiency of interface switching.
[0102] In one embodiment, the step of determining the target organization instant messaging application account includes: obtaining the cross-organizational address book where the first organization instant messaging application account is located, and searching in the obtained cross-organizational address book for candidate organization instant messaging application accounts associated with external communication accounts; and using the candidate organization instant messaging application accounts that are logged in as the target organization instant messaging application account.
[0103] Specifically, when a communication session is established between the first organization's instant messaging application account of a first session member and the external communication account of a second session member, the first terminal can generate a cross-organizational address book retrieval request based on the first organization's instant messaging application account and send the retrieval request carrying the first organization's instant messaging application account to the server. When the server receives the retrieval request, it can extract the first organization's instant messaging application account from the request and search for the cross-organizational address book containing the first organization's instant messaging application account among multiple pre-stored cross-organizational address books. When the cross-organizational address book containing the first organization's instant messaging application account is found, the server returns the cross-organizational address book to the first terminal. The first terminal can search for the organization's instant messaging application account associated with the external communication account in the cross-organizational address book returned by the server, that is, search for the organization's instant messaging application account belonging to the second session member in the cross-organizational address book returned by the server, and refer to the found organization's instant messaging application account as a candidate organization's instant messaging application account.
[0104] If the server returns a cross-organizational address book containing only one candidate organization instant messaging application account belonging to the second session member, the first terminal will use that organization instant messaging application account as the target organization instant messaging application account. If the server returns a cross-organizational address book containing multiple candidate organization instant messaging application accounts belonging to the second session member, the first terminal will determine whether any of the multiple candidate organization instant messaging application accounts is currently logged in. If so, the first terminal will use the logged-in candidate organization instant messaging application account as the target organization instant messaging application account. If not, the first candidate organization instant messaging application account among the multiple candidate organization instant messaging application accounts will be used as the target organization instant messaging application account.
[0105] In one embodiment, the external communication account may specifically be a personal instant messaging application account. The step of determining the target organization's instant messaging application account can also be performed via a server. (See reference...) Figure 7Step 701: The first session member initiates a chat session through the first organization's instant messaging application account to the second session member's personal instant messaging application account. Step 702: The server determines whether the personal instant messaging application account is an external contact account of the first organization's instant messaging application account. An external contact account refers to an account not in the same cross-organizational address book. Step 703: If so, the server determines whether the personal instant messaging application account has an associated organization's instant messaging application account. Step 704: If an associated organization's instant messaging application account exists, the server determines whether there are candidate organization's instant messaging application accounts among the associated organization's instant messaging application accounts that are in the same cross-organizational address book as the first organization's instant messaging application account, and whether the first organization's instant messaging application account and the candidate organization's instant messaging application account are in opposite organizations, one being an upstream organization and the other a downstream organization. Step 705: If a candidate organization's instant messaging application account meets the criteria, the server determines whether there are multiple candidate organization's instant messaging application accounts. Step 706: If there are multiple candidate organization's instant messaging application accounts, the server determines whether any candidate organization's instant messaging application account is currently logged in. Step 707: If a candidate organization instant messaging application account in a logged-in state exists, the server returns the logged-in candidate organization instant messaging application account as the target organization instant messaging application account to the first terminal, enabling the first terminal to establish a session between the target organization instant messaging application account and the first organization instant messaging application account. Step 708: If no candidate organization instant messaging application account in a logged-in state exists, the server returns the first candidate organization instant messaging application account as the target organization instant messaging application account to the first terminal, enabling the first terminal to establish a session between the target organization instant messaging application account and the first organization instant messaging application account. Step 709: If only one candidate organization instant messaging application account exists, the server returns that candidate organization instant messaging application account as the target organization instant messaging application account to the first terminal. Figure 7 A schematic diagram of the process for determining the instant messaging application account of a target organization is shown in one embodiment.
[0106] In the above embodiments, by using the candidate organization instant messaging application account that is logged in as the target organization instant messaging application account, the second session member can promptly view the session messages sent by the first session member through the target organization instant messaging application account that is logged in, thereby improving session efficiency.
[0107] In one embodiment, the method further includes: when the target organization application communication account is removed from the cross-organization address book, the interface switching element is deselected in the first session interface.
[0108] Specifically, when a target organization's instant messaging application account is removed from the cross-organizational address book, the interface switching element is removed from the first session interface. That is, if a member of the second session does not have an organization application account in the same cross-organizational address book as the first organization's instant messaging application account, the interface switching element is removed.
[0109] In one embodiment, when a first session member switches between an organizational instant messaging application account and a target organizational instant messaging application account for communication, and the switched organizational instant messaging application account and the target organizational instant messaging application account are not in the same cross-organizational address book, an account switching element is displayed; the account switching element is used to trigger a change in the switched organizational instant messaging application account or the target organizational instant messaging application account, so that the first session member and the second session member can communicate using organizational instant messaging application accounts that are in the same cross-organizational address book.
[0110] By displaying account switching elements, users can switch accounts with a single click, thereby improving the efficiency of account switching and, consequently, the efficiency of conversational communication.
[0111] In one embodiment, before the first session member establishes a communication session with the second session member's personal instant messaging application account through the first organization's instant messaging application account, the method further includes the step of adding to a cross-organization address book. The step of adding to a cross-organization address book includes: in response to an add event of the first organization's instant messaging application account being added to a cross-organization address book, adding and displaying the first organization's instant messaging application account in the cross-organization address book pointed to by the add event; when there is a docking organization's instant messaging application account in the cross-organization address book pointed to by the add event that has a docking relationship with the first organization's instant messaging application account, displaying a third session interface between the first organization's instant messaging application account and the docking organization's instant messaging application account.
[0112] Specifically, before establishing a communication session between a first organization instant messaging application account and a personal instant messaging application account, the first organization instant messaging application account can be added to the cross-organization address book. When the first organization instant messaging application account is added to the cross-organization address book, the first terminal can respond to the addition event of the first organization instant messaging application account to the cross-organization address book and add the first organization instant messaging application account to the added cross-organization address book. Furthermore, if there is a corresponding organization instant messaging application account in the added cross-organization address book that has a connection with the first organization instant messaging application account, the first terminal displays a third session interface between the first organization instant messaging application account and the corresponding organization instant messaging application account.
[0113] In one embodiment, before establishing a communication session between the first organization's instant messaging application account and the personal instant messaging application account, the upstream organization can create a cross-organizational address book and add the first organization's instant messaging application account to the upstream organization node in the cross-organizational address book. This allows members of the upstream organization to communicate with the personal instant messaging application of the second session member through the first organization's instant messaging application account. When the target organization's instant messaging application account of the second session member exists in the downstream organization node of the cross-organizational address book, a switching element is displayed. The event of adding the first organization's instant messaging application account to the upstream organization node in the cross-organizational address book is called an "addition event," and the cross-organizational address book is the cross-organizational address book pointed to by the "addition event."
[0114] In one embodiment, the upstream organization can trigger a join event through a triggering interface. For example, the upstream organization can use a migration control to batch migrate organizational application communication accounts from other cross-organization address books to the cross-organization address book created by the upstream organization. Alternatively, the upstream organization can use an invitation control to invite organizational application communication accounts to join the cross-organization address book. Or, the upstream organization can use an import control to import organizational application communication accounts into the cross-organization address book.
[0115] In one embodiment, an upstream organization can trigger the addition of a first organization's instant messaging application account to a downstream organization in a cross-organizational address book. The upstream organization can either invite the first organization's instant messaging application account to join the created cross-organizational address book, or import the first organization's instant messaging application account into the created cross-organizational address book. In this case, inviting the first organization's instant messaging application account to join the created cross-organizational address book or importing the first organization's instant messaging application account into the created cross-organizational address book constitutes an "add" event, and the cross-organizational address book created by the upstream organization is the cross-organizational address book to which the "add" event points.
[0116] In one embodiment, when it is necessary to add the first organization's instant messaging application account to the cross-organizational address book pointed to by the add event, the first terminal can determine the organization node to which the first organization's instant messaging application account belongs, and display the first organization's instant messaging application account in the cross-organizational address book within the organization node to which the first organization's instant messaging application account belongs. For example, if the first organization's instant messaging application account belongs to a downstream organization node A, the first organization's instant messaging application account is displayed under the downstream organization node A.
[0117] In one embodiment, when a first organization's instant messaging application account is added to the cross-organizational address book pointed to by the add event, the server can check whether a matching organization's instant messaging application account exists in the cross-organizational address book pointed to by the add event. If it exists, the server returns the matching organization's instant messaging application account to the first terminal, so that the first terminal can establish a third session interface between the matching organization's instant messaging application account and the first organization's instant messaging application account. For example, the server can determine whether there is an upstream inviting organization's instant messaging application account for this addition of the first organization's instant messaging application account. If there is an upstream inviting organization's instant messaging application account and the upstream inviting organization's instant messaging application account is visible to this first organization's instant messaging application account, then the upstream inviting organization's instant messaging application account is used as the matching organization's instant messaging application account. Otherwise, the server determines whether there is a responsible member's organization's instant messaging application account in the cross-organizational address book. If it exists, then the responsible member's organization's instant messaging application account is used as the matching organization's instant messaging application account. If neither the inviting organization's instant messaging application account nor the responsible member's organization's instant messaging application account exists, then it is considered that there is no suitable matching organization's instant messaging application account. Among them, the invited organization instant messaging application account is the organization instant messaging application account that invites the first organization instant messaging application account to join the cross-organization address book.
[0118] Similarly, when the target organization's instant messaging application account of the second session member is added to the cross-organization address book, and there is a corresponding cross-organization instant messaging application account in the cross-organization address book that has a connection relationship with the target organization's instant messaging application account, the second terminal can also automatically display the sixth session interface between the target organization's instant messaging application account and the corresponding cross-organization instant messaging application account.
[0119] In one embodiment, reference Figure 8 Step 801: Add the first organization's instant messaging application account to the cross-organization address book. Step 802: Determine if the first organization's instant messaging application account added to the cross-organization address book belongs to a downstream organization. Step 803: If yes, determine if the first organization's instant messaging application account was imported into the cross-organization address book. Step 804: If the first organization's instant messaging application account was not imported into the cross-organization address book, determine if a connecting organization's instant messaging application account exists. Step 805: If a connecting organization's instant messaging application account exists, determine if the number of custom conversation messages sent by the connecting organization's instant messaging application account that day has reached the limit. Step 806: If the limit has not been reached, display the third conversation interface and show the custom conversation messages sent by the connecting organization's instant messaging application account in the third conversation interface. Figure 8 A schematic diagram of the display process of the third session interface in one embodiment is shown.
[0120] In the above embodiments, when the first organization's instant messaging application account is added to the cross-organizational address book and there is a corresponding organization's instant messaging application account that has a connection with the first organization's instant messaging application account, the third conversation interface is automatically displayed. Compared to members manually triggering the display of the third conversation interface, this improves the display efficiency of the conversation interface, thereby improving the efficiency of conversation communication. In addition, by automatically displaying the third conversation interface, conversation members can be guided to communicate through the first organization's instant messaging application account that has been added to the cross-organizational address book and the corresponding organization's instant messaging application account. This makes it easier for conversation members to understand the differences in chat methods and chat identities when chatting through organization instant messaging application accounts that are in the same cross-organizational address book.
[0121] In one embodiment, the method further includes: displaying a second push message on a third session interface; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that an existing connected organization instant messaging application account already exists; the introductory statement is a statement introducing the cross-organization address book; triggering the organization instant messaging application connected to the organization instant messaging application account to display a third push message; the third push message includes a third prompt statement, which is a statement indicating that a new session member has been added to the cross-organization address book.
[0122] Specifically, when the third session interface is displayed, the first terminal can also display the second push message within the third session interface. For example, refer to... Figure 9 The first terminal can display a second push message 901 in the third session interface. This second push message may include at least one of the following: a second prompt indicating that an existing instant messaging application account of the connected organization exists, or an introductory statement introducing the cross-organizational address book. For example, the second push message 901 may display a prompt stating "The other party has become your upstream / downstream contact," and an introductory statement stating "Messages can be read / unread, large files can be transferred, and communication is more efficient." Figure 9 A schematic diagram of a third session interface in one embodiment is shown.
[0123] Furthermore, when the first terminal displays the third session interface, it can also trigger the display of a seventh session interface in the organizational instant messaging application connected to the organizational instant messaging application account, and display a third push message in the seventh session interface. The third push message includes a prompt message notifying existing new session members that they have been added to the cross-organizational address book. For example, refer to... Figure 10 The third push message 1001 may include the prompt statement "The other party has become your upstream and downstream contact, and you can find the other party in the upstream and downstream address book". Figure 10A schematic diagram of the seventh session interface in one embodiment is shown. It is readily understood that when the first organization's instant messaging application account is added to the cross-organization address book and a session is established with the connecting organization's instant messaging application account, the session interface displayed on the first terminal can be referred to as the third session interface, and the interface displayed in the connecting organization's instant messaging application can be referred to as the seventh session interface.
[0124] In one embodiment, the instant messaging application account of the interfacing organization can be the instant messaging application account of the target organization mentioned above; that is, the second session member mentioned above can be the interfacing member of the first session member. In this case, the second session interface is also the third session interface. Here, the interfacing member refers to the session member who owns the instant messaging application account of the interfacing organization.
[0125] In the above embodiments, by displaying the second push message, the other party in the conversation can be informed that they have become a member of the cross-organization instant messaging application, and the function of the cross-organization address book can be explained. This facilitates conversation members' understanding of the function of the cross-organization address book and improves the efficiency of their understanding. By displaying the third push message, conversation members can easily understand that they have become a member of the cross-organization and clearly perceive that a member of the cross-organization instant messaging application has been added to the cross-organization address book. This facilitates conversations between the member of the cross-organization and the member of the first organization's instant messaging application, who has already joined the cross-organization address book.
[0126] In one embodiment, the third push message also includes a member node viewing element; the member node viewing element is used to trigger the display of the organization node tree corresponding to the cross-organization address book pointed to by the join event, and to display the node location of the first organization instant messaging application account in the organization node tree.
[0127] Specifically, the third-party push notification also includes elements for viewing member nodes. For example, see [reference]. Figure 10 The third push message also includes a "Go to View" control, which is the member node viewing element. When a connected member triggers the member node viewing element, the organization's instant messaging application account can display the organization node tree corresponding to the cross-organization address book pointed to by the join event, and display the node position of the first organization's instant messaging application account in the organization node tree.
[0128] In one embodiment, the organizational node tree corresponding to the cross-organizational address book includes upstream organizational nodes and one or more downstream organizational nodes, with the root node being the cross-organizational address book, and the first-level nodes being the upstream organizational nodes and each downstream organizational node, for example... Figure 11The tree structure shown is illustrated. The specific structure of the organizational node tree, mapped onto a computer device, is represented by storing upstream and downstream identifiers, the organizational identifier of the upstream organization, and the organizational identifier of the downstream organization. The organizational instant messaging application that interfaces with the organizational instant messaging application account can prominently display the node location of the first organizational instant messaging application account. Figure 11 A schematic diagram of an organization node tree is shown.
[0129] In the above embodiments, by displaying the member node view element, the node location of the first organization's instant messaging application account can be automatically displayed in response to the triggering of the member node view element. Compared with manually searching for the first organization's instant messaging application account in the organization node tree, the search efficiency of the first organization's instant messaging application account is improved. In addition, by automatically displaying the node location of the first organization's instant messaging application account, the connecting members can clearly perceive that a new conversation member has been added to the cross-organization address book, thereby facilitating the use of the same organization's instant messaging application account in the cross-organization address book for conversations between the connecting members and the newly added conversation members.
[0130] In one embodiment, the method further includes: displaying a custom conversation message sent by the interfacing organization's instant messaging application account on the third conversation interface; the custom conversation message includes a statement welcoming the second conversation member to the cross-organization address book.
[0131] Specifically, when the third session interface is displayed, the first terminal can also display custom session messages sent by the instant messaging application account of the connected organization within the third session interface. (Reference) Figure 9 Custom conversation message 902 may include a statement welcoming the second conversation member to the cross-organizational address book. Correspondingly, this custom conversation message can also be displayed in the organizational instant messaging application that interfaces with the organizational instant messaging application account. For example, refer to... Figure 10 Custom session message 1002 can be displayed in the seventh session interface.
[0132] In one embodiment, the number of times the instant messaging application account of the connected organization automatically sends custom session messages within the current statistical period can be determined. If the number reaches the upper limit, the automatic sending of custom session messages is canceled.
[0133] In this embodiment, by displaying custom conversation messages, the first conversation member can be guided to conduct a conversation with the docking organization's instant messaging application account through the first organization's instant messaging application account, so that the conversation members can make full use of the communication application, thereby improving the utilization rate of the communication application.
[0134] In one embodiment, a first organization's instant messaging application account can be added to a cross-organizational address book, becoming an account in a downstream organization within that address book. When the first organization's instant messaging application account is added to the cross-organizational address book, the first terminal can determine whether there exists a corresponding organization's instant messaging application account in the added address book that has a connection with the first organization's instant messaging application account. If a corresponding organization's instant messaging application account exists, a third session interface is displayed, showing a second push message and a custom session message. Furthermore, members of the first session can establish a communication session with an external communication account through the first organization's instant messaging application account. The external communication account is either a personal instant messaging application account added by the first organization's instant messaging application account or a second organization's instant messaging application account added by the first organization's instant messaging application account, and the first organization's instant messaging application account and the second organization's instant messaging application account are not in the same cross-organizational address book. When a candidate organization instant messaging application account exists in the cross-organization address book that belongs to the same session member as the external communication account and is in the same cross-organization address book as the first organization instant messaging application account, the first terminal corresponding to the first organization instant messaging application account determines whether the candidate organization instant messaging application account is an account in the upstream organization in the cross-organization address book. If so, an interface switching element is displayed in the first session interface, thereby switching the first session interface to the second session interface through the interface switching element. The target organization instant messaging application account can be the aforementioned interface-connecting organization instant messaging application account.
[0135] In one embodiment, the first organization instant messaging application account can also be an account in an upstream organization within a cross-organization address book. A first session member can establish a communication session with an external communication account through the first organization instant messaging application account. When a target organization instant messaging application account exists in the cross-organization address book of the first organization instant messaging application account, belonging to the same session member as the external communication account and located in a downstream organization, the first terminal corresponding to the first organization instant messaging application account displays interface switching elements in the first session interface. Furthermore, before the first session member can establish a communication session with an external communication account through the first organization instant messaging application account, the target organization instant messaging application account can be added to the cross-organization address book. Thus, when the target organization instant messaging application account is added to the cross-organization address book, the second terminal corresponding to the target organization instant messaging application account can determine whether a corresponding organization instant messaging application account exists that has a connection with the target organization instant messaging application account. If a corresponding organization instant messaging application account exists, a second push message and a custom session message sent by the corresponding organization instant messaging application account are displayed.
[0136] In the above scheme, the system stores the number of times a single interfacing organization's instant messaging application account automatically sends custom session messages within a statistical period. Before automatically sending custom session messages, it first queries the number of times a single interfacing organization's instant messaging application account has automatically sent custom session messages within the current statistical period. If this number has reached the limit, sending custom session messages is abandoned; otherwise, automatic sending of custom session messages is triggered, and the number of times a single interfacing organization's instant messaging application account has automatically sent custom session messages within the current statistical period is incremented. However, this query and subsequent incrementing of the automatic sending of custom session messages action is not atomic. In a multi-machine environment, due to multi-machine concurrency issues, the number of times an interfacing organization's instant messaging application account automatically sends custom session messages within a single statistical period may exceed the limit. To solve this problem, this application provides a task processing method.
[0137] In one embodiment, such as Figure 12 As shown, a task processing method is provided, which is applied to Figure 1 Taking the server in the example, the following steps are included:
[0138] Step 1202: When multiple custom session message sending tasks are obtained, for each of the multiple custom session message sending tasks, determine the instant messaging application account of the interface organization to send the custom session message pointed to by the corresponding custom session message sending task.
[0139] Specifically, members in cross-organizational address books can invite or import instant messaging application accounts of organizations to be added in batches. When members in cross-organizational address books invite or import instant messaging application accounts of organizations to be added in batches, the server can determine the corresponding interface organization instant messaging application account for each newly added account and trigger the terminal logged into each interface organization instant messaging application account to generate a custom session message sending task, which is then sent to the server. When the server receives a custom session message sending task, for each task, the server can extract the interface organization instant messaging application account from it and use this extracted account as the interface organization instant messaging application account to send the custom session message to the corresponding interface organization instant messaging application account. Here, a custom session message sending task is a task used to trigger the corresponding interface organization instant messaging application account to send a custom session message.
[0140] Step 1204: The identified instant messaging application account of the interface organization is used as the instant messaging application account of the interface organization corresponding to the targeted custom session message sending task.
[0141] Specifically, for each of the multiple custom session message sending tasks received, the server can use the identified instant messaging application account of the interface organization used to send the custom session message pointed to by the target custom session message sending task as the interface organization instant messaging application account corresponding to the target custom session message sending task.
[0142] Step 1206: Based on the instant messaging application accounts of the interfacing organizations corresponding to the multiple custom session message sending tasks, cluster the multiple custom session message sending tasks to obtain at least one cluster.
[0143] Specifically, when the corresponding instant messaging application account of each custom session message sending task is determined, the server can group the joining tasks corresponding to the same instant messaging application account into a cluster based on the corresponding instant messaging application accounts of multiple custom session message sending tasks, thereby obtaining at least one cluster. The clustering algorithm can be freely configured according to requirements.
[0144] Step 1208: For each cluster in at least one cluster, serially process the custom session message sending task in the targeted cluster to send the corresponding custom session message to the corresponding organizational instant messaging application account added to the cross-organization address book.
[0145] Specifically, for each cluster within at least one cluster, the custom session message sending tasks within that cluster are processed serially. For example, when the target cluster is cluster A, the server can process the custom session message sending tasks in cluster A serially to send the session messages pointed to by the custom session message sending tasks to the corresponding organizational instant messaging application accounts added to the cross-organization address book. In one embodiment, the server can process each cluster in parallel and process the session message sending tasks within a single cluster serially.
[0146] In one embodiment, when the server receives multiple custom session message sending tasks, the asynchronous service in the server can determine the queue corresponding to each custom session message sending task based on the instant messaging application account of the organization corresponding to each custom session message sending task. Here, a queue can be regarded as a cluster, so the backend server in the server can process multiple queues in parallel and process the custom session message sending tasks in each queue serially.
[0147] In the above embodiments, the number of times a single statistical period can trigger the automatic sending of custom session messages by the connected organization application account is limited. The storage structure selects key-value pairs to store the number of custom session messages sent by a single connected organization application account within a single statistical period. The key in the key-value pair is designed with a fixed prefix plus the account identifier of the connected organization application account, plus the timestamp of the day with the day as the single statistical period. The value in the key-value pair directly stores the number of custom session messages sent. Since it is data valid within a single day, the expiration time of each storage is designed to expire at midnight of the next day.
[0148] {
[0149] Key: Fixed prefix + account identifier of the application account of the interface organization + daily timestamp of the day.
[0150] Value: Number of custom session messages sent
[0151] ExpireTime: Midnight of the next day from the current time
[0152] }
[0153] In the above embodiments, by acquiring multiple custom session message sending tasks, the corresponding instant messaging application account of the interfacing organization for each custom session message sending task can be determined. By determining the corresponding interfacing organization instant messaging application account for each custom session message sending task, the custom session message sending tasks can be clustered based on the interfacing organization instant messaging application account, resulting in at least one cluster. This allows for serial processing of the custom session message sending tasks within each cluster. Since custom session message sending tasks within the same cluster correspond to the same interfacing organization communication account, serial processing of the custom session message sending tasks within the cluster reduces the problem of excessive preset messages being sent due to the interfacing organization communication account simultaneously sending custom session messages to multiple newly joined organizational instant messaging application accounts, thus improving concurrency security.
[0154] In one embodiment, multiple custom session message sending tasks are obtained, including: receiving a batch add request initiated by the terminal for a cross-organization address book; the batch add request carries the instant messaging application accounts of the organizations to be added selected by the terminal in batches; when the batch-selected instant messaging application accounts of the organizations to be added are added to the cross-organization address book according to the batch add request, a custom session message sending task corresponding to each newly added organization instant messaging application account in the cross-organization address book is generated.
[0155] Specifically, members in a cross-organizational address book can select member identifiers of members to be added in batches via their terminals. The terminals can then generate batch add requests and send these requests to the server. When the server receives a batch add request, it responds by adding the selected organizational instant messaging application accounts to the cross-organizational address book. While adding the selected organizational instant messaging application accounts to the cross-organizational address book according to the batch add request, the server generates a custom session message sending task for each newly added organizational instant messaging application account.
[0156] In one embodiment, the step of generating a custom session message sending task corresponding to each newly added organizational instant messaging application account in the cross-organizational address book as the target newly added organizational instant messaging application account includes: when the batch add request is a batch invite request, determining the inviting organizational instant messaging application account that initiated the batch invite request, and using the inviting organizational instant messaging application account as the docking organizational instant messaging application account corresponding to the target newly added organizational instant messaging application account; generating a custom session message sending task corresponding to the target newly added organizational instant messaging application account based on the target newly added organizational instant messaging application account and the corresponding docking organizational instant messaging application account.
[0157] Specifically, each newly added organizational instant messaging application account to the cross-organizational address book is designated as the target newly added organizational instant messaging application account. The server can determine whether a batch add request is a batch invite request. Specifically, when members invite other members to join the cross-organizational address book in batches, the batch add request can be considered a batch invite request. When a batch add request is a batch invite request, the server can determine the organizational instant messaging application account of the inviting member who initiated the batch invite request, and refer to this organizational instant messaging application account as the inviting organizational instant messaging application account. In simple terms, when an administrator triggers the generation of a join task through an invitation, the inviting organizational instant messaging application account is the administrator's organizational instant messaging application account. When the inviting organizational instant messaging application account is determined, the server can use this inviting organizational instant messaging application account as the interface organizational instant messaging application account corresponding to the target newly added organizational instant messaging application account, and generate a custom session message sending task based on this interface organizational instant messaging application account and the target newly added organizational instant messaging application account. This custom session message sending task triggers the interface organizational instant messaging application account to send a custom session message to the target newly added organizational instant messaging application account.
[0158] In one embodiment, the method further includes: when the batch join request is not a batch invitation request, determining whether a management organization instant messaging application account exists in the cross-organization address book; when a management organization instant messaging application account exists, using the management organization instant messaging application account as the docking organization instant messaging application account corresponding to the target newly joined organization instant messaging application account; and generating a custom session message sending task corresponding to the target newly joined organization instant messaging application account based on the target newly joined organization instant messaging application account and the corresponding docking organization instant messaging application account.
[0159] Specifically, when a batch join request is not a batch invite request, the server determines whether a management organization instant messaging application account exists in the cross-organization address book. This management organization instant messaging application account refers to the organization instant messaging application account of the managing member in the cross-organization address book. If a management organization instant messaging application account exists in the cross-organization address book, it is used as the interface organization instant messaging application account for the target organization instant messaging application account. If multiple management organization instant messaging application accounts exist, any one of them can be used as the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account, or the first management organization instant messaging application account can be used as the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account. When the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account is determined, the server generates a custom session message sending task based on this interface organization instant messaging application account and the target newly joined organization instant messaging application account.
[0160] In one embodiment, reference Figure 13 Step 1301: Add the corresponding instant messaging application account of the organization to be added to the cross-organization address book. Step 1302: Determine if the newly added organization's instant messaging application account has an inviting member. Step 1303: If an inviting member exists, determine if the inviting member is an upstream member. Step 1304: If it is an upstream member, determine if the inviting member is visible to the newly added organization's instant messaging application account. Step 1305: If the inviting member is visible to the newly added organization's instant messaging application account, use the inviting organization's instant messaging application account corresponding to the inviting member as the connecting organization's instant messaging application account. Step 1306: If no inviting member exists, or the inviting member is not an upstream member, or the inviting member is not visible to the newly added organization's instant messaging application account, determine if an administrator member exists in the cross-organization address book. Step 1307: If an administrator member exists, use the administrator member's administrator organization's instant messaging application account as the connecting organization's instant messaging application account. Step 1308: If no administrator member exists, there is no connecting organization's instant messaging application account. Figure 13 The diagram illustrates a process for determining the instant messaging application account of the receiving organization in one embodiment. The newly added instant messaging application account can be either the first instant messaging application account mentioned above, or the target instant messaging application account. Therefore, the determined receiving organization instant messaging application account can be either an instant messaging application account that has a receiving relationship with the first instant messaging application account, or an instant messaging application account that has a receiving relationship with the target organization instant messaging application account.
[0161] In the above embodiments, by using the organization instant messaging application account of the inviting member, or the organization instant messaging application account of the managing member, as the interface organization instant messaging application account, a session can be automatically established between the organization instant messaging application account of the inviting member and the corresponding newly joined organization instant messaging application account.
[0162] In one embodiment, the custom session message sending tasks in the targeted cluster are processed serially, including: for each custom session message sending task in the targeted cluster, determining the number of times the instant messaging application account of the interface organization corresponding to the current custom session message sending task sends a custom session message in the current statistical period; when the number of custom session message sending times is less than a preset threshold, the instant messaging application account of the interface organization corresponding to the current custom session message sending task is triggered to send a custom session message.
[0163] Specifically, for each custom session message sending task within the target cluster, the server can determine the number of times the corresponding inter-organization instant messaging application account sent custom session messages within the current statistical period. The inter-organization instant messaging application account corresponding to the current custom session message sending task refers to the inter-organization instant messaging application account used to send the custom session message specified by the current custom session message sending task. When the number of custom session messages sent within the current statistical period is less than or equal to a preset threshold, the inter-organization instant messaging application account corresponding to the current custom session message sending task is triggered to send a custom session message.
[0164] In this embodiment, by serially processing the preset message sending tasks, the problem of excessive preset messages being sent due to the simultaneous sending of custom session messages from the connected organizational communication account to multiple newly joined organizational instant messaging application accounts can be reduced, thereby improving the security of concurrency.
[0165] In one specific embodiment, reference Figure 14 A method for displaying a conversational interface is provided, including:
[0166] Step 1402: The first terminal responds to the add event of the first organization instant messaging application account being added to the cross-organization address book, and adds the first organization instant messaging application account to be displayed in the cross-organization address book pointed to by the add event.
[0167] Step 1404: When there is a connected organization instant messaging application account in the cross-organization address book pointed to by the joining event that has a connection relationship with the first organization instant messaging application account, the first terminal displays a third session interface between the first organization instant messaging application account and the connected organization instant messaging application account.
[0168] Step 1406: The first terminal displays a second push message and a custom conversation message sent by the connected organization's instant messaging application account on the third conversation interface; the custom conversation message includes a statement welcoming the second conversation member to join the cross-organization address book; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that the connected organization's instant messaging application account already exists; the introductory statement is a statement introducing the cross-organization address book.
[0169] Step 1408: The first terminal triggers the organization's instant messaging application account to display a third push message; the third push message includes a third prompt statement, which is a statement that prompts that a new conversation member has been added to the cross-organization address book.
[0170] Step 1410: When a communication session is established between the first organization instant messaging application account and the external communication account, the first terminal displays the first session interface between the first organization instant messaging application account and the external communication account; the external communication account includes either a personal instant messaging application account or a second organization instant messaging application account that is not in the same cross-organization address book as the first organization instant messaging application account.
[0171] Step 1412: The first terminal obtains the cross-organizational address book where the first organization's instant messaging application account is located, and searches for candidate organization instant messaging application accounts associated with external communication accounts in the obtained cross-organizational address book; and selects the candidate organization instant messaging application accounts that are logged in as the target organization instant messaging application account.
[0172] Step 1414: The first terminal displays the first push message on the first session interface; wherein, the first push message includes a first prompt statement and interface switching elements; the first prompt statement is a statement prompting the establishment of a communication session between the first organization's instant messaging application account and the target organization's instant messaging application account.
[0173] Step 1416: In response to the trigger operation for the interface switching element, the first terminal switches the first session interface to the second session interface between the first organization instant messaging application account and the target organization instant messaging application account.
[0174] Step 1418: When the target organization's instant messaging application account is removed from the cross-organization address book, the first terminal cancels the display of the interface switching element in the first session interface.
[0175] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0176] This application also provides an application scenario in which the above-described session interface display method is applied.
[0177] Specifically, the application of this session interface display method in this application scenario is as follows:
[0178] There is a demand for consistently active chat in upstream and downstream scenarios, and the chat content is relatively healthy; however, the number of active one-on-one chats between upstream and downstream users is still very small. Among upstream and downstream users, upstream users are unaware of downstream users joining, while most downstream users lack sufficient understanding of upstream and downstream functions. This leads most upstream and downstream users to still prefer to establish instant messaging one-on-one chats with instant messaging accounts already in the same upstream / downstream address book (also known as cross-organization address book). However, instant messaging one-on-one chats, compared to upstream / downstream one-on-one chats, suffer from incomplete account authentication, limited chat functions, and an inability to fully utilize upstream / downstream capabilities. Therefore, it is crucial to effectively guide both parties already in the same upstream / downstream relationship to adopt the habit of using upstream / downstream one-on-one chats.
[0179] This application provides a method to guide users to switch to one-on-one chat. By automatically establishing sessions and blocking the original session channels, it guides users to use the more efficient upstream and downstream one-on-one chat. Automatic session establishment refers to, when it is recognized that a member added to the upstream and downstream address books is from a downstream enterprise (also known as a downstream organization), under certain conditions, selecting a contact member from the upstream enterprise (also known as an upstream organization) to send a system-defined greeting message (also known as a custom session message) to the added downstream member. This top-down greeting method is more likely to elicit a direct reply from the downstream member, which is beneficial for the continued use of upstream and downstream one-on-one chat. It also makes it easier for both parties to continue communication through this upstream and downstream one-on-one chat window when they have subsequent chat needs. Simultaneously with sending the greeting message, different types of push messages are also sent to both parties. This helps the upstream member understand the location of the added downstream member in their address book and helps the downstream member understand the benefits and convenience of upstream and downstream one-on-one chat.
[0180] Blocking the original conversation channel refers to a situation where two parties in a chat can use upstream / downstream one-on-one chat but instead use instant interoperable one-on-one chat. A push message will be displayed at the top of the chat interface to guide them to use the fully functional upstream / downstream one-on-one chat and provide a button to switch one-on-one chat mode with one click.
[0181] For automatic session establishment, after a downstream member joins the upstream and downstream address books, it first determines whether the downstream member's joining method can automatically establish a session. If so, it finds a suitable upstream contact member. If a suitable upstream contact member exists and the number of times the upstream contact member sends custom session messages today has not reached the limit, the upstream contact member is triggered to send custom session messages to the downstream member, and sends a second push message and a third push message to both parties respectively.
[0182] For automatically established sessions, if the system determines that there is an upstream / downstream relationship between an organizational instant messaging application account and a personal instant messaging application account using instant messaging one-on-one chat, the system will display a first push message at the top of the session interface explaining the advantages of upstream / downstream one-on-one chat and providing a one-click chat mode switching button (also known as an interface switching element) to actively guide session members to switch to one-on-one chat mode.
[0183] This application also provides another application scenario in which the above-described task processing method is applied.
[0184] Specifically, the application of this task processing method in this application scenario is as follows:
[0185] Once a downstream member is added to the upstream / downstream contact list, it checks if a suitable upstream contact member exists. If a suitable upstream contact member exists, and it's determined that the upstream contact member has not reached the daily limit for sending custom conversation messages, then the upstream contact member is triggered to send a custom conversation message to the downstream member. However, this query and subsequent action of increasing the number of automatically sent custom conversation messages is not atomic. In a multi-machine environment, due to concurrency issues, this could lead to the upstream contact member exceeding the daily limit for automatically sending greetings.
[0186] To address the multi-machine concurrency issue, this application provides three methods, as detailed in the embodiments below. Figure 15 The first method addresses multi-machine concurrency issues by adding distributed locks. This involves using distributed locks to control non-atomic code segments before and after the code, along with the business logic's own spin mechanism to ensure concurrency safety. (See reference...) Figure 16 The second approach addresses multi-machine concurrency issues by utilizing storage version locking. This involves adding version numbers to the storage and leveraging the atomicity of the storage itself, along with the spin lock functionality of the application, to ensure concurrency safety. (See reference) Figure 17 The third approach involves grouping and aggregating tasks at a specific granularity. This groups potentially concurrency-safe request tasks into queues, with tasks within each queue having concurrency issues, while tasks in different groups do not. Tasks within each queue are then executed serially, ensuring concurrency safety even in a multi-machine environment through local serialization. In this third method, the instant messaging application account of the interfacing organization is used as the grouping and aggregation condition for custom session message sending tasks. Serializing the grouped tasks ensures concurrency safety. The only potential problem with grouping and clustering custom session message sending tasks based on the interfacing organization's instant messaging application account is message backlog when a single user has a large number of greeting tasks. In the asynchronous service, custom session messages can be aggregated using group IDs, merging multiple custom session messages into a single task for delivery, thus avoiding custom session message backlog. Figure 15 The diagram illustrates an interaction diagram of performing a task using a distributed lock in one embodiment. Figure 16 An interactive diagram illustrating the execution of a task via a stored version lock is shown in one embodiment. Figure 17 An interactive diagram illustrating the serial execution of tasks in one embodiment is shown.
[0187] The above application scenarios are merely illustrative and it is understood that the application of the methods provided in the embodiments of this application is not limited to the above scenarios.
[0188] Based on the same inventive concept, this application also provides a session interface display device for implementing the session interface display method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more session interface display device embodiments provided below can be found in the limitations of the session interface display method described above, and will not be repeated here.
[0189] In one embodiment, such as Figure 18 As shown, a conversation interface display device 1800 is provided, including: a first conversation interface display module 1802, an interface switching element display module 1804, and a second conversation interface display module 1806, wherein:
[0190] The first session interface display module 1802 is used to display the first session interface between the first organization instant messaging application account and the external communication account when a communication session is established between the first organization instant messaging application account and the external communication account; the external communication account is a personal instant messaging application account or a second organization instant messaging application account, and the second organization instant messaging application account and the first organization instant messaging application account are not in the same cross-organization address book.
[0191] The interface switching element display module 1804 is used to display interface switching elements in the first session interface when there is a target organization instant messaging application account associated with an external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book.
[0192] The second session interface display module 1806 is used to switch the first session interface to the second session interface between the first organization instant messaging application account and the target organization instant messaging application account in response to the trigger operation of the interface switching element.
[0193] In one embodiment, the interface switching element display module 1804 is further configured to display a first push message on the first session interface when there is a target organization instant messaging application account associated with an external communication account and in the same cross-organization address book as the first organization instant messaging application account; wherein, the first push message includes a first prompt statement and an interface switching element; the first prompt statement is a statement that prompts the establishment of a communication session between the first organization instant messaging application account and the target organization instant messaging application account.
[0194] In one embodiment, the interface switching element display module 1804 is further configured to obtain the cross-organizational address book where the first organization instant messaging application account is located, and search for candidate organization instant messaging application accounts associated with external communication accounts in the obtained cross-organizational address book; and use the candidate organization instant messaging application accounts that are logged in as the target organization instant messaging application account.
[0195] In one embodiment, the interface switching element display module 1804 is further configured to cancel the display of interface switching elements in the first session interface when the target organization application communication account is removed from the cross-organization address book.
[0196] In one embodiment, the conversation interface display device 1800 further includes an account addition module, which is used to add the first organization instant messaging application account to the cross-organization address book in response to an addition event of the first organization instant messaging application account being added to the cross-organization address book pointed to by the addition event; when there is a docking organization instant messaging application account in the cross-organization address book pointed to by the addition event that has a docking relationship with the first organization instant messaging application account, a third conversation interface between the first organization instant messaging application account and the docking organization instant messaging application account is displayed.
[0197] In one embodiment, the account addition module is further configured to display a second push message on the third session interface; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that an account for the connected organization's instant messaging application already exists; the introductory statement is a statement introducing the cross-organization address book; the organization's instant messaging application that connects to the account for the connected organization's instant messaging application displays a third push message; the third push message includes a third prompt statement, which is a statement indicating that a new session member has been added to the cross-organization address book.
[0198] In one embodiment, the third push message also includes a member node viewing element; the member node viewing element is used to trigger the display of the organization node tree corresponding to the cross-organization address book pointed to by the joining event, and to display the node location of the first organization instant messaging application account in the organization node tree.
[0199] In one embodiment, the account joining module is also used to display a custom session message sent by the connected organization's instant messaging application account on the third session interface; the custom session message includes a statement welcoming the second session member to join the cross-organization address book.
[0200] Based on the same inventive concept, this application also provides a task processing apparatus for implementing the task processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more task processing apparatus embodiments provided below can be found in the limitations of the task processing method described above, and will not be repeated here.
[0201] In one embodiment, such as Figure 19 As shown, a task processing device 1900 is provided, including: an account determination module 1902, a clustering module 1904, and a serial processing module 1906, wherein:
[0202] The account determination module 1902 is used to determine, for each of the multiple custom session message sending tasks, the instant messaging application account of the interfacing organization to send the custom session message pointed to by the corresponding custom session message sending task, when multiple custom session message sending tasks are obtained; and to use the determined instant messaging application account of the interfacing organization as the instant messaging application account corresponding to the corresponding custom session message sending task.
[0203] Clustering module 1904 is used to cluster multiple custom session message sending tasks based on the instant messaging application accounts of the corresponding interfacing organizations, and obtain at least one cluster.
[0204] The serial processing module 1906 is used to serially process the custom session message sending task in the targeted cluster for each cluster in at least one cluster, so as to send the corresponding custom session message to the organizational instant messaging application account added to the cross-organization address book.
[0205] In one embodiment, the account determination module 1902 is further configured to receive a batch add request for cross-organization address book initiated by the terminal; the batch add request carries the organization instant messaging application accounts to be added by the terminal in batches; when the batch-selected organization instant messaging application accounts to be added are added to the cross-organization address book according to the batch add request, a custom session message sending task corresponding to each newly added organization instant messaging application account in the cross-organization address book is generated.
[0206] In one embodiment, each newly added organizational instant messaging application account to the cross-organizational address book is designated as the target newly added organizational instant messaging application account. The account determination module 1902 is further configured to determine the inviting organizational instant messaging application account that initiated the batch invitation request when the batch add request is a batch invitation request, and designate the inviting organizational instant messaging application account as the docking organizational instant messaging application account corresponding to the target newly added organizational instant messaging application account; and generate a custom session message sending task corresponding to the target newly added organizational instant messaging application account based on the target newly added organizational instant messaging application account and the corresponding docking organizational instant messaging application account.
[0207] In one embodiment, the account determination module 1902 is further configured to determine whether a management organization instant messaging application account exists in the cross-organization address book when the batch join request is not a batch invitation request; if a management organization instant messaging application account exists, the management organization instant messaging application account is used as the docking organization instant messaging application account corresponding to the target newly joined organization instant messaging application account; and a custom session message sending task corresponding to the target newly joined organization instant messaging application account is generated based on the target newly joined organization instant messaging application account and the corresponding docking organization instant messaging application account.
[0208] In one embodiment, the serial processing module 1906 is further configured to determine, for each custom session message sending task in the targeted cluster, the number of times the instant messaging application account of the docking organization corresponding to the current custom session message sending task sends a custom session message within the current statistical period; when the number of custom session message sending is less than a preset threshold, the instant messaging application account of the docking organization corresponding to the current custom session message sending task is triggered to send a custom session message.
[0209] The modules in the aforementioned session interface display device and task processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0210] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 20As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores task processing data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a task processing method.
[0211] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 21 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a session interface display method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0212] Those skilled in the art will understand that Figures 20 to 21The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0213] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0214] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0215] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0216] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0217] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0218] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0219] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for displaying a conversational interface, characterized in that, The method includes: When a communication session is established between the first organization instant messaging application account and the external communication account, the first session interface between the first organization instant messaging application account and the external communication account is displayed; the external communication account is a personal instant messaging application account or a second organization instant messaging application account; the second organization instant messaging application account and the first organization instant messaging application account are not in the same cross-organization address book. When there is a target organization instant messaging application account associated with the external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book, then the interface switching element is displayed in the first session interface. In response to a trigger operation on the interface switching element, the first session interface is switched to a second session interface between the first organization instant messaging application account and the target organization instant messaging application account. Before establishing a communication session between the first organization's instant messaging application account and the external communication account, the method further includes: In response to an add event of the first organization's instant messaging application account being added to the cross-organization address book, the first organization's instant messaging application account is added to the cross-organization address book pointed to by the add event. When the cross-organizational address book pointed to by the join event contains a docking organization instant messaging application account that has a docking relationship with the first organization instant messaging application account, a third session interface between the first organization instant messaging application account and the docking organization instant messaging application account is displayed.
2. The method according to claim 1, characterized in that, When a target organization instant messaging application account exists that is associated with the external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book, then the interface switching elements are displayed in the first session interface, including: If there is a target organization instant messaging application account that is associated with the external communication account and is in the same cross-organization address book as the first organization instant messaging application account, then the first push message is displayed on the first session interface. The first push message includes a first prompt statement and the interface switching element; The first prompt statement is a statement that prompts the establishment of a communication session between the first organization's instant messaging application account and the target organization's instant messaging application account.
3. The method according to claim 1, characterized in that, The steps for determining the target organization's instant messaging application account include: Obtain the cross-organizational address book where the first organization's instant messaging application account is located, and search for candidate organization instant messaging application accounts associated with the external communication account in the obtained cross-organizational address book; Use the candidate organization's instant messaging application account that is logged in as the target organization's instant messaging application account.
4. The method according to claim 1, characterized in that, The method further includes: When the target organization's instant messaging application account is removed from the cross-organization address book, the interface switching element is de-displayed in the first session interface.
5. The method according to claim 1, characterized in that, The method further includes: The third session interface displays a second push message; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that an instant messaging application account of the connected organization already exists; the introductory statement is a statement introducing the cross-organization address book; The organization's instant messaging application, triggered by the connected organization's instant messaging application account, displays a third push message; the third push message includes a third prompt statement, which is a statement indicating that a new conversation member has been added to the cross-organization address book.
6. The method according to claim 5, characterized in that, The third push message also includes a member node viewing element; the member node viewing element is used to trigger the display of the organization node tree corresponding to the cross-organization address book pointed to by the joining event, and to display the node location of the first organization instant messaging application account in the organization node tree.
7. The method according to claim 1, characterized in that, The method further includes: The third session interface displays custom session messages sent by the instant messaging application account of the connected organization; the custom session messages include statements welcoming the second session member to the cross-organization address book.
8. A task processing method, characterized in that, The method includes: When multiple custom session message sending tasks are obtained, for each of the multiple custom session message sending tasks, the interfacing organization instant messaging application account used to send the custom session message pointed to by the corresponding custom session message sending task is determined; the custom session message sending task is generated in response to an add event of an organization instant messaging application account being added to a cross-organization address book, when the organization instant messaging application account is added to the cross-organization address book pointed to by the add event; the determined interfacing organization instant messaging application account is used as the interfacing organization instant messaging application account corresponding to the corresponding custom session message sending task. Based on the instant messaging application accounts of the interfacing organizations corresponding to the multiple custom session message sending tasks, the multiple custom session message sending tasks are clustered to obtain at least one cluster. For each of the at least one clusters, the custom session message sending task in the targeted cluster is processed serially to send the corresponding custom session message to the corresponding organizational instant messaging application account newly added to the cross-organization address book, and to trigger the display of the custom session message in the third session interface between the organizational instant messaging application account newly added to the cross-organization address book and the corresponding docking organizational instant messaging application account.
9. The method according to claim 8, characterized in that, The process of obtaining multiple custom session message sending tasks includes: Receive a batch add request initiated by the terminal for the cross-organization address book; the batch add request carries instant messaging application accounts of the organizations to be added selected by the terminal in batches; When adding selected organizational instant messaging application accounts to the cross-organization address book according to the batch add request, a custom session message sending task is generated for each newly added organizational instant messaging application account in the cross-organization address book.
10. The method according to claim 9, characterized in that, Each newly added organizational instant messaging application account to the cross-organizational address book is designated as the target newly added organizational instant messaging application account. The steps for generating a custom session message sending task corresponding to the target newly joined organization's instant messaging application account include: When the batch join request is a batch invitation request, the instant messaging application account of the inviting organization that initiated the batch invitation request is determined, and the instant messaging application account of the inviting organization is used as the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account. Based on the target newly joined organization's instant messaging application account and the corresponding docking organization's instant messaging application account, generate a custom session message sending task corresponding to the target newly joined organization's instant messaging application account.
11. The method according to claim 10, characterized in that, The method further includes: If the batch add request is not a batch invite request, then it is determined whether the cross-organization address book contains an organization instant messaging application account. When a management organization instant messaging application account exists, the management organization instant messaging application account is used as the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account. Based on the target newly joined organization's instant messaging application account and the corresponding docking organization's instant messaging application account, generate a custom session message sending task corresponding to the target newly joined organization's instant messaging application account.
12. The method according to claim 8, characterized in that, The serial processing of custom session message sending tasks within the targeted cluster includes: For each custom session message sending task in the targeted cluster, determine the number of custom session messages sent by the interfacing organization's instant messaging application account corresponding to the current custom session message sending task within the current statistical period; If the number of times is less than a preset threshold, a custom session message is sent to the instant messaging application account of the interface organization corresponding to the current custom session message sending task.
13. A conversational interface display device, characterized in that, The device includes: The first session interface display module is used to display the first session interface between the first organization instant messaging application account and the external communication account when a communication session is established between the first organization instant messaging application account and the external communication account; the external communication account is a personal instant messaging application account or a second organization instant messaging application account; the second organization instant messaging application account and the first organization instant messaging application account are not in the same cross-organization address book. The interface switching element display module is used to display interface switching elements in the first session interface when there is a target organization instant messaging application account associated with the external communication account, and the target organization instant messaging application account and the first organization instant messaging application account are in the same cross-organization address book. The second session interface display module is used to switch the first session interface to the second session interface between the first organization instant messaging application account and the target organization instant messaging application account in response to the trigger operation of the interface switching element. The account addition module is used to respond to the addition event of the first organization's instant messaging application account being added to the cross-organization address book, and to add and display the first organization's instant messaging application account in the cross-organization address book pointed to by the addition event; when there is a docking organization's instant messaging application account in the cross-organization address book pointed to by the addition event that has a docking relationship with the first organization's instant messaging application account, a third conversation interface between the first organization's instant messaging application account and the docking organization's instant messaging application account is displayed.
14. The apparatus according to claim 13, characterized in that, The interface switching element display module is further configured to display a first push message on the first session interface when there is a target organization instant messaging application account associated with the external communication account and in the same cross-organization address book as the first organization instant messaging application account; wherein, the first push message includes a first prompt statement and the interface switching element; the first prompt statement is a statement that prompts the establishment of a communication session between the first organization instant messaging application account and the target organization instant messaging application account.
15. The apparatus according to claim 13, characterized in that, The interface switching element display module is also used to obtain the cross-organization address book where the first organization instant messaging application account is located, and search for candidate organization instant messaging application accounts associated with the external communication account in the obtained cross-organization address book. Use the candidate organization's instant messaging application account that is logged in as the target organization's instant messaging application account.
16. The apparatus according to claim 13, characterized in that, The interface switching element display module is also used to cancel the display of the interface switching element in the first session interface when the target organization's instant messaging application account is removed from the cross-organization address book.
17. The apparatus according to claim 13, characterized in that, The account addition module is also used to display a second push message on the third session interface; the second push message includes at least one of a second prompt statement or an introductory statement; the second prompt statement is a statement indicating that an account for the connected organization's instant messaging application already exists; The introductory statement is a statement that introduces the cross-organizational address book; it triggers the organization's instant messaging application to display a third push message on the connected organization's instant messaging application account; The third push message includes a third prompt statement, which is a statement that prompts that a new session member has been added to the cross-organization address book.
18. The apparatus according to claim 17, characterized in that, The third push message also includes a member node viewing element; the member node viewing element is used to trigger the display of the organization node tree corresponding to the cross-organization address book pointed to by the joining event, and to display the node location of the first organization instant messaging application account in the organization node tree.
19. The apparatus according to claim 13, characterized in that, The account addition module is also used to display custom conversation messages sent by the connected organization's instant messaging application account on the third conversation interface; the custom conversation messages include statements welcoming second conversation members to the cross-organization address book.
20. A task processing device, characterized in that, The device includes: The account determination module is used to, when multiple custom session message sending tasks are obtained, determine, for each of the multiple custom session message sending tasks, the interfacing organization instant messaging application account used to send the custom session message pointed to by the corresponding custom session message sending task; and set the determined interfacing organization instant messaging application account as the interfacing organization instant messaging application account corresponding to the corresponding custom session message sending task; the custom session message sending task is generated in response to an add event of an organization instant messaging application account being added to a cross-organization address book, when the organization instant messaging application account is added to the cross-organization address book pointed to by the add event. The clustering module is used to cluster the multiple custom session message sending tasks according to the instant messaging application accounts of the docking organizations corresponding to each task, and obtain at least one cluster. The serial processing module is used to serially process the custom session message sending task in each of the at least one cluster clusters, so as to send the corresponding custom session message to the corresponding organizational instant messaging application account added to the cross-organization address book, and trigger the display of the custom session message in the third session interface between the organizational instant messaging application account added to the cross-organization address book and the corresponding docking organizational instant messaging application account.
21. The apparatus according to claim 20, characterized in that, The account determination module is also used to receive a batch add request initiated by the terminal for the cross-organization address book; the batch add request carries instant messaging application accounts of the organizations to be added through the terminal in batches; When adding selected organizational instant messaging application accounts to the cross-organization address book according to the batch add request, a custom session message sending task is generated for each newly added organizational instant messaging application account in the cross-organization address book.
22. The apparatus according to claim 21, characterized in that, Each newly added organizational instant messaging application account to the cross-organizational address book is designated as the target newly added organizational instant messaging application account; the account determination module is also used to determine the inviting organizational instant messaging application account that initiated the batch invitation request when the batch addition request is a batch invitation request, and to designate the inviting organizational instant messaging application account as the matching organizational instant messaging application account corresponding to the target newly added organizational instant messaging application account. Based on the target newly joined organization's instant messaging application account and the corresponding docking organization's instant messaging application account, generate a custom session message sending task corresponding to the target newly joined organization's instant messaging application account.
23. The apparatus according to claim 22, characterized in that, The account determination module is also used to determine whether the cross-organization address book has an organization instant messaging application account when the batch add request is not a batch invite request; When a management organization instant messaging application account exists, the management organization instant messaging application account is used as the interface organization instant messaging application account corresponding to the target newly joined organization instant messaging application account. Based on the target newly joined organization's instant messaging application account and the corresponding docking organization's instant messaging application account, generate a custom session message sending task corresponding to the target newly joined organization's instant messaging application account.
24. The apparatus according to claim 20, characterized in that, The serial processing module is also used to determine, for each custom session message sending task in the targeted cluster, the number of custom session messages sent by the corresponding instant messaging application account of the docking organization within the current statistical period. If the number of times is less than a preset threshold, a custom session message is sent to the instant messaging application account of the interface organization corresponding to the current custom session message sending task.
25. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 12.
26. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.
27. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Interface display method and electronic equipment
CN113596256A