Short message content determination method and apparatus, electronic device, and storage medium
By receiving the text to be processed and determining the SMS segment type, the content of the SMS template is dynamically adjusted, which solves the problem of SMS template redundancy in the medical platform and achieves efficient and accurate SMS generation.
Patent Information
- Application Number
- CN202111253575.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2041-10-27
AI Technical Summary
In medical platforms, existing SMS templates are redundant and have high maintenance costs, resulting in low efficiency and insufficient accuracy when generating SMS messages.
By receiving the text to be processed edited by the target user, the system determines the corresponding target SMS template, determines the target SMS slice type based on the text content, and dynamically adjusts the SMS template content to generate the target SMS, thereby reducing the number of redundant templates and improving the convenience and accuracy of generation.
Without increasing the number of SMS templates, SMS messages are dynamically generated, reducing data redundancy, lowering maintenance costs, and improving generation efficiency and accuracy.
Smart Images

Figure CN113919310B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer processing technology, and more particularly to a method, apparatus, electronic device and storage medium for determining SMS content. Background Technology
[0002] Currently, due to business development needs, there are frequent scenarios where SMS messages are sent. For example, for medical platforms, in order to better serve users, it is necessary to notify users via SMS after the order processing is completed so that users can be informed of any changes to their orders immediately. Alternatively, SMS messages may be used as proof of in-person medical visits, requiring notification to users via SMS after the order processing is finished.
[0003] However, in the hospital systems of medical platforms, a single SMS template is typically set up for each scenario. After the user's order processing is completed, it is necessary to retrieve SMS templates corresponding to all scenario information in the order, select the most suitable template from all templates, process it, and generate an SMS message to send to the user. Retrieving too many SMS templates during the SMS generation process leads to template redundancy and increases the cost of system operation and template maintenance. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and storage medium for determining SMS content, so as to quickly generate target SMS messages to be sent to each user while avoiding data redundancy, thereby improving the convenience of SMS content generation.
[0005] In a first aspect, embodiments of the present invention provide a method for determining SMS content, the method comprising:
[0006] Receive the text to be processed edited by the target user;
[0007] Determine the target SMS template corresponding to the text to be processed, and determine the type of the target SMS slice hit based on the text content in the text to be processed;
[0008] Based on the target SMS slice type, the target SMS template, and the text to be processed, a target SMS corresponding to the text to be processed is determined, and the target SMS is sent to the target user.
[0009] Secondly, embodiments of the present invention also provide a text message content determination device, the device comprising:
[0010] The text receiving module is used to receive text edited by the target user.
[0011] The target SMS slice type determination module is used to determine the target SMS template corresponding to the text to be processed, and to determine the hit target SMS slice type based on the text content in the text to be processed.
[0012] The target SMS determination module is used to determine the target SMS corresponding to the text to be processed based on the target SMS slice type, the target SMS template and the text to be processed, and send the target SMS to the target user.
[0013] Thirdly, embodiments of the present invention also provide an electronic device, the device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the SMS content determination method as described in any embodiment of the present invention.
[0017] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the SMS content determination method as described in any of the embodiments of the present invention.
[0018] The technical solution of this invention receives text to be processed edited by a target user, determines a target SMS template corresponding to the text to be processed, and determines the target SMS segment type based on the text content in the text to be processed. Based on the target SMS segment type, the target SMS template, and the text to be processed, the target SMS corresponding to the text to be processed is determined. This solves the problem in the prior art that it is necessary to generate an SMS template corresponding to each SMS segment type. At this time, not only is the number of SMS templates large, but the content of the SMS templates also has a certain degree of repetition, resulting in data redundancy when storing each SMS template, and a large workload when maintaining each SMS template. It realizes that on the basis of a certain number of basic SMS templates, one basic SMS template is retrieved according to the text to be processed. Then, based on the basic SMS template and the SMS segment type matched by the text content of the text to be processed, the template content in the corresponding basic SMS template is dynamically adjusted, and a target SMS to be sent to the target user is generated. That is, the target SMS is dynamically generated. The above method achieves the technical effect of improving the convenience, effectiveness, and accuracy of SMS content generation without the need to maintain multiple SMS templates for different scenarios. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of exemplary embodiments of the present invention, the accompanying drawings used in describing the embodiments are briefly introduced below. Obviously, the accompanying drawings described are only a portion of the drawings of the embodiments to be described in this invention, and not all of the drawings. For those skilled in the art, other drawings can be obtained from these drawings without any creative effort.
[0020] Figure 1 This is a flowchart of a method for determining SMS content provided in Embodiment 1 of the present invention;
[0021] Figure 2 This is a flowchart of a method for determining SMS content provided in Embodiment 2 of the present invention;
[0022] Figure 3 This is a schematic diagram of a method for determining SMS content provided in Embodiment 3 of the present invention;
[0023] Figure 4 This is a schematic diagram of a method for determining SMS content provided in Embodiment 3 of the present invention;
[0024] Figure 5 This is a structural block diagram of a text message content determination device provided in Embodiment 4 of the present invention;
[0025] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Detailed Implementation
[0026] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0027] Figure 1 This is a flowchart of a method for determining SMS content according to Embodiment 1 of the present invention. This embodiment is applicable to situations involving the generation of SMS content. The method can be executed by the SMS content determination device in this embodiment, which can be implemented in software and / or hardware, optionally through an electronic device such as a mobile terminal, PC, or server. The device can be configured in a computing device. The SMS content determination method provided in this embodiment specifically includes the following steps:
[0028] S110: Receive the text to be processed edited by the target user.
[0029] It should be noted that a corresponding page can be developed based on this technical solution, and then corresponding tasks can be processed based on that page. Alternatively, an application can be developed based on this technical solution, or the technical solution can be used as a function within an application to generate corresponding SMS content. It should also be noted that this technical solution can be applied to situations requiring SMS content generation in the medical field, and can also be applied to any situation where SMS content generation is needed.
[0030] To clearly illustrate this technical solution, we can take its application in the medical field as an example.
[0031] In this context, the target user can be understood as a user performing a specific business operation. This can be a user performing a business operation on a platform, which can be any internet platform that needs to notify the user via SMS after the business operation is completed. Optionally, it could be a registration platform or a product / service platform. For example, in a registration scenario, when user A registers on a registration platform, corresponding data can be generated based on the registration information filled in by user A. The system needs to process user A's data, and in this case, user A can be considered the target user. The processed text can be understood as the text information edited by the target user. For example, when a target user registers on a registration platform, the text to be processed could be the text data edited by the target user when placing the registration order. This could include the user's basic information, or information about the hospital, department, and doctor selected by the user, etc. Furthermore, the data input by the target user using an input device can be used as the text to be processed. Input devices can include physical keyboards, virtual keyboards, sound capture devices, handwriting devices, and touchscreens, etc. In practical applications, the user's edited data can be stored in a pre-defined database by triggering a button on the platform. The server can then retrieve the data from the database using a data interface to receive the text to be processed. Alternatively, the server can consider receiving the data to be processed—that is, receiving the text to be processed—when it detects that a user has triggered an input edit box to generate data to be processed. For example, when the registration platform system uploads a user's registration form, the server can be considered to have received the data from the registration form and can use this data as the text to be processed.
[0032] S120. Determine the target SMS template corresponding to the text to be processed, and determine the target SMS slice type based on the text content in the text to be processed.
[0033] The target SMS template can be a pre-set SMS template with a fixed format. It should be noted that the target SMS template can be a basic SMS template, which can be a template composed of field information needed for a specific execution process. For example, the target SMS template can be set according to different stages of the user's order processing flow. For instance, when the order processing flow is at the order creation stage, the corresponding target SMS template can be the SMS template for order creation. The SMS template can include several SMS fields and placeholder information needed to create the order, such as order number, ID number, payment order number, and user ID. The text content can be understood as the field information in the text to be processed, which can be user name, hospital, department, and time fields, etc. For example, when the field is time, the corresponding text content can be 9:00. The target SMS segment type can be a tag for an SMS fragment. It should be noted that a text message can consist of at least one text message segment, and each text message segment can have at least one segment tag. The tag can be information labeled based on the data features in the text to be processed edited by the user. The data features can be data features such as time, initial and follow-up visits, and hospital name in the text to be processed. The corresponding tags can be morning, afternoon, initial visit, and follow-up visit, etc., and then the tag corresponding to each text message segment can be used as the target text message segment type.
[0034] It should also be noted that determining the target SMS template corresponding to the text to be processed can be based on the data information in the text. For example, an algorithm can be used to extract data information from the text, which may include field information and the user's execution steps for the service under that text. Furthermore, after obtaining the data information in the text, a software interface can be used to extract the target SMS template corresponding to the execution steps under that field information. It should also be noted that determining the target SMS segment type based on the text content of the text to be processed can be based on the data features in the text content. For example, a computer program can be used to process the text to extract the text content, and then an algorithm can be used to extract data feature information from the text content according to preset feature extraction rules, thereby obtaining data feature tag information. This tag information can be sent to the backend, which can then extract the corresponding preset SMS segment types in the database based on the tag information, and these SMS segment types can be used as the target SMS segment types. Accordingly, the target SMS segment type matched by the text content in the text to be processed can be determined.
[0035] Specifically, based on the field information corresponding to the data information in the text to be processed and the user's execution process information, the target SMS template corresponding to the execution process of that field information can be obtained. At the same time, the tag information corresponding to each data feature in the text to be processed can be extracted, and then each tag information can be matched with the preset SMS slice type to obtain the SMS slice type that matches the tag information.
[0036] It should be noted that the platform corresponding to the technical solution of this invention can cooperate with multiple third-party platforms, such as hospitals. Different hospitals use different target SMS templates. For example, Hospital A's target SMS template includes the order number, hospital, department, and hospital opening hours, while Hospital B's target SMS template includes the hospital, department, appointment date, and order date. The target SMS template for that hospital can be retrieved by determining the hospital field information in the text to be processed.
[0037] It should also be noted that at least one target SMS template can be pre-set based on the user's execution flow information. This execution flow information can contain multiple execution nodes, each corresponding to a target SMS template. Furthermore, the target SMS templates for each execution node can be set, serving as the base SMS templates. This allows the system to determine which hospital's base SMS template to retrieve when generating SMS content, based on the execution node information.
[0038] Optionally, determining the target SMS template corresponding to the text to be processed includes: determining the target SMS template corresponding to the text to be processed based on the text content corresponding to the first target field in the text to be processed and the execution task flow information corresponding to the text to be processed.
[0039] The first target field can be understood as a field representing which basic SMS template to retrieve. It can be a hospital field or a hospital department field. For example, when the first target field is a hospital, the target SMS template for that hospital can be retrieved based on this field. The corresponding data information in this field can also be used as text content, such as the hospital's address, phone number, and opening hours. The execution task flow information can be understood as the process information executed by the user, which can include process node information such as creation, payment, cancellation, and completion. For example, electrical equipment can be used to detect the type of operation button triggered by the user when performing business, and then the execution flow node information corresponding to the button type can be extracted. The operation button type can include creation, cancellation, payment, and completion types. Alternatively, a computer program can be used to process the text to be processed to obtain the execution node information when the text was generated, i.e., the execution task flow information. It should be noted that the platform corresponding to this technical solution can be connected to various hospital systems via interfaces, thereby pre-obtaining the SMS template information in each hospital system.
[0040] It should also be noted that when the platform receives text to be processed edited by the target user, it can use algorithms to extract field information from the text, such as hospital, department, and specialist fields. Optionally, the hospital can be used as the primary target field, and then a computer program can be used to extract the text content of the hospital field, which can be the hospital name or hospital code. Simultaneously, the program can use code to obtain the execution node information corresponding to the text to be processed. Optionally, the platform can extract the pre-configured SMS template for that process node under the corresponding hospital based on the hospital name and execution node information, and use this SMS template as the target SMS template.
[0041] Specifically, computer programs can be used to extract the text content corresponding to the first target field in the text to be processed and the execution task flow information corresponding to the text to be processed, and determine the target SMS template corresponding to the execution task flow step under the text content. This prevents excessive redundancy of template data during the determination of the target SMS template and reduces memory consumption.
[0042] It should be noted that, in determining the target SMS segment type based on the text content in the text to be processed, the SMS segment type that matches the data features in the text content can be pre-configured. At the same time, the configured SMS segment type can be pre-stored in the system database of a third-party platform so that after extracting the data feature tag information of the text content, the matching SMS segment type can be retrieved from the database to determine the target SMS segment type.
[0043] Optionally, determining the target SMS segment type based on the text content in the text to be processed includes: determining the SMS segment field type to be matched that the text content in the text to be processed matches based on a pre-configured SMS segment field type; and using the matched SMS segment field type as the target SMS segment type.
[0044] In this context, the field types of the SMS segments to be matched can be understood as pre-configured labels for fields within the SMS fragments. It's important to note that computer programs can extract field information from the text content of the text to be processed, and then calculate the corresponding data feature labels for each field. Matching techniques can then be used to match these feature labels with the field types of the SMS segments to be matched, thereby extracting the field types of the SMS segments that meet the matching criteria. These field types can then be used as the matched SMS segment field types, i.e., the target SMS segment types.
[0045] Specifically, the pre-configured text message slice field types to be matched can be matched with the data feature tags in the text content of the text to be processed. The text message slice field types that match each feature tag can be used as the target text message slice types. This allows the target text message template to be updated using the target text message slice types to generate the final text message information.
[0046] S130. Based on the target SMS slice type, the target SMS template, and the text to be processed, determine the target SMS corresponding to the text to be processed, and send the target SMS to the target user.
[0047] The target SMS message can be understood as the final SMS message. It can be generated by adjusting the template content of the target SMS message template using the target SMS message segment type, target SMS message template, and the text to be processed. For example, a computer program can extract field information from the text to be processed, and then match this field information with the field information in the target SMS message template to extract the matching field information from the text. The data information corresponding to each field can then be filled into the placeholders of the corresponding template fields. Simultaneously, matching technology can be used to match the target SMS message segment type with the fragment tags in the target SMS message template, and further, the data information corresponding to each target SMS message segment type can be filled into the placeholders of the corresponding fragment information. This results in a new target SMS message template after processing the text to be processed and the target SMS message segment type, and the template content in the updated target SMS message template can be used as the target SMS message. Furthermore, a computer program can be used to obtain the SMS transmission method, which can be SMS transmission or email transmission, and then the target SMS message can be sent to the target user using the corresponding transmission interface according to the transmission method.
[0048] Specifically, the field information in the text to be processed can be matched with the field information in the target SMS template. The data information corresponding to the field information in the text that meets the matching conditions is then filled into the placeholders of the corresponding fields in the SMS template. At the same time, the data information corresponding to the target SMS slice type can be filled into the placeholders of the corresponding fragment information to obtain the updated template content of the target SMS template. This updated template content can then be used as the target SMS, i.e., to generate the target SMS to be sent to the target user.
[0049] It should be noted that determining the target SMS message corresponding to the text to be processed allows for processing of both the target SMS message segment type and the text to be processed. For example, a computer program can be used to extract the data information of the SMS segments corresponding to the target SMS message segment type. Furthermore, the data information of each SMS segment can be filled into the placeholders of the corresponding SMS segments in the target SMS message template. Alternatively, a computer program can be used to extract the text content corresponding to the text to be processed, and then fill the placeholders of the corresponding target SMS message template with the text content. This updates the template content in the target SMS message template and generates the target SMS message.
[0050] Optionally, determining the target SMS corresponding to the text to be processed based on the target SMS slice type, the target SMS template, and the text to be processed includes: retrieving the SMS fragment content corresponding to each target SMS slice type; filling the corresponding text content in the text to be processed into the placeholder information according to the placeholder information in the target SMS template; updating the target SMS template according to the SMS fragment content, and determining the target SMS based on the updated target SMS template.
[0051] In this context, SMS fragment content can be understood as the data information of a segment of an SMS message. For example, if the SMS fragment is an order number, the corresponding SMS fragment content can be the data information of the order number.
[0052] It should be noted that computer programs can be used to extract data information from SMS segments corresponding to the target SMS segment type. This data information can then be used as the content of the SMS segments. For example, if the target SMS segment type is "payment," the corresponding SMS segment content could be "You have paid for this order; please go directly to the hospital for treatment." If the target SMS segment type is "unpaid," the corresponding SMS segment content could be "You have not paid for this order; please complete the payment and then go to the hospital for treatment." Furthermore, the content of each SMS segment can be used to fill the placeholders in the corresponding target SMS template. Alternatively, computer programs can be used to extract the text content corresponding to the text to be processed, such as the consultation time, hospital name, department name, and doctor's name. This text content can then be replaced with the corresponding placeholder information to obtain an updated target SMS template. The template content in this updated target SMS template can then be used as the target SMS.
[0053] Specifically, the text message fragment content corresponding to each target text message slice type and the corresponding text content in the text to be processed can be filled into the corresponding placeholder information in the target text message template to update the target text message template. Then, the template content in the updated target text message template can be used as the target text message, which improves the convenience of text message content generation.
[0054] The technical solution of this embodiment receives the text to be processed edited by the target user, determines the target SMS template corresponding to the text to be processed, and determines the target SMS segment type based on the text content in the text to be processed. Based on the target SMS segment type, the target SMS template, and the text to be processed, the target SMS corresponding to the text to be processed is determined. This solves the problem in the prior art that it is necessary to generate an SMS template corresponding to each SMS segment type. At this time, not only is the number of SMS templates large, but the content of the SMS templates also has a certain degree of repetition, which leads to data redundancy when storing each SMS template and a large workload when maintaining each SMS template. It realizes that on the basis of a certain number of basic SMS templates, one basic SMS template is retrieved according to the text to be processed. Then, based on the basic SMS template and the SMS segment type matched by the text content of the text to be processed, the template content in the corresponding basic SMS template is dynamically adjusted, and a target SMS to be sent to the target user is generated. That is, the target SMS is dynamically generated. The above method achieves the technical effect of improving the convenience, effectiveness, and accuracy of SMS content generation without the need to maintain multiple SMS templates for different scenarios.
[0055] Example 2
[0056] Figure 2This is a flowchart of a method for determining SMS content according to Embodiment 2 of the present invention. Based on the foregoing embodiments, before determining the SMS segment field type to be matched that corresponds to the text content in the text to be processed, and before using the matched SMS segment field type as the target SMS segment type, the SMS segment field type to be matched can be pre-configured. Specific implementation methods can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.
[0057] like Figure 2 As shown, the method specifically includes the following steps:
[0058] S210. Configure the field type of the SMS segment to be matched and the SMS fragment content corresponding to the field type of the SMS segment to be matched, so as to determine the target SMS segment type when the text to be processed is received.
[0059] The third-party platform can connect to the systems of various hospitals via software interfaces and obtain data from each hospital's system. It should be noted that the SMS templates used by each hospital differ, resulting in variations in the configured SMS segment content. For example, if the SMS segment field type to be matched is "open time," the SMS segment content for Hospital A could be 9:00 to 16:00, while for Hospital B it could be 8:00 to 18:00. To embed the SMS segment content corresponding to each hospital into the appropriate target SMS template, the SMS segment field type to be matched can be pre-configured by the third-party platform and pre-stored in the platform's database. The SMS segment content corresponding to the SMS segment field type to be matched can be pre-configured by the hospital and pre-stored in the hospital's database. When the platform server receives the text to be processed, a computer program can match the text content in the text with the SMS segment field type to be matched, thereby determining the matched SMS segment field type, i.e., the target SMS segment type. Furthermore, the platform server can retrieve the SMS fragment content corresponding to these SMS slice field types to be matched from the hospital database, and can use each SMS fragment content as the SMS fragment content corresponding to the target SMS slice type.
[0060] Specifically, third-party platforms can pre-configure the field types of SMS segments to be matched, and the hospital systems connected to the platform can configure the SMS segment content corresponding to the field types of SMS segments to be matched, so that when the text to be processed is received, the target SMS segment type can be determined.
[0061] It should be noted that configuring the field type of the SMS segment to be matched, and the SMS fragment content corresponding to the field type of the SMS segment to be matched, can be determined based on the scene information. For example, a preset number of scene information can be set in advance, and the tags of each scene information can be extracted using an algorithm. The obtained tags can be used as the field type of the SMS segment to be matched, and then the text content corresponding to each type can be set according to the field type of the SMS segment to be matched.
[0062] It should also be noted that the scenario information can be determined by technical personnel based on the platform's business needs, and this technical solution does not impose any restrictions on it.
[0063] Optionally, configuring the text message slice field type to be matched and the text message fragment content corresponding to the text message slice field type to be matched includes: determining at least one text message slice field type to be matched according to a pre-set scenario type; setting the text message fragment content corresponding to each text message slice field type to be matched; and establishing a mapping relationship between the text message slice field type to be matched and the corresponding text message fragment content, so as to retrieve the corresponding text message fragment content based on the mapping relationship when determining the target text message slice type.
[0064] The "scenario type" can be understood as the business scenario type, which could be "payment status," "initial / follow-up visit," or "morning / afternoon." For example, when the scenario type is "payment status," the corresponding SMS field type to be matched could be either "paid" or "unpaid." When the scenario type is "initial / follow-up visit," the corresponding SMS field type to be matched could be either "initial visit" or "follow-up visit." The mapping relationship can be understood as the transformation relationship between data. The transformation relationship between the SMS field types to be matched and the corresponding SMS segment content can be used as the mapping relationship. For example, mapping technology can be used to establish an index relationship between the SMS field types to be matched and the corresponding SMS segment content. Each SMS field type to be matched can be mapped to its corresponding SMS segment content using the index. Furthermore, when the target SMS segment type is determined, the corresponding SMS segment content can be obtained by retrieving the mapping relationship for that type.
[0065] Specifically, algorithms can be used to determine the field types of each SMS segment to be matched corresponding to a pre-set scenario type, and then the SMS segment content corresponding to each field type can be set. Furthermore, mapping technology can be used to establish a mapping relationship between the field types of the SMS segments to be matched and their corresponding SMS segment content, so that when the target SMS segment type is determined, the corresponding SMS segment content can be retrieved based on the mapping relationship.
[0066] It should be noted that the text to be processed received by the computer system can be the medical text corresponding to the pre-edited medical data information of the target user. This medical text may contain the user's basic information, the selected hospital, department, specialist, and historical medical records, etc.
[0067] Optionally, the text to be processed is a pre-edited medical consultation text; the medical consultation text includes the text content corresponding to each field to be edited.
[0068] The medical consultation text can be understood as the text information that the target user needs to edit during their hospital visit. This could be registration text, inpatient text, surgical text, etc. The editable fields can be understood as fields that the user edits, such as names, contact information, and home addresses. It should be noted that the medical consultation text can have at least one editable field for the user to edit. The data information in each editable field can serve as its text content; for example, if the editable field is contact information, the text content could be "123". Subsequently, based on the editable text and its corresponding text content, the template content in the corresponding target SMS template can be adjusted to generate the target SMS message sent to the target user.
[0069] S220: Receive the text to be processed edited by the target user.
[0070] S230. Determine the target SMS template corresponding to the text to be processed, and determine the target SMS slice type based on the text content in the text to be processed.
[0071] S240. Based on the target SMS slice type, the target SMS template, and the text to be processed, determine the target SMS corresponding to the text to be processed, and send the target SMS to the target user.
[0072] The technical solution of this embodiment receives the text to be processed edited by the target user, determines the target SMS template corresponding to the text to be processed, and determines the target SMS segment type based on the text content in the text to be processed. Based on the target SMS segment type, the target SMS template, and the text to be processed, the target SMS corresponding to the text to be processed is determined. This solves the problem in the prior art that it is necessary to generate an SMS template corresponding to each SMS segment type. At this time, not only is the number of SMS templates large, but the content of the SMS templates also has a certain degree of repetition, which leads to data redundancy when storing each SMS template and a large workload when maintaining each SMS template. It realizes that on the basis of a certain number of basic SMS templates, one basic SMS template is retrieved according to the text to be processed. Then, based on the basic SMS template and the SMS segment type matched by the text content of the text to be processed, the template content in the corresponding basic SMS template is dynamically adjusted, and a target SMS to be sent to the target user is generated. That is, the target SMS is dynamically generated. The above method achieves the technical effect of improving the convenience, effectiveness, and accuracy of SMS content generation without the need to maintain multiple SMS templates for different scenarios.
[0073] Example 3
[0074] As an optional embodiment of the above embodiments, specific application scenario examples are provided to enable those skilled in the art to further understand the technical solutions of the embodiments of the present invention. Specifically, please refer to the following detailed content.
[0075] For example, see Figure 3 Identifier 1 corresponds to a diagram illustrating the configuration of the field types for the SMS segments to be matched. Assuming a medical setting, a new SMS segment is created for each hospital scenario. Hospital scenario types can include morning / afternoon, initial / follow-up visits, payment status, time-slot scheduling, and resumption status, etc. The field types for the SMS segments to be matched can be morning, afternoon, initial / follow-up visits, payment status, and unpaid status, etc. The SMS fragment content for each segment can be set according to its field type. This allows the SMS fragment content to be subsequently filled into placeholders in the basic SMS template. See Identifier 2. The basic SMS template can contain several placeholders, such as placeholders for outpatient date, visit time, hospital name, department name, and order number. Figure 4As shown in Figure 3, this diagram illustrates how to update the basic SMS template using the field types of the SMS segments to be matched and the text to be processed. Referring to Figure 4, an SMS segment can also contain several placeholders. For example, placeholder information in an SMS segment can correspond to SMS segment type information such as whether payment is required, whether recovery is required, whether time-slotted, initial / follow-up appointments, and morning / afternoon sessions. The SMS fragment content corresponding to the field types of the SMS segments to be matched can then be replaced with the values of the placeholders in the basic SMS template. Simultaneously, the corresponding text content from the text to be processed can be filled into the placeholder information in the basic SMS template. This updates the target SMS template, allowing the updated target SMS content to be used as the target SMS, which is then sent to the user.
[0076] The technical solution of this embodiment receives the text to be processed edited by the target user, determines the target SMS template corresponding to the text to be processed, and determines the target SMS segment type based on the text content in the text to be processed. Based on the target SMS segment type, the target SMS template, and the text to be processed, the target SMS corresponding to the text to be processed is determined. This solves the problem in the prior art that it is necessary to generate an SMS template corresponding to each SMS segment type. At this time, not only is the number of SMS templates large, but the content of the SMS templates also has a certain degree of repetition, which leads to data redundancy when storing each SMS template and a large workload when maintaining each SMS template. It realizes that on the basis of a certain number of basic SMS templates, one basic SMS template is retrieved according to the text to be processed. Then, based on the basic SMS template and the SMS segment type matched by the text content of the text to be processed, the template content in the corresponding basic SMS template is dynamically adjusted, and a target SMS to be sent to the target user is generated. That is, the target SMS is dynamically generated. The above method achieves the technical effect of improving the convenience, effectiveness, and accuracy of SMS content generation without the need to maintain multiple SMS templates for different scenarios.
[0077] Example 4
[0078] Figure 5 This is a structural block diagram of a text message content determination device according to Embodiment 4 of the present invention. The device includes: a text receiving module 510 to be processed, a target text message slice type determination module 520, and a target text message determination module 530.
[0079] The unprocessed text receiving module 510 is used to receive unprocessed text edited by the target user; the target SMS segment type determining module 520 is used to determine the target SMS template corresponding to the unprocessed text and determine the hit target SMS segment type according to the text content in the unprocessed text; the target SMS determining module 530 is used to determine the target SMS corresponding to the unprocessed text based on the target SMS segment type, the target SMS template and the unprocessed text, and send the target SMS to the target user.
[0080] The technical solution of this embodiment receives the text to be processed edited by the target user, determines the target SMS template corresponding to the text to be processed, and determines the target SMS segment type based on the text content in the text to be processed. Based on the target SMS segment type, the target SMS template, and the text to be processed, the target SMS corresponding to the text to be processed is determined. This solves the problem in the prior art that it is necessary to generate an SMS template corresponding to each SMS segment type. At this time, not only is the number of SMS templates large, but the content of the SMS templates also has a certain degree of repetition, which leads to data redundancy when storing each SMS template and a large workload when maintaining each SMS template. It realizes that on the basis of a certain number of basic SMS templates, one basic SMS template is retrieved according to the text to be processed. Then, based on the basic SMS template and the SMS segment type matched by the text content of the text to be processed, the template content in the corresponding basic SMS template is dynamically adjusted, and a target SMS to be sent to the target user is generated. That is, the target SMS is dynamically generated. The above method achieves the technical effect of improving the convenience, effectiveness, and accuracy of SMS content generation without the need to maintain multiple SMS templates for different scenarios.
[0081] Optionally, based on the above-mentioned device, the target SMS slice type determination module 520 includes: a target SMS template determination unit and a target SMS slice type determination unit.
[0082] The target SMS template determination unit is used to determine the target SMS template corresponding to the text to be processed based on the text content corresponding to the first target field in the text to be processed and the execution task flow information corresponding to the text to be processed.
[0083] The target SMS slice type determination unit is used to determine the SMS slice field type that the text content in the text to be processed matches according to the pre-configured SMS slice field types; and to take the matched SMS slice field type as the target SMS slice type.
[0084] Optionally, based on the above-mentioned device, the target SMS determination module 530 includes a target SMS determination unit.
[0085] The target SMS determination unit is specifically used to: retrieve the SMS segment content corresponding to each target SMS segment type; fill the corresponding text content in the text to be processed into the placeholder information according to the placeholder information in the target SMS template; update the target SMS template according to the SMS segment content; and determine the target SMS based on the updated target SMS template.
[0086] Optionally, based on the above-mentioned device, the device may also include a module for configuring the field type of the SMS segment to be matched and the content of the SMS segment.
[0087] The module for configuring the field type of the SMS segment to be matched and the SMS fragment content is specifically used to configure the field type of the SMS segment to be matched and the SMS fragment content corresponding to the field type of the SMS segment to be matched, so as to determine the target SMS segment type when receiving the text to be processed.
[0088] Optionally, based on the above-mentioned device, the configuration module for the field type of the SMS segment to be matched and the content of the SMS segment includes a configuration unit for the field type of the SMS segment to be matched and the content of the SMS segment.
[0089] The configuration unit for the field type of the SMS segment to be matched and the SMS fragment content is specifically used to: determine at least one field type of the SMS segment to be matched according to a pre-set scenario type; set the SMS fragment content corresponding to each field type of the SMS segment to be matched; and establish a mapping relationship between the field type of the SMS segment to be matched and the corresponding SMS fragment content, so that when the target SMS segment type is determined, the corresponding SMS fragment content can be retrieved based on the mapping relationship.
[0090] The SMS content determination device provided in this embodiment of the invention can execute the SMS content determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0091] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0092] Example 5
[0093] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 6 A block diagram is shown of an exemplary electronic device 60 suitable for implementing embodiments of the present invention. Figure 6The electronic device 60 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0094] like Figure 6 As shown, the electronic device 60 is presented in the form of a general-purpose computing device. The components of the electronic device 60 may include, but are not limited to: one or more processors or processing units 601, system memory 602, and bus 603 connecting different system components (including system memory 602 and processing unit 601).
[0095] Bus 603 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0096] Electronic device 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 60, including volatile and non-volatile media, removable and non-removable media.
[0097] System memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and / or cache memory 605. Electronic device 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 606 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 603 via one or more data media interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0098] A program / utility 608 having a set (at least one) of program modules 607 may be stored, for example, in memory 602. Such program modules 607 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 607 typically perform the functions and / or methods described in the embodiments of the present invention.
[0099] Electronic device 60 can also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), and with one or more devices that enable a user to interact with electronic device 60, and / or with any device that enables electronic device 60 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 611. Furthermore, electronic device 60 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 612. As shown, network adapter 612 communicates with other modules of electronic device 60 via bus 603. It should be understood that, although... Figure 6 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 60, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0100] The processing unit 601 executes various functional applications and data processing by running programs stored in the system memory 602, such as implementing the SMS content determination method provided in the embodiments of the present invention.
[0101] Example 6
[0102] Embodiment 6 of the present invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for determining SMS content. The method includes:
[0103] Receive the text to be processed edited by the target user;
[0104] Determine the target SMS template corresponding to the text to be processed, and determine the type of the target SMS slice hit based on the text content in the text to be processed;
[0105] Based on the target SMS slice type, the target SMS template, and the text to be processed, a target SMS corresponding to the text to be processed is determined, and the target SMS is sent to the target user.
[0106] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0107] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0108] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0109] Computer program code for performing the operations of embodiments of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for determining SMS content, characterized in that, include: Receive the text to be processed edited by the target user; Determine the target SMS template corresponding to the text to be processed, and determine the type of the target SMS slice hit based on the text content in the text to be processed; Based on the target SMS slice type, the target SMS template, and the text to be processed, determine the target SMS corresponding to the text to be processed, and send the target SMS to the target user; The step of determining the target SMS template corresponding to the text to be processed includes: Based on the text content corresponding to the first target field in the text to be processed and the execution task flow information corresponding to the text to be processed, a target SMS template corresponding to the text to be processed is determined, wherein the execution task flow information is the process information executed by the user; The step of determining the target SMS slice type based on the text content in the text to be processed includes: Based on the pre-configured field types of the SMS segments to be matched, determine the field types of the SMS segments to be matched that the text content in the text to be processed matches. The field types of the SMS segments to be matched are the pre-configured tags of the fields in the SMS segments. The matched SMS segment field type is used as the target SMS segment type.
2. The method according to claim 1, characterized in that, The step of determining the target SMS message corresponding to the text to be processed based on the target SMS message slice type, the target SMS message template, and the text to be processed includes: Retrieve the SMS segment content corresponding to each target SMS segment type; Based on the placeholder information in the target SMS template, the corresponding text content in the text to be processed is filled into the placeholder information; The target SMS template is updated based on the SMS fragment content, and the target SMS is determined based on the updated target SMS template.
3. The method according to claim 1, characterized in that, Also includes: Configure the field type of the SMS segment to be matched, and the SMS fragment content corresponding to the field type of the SMS segment to be matched, so as to determine the target SMS segment type when the text to be processed is received.
4. The method according to claim 3, characterized in that The configuration of the SMS segment field type to be matched, and the SMS segment content corresponding to the SMS segment field type to be matched, includes: Based on the pre-set scenario type, determine at least one SMS slice field type to be matched; Set the SMS fragment content corresponding to each field type of the SMS to be matched; Establish a mapping relationship between the text message field type to be matched and the corresponding text message fragment content, so that when the target text message slice type is determined, the corresponding text message fragment content can be retrieved based on the mapping relationship.
5. The method according to any one of claims 1-4, characterized in that, The text to be processed is a pre-edited medical consultation text; the medical consultation text includes the text content corresponding to each field to be edited.
6. A device for determining SMS content, characterized in that, include: The text receiving module is used to receive text edited by the target user. The target SMS slice type determination module is used to determine the target SMS template corresponding to the text to be processed, and to determine the hit target SMS slice type based on the text content in the text to be processed. The target SMS determination module is used to determine the target SMS corresponding to the text to be processed based on the target SMS slice type, the target SMS template and the text to be processed, and send the target SMS to the target user; The target SMS slice type determination module is also used for: Based on the text content corresponding to the first target field in the text to be processed and the execution task flow information corresponding to the text to be processed, a target SMS template corresponding to the text to be processed is determined, wherein the execution task flow information is the process information executed by the user; The target SMS slice type determination module includes a target SMS slice type determination unit, which is used for: Based on the pre-configured field types of the SMS segments to be matched, determine the field types of the SMS segments to be matched that the text content in the text to be processed matches. The field types of the SMS segments to be matched are the pre-configured tags of the fields in the SMS segments. The matched SMS segment field type is used as the target SMS segment type.
7. An electronic device, characterized in that, The device includes: one or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the SMS content determination method as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the SMS content determination method as described in any one of claims 1-5.
Citation Information
Patent Citations
Method and device for automatically creating multimedia message
CN101945346A