Group chat creation method and device

Through the automated group chat creation process, the requirements management platform is used to obtain information and automatically create group chats according to requirements, which solves the cumbersome and time-consuming problem of group chat creation in the existing technology, improves the efficiency and accuracy of group chat creation, and meets the satisfaction of Communication and collaboration needs of different business needs.

CN119420721APending Publication Date: 2025-02-11KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411717171.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In the existing technology, the creation process of group chats is cumbersome and time-consuming, which is prone to omissions and affects efficiency. When there are too many group chats created during the demand management process, it is difficult to quickly locate the corresponding group chats.

Method used

By obtaining demand information from the demand management platform, automatically creating group chats, reducing the errors and time costs caused by human operations. The specific steps include: obtaining requirements information, determining the name of the group to be created, finding out whether the same group name exists in the database, and creating a group if it does not exist, and adding relevant personnel to the group.

Benefits of technology

It improves the efficiency and accuracy of group chat creation, reduces the errors and time costs caused by human operations, makes demand communication more smooth and efficient, avoids the waste of repeated group creation, and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420721A_ABST
    Figure CN119420721A_ABST
Patent Text Reader

Abstract

The invention provides a group chat creation method and device. The method comprises the following steps: acquiring demand information from a demand management platform; according to the demand information, a to-be-created group name is determined, and the to-be-created group name is generated according to a demand identifier of the demand information; searching a database according to the to-be-created group name, and determining whether a group name consistent with the to-be-created group name exists in the database; wherein the group name in the database is the name of the group successfully created based on the demand; and creating a group according to the demand information and the name of the to-be-created group on the basis that the group name consistent with the name of the to-be-created group does not exist in the database. According to the method and the device, the database is searched through the acquired demand information to determine whether the corresponding group is created or not, so that the waste of repeatedly creating the group is avoided, the corresponding group chat is automatically created for each demand when the corresponding group name does not exist in the database, and the pertinence and the accuracy of group creation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a group chat creation method and device. Background Art

[0002] With the increasing development of mobile communications and Internet technologies, people can communicate with each other anytime and anywhere through applications installed in their electronic devices, and can even communicate with multiple people in the same conversation through group chat.

[0003] Currently, product requirements are usually proposed and recorded by relevant personnel in the requirements management platform. In order to facilitate communication and collaboration on requirements, users need to manually create group chats and invite relevant personnel to join. In addition, during the communication process, if new personnel need to participate, they also need to be manually added to the group chat, which is a cumbersome and inefficient process.

[0004] However, the above method of manually adding relevant personnel is rather cumbersome and time-consuming, especially when there are many people involved, omissions are prone to occur, which increases the complexity of communication and operation, affects efficiency, and has poor user experience; in addition, when there are many group chats created during the demand management process, if the user needs to quickly locate the current development demand group, they often face confusion and delays, and it is difficult to accurately find the corresponding group chat. Summary of the invention

[0005] The present invention provides a group chat creation method and device, which are used to solve the defects of manually creating group chats in the prior art that are cumbersome and time-consuming. By automatically creating group chats, the errors and time costs caused by manual operations are reduced, making demand communication smoother and more efficient.

[0006] The present invention provides a group chat creation method, comprising: acquiring demand information from a demand management platform; determining a name of a group to be created according to the demand information, wherein the name of the group to be created is generated according to a demand identifier of the demand information; searching a database according to the name of the group to be created, and determining whether there is a group name consistent with the name of the group to be created in the database; wherein the group name in the database is the name of a group successfully created based on the demand in advance; and creating a group according to the demand information and the name of the group to be created based on the fact that there is no group name consistent with the name of the group to be created in the database.

[0007] According to a group chat creation method provided by the present invention, based on the fact that a group name consistent with the name of the group to be created does not exist in the database, a group is created according to demand information and the name of the group to be created, including: based on the fact that a group name consistent with the name of the group to be created does not exist in the database, according to the demand information, obtaining the information of the person proposing the demand and the information of the person related to the demand; generating a first group creation request according to the name of the group to be created, the information of the person proposing the demand and the information of the person related to the demand; sending the first group creation request to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create the group; wherein the group is a group chat entity created by the server of the instant messaging platform according to the information of the person proposing the demand, the information of the person related to the demand and the name of the group to be created; receiving the first response information returned by the server based on the first group creation request, determining that the group creation is successful based on the first response information, and saving the name of the corresponding successfully created group into the database.

[0008] According to a group chat creation method provided by the present invention, based on the fact that a group name consistent with the name of a group to be created does not exist in a database, a group creation interface of an instant messaging platform is called to create a group, including: based on the fact that a group name consistent with the name of the group to be created does not exist in the database, according to the demand information, information of a person who proposes a demand is obtained; according to the name of the group to be created, the information of the person who proposes the demand and an API key of a virtual robot obtained in advance, a second group creation request is generated; the second group creation request is sent to a server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform according to the information of the person who proposes the demand, the API key of the virtual robot and the name of the group to be created; second response information returned by the server based on the second group creation request is received, and it is determined that the group creation is successful based on the second response information, and the name of the corresponding successfully created group is saved in the database.

[0009] According to a group chat creation method provided by the present invention, after receiving the second response information returned by the server based on the second group creation request, the method includes: obtaining the name of the successfully created group according to the second response information; calling the personnel removal interface of the instant messaging platform according to the name of the successfully created group to delete the virtual robot from the corresponding successfully created group; or, obtaining the name of the successfully created group according to the second response information; using an automated testing tool to simulate logging into the instant messaging platform, and locating the target group according to the name of the successfully created group; based on the target group, searching for the display item of the virtual robot in the group member list, and triggering the removal operation.

[0010] According to a group chat creation method provided by the present invention, after receiving the second response information returned by the server based on the second group creation request, it also includes: obtaining the name of the successfully created group according to the second response information; obtaining the demand-related personnel information in the corresponding demand information according to the name of the successfully created group; calling the personnel pulling interface of the instant messaging platform according to the name of the successfully created group and the demand-related personnel information, so as to locate the corresponding target group according to the name of the successfully created group, and add the corresponding demand-related personnel to the target group according to the demand-related personnel information.

[0011] According to a group chat creation method provided by the present invention, after the group is created, it also includes: monitoring the demand management platform, and when detecting the existence of target demand information, obtaining the target group name according to the target demand information; wherein the target demand information is used to characterize the demand information of personnel changes; if the target demand information includes new personnel information, then according to the target group name, determining whether there is a new person corresponding to the new personnel information in the corresponding group; based on the fact that there is no new person corresponding to the new personnel information in the corresponding group, then according to the new personnel information and the target group name, calling the personnel pulling interface of the instant messaging platform to add the corresponding new person to the corresponding group; if the target demand information includes reduced personnel information, then according to the reduced personnel information and the target group name, calling the personnel removal interface of the instant messaging platform to delete the corresponding reduced person from the corresponding group.

[0012] According to a group chat creation method provided by the present invention, after searching a database according to the name of the group to be created and determining whether there is a group name consistent with the name of the group to be created in the database, the method also includes: based on the existence of a group name consistent with the name of the group to be created in the database, calling the application programming interface API interface of the instant messaging platform according to the group name to send a preset message to the group corresponding to the group name to assist in locating the group chat.

[0013] The present invention also provides a group chat creation device, including: an information acquisition module, which acquires demand information from a demand management platform; a name determination module, which determines the name of a group to be created, wherein the name of the group to be created is generated according to the demand identifier of the demand information; a group judgment module, which searches a database according to the name of the group to be created, and determines whether there is a group name consistent with the name of the group to be created in the database; wherein the group name in the database is the name of a group that has been successfully created based on the demand; and a group creation module, which creates a group according to the demand information and the name of the group to be created, based on the fact that there is no group name consistent with the name of the group to be created in the database.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the group chat creation method described in any one of the above methods is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the group chat creation method as described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the group chat creation method described in any one of the above is implemented.

[0017] The group chat creation method and device provided by the present invention obtain demand information from a demand management platform, thereby avoiding repeated entry and manual transmission of information between different systems, improving the speed and accuracy of information acquisition, and quickly determining the name of the group to be created based on the demand information, reducing the uncertainty and time cost of manually determining the group name, and further determining whether a corresponding group name exists by searching a database, so as to quickly determine whether a new group needs to be created, avoiding the waste of repeated group creation, and improving resource utilization efficiency. When a corresponding group name does not exist in the database, a corresponding group is created, and on the basis of ensuring that the group is associated with the corresponding demand information, a corresponding group chat is automatically created for each demand, thereby improving the pertinence and accuracy of group creation, effectively improving the efficiency and quality of group creation, reducing the errors and time costs caused by manual operations, making demand communication smoother and more efficient, and meeting different business needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is a flow chart of the group chat creation method provided by the present invention; Figure 2 It is a structural schematic diagram of the group chat creation device provided by the present invention; Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] Figure 1 It is a flow chart of the group chat creation method provided by the present invention, such as Figure 1 As shown, the method includes: S11, obtaining demand information from the demand management platform; S12, determining a name of a group to be created according to the demand information, where the name of the group to be created is generated according to a demand identifier of the demand information; S13, searching a database according to the name of the group to be created to determine whether there is a group name in the database that is consistent with the name of the group to be created; wherein the group name in the database is the name of a group that was successfully created based on the demand in the past; S14, based on the fact that there is no group name consistent with the name of the group to be created in the database, create a group according to the demand information and the name of the group to be created.

[0022] It should be noted that the step numbers "S11-S14" in this specification do not represent the sequence of the group chat creation method. The group chat creation method of the present invention is described in detail below.

[0023] Step S11, obtaining demand information from the demand management platform.

[0024] In this embodiment, demand information is obtained from the demand management platform, including: monitoring the demand management platform to detect whether new demand information is added, and if so, obtaining the corresponding new demand information; or calling the application programming interface (API) of the demand management platform to obtain the demand information.

[0025] It should be added that the demand information includes the demand identification (ID), specific demand information, information about the person proposing the demand and information about people related to the demand. The demand identification is an identification generated after the person proposing the demand initiates a demand request based on the specific demand information, and is used to distinguish different demand information.

[0026] Step S12: determining the name of the group to be created according to the demand information, where the name of the group to be created is generated according to the demand identifier of the demand information.

[0027] In this embodiment, the name of the group to be created is determined based on the demand information, including: generating the name of the group to be created based on the demand identifier of the demand information. It should be added that when generating the name of the group to be created, the demand identifier can be directly used as the name of the group to be created, or the corresponding group name to be created can be generated by combining the demand identifier and the group name generation rule. Furthermore, the group name generation rule can be a group name generation rule of a specific instant messaging platform or a rule customized by the user based on actual naming requirements. For example, the demand identifier is xq12345. Assuming that the group name generation rule defines the group name in uppercase English, the corresponding name of the group to be created is XQ12345, which is not further limited here.

[0028] Step S13, searching a database according to the name of the group to be created to determine whether there is a group name in the database that is consistent with the name of the group to be created; wherein the group name in the database is the name of a group that has been successfully created based on demand.

[0029] In an optional embodiment, after searching the database according to the name of the group to be created and determining whether there is a group name consistent with the name of the group to be created in the database, it also includes: based on the existence of a group name consistent with the name of the group to be created in the database, calling the application programming interface API interface of the instant messaging platform according to the group name, so as to send a preset message to the group corresponding to the group name, to assist in locating the group chat.

[0030] It should be noted that if the corresponding group has been created in advance based on the demand information, the corresponding group can be found in the database when searching the database according to the name of the group to be created. At this time, in order to avoid the problem of difficulty in quickly locating the group in many group chats, the API interface is called to send a preset message to the corresponding group, so as to quickly find the group chat related to the current development needs, which greatly improves the management efficiency of the group chat. In addition, when the user needs to participate in a specific discussion or project, he does not have to spend a lot of time looking for the target group among many groups. The sending of the preset message plays a clear guiding role, allowing users to quickly focus on the relevant group chat, so as to exchange information and collaborate on tasks more efficiently. At the same time, it also helps to reduce the repeated creation of groups due to the inability to find groups, save system resources, and improve overall management efficiency.

[0031] In an optional embodiment, based on the fact that there is no group name consistent with the name of the group to be created in the database, before creating the group according to the demand information and the name of the group to be created, it includes: based on the virtual robot registration conditions of the instant messaging platform, corresponding configuration is performed in the management background, the virtual robot and its API key are obtained, and the API key is stored in a pre-specified location, so as to facilitate the subsequent reading of the API key from the location to call the corresponding virtual robot.

[0032] Furthermore, the method also includes: based on a preset period, regularly checking the validity of the API key, for example, by sending a test request to verify whether the virtual robot can respond normally. If it cannot respond normally, the API key is invalid, and the API key is re-obtained and updated in time.

[0033] Step S14: based on the fact that there is no group name consistent with the name of the group to be created in the database, a group is created according to the demand information and the name of the group to be created.

[0034] In an optional embodiment, since the creation of a group chat requires at least two members, a group chat can be created based on the person who proposed the demand and the virtual robot. Accordingly, based on the fact that there is no group name consistent with the name of the group to be created in the database, a group is created according to the demand information and the name of the group to be created, including: based on the fact that there is no group name consistent with the name of the group to be created in the database, according to the demand information, the information of the person who proposed the demand is obtained; according to the name of the group to be created, the information of the person who proposed the demand and the API key of the virtual robot obtained in advance, a second group creation request is generated; the second group creation request is sent to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform according to the information of the person who proposed the demand, the API key of the virtual robot and the name of the group to be created; the second response information returned by the server based on the second group creation request is received, and it is determined that the group creation is successful based on the second response information, and the name of the corresponding successfully created group is saved in the database.

[0035] Furthermore, before generating the second group creation request, it also includes: obtaining an access token of the instant messaging platform, and when generating the second group creation request, generating a corresponding second group creation request in combination with the access token of the instant messaging platform, so that the instant messaging platform server can perform identity verification and authority check on the access token to ensure that only legitimate users or applications can create groups, so as to prevent unauthorized access and malicious group creation, improve the security of the system, and use the virtual robot's API key, the information of the person who makes the request and the group name after identity verification to create a group, while reducing the risk of API keys being abused or leaked, ensuring that the creation of groups is more standardized and orderly, avoiding confusion and repeated creation, and realizing the creation of different groups according to different demand information, ensuring the flexibility of group creation.

[0036] In addition, the second response information includes the group creation status and the name of the corresponding group. Based on the second response information, it is determined that the group creation is successful, and the name of the corresponding successfully created group is saved in the database, including: determining whether the group is successfully created according to the group creation status, and if the group is successfully created, storing the name of the successfully created group in the database.

[0037] Furthermore, the second response information also includes a group identifier generated based on the successful creation of the group. The group identifier is generated by the instant messaging platform based on its own identifier generation rules, and can generally be a randomly generated character sequence to generate a unique identifier for the corresponding group. Accordingly, when the name of the successfully created group is stored in the database, the group identifier can be stored in the database together, and the group identifier can be associated with the corresponding demand information, so that if the user adjusts the group name after the group is successfully created, when the demand is subsequently monitored to change, the corresponding group can also be located based on the group identifier, thereby quickly and accurately locating the group.

[0038] It is worth noting that the second group creation request can use a Hypertext Transfer Protocol (HTTP) request. When sending an HTTP request to the server on the instant messaging platform, the API key of the virtual robot can be passed as part of the request header to avoid the risk of the API key being obtained by a third party through network sniffing, etc., which may be caused by passing the key in the uniform resource locator (URL). The corresponding API key can be updated by modifying the value in the request header in the request code without large-scale modification of the URL or request body, making key management more convenient and flexible.

[0039] In addition, by sending HTTP requests to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group, and using standardized network communication protocols to interact with the instant messaging platform, efficient and convenient integration of instant messaging resources can be achieved, thereby achieving the effect of quickly establishing communication channels and improving team collaboration efficiency, meeting the usage needs of different users on various operating systems and devices.

[0040] In addition, when creating a group, the person who raises the demand is designated as the group owner, and the virtual robot as the group member. A group chat entity is created according to the group name to obtain the corresponding group, so as to clarify the leader and auxiliary participants of the group, give full play to the initiative and sense of responsibility of the person who raises the demand, and realize the orderly development of the group chat around specific needs. The addition of virtual robots enriches the functions and resources of the group chat, and provides group members with more convenient services and support effects.

[0041] Furthermore, in order to avoid unnecessary interference of virtual robots in group chat or information overload caused by frequent message sending by virtual robots, after receiving the second response information returned by the server based on the second group creation request, it includes: obtaining the name of the successfully created group according to the second response information; calling the personnel removal interface of the instant messaging platform according to the name of the successfully created group to delete the virtual robot from the corresponding successfully created group; or, obtaining the name of the successfully created group according to the second response information; using an automated testing tool to simulate logging into the instant messaging platform, and locating the target group according to the name of the successfully created group; based on the target group, searching for the display item of the virtual robot in the group member list, and triggering the removal operation.

[0042] It should be added that, according to the name of the successfully created group, the personnel removal interface of the instant messaging platform is called to delete the virtual robot from the corresponding successfully created group, including: obtaining the instant messaging platform identifier of the corresponding virtual robot according to the name of the successfully created group; generating a member removal request according to the name of the successfully created group and the instant messaging platform identifier of the virtual robot; sending the member removal request to the server to call the personnel removal interface of the instant messaging platform to delete the virtual robot from the corresponding successfully created group; receiving the processing result returned by the server based on the response to the member removal request. In addition, the automated testing tool can adopt an automated tool such as SeleniumWEB, which can be selected according to actual use requirements and is not further limited here.

[0043] Furthermore, the processing result is generated after the server locates the corresponding group based on the name of the successfully created group in the member removal request, and traverses the group member list based on the instant messaging platform identifier of the virtual robot to delete the virtual robot from the group member list. The processing result includes a status code indicating whether the operation is successful and possible error information, etc.

[0044] In addition, after receiving the second response information returned by the server based on the second group creation request, it also includes: obtaining the name of the successfully created group according to the second response information; obtaining the demand-related personnel information in the corresponding demand information according to the name of the successfully created group; calling the personnel pulling interface of the instant messaging platform according to the name of the successfully created group and the demand-related personnel information, so as to locate the corresponding target group according to the name of the successfully created group, and add the corresponding demand-related personnel to the target group according to the demand-related personnel information. It should be noted that by calling the personnel pulling interface of the instant messaging platform to automatically pull the related personnel in the demand management platform into the group chat, the problem of missing personnel due to manual addition is avoided, thereby ensuring the integrity of information transmission in the group chat, further avoiding poor information flow and work delays, simplifying the operation process, and making demand communication smoother and more efficient.

[0045] Furthermore, based on the name of the successfully created group and the required relevant personnel information, the personnel pulling interface of the instant messaging platform is called, including: generating a personnel adding request based on the name of the successfully created group and the required relevant personnel; sending the personnel adding request to the server of the instant messaging platform to call the personnel pulling interface of the instant messaging platform to locate the corresponding target group based on the name of the successfully created group, and based on the required relevant personnel information, search for the corresponding user in the user system of the instant messaging platform, and determine whether the corresponding user meets the group joining conditions, and based on meeting the group joining conditions, add the corresponding user to the corresponding group member list.

[0046] It should be added that the group joining conditions can be configured according to the actual demand information involved and the factors considered for joining the group. For example, in order to avoid repeated addition of people to the group, the group joining condition can be that the corresponding user does not exist in the current group, etc., which is not further limited here.

[0047] In another optional embodiment, based on the fact that there is no group name consistent with the name of the group to be created in the database, a group is created according to the demand information and the name of the group to be created, including: based on the fact that there is no group name consistent with the name of the group to be created in the database, obtaining the information of the person who proposed the demand and the information of the person related to the demand according to the demand information; generating a first group creation request according to the name of the group to be created, the information of the person who proposed the demand and the information of the person related to the demand; sending the first group creation request to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform according to the information of the person who proposed the demand, the information of the person related to the demand and the name of the group to be created; receiving the first response information returned by the server based on the first group creation request, determining that the group creation is successful based on the first response information, and saving the name of the corresponding successfully created group into the database.

[0048] It should be noted that when creating a group, the person who raises the demand will be designated as the group owner, and the people related to the demand will be designated as group members. According to the group name, a group chat entity will be created to obtain the corresponding group, so as to avoid the additional introduction of virtual robots, avoid virtual robots interfering with the normal progress of group chat, and avoid the possibility of virtual robots leaking the privacy of group members.

[0049] In addition, when generating the first group creation request, the access token of the instant messaging platform can also be generated. For details, refer to the above description of generating the second group creation request in combination with the access token of the instant messaging platform. The first corresponding information can also refer to the above description of the second response information configuration, which will not be repeated here.

[0050] In an optional embodiment, after creating a group, it also includes: monitoring the demand management platform, and when detecting the existence of target demand information, obtaining the target group name according to the target demand information; wherein the target demand information is used to characterize the demand information of personnel changes; if the target demand information includes new personnel information, then according to the target group name, determining whether there is a new personnel corresponding to the new personnel information in the corresponding group; based on the fact that there is no new personnel corresponding to the new personnel information in the corresponding group, then according to the new personnel information and the target group name, calling the personnel pulling interface of the instant messaging platform to add the corresponding new personnel to the corresponding group; if the target demand information includes reduced personnel information, then according to the reduced personnel information and the target group name, calling the personnel removal interface of the instant messaging platform to delete the corresponding reduced personnel from the corresponding group.

[0051] It should be noted that by monitoring the demand management platform, the corresponding group can be updated in time according to the changed demand information, so as to ensure that the group is always consistent with the actual demand and improve the efficiency and accuracy of communication and collaboration. On the one hand, when there are new personnel, they can be included in the relevant discussion group in time to ensure that all demand-related personnel can join the group chat in time, reduce the update delay of group chat personnel, and make demand communication smoother and more efficient; on the other hand, when the number of personnel is reduced, the group can be cleaned up in time to ensure the simplicity and pertinence of the group, reduce unnecessary interference and confusion, and also help to better manage and maintain group resources. Group chat members can be dynamically managed without manual operation, reducing the tediousness of manual operation, improving management efficiency and the overall workflow and project management level.

[0052] In addition, when the target demand information is to add new personnel, the target group can be quickly located according to the group name to determine whether the corresponding new personnel exist in the corresponding group, so as to accurately judge whether the new personnel are already in the group chat, thereby avoiding repeated additions, reducing unnecessary operations, and optimizing the group chat management process.

[0053] In summary, the embodiments of the present invention obtain demand information from the demand management platform, thereby avoiding repeated entry and manual transmission of information between different systems, improving the speed and accuracy of information acquisition, and quickly determining the name of the group to be created based on the demand information, reducing the uncertainty and time cost of manually determining the group name, and further determining whether there is a corresponding group name by searching the database, so as to quickly determine whether a new group needs to be created, avoiding the waste of repeated group creation, and improving resource utilization efficiency. When the corresponding group name does not exist in the database, the corresponding group is created. On the basis of ensuring that the group is associated with the corresponding demand information, a corresponding group chat is automatically created for each demand, thereby improving the pertinence and accuracy of group creation, effectively improving the efficiency and quality of group creation, reducing the errors and time costs caused by manual operations, making demand communication smoother and more efficient, and meeting different business needs.

[0054] The group chat creation device provided by the present invention is described below. The group chat creation device described below and the group chat creation method described above can be referenced to each other.

[0055] Figure 2 A schematic diagram of the structure of a group chat creation device is shown, the device comprising: An information acquisition module 21 acquires demand information from a demand management platform; A name determination module 22 determines the name of the group to be created according to the demand information, where the name of the group to be created is generated according to the demand identifier of the demand information; The group determination module 23 searches the database according to the name of the group to be created to determine whether there is a group name in the database that is consistent with the name of the group to be created; wherein the group name in the database is the name of the group that was successfully created based on the demand in the past; The group creation module 24 creates a group according to the demand information and the name of the group to be created, based on the fact that there is no group name consistent with the name of the group to be created in the database.

[0056] In this embodiment, the information acquisition module 21 includes: a demand information acquisition unit, which monitors the demand management platform to detect whether new demand information is added, and if so, obtains the corresponding new demand information; or, the demand information acquisition unit, which calls the application programming interface (API) of the demand management platform to obtain the demand information.

[0057] The name determination module 22 is used to generate a name of the group to be created according to the demand identifier of the demand information.

[0058] In an optional embodiment, the device further includes: a group chat positioning module, which searches the database according to the name of the group to be created, and after determining whether there is a group name consistent with the name of the group to be created in the database, based on the existence of a group name consistent with the name of the group to be created in the database, calls the application programming interface API interface of the instant messaging platform according to the group name, so as to send a preset message to the group corresponding to the group name, to assist in locating the group chat.

[0059] In an optional embodiment, the device also includes: a robot configuration module, based on the fact that there is no group name consistent with the name of the group to be created in the database, before creating the group, based on the virtual robot registration conditions of the instant messaging platform, corresponding configuration is performed in the management background, and the virtual robot and its API key are obtained, and the API key is stored in a pre-specified location, so as to facilitate the subsequent reading of the API key from the location to call the corresponding virtual robot.

[0060] Furthermore, the device also includes: a key checking module, which regularly checks the validity of the API key based on a preset period. For example, it can send a test request to verify whether the virtual robot can respond normally. If it cannot respond normally, the API key is invalid, and the API key is re-obtained and updated in time.

[0061] In an optional embodiment, the group creation module 24 includes: a personnel information acquisition unit, which obtains the personnel information proposed by the demand based on the demand information based on the fact that there is no group name consistent with the name of the group to be created in the database; a request generation unit, which generates a second group creation request based on the name of the group to be created, the personnel information proposed by the demand and the API key of the virtual robot obtained in advance; a request sending unit, which sends the second group creation request to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform based on the personnel information proposed by the demand, the API key of the virtual robot and the name of the group to be created; a response processing unit, which receives the second response information returned by the server based on the second group creation request, determines that the group creation is successful based on the second response information, and saves the name of the corresponding successfully created group into the database.

[0062] Furthermore, the group creation module 24 is also used to: obtain an access token of the instant messaging platform before generating a second group creation request, and when generating the second group creation request, generate a corresponding second group creation request in combination with the access token of the instant messaging platform, so that the instant messaging platform server can perform identity verification and authority check on the access token to ensure that only legitimate users or applications can create groups, thereby preventing unauthorized access and malicious group creation, and improving the security of the system.

[0063] In addition, the second response information includes the group creation status and the name of the corresponding group. The response processing unit is further used to: determine whether the group is created successfully according to the group creation status, and if the group is created successfully, store the name of the successfully created group in the database.

[0064] Furthermore, the second response information also includes a group identifier generated based on the successful creation of the group. The group identifier is generated by the instant messaging platform based on its own identifier generation rules, and can generally be a randomly generated character sequence to generate a unique identifier for the corresponding group. Accordingly, when the response processing unit stores the name of the successfully created group in the database, the group identifier can be stored in the database together, and the group identifier can be associated with the corresponding demand information, so that if the user adjusts the group name after the group is successfully created, when the demand is subsequently monitored to change, the corresponding group can also be located based on the group identifier, thereby quickly and accurately locating the group.

[0065] Furthermore, the group creation module 24 also includes: a member removal unit, after receiving the second response information returned by the server based on the second group creation request, obtains the name of the successfully created group according to the second response information; according to the name of the successfully created group, calls the personnel removal interface of the instant messaging platform to delete the virtual robot from the corresponding successfully created group; or, a group name determination unit, obtains the name of the successfully created group according to the second response information; a group chat positioning unit, using an automated testing tool to simulate logging into the instant messaging platform, and locates the target group according to the name of the successfully created group; a member removal unit, based on the target group, searches for the display item of the virtual robot in the group member list, and triggers the removal operation.

[0066] It should be added that the member removal unit includes: an identification acquisition sub-unit, which obtains the instant messaging platform identification of the corresponding virtual robot according to the name of the successfully created group; a removal request generation unit, which generates a member removal request according to the name of the successfully created group and the instant messaging platform identification of the virtual robot; a deletion request sending unit, which sends the member removal request to the server to call the personnel removal interface of the instant messaging platform to delete the virtual robot from the corresponding successfully created group; and a result receiving unit, which receives the processing result returned by the server based on the response to the member removal request.

[0067] Furthermore, the processing result is generated after the server locates the corresponding group based on the name of the successfully created group in the member removal request, and traverses the group member list based on the instant messaging platform identifier of the virtual robot to delete the virtual robot from the group member list. The processing result includes a status code indicating whether the operation is successful and possible error information, etc.

[0068] In addition, the group creation module 24 also includes: a group name acquisition unit, which obtains the name of the successfully created group according to the second response information after receiving the second response information returned by the server based on the second group creation request; a member information acquisition unit, which obtains the demand-related personnel information in the corresponding demand information according to the name of the successfully created group; a member pulling unit, which calls the personnel pulling interface of the instant messaging platform according to the name of the successfully created group and the demand-related personnel information, so as to locate the corresponding target group according to the name of the successfully created group, and add the corresponding demand-related personnel to the target group according to the demand-related personnel information.

[0069] Furthermore, the member pulling unit is used to: generate a personnel adding request according to the name of the successfully created group and the required related personnel; send the personnel adding request to the server of the instant messaging platform to call the personnel pulling interface of the instant messaging platform to locate the corresponding target group according to the name of the successfully created group, and search for the corresponding user in the user system of the instant messaging platform according to the required related personnel information, and determine whether the corresponding user meets the group joining conditions, and based on meeting the group joining conditions, add the corresponding user to the corresponding group member list.

[0070] In another optional embodiment, the group creation module 24 includes: a personnel information acquisition unit, which obtains the personnel information proposing the demand and the personnel information related to the demand based on the fact that there is no group name consistent with the name of the group to be created in the database; a request generation unit, which generates a first group creation request based on the name of the group to be created, the personnel information proposing the demand and the personnel information related to the demand; a request sending unit, which sends the first group creation request to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform based on the personnel information proposing the demand, the personnel information related to the demand and the name of the group to be created; a response processing unit, which receives the first response information returned by the server based on the first group creation request, determines that the group creation is successful based on the first response information, and saves the name of the corresponding successfully created group into the database.

[0071] In an optional embodiment, the device further includes: a monitoring module, which monitors the demand management platform after creating the group, and when detecting the existence of target demand information, obtains the target group name according to the target demand information; wherein the target demand information is used to characterize the demand information of personnel changes; a search module, which, if the target demand information includes new personnel information, determines, according to the target group name, whether there is a new person corresponding to the new personnel information in the corresponding group; a member pulling module, which, based on the absence of the new person corresponding to the new personnel information in the corresponding group, calls the personnel pulling interface of the instant messaging platform according to the new personnel information and the target group name, so as to add the corresponding new person to the corresponding group; a member deletion module, which, if the target demand information includes reduced personnel information, calls the personnel removal interface of the instant messaging platform according to the reduced personnel information and the target group name, so as to delete the corresponding reduced person from the corresponding group.

[0072] In summary, the embodiments of the present invention obtain demand information from the demand management platform, thereby avoiding repeated entry and manual transmission of information between different systems, improving the speed and accuracy of information acquisition, and quickly determining the name of the group to be created based on the demand information, reducing the uncertainty and time cost of manually determining the group name, and further determining whether there is a corresponding group name by searching the database, so as to quickly determine whether a new group needs to be created, avoiding the waste of repeated group creation, and improving resource utilization efficiency. When the corresponding group name does not exist in the database, the corresponding group is created. On the basis of ensuring that the group is associated with the corresponding demand information, a corresponding group chat is automatically created for each demand, thereby improving the pertinence and accuracy of group creation, effectively improving the efficiency and quality of group creation, reducing the errors and time costs caused by manual operations, making demand communication smoother and more efficient, and meeting different business needs.

[0073] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 complete mutual communication through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the group chat creation method, which includes: obtaining demand information from the demand management platform; determining the name of the group to be created according to the demand information, wherein the name of the group to be created is generated according to the demand identifier of the demand information; searching the database according to the name of the group to be created, and determining whether there is a group name consistent with the name of the group to be created in the database; wherein the group name in the database is the name of the group successfully created based on the demand; and creating a group according to the demand information and the name of the group to be created based on the fact that there is no group name consistent with the name of the group to be created in the database.

[0074] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0075] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the group chat creation method provided by the above methods, and the method includes: obtaining demand information from a demand management platform; determining the name of a group to be created based on the demand information, and the name of the group to be created is generated based on the demand identifier of the demand information; searching a database based on the name of the group to be created to determine whether there is a group name consistent with the name of the group to be created in the database; wherein the group name in the database is the name of a group that has been successfully created based on the demand; based on the fact that there is no group name consistent with the name of the group to be created in the database, creating a group based on the demand information and the name of the group to be created.

[0076] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the group chat creation method provided by the above-mentioned methods, the method comprising: obtaining demand information from a demand management platform; determining a name of a group to be created based on the demand information, the name of the group to be created being generated based on a demand identifier of the demand information; searching a database based on the name of the group to be created to determine whether there is a group name consistent with the name of the group to be created in the database; wherein the group name in the database is the name of a group that has been successfully created based on the demand; based on the fact that there is no group name consistent with the name of the group to be created in the database, creating a group based on the demand information and the name of the group to be created.

[0077] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A group chat creation method, characterized in that: include: Obtain demand information from the demand management platform; Determine, according to the demand information, a name of a group to be created, wherein the name of the group to be created is generated according to a demand identifier of the demand information; According to the name of the group to be created, searching a database to determine whether there is a group name in the database that is consistent with the name of the group to be created; wherein the group name in the database is the name of a group that was successfully created based on the demand in the past; Based on the fact that there is no group name consistent with the name of the group to be created in the database, a group is created according to the demand information and the name of the group to be created.

2. The group chat creation method according to claim 1, characterized in that: Based on the fact that there is no group name consistent with the name of the group to be created in the database, creating a group according to the requirement information and the name of the group to be created, including: Based on the fact that there is no group name in the database that is consistent with the name of the group to be created, obtaining information about a person who proposes a demand and information about persons related to the demand according to the demand information; Generate a first group creation request according to the name of the group to be created, the information of the person proposing the requirement and the information of the person related to the requirement; Sending the first group creation request to the server of the instant messaging platform to call the group creation interface of the instant messaging platform to create a group; wherein the group is a group chat entity created by the server of the instant messaging platform according to the personnel information proposed by the requirement, the personnel information related to the requirement and the name of the group to be created; The first response information returned by the server based on the first group creation request is received, and based on the first response information, it is determined that the group is created successfully, and the name of the successfully created group is saved in the database.

3. The group chat creation method according to claim 1, characterized in that: Based on the fact that there is no group name in the database that is consistent with the name of the group to be created, calling a group creation interface of the instant messaging platform to create a group includes: Based on the fact that there is no group name in the database that is consistent with the name of the group to be created, obtaining the information of the person who proposed the demand according to the demand information; Generate a second group creation request according to the name of the group to be created, the information of the person making the request, and the previously acquired API key of the virtual robot; Sending a second group creation request to the server of the instant messaging platform to create a group by calling the group creation interface of the instant messaging platform; wherein the group is a group chat entity created by the server of the instant messaging platform according to the requirements by providing personnel information, the API key of the virtual robot and the name of the group to be created; The second response information returned by the server based on the second group creation request is received, and based on the second response information, it is determined that the group is created successfully, and the name of the successfully created group is saved in the database.

4. The group chat creation method according to claim 3, characterized in that: After receiving the second response information returned by the server based on the second group creation request, the method includes: According to the second response information, obtain the name of the successfully created group; According to the name of the successfully created group, calling the personnel removal interface of the instant messaging platform to delete the virtual robot from the corresponding successfully created group; or, According to the second response information, obtain the name of the successfully created group; Using an automated testing tool, simulating logging into the instant messaging platform, and locating a target group according to the name of the successfully created group; Based on the target group, the display item of the virtual robot is searched in the group member list, and a removal operation is triggered.

5. The group chat creation method according to claim 3, characterized in that: After receiving the second response information returned by the server based on the second group creation request, the method further includes: According to the second response information, obtain the name of the successfully created group; According to the name of the successfully created group, obtaining the demand-related personnel information in the corresponding demand information; According to the name of the successfully created group and the demand-related personnel information, the personnel pulling interface of the instant messaging platform is called to locate the corresponding target group according to the name of the successfully created group, and add the corresponding demand-related personnel to the target group according to the demand-related personnel information.

6. The group chat creation method according to claim 1, characterized in that: After creating the group, also include: Monitoring the demand management platform, and when detecting the existence of target demand information, obtaining the target group name according to the target demand information; wherein the target demand information is used to represent the demand information of personnel changes; If the target demand information includes new personnel information, determining whether there is a new personnel corresponding to the new personnel information in the corresponding group according to the target group name; Based on the fact that the new person corresponding to the new person information does not exist in the corresponding group, calling the person pulling interface of the instant messaging platform according to the new person information and the target group name to add the corresponding new person to the corresponding group; If the target demand information includes reduced personnel information, then according to the reduced personnel information and the target group name, the personnel removal interface of the instant messaging platform is called to delete the corresponding reduced personnel from the corresponding group.

7. The group chat creation method according to claim 1, characterized in that: After searching a database according to the name of the group to be created to determine whether there is a group name consistent with the name of the group to be created in the database, the method further includes: Based on the existence of a group name in the database that is consistent with the name of the group to be created, the application programming interface API of the instant messaging platform is called according to the group name to send a preset message to the group corresponding to the group name to assist in locating the group chat.

8. A group chat creation device, characterized in that: include: Information acquisition module, which obtains demand information from the demand management platform; A name determination module determines a name of a group to be created, wherein the name of the group to be created is generated according to a demand identifier of the demand information; A group determination module searches a database according to the name of the group to be created to determine whether there is a group name in the database that is consistent with the name of the group to be created; wherein the group name in the database is the name of a group that was successfully created based on the demand in the past; The group creation module creates a group according to the demand information and the name of the group to be created, based on the fact that there is no group name consistent with the name of the group to be created in the database.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the group chat creation method according to any one of claims 1 to 7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the group chat creation method according to any one of claims 1 to 7 is implemented.