5g message access method and system for private network chatbot
By implementing message parsing and media resource pulling mechanisms in the 5G messaging system, private network Chatbot is allowed to access resources outside the local 5G messaging area, solving the problem of dedicated line access restrictions, realizing full network services and secure access, and reducing access costs.
Patent Information
- Application Number
- PCT/CN2023/139595
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2023-12-18
- Publication Date
- 2024-10-31
AI Technical Summary
The existing 5G messaging specifications cannot meet the secure access requirements for Chatbots in some fields. As a result, Chatbots with dedicated line access can only access the resources of this 5G messaging area, which limits its service capabilities and increases access costs, making it difficult to Serve all network users.
By implementing message parsing and media resource pulling mechanisms in the message access platform and file server, private network Chatbot is allowed to access media resources in non-local 5G message areas, and by pulling media resources from other 5G message areas and updating URLs, Enable private network Chatbot to access media resources across the entire network.
This enables the private network Chatbot to access the media resources of the entire network without any awareness, improving its service capabilities and access flexibility, reducing access costs, and meeting secure access requirements.
Smart Images

Figure CN2023139595_31102024_PF_FP_ABST
Abstract
Description
5G message access method and system for private network chatbot
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on Chinese patent application CN2023104722364, filed on April 25, 2023, entitled “5G Message Access Method and System for Private Network Chatbot”, and claims the priority of the patent application, and all the disclosed contents are incorporated into this application by reference. Technical Field
[0003] The embodiments of the present disclosure relate to the field of communications, and more specifically, to a 5G message access method and system for a private network chatbot. Background Art
[0004] At present, Chatbot (chat robot) messaging services account for a large proportion of 5G messaging applications, and applications in many fields have begun to support Chatbot access.
[0005] The current 5G messaging specification stipulates that while the messaging platform system is built by region, chatbots can access the system from any region and serve users across the entire network. Furthermore, the specification also requires that chatbots access the system via the internet. However, chatbots in some sectors have security requirements for access from carriers: they cannot have internet addresses or internet access, and access to carrier systems cannot occur over the internet, requiring dedicated lines. Clearly, the current specification's chatbot access requirements cannot meet the security requirements of these sectors.
[0006] However, if these chatbots are connected directly using dedicated lines, they can only access resources (especially media files) within their own 5G messaging zone and serve users in that zone, limiting their service capabilities. To serve the entire network, they would need to establish dedicated lines to connect to other zones, increasing chatbot access costs and limiting their enthusiasm for integrating into the 5G messaging system.
[0007] Summary of the Invention
[0008] The disclosed embodiments provide a 5G message access method and system for a private network chatbot, so as to at least solve the problem in related technologies that a chatbot with dedicated line access can only access media resources in the region.
[0009] According to one embodiment of the present disclosure, a 5G message access for a private network chatbot is provided, including: receiving a message from a terminal forwarded by a 5G message center; when it is determined that the interactive Chatbot of the message is a private network Chatbot, parsing the message to obtain first media information in the message; when the media resources corresponding to the first media information do not belong to the current 5G message zone, pulling the media resources from other 5G message zones to the current 5G message zone; updating the first media information in the message to second media information corresponding to the media resources of the current 5G message zone, and forwarding the message to the private network Chatbot, so that the private network Chatbot can access the media resources of the current 5G message zone according to the second media information.
[0010] According to another embodiment of the present disclosure, a 5G message access system for a private network chatbot is provided, including: a message access platform, configured to receive messages from a terminal forwarded by a 5G message center, and, when determining that the interactive Chatbot of the message is a private network Chatbot, parse the message to obtain first media information in the message; a file server, configured to pull the media resources from other 5G message regions to the current 5G message region when the media resources corresponding to the first media information do not belong to the current 5G message region; the message access platform is also configured to update the first media information in the message to second media information corresponding to the media resources of the current 5G message region, and forward the message to the private network Chatbot, so that the private network Chatbot can access the media resources of the current 5G message region according to the second media information.
[0011] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0012] According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG1 is a hardware structure block diagram of a network device for running a private network chatbot 5G message access method according to an embodiment of the present disclosure;
[0014] FIG2 is a structural block diagram of a 5G messaging system according to an embodiment of the present disclosure;
[0015] FIG3 is a flowchart of a 5G message access method of a private network chatbot according to an embodiment of the present disclosure;
[0016] FIG4 is a structural block diagram of a 5G message access system of a private network chatbot according to an embodiment of the present disclosure;
[0017] FIG5 is a structural block diagram of a 5G message system according to another embodiment of the present disclosure;
[0018] FIG6 is a 5G message access method supporting private network Chatbot access according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0021] The method embodiments provided in the embodiments of the present application can be executed in a network device or a similar computing device. Taking operation on a network device as an example, Figure 1 is a hardware structure block diagram of a network device for running a 5G message access method of a private network chatbot Chatbot in an embodiment of the present disclosure. As shown in Figure 1, the network device may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Microprocessing Unit, MPU) or a programmable logic device (Field Programmable Gate Array, FPGA)) and a memory 104 configured to store data, wherein the above-mentioned network device may also include a transmission device 106 and an input and output device 108 configured to have a communication function. It can be understood by those skilled in the art that the structure shown in Figure 1 is only for illustration and does not limit the structure of the above-mentioned network device. For example, the network device may also include more or fewer components than shown in Figure 1, or have a configuration different from that shown in Figure 1.
[0022] The memory 104 can be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the 5G message access method of the private network chatbot chatbot in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to a network device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0023] The transmission device 106 is configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a communications provider of the network device. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
[0024] The embodiment of the present application can run on the 5G message system architecture shown in Figure 2. As shown in Figure 2, the 5G message system architecture includes: Chatbot, region, and terminal, wherein Chatbot includes private network Chatbot and Internet Chatbot, and the region also includes a message management platform (MaaP), a file server (FS), and a message center (5GMC).
[0025] In this embodiment, the service provider (SP) accesses each region through MaaP as a Chatbot. As shown in Figure 2, MaaP is built by region. That is, the Chatbot accesses the MaaP of a region from the Internet to serve users across the entire network. MaaP cooperates with FS and 5GMC to complete the interaction between the Chatbot and the terminal.
[0026] In this embodiment, a 5G message access method for a private network chatbot running on the above-mentioned network device or 5G message system architecture is provided. FIG3 is a flow chart of the 5G message access method for a private network chatbot according to an embodiment of the present disclosure. As shown in FIG3 , the process includes the following steps:
[0027] Step S302: receiving a message from the terminal forwarded by the 5G message center;
[0028] In an exemplary implementation, when a terminal interacts with a Chatbot, the terminal in the 5G message zone must first send the message to the 5GMC in the 5G message zone, and then forward the message to MaaP via the 5GMC. MaaP then parses the received message and forwards it to the Chatbot, thereby enabling interaction between the terminal and the Chatbot.
[0029] According to 5G messaging specifications, chatbots connected via the internet can access resources in all regions of the system. However, chatbots connected via private networks are subject to network restrictions, limiting access to resources within their own 5G region. By following the steps below, you can overcome these network restrictions and allow chatbots connected via private networks to access media files in non-connected regions.
[0030] Step S304: If it is determined that the interactive chatbot of the message is a private network chatbot, parse the message to obtain the first media information in the message;
[0031] In an exemplary embodiment, a message processing module is added to MaaP to parse the message received by MaaP from the terminal and obtain the first media information; wherein the first media information is the uniform resource locator (URL) of the media resource located in the other 5G message area.
[0032] Step S306: If the media resource corresponding to the first media information does not belong to the current 5G message zone, pull the media resource from other 5G message zones to the current 5G message zone;
[0033] In an exemplary embodiment, pulling the media resources from other 5G message zones to the current 5G message zone includes but is not limited to the following media resource pulling methods:
[0034] (1) determining whether the media resource belongs to the current 5G message zone according to the URL domain name, and if the media resource does not belong to the current 5G message zone, pulling the media resource from other 5G message zones to the current 5G message zone;
[0035] For example, MaaP can determine whether the media resource exists in the current 5G zone by comparing the domain name in the URL (first media information). If the media resource does not belong to the current 5G zone, MaaP will notify FS to pull the media resource from other zones.
[0036] When MaaP does not care whether the media resource belongs to the 5G zone, the media resource pulling methods that can be used are:
[0037] (2) The URL is sent to the module for pulling the media resources, and the module for pulling the media resources pulls the media resources from the other 5G message areas to the current 5G message area based on the judgment result of the URL.
[0038] For example: MaaP directly notifies the URL (first media information) to the FS, and the FS determines whether it needs to pull media resources from other regions. The FS will pull media resources from other regions when necessary.
[0039] Step S308: Update the first media information in the message to the second media information corresponding to the media resources of the 5G message zone, and forward the message to the private network Chatbot so that the private network Chatbot accesses the media resources of the 5G message zone according to the second media information.
[0040] In an exemplary embodiment, the second media information is the URL of the media resource located in the 5G message area.
[0041] Before step S302 of this embodiment, the method further includes: checking whether the message contains the media resource through the 5G message specification definition field.
[0042] Before step S304 of this embodiment, the method further includes: identifying the access method of each Chatbot in the 5G message zone by an internal attribute tag, and recording the internal attribute tag of each Chatbot access method. The access method includes: Internet access and private network access.
[0043] By identifying different access methods for each attribute, the processing flow of Chatbot access from private networks and the Internet can be distinguished, thereby reducing cross-region pull requests.
[0044] In step S308 of this embodiment, the first media information in the message is updated to the second media information corresponding to the media resources of the 5G message zone, including: replacing the URL of the first media information in the message with the URL of the second media information.
[0045] Through the above steps, when the media resources corresponding to the first media information do not belong to the current 5G messaging zone, the private network chatbot will pull the media resources from other 5G messaging zones and add them to the current 5G messaging zone. This allows the private network chatbot to access the media resources in the current 5G messaging zone based on the second media information. This solves the problem in related technologies where dedicated line access chatbots can only access media resources in their own zone, avoiding limitations on the chatbot's service capabilities due to access methods.
[0046] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory (ROM / RAM), a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0047] In this embodiment, a 5G message access system for a private network chatbot is also provided. The system is used to implement the above-mentioned embodiments and preferred implementations, and the details that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0048] Figure 4 is a structural block diagram of a 5G message access system of a private network chatbot according to an embodiment of the present disclosure. As shown in Figure 4, the system includes: a message access platform 10 and a file server 20.
[0049] The message access platform 10 is configured to receive a message from a terminal forwarded by a 5G message center, and, when determining that the interactive chatbot of the message is a private network chatbot, parse the message to obtain the first media information in the message;
[0050] The file server 20 is configured to pull the media resources corresponding to the first media information from other 5G message zones to the current 5G message zone when the media resources do not belong to the current 5G message zone;
[0051] The message access platform 10 is also configured to update the first media information in the message to the second media information corresponding to the media resources of the 5G message area, and forward the message to the private network Chatbot so that the private network Chatbot can access the media resources of the 5G message area according to the second media information.
[0052] In an exemplary embodiment, the message access platform 10 is further configured to check whether the message contains the media resource through a field defined in the 5G message specification.
[0053] In an exemplary embodiment, the message access platform 10 is further configured to identify the access method of each Chatbot in the 5G message zone through an internal attribute tag, and record the internal attribute tag of each Chatbot access method. It should be noted that the above-mentioned modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above-mentioned modules are all located in the same processor; or the above-mentioned modules are located in different processors in any combination.
[0054] To facilitate understanding of the technical solutions provided by the present disclosure, embodiments of specific scenarios will be described in detail below.
[0055] According to the 5G messaging specification, chatbots must access a 5G messaging zone through MaaP to interact with 5G end users. Chatbots can access resources in all zones across the system via the internet. However, for chatbots with security requirements, when connecting to the 5G messaging system from a zone using a private network (VPN), network restrictions limit access to resources within that zone, as shown in Figure 2.
[0056] Figure 5 is a structural block diagram of a 5G messaging system according to an embodiment of the present disclosure. The 5G messaging system can apply the method of supporting Chatbot private network access provided by the embodiment of the present disclosure, and the Chatbot that can achieve private network access can access resources in other regions. The access method of the private network or the Internet is no longer a restriction on the Chatbot's business. As shown in Figure 5, the 5G messaging system has the following improvements compared to the 5G messaging system in Figure 2: adding a Chatbot management module and a message processing module in MaaP, and adding a media management module in FS.
[0057] Specifically, the Chatbot management module is configured to use internal attributes to record an access method tag for each Chatbot, identify the Chatbot's access method, distinguish between the processing procedures of private network access and Internet access Chatbot, and reduce cross-region pull requests.
[0058] The message processing module is configured to parse the message before MaaP forwards the terminal's message to the private network Chatbot, obtain the media information URL, determine whether the message contains media resource information, and replace the original media information with the information returned by the media processing module;
[0059] In an exemplary embodiment, MaaP checks whether the forwarded message contains resource information by defining fields in the 5G message specification.
[0060] Media management module: According to the media information URL, the media files (resources) stored in other regions are pulled to this region, and the (new) URL of the media file information pulled to this region is notified to the message processing module; among them, this region is functionally equivalent to the 5G message region in the above implementation.
[0061] In this embodiment, interaction between MaaP and the media management module is also added, so that Maap can notify the media management module of the resource information that needs to be obtained, and the media management module returns the resource information corresponding to the resources requested by Maap in the local area to MaaP; after MaaP updates the resource information in the terminal message with the resource information corresponding to the local area returned by the media management module, it forwards the updated message to the private network Chatbot.
[0062] In an exemplary embodiment, the resource information in the message is embodied as a URL, including but not limited to the following:
[0063] a. MaaP can determine whether the resource is in the region by comparing the domain name in the URL, and notify FS to pull the non-regional resources;
[0064] b. MaaP does not care whether the resource is in the local region. It directly notifies the URL to the FS, and the FS determines whether the resource needs to be pulled from other regions.
[0065] In the embodiments of the present disclosure, the method of pulling resources from other regions to the current region is not limited.
[0066] The technical solution of the present disclosure is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0067] FIG6 is a 5G message access method supporting private network Chatbot access according to an embodiment of the present disclosure, which is applied to the 5G message system of FIG5 . As shown in FIG6 , the method includes the following steps:
[0068] Step S601: The message processing module receives a message forwarded by the terminal through 5GMC.
[0069] Step S602: The message processing module determines whether the destination Chatbot is connected to a private network.
[0070] In step S603, the message processing module parses the media information in the message according to the Chatbot private network attribute tag and sends it to the file management module.
[0071] In step S604, the file management module checks whether the requested media resource is a media resource of the current region, and if the media resource is a media resource of a non-current region, proceeds to step S605; otherwise, proceeds to step S606.
[0072] Step S605: Pull the media resource from other regions corresponding to the media resource to the current region; the file management module notifies the message processing module of the media resource pulled to the current region.
[0073] In an exemplary embodiment, the media resources are pulled into the local region through an existing cross-region file pulling HTTP interface.
[0074] Step S606: The message processing module updates the original media information to the media information of the current region.
[0075] Step S607: The message processing module forwards the message to the private network Chatbot.
[0076] In step S608, the private network Chatbot accesses the media files (ie, media resources) of the region.
[0077] Through the above method of this embodiment, the private network access method is more secure than the Internet access method. At the same time, it also enables the Chatbot with private network access to successfully access media files in non-access areas. The Chatbot can access the media resources of the entire network without any perception, thereby serving users of the entire network.
[0078] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0079] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0080] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0081] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0082] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0083] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.
[0084] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.
Claims
1. A 5G message access method for a private network chatbot. include: Receive messages from the terminal forwarded by the 5G message center; When it is determined that the interactive Chatbot of the message is a private network Chatbot, parsing the message to obtain first media information in the message; When the media resource corresponding to the first media information does not belong to the current 5G message zone, pull the media resource from other 5G message zones to the current 5G message zone; Update the first media information in the message to the second media information corresponding to the media resources of this 5G message area, and forward the message to the private network Chatbot so that the private network Chatbot accesses the media resources of this 5G message area according to the second media information.
2. The method according to claim 1, in, Before receiving the message from the terminal forwarded by the 5G message center, the method further includes: The 5G message specification defines fields to check whether the message contains the media resource.
3. The method according to claim 1, in, Before parsing the message to obtain the first media information in the message, the method further includes: The access method of each Chatbot in the 5G message area is identified by internal attribute tags, and the internal attribute tags of each Chatbot access method are recorded.
4. The method according to claim 2, in, The access methods include: Internet access and private network access.
5. The method according to claim 1, in, The first media information is the uniform resource locator URL of the media resource located in the other 5G message area, and the second media information is the URL of the media resource located in the current 5G message area.
6. The method according to claim 5, in, Pulling the media resource from other 5G message areas to the current 5G message area includes one of the following: Determine whether the media resource belongs to the current 5G message zone according to the URL domain name, and if the media resource does not belong to the current 5G message zone, pull the media resource from other 5G message zones to the current 5G message zone; The URL is sent to the module for pulling the media resources, and the module for pulling the media resources pulls the media resources from the other 5G message areas to the current 5G message area based on the judgment result of the URL.
7. The method according to claim 5, in, Updating the first media information in the message to the second media information corresponding to the media resource of the 5G message zone includes: The URL of the first media information in the message is replaced with the URL of the second media information.
8. A 5G message access system for a private network chatbot. include: The message access platform is configured to receive messages from the terminal forwarded by the 5G message center and determine the When the interactive Chatbot is a private network Chatbot, parsing the message to obtain the first media information in the message; The file server is configured to pull the media resources from other 5G message areas to the current 5G message area when the media resources corresponding to the first media information do not belong to the current 5G message area; The message access platform is also configured to update the first media information in the message to second media information corresponding to the media resources of the 5G message area, and forward the message to the private network Chatbot, so that the private network Chatbot can access the media resources of the 5G message area according to the second media information.
9. The system according to claim 8, in, The message access platform is also configured to check whether the message contains the media resource through a field defined in the 5G message specification.
10. The system according to claim 8, in, The message access platform is also configured to identify the access method of each Chatbot in the 5G message area through internal attribute tags, and record the internal attribute tags of each Chatbot access method.
11. A computer-readable storage medium having a computer program stored therein. in, When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 7 when executing the computer program.
Citation Information
Patent Citations
MaaP-based 5G message communication method and system, electronic equipment and storage medium
CN114866965A
Message issuing method and device, electronic equipment and storage medium
CN114979982A
Chat robot message processing method and device and storage medium
CN115776472A
Enhanced messaging as a platform
US20220078245A1
