Customer interaction interface generation method, device and electronic device
By receiving business interaction data requests from financial APP customers, querying and generating customized customer interaction interfaces, it solves the problem of content display in multiple IOU states, and adopts caching and database master/backup switching solutions to achieve efficient and personalized Recommended to improve user experience and system performance.
Patent Information
- Application Number
- CN202110457304.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-04-27
AI Technical Summary
It is difficult for existing financial APPs to implement "one person, one interface" personalized recommendations, especially when customers have multiple IOU statuses. The displayed content is too much or irrelevant, affecting the user experience.
By receiving customers' business interaction data requests, querying customer attributes and querying pre-stored business interaction data based on the attributes, a customized customer interaction interface is generated, and a master-backup switching scheme of cache and database is adopted to ensure fast query and efficient recommendation.
It realizes personalized recommendations for each customer, reduces development and operation costs, improves user experience and system performance, and reduces customers' need to switch to manual work.
Smart Images

Figure CN113297516B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer information processing, and in particular to a method and device for generating a customer interaction interface, an electronic device and a computer-readable medium. Background Art
[0002] Apps with user recommendation functions usually strive to achieve the effect of "one thousand faces for one thousand people", that is, "one person, one interface, one person, one solution". When a customer enters the question and answer page, the system should display the page questions and answers that are suitable for the current customer.
[0003] For example, for financial apps, when a customer's IOU status is overdue, the system will display overdue-related questions when entering the Q&A page. When a customer's IOU status is loan approval, the system will display loan approval-related questions when entering the Q&A page. If a customer has multiple IOUs with multiple attributes such as overdue, loan success, and loan approval, the system will display questions corresponding to multiple attributes.
[0004] Therefore, a new technical solution is needed to achieve user recommendations that are tailored to each individual. Summary of the invention
[0005] The present invention aims to provide a method, device, electronic device and computer-readable medium for generating a customer interaction interface, so as to realize user recommendation of "one thousand faces for one thousand people".
[0006] In order to solve the above technical problems, the first aspect of the present invention proposes a method for generating a customer interaction interface, the method comprising: receiving a request from a front end to obtain business interaction data corresponding to a customer, the business interaction data being used to form a customer interaction interface at the front end for the customer to perform business interaction behaviors; querying the customer attributes of the customer, the customer attributes reflecting the status of the customer's associated business; based on the customer attributes, querying pre-stored business interaction data corresponding to the customer attributes; sending the business interaction data to the front end, for the front end to use the business interaction data to generate the customer interaction interface.
[0007] According to a preferred embodiment of the present invention, before querying the customer attributes of the customer, it also includes: querying the customer's associated services and determining the status of the associated services, and setting the customer attributes for the customer for query according to the status of the associated services.
[0008] According to a preferred embodiment of the present invention, there are multiple customer attributes, and before the querying of the pre-stored business interaction data corresponding to the customer attributes, it also includes: if the number of the customer attributes exceeds a preset threshold, filtering the customer attributes according to preset conditions until the number of the customer attributes does not exceed the threshold.
[0009] According to a preferred implementation of the present invention, filtering the customer attributes according to preset conditions includes: querying the occurrence time of services corresponding to multiple customer attributes, and filtering the multiple customer attributes in order of the service occurrence time.
[0010] According to a preferred implementation manner of the present invention, filtering the customer attributes according to preset conditions includes: identifying importance levels of multiple customer attributes, and filtering the multiple customer attributes according to the importance levels.
[0011] According to a preferred implementation of the present invention, the querying of pre-stored business interaction data corresponding to the customer attributes includes: querying the business interaction data from a cache, wherein the cache is used to store multiple business interaction data from different customers in a database.
[0012] According to a preferred embodiment of the present invention, before querying the business interaction data from the cache, it also includes: detecting whether a preset master-slave switch indicates to query the business interaction data from the cache, and when the master-slave switch indicates to query from the cache, entering the process of querying the business interaction data from the cache.
[0013] According to a preferred implementation manner of the present invention, the method further comprises: when the service interaction data is not found in the cache or the active / standby switch instructs to query from the database, querying the service interaction data from the database.
[0014] In order to solve the above technical problems, the second aspect of the present invention proposes a customer interaction interface generating device, comprising: a request receiving module, receiving a request from a front end to obtain business interaction data corresponding to a customer, the business interaction data is used to form a customer interaction interface at the front end for the customer to perform business interaction behavior; an attribute query module, querying the customer attributes of the customer, the customer attributes reflecting the status of the customer's associated business; a data query module, querying pre-stored business interaction data corresponding to the customer attributes according to the customer attributes; a data sending module, sending the business interaction data to the front end for the front end to use the business interaction data to generate the customer interaction interface.
[0015] According to a preferred embodiment of the present invention, it further includes: an attribute setting module, which queries the customer's associated business and determines the status of the associated business before querying the customer's customer attributes, and sets the customer attributes for the customer for query according to the status of the associated business.
[0016] According to a preferred embodiment of the present invention, there are multiple customer attributes, and the device further includes: an attribute filtering module, which, before querying the pre-stored business interaction data corresponding to the customer attributes, if the number of the customer attributes exceeds a preset threshold, filters the customer attributes according to preset conditions until the number of the customer attributes does not exceed the threshold.
[0017] According to a preferred implementation manner of the present invention, the attribute filtering module queries the occurrence time of services corresponding to a plurality of customer attributes, and filters the plurality of customer attributes according to the order of the service occurrence time.
[0018] According to a preferred embodiment of the present invention, the attribute filtering module identifies the importance of multiple customer attributes and filters the multiple customer attributes according to the importance.
[0019] According to a preferred implementation manner of the present invention, the data query module queries the business interaction data from a cache, and the cache is used to store a plurality of business interaction data from different customers in a database.
[0020] According to a preferred embodiment of the present invention, before querying the business interaction data from the cache, the data query module detects whether a preset master-slave switch indicates to query the business interaction data from the cache, and enters the process of querying the business interaction data from the cache when the master-slave switch indicates to query from the cache.
[0021] According to a preferred implementation manner of the present invention, when the data query module fails to find the service interaction data from the cache or the active / standby switch instructs to query from the database, the data query module queries the service interaction data from the database.
[0022] In order to solve the above technical problem, the third aspect of the present invention proposes an electronic device, which includes a processor and a memory storing computer-executable instructions, and the computer-executable instructions enable the processor to execute the above method when executed.
[0023] In order to solve the above technical problem, the fourth aspect of the present invention proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the above method is implemented.
[0024] According to the technical solution of the present invention, when a customer's request is received, the customer attributes are first queried, and the customer attributes reflect the status of the customer's related business; further, the relevant business interaction data are queried based on the customer attributes. Since the customer attributes reflect the status of the customer's related business, the business interaction data pre-configured based on the customer attributes can reflect the related content of the business status. Since the customer is in this business status, the related content is often the content that the customer is concerned about; the customer interaction interface is generated through the queried business interaction data, so that the customer can view the content tailored for him from the interface, which truly realizes "one thousand faces for one thousand people". BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention, and those skilled in the art can obtain drawings of other embodiments based on these drawings without creative work.
[0026] Figure 1 is a flow chart of a method for generating a customer interaction interface according to an embodiment of the present invention;
[0027] Figure 2 is a flow chart of a method for generating a customer interaction interface according to an embodiment of the present invention;
[0028] Figure 3 is a block diagram of a client interaction interface generating device according to an embodiment of the present invention;
[0029] Figure 4 is a block diagram of a client interaction interface generating device according to an embodiment of the present invention;
[0030] Figure 5 is a block diagram of an electronic device according to an embodiment of the present invention;
[0031] Figure 6 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. Although each exemplary embodiment can be implemented in a variety of specific ways, it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, these exemplary embodiments are provided to make the content of the present invention more complete and to facilitate the comprehensive communication of the inventive concept to those skilled in the art.
[0033] Under the premise of conforming to the technical concept of the present invention, the structure, performance, effect or other characteristics described in a specific embodiment may be combined with one or more other embodiments in any appropriate manner.
[0034] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.
[0035] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to the actual situation without departing from the main purpose of the present invention.
[0036] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0037] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.
[0038] In order to realize the "one size fits all" type of user recommendation, the present invention provides a method for generating a customer interaction interface, which comprises the following steps: firstly, receiving a request from a front end for obtaining business interaction data corresponding to a customer, wherein the business interaction data is used to form a customer interaction interface at the front end for the customer to perform business interaction behaviors; querying the customer attributes of the customer, wherein the customer attributes reflect the status of the customer's related business; querying pre-stored business interaction data corresponding to the customer attributes according to the customer attributes, since the customer attributes reflect the status of the customer's related business, the business interaction data pre-configured according to the customer attributes can reflect the related content of the business status, and since the customer is in the business status, the related content is often the content that the customer is concerned about; sending the business interaction data to the front end, wherein the front end uses the business interaction data to generate the customer interaction interface, and generating the customer interaction interface through the queried business interaction data, so that the customer can view the content tailored for him / her from the interface, thus truly realizing the "one size fits all" type of user recommendation.
[0039] like Figure 1 As shown, in one embodiment of the present invention, a method for generating a customer interaction interface is provided, the method comprising:
[0040] Step S110, receiving a request from the front end to obtain business interaction data corresponding to the customer, the business interaction data is used to form a customer interaction interface on the front end for the customer to perform business interaction behavior.
[0041] In this embodiment, there is no restriction on the type of business interaction data. For example, it may be customer question and answer content. After the customer interaction interface is generated, the customer can click on various question and answer options on the interface. It may also be product information pushed to the customer. After the customer interaction interface is generated, the customer can operate on the interface to understand the detailed information of the product.
[0042] Step S120, querying the customer's customer attributes, where the customer attributes reflect the status of the customer's associated services.
[0043] In this embodiment, there is no restriction on the type of customer attributes. For example, for a financial APP, a customer attribute may be the customer's loan status, including overdue, successful loan, failed loan, etc., which reflects the current status of the customer's business.
[0044] Step S130: According to the customer attributes, query the pre-stored business interaction data corresponding to the customer attributes.
[0045] Step S140, sending the business interaction data to the front end, so that the front end can use the business interaction data to generate a customer interaction interface.
[0046] According to the technical solution of this embodiment, when a customer's request is received, the customer attributes are first queried, and the customer attributes reflect the status of the customer's related business; further, the relevant business interaction data are queried based on the customer attributes. Since the customer attributes reflect the status of the customer's related business, the business interaction data pre-configured based on the customer attributes can reflect the related content of the business status. Since the customer is in this business status, the related content is often the content that the customer is concerned about; the customer interaction interface is generated through the queried business interaction data, so that the customer can view the content tailored for him from the interface, which truly realizes "one thousand faces for one thousand people".
[0047] like Figure 2 As shown, in one embodiment of the present invention, a method for generating a customer interaction interface is provided, the method comprising:
[0048] Step S210, querying the customer's associated services and determining the status of the associated services, and setting customer attributes for the customer for query according to the status of the associated services.
[0049] In this embodiment, customer attributes are customized in advance according to the customer's associated business status, and a connection is established between the customer attributes and the customer's associated business status, so that the customer attributes can accurately reflect the status of the customer's associated business.
[0050] Step S220, receiving a request from the front end to obtain business interaction data corresponding to the customer, the business interaction data is used to form a customer interaction interface on the front end for the customer to perform business interaction behavior.
[0051] Step S230, querying the customer's customer attributes, where the customer attributes reflect the status of the customer's associated business.
[0052] Step S240 , when there are multiple customer attributes, such as the number of customer attributes exceeds a preset threshold, the customer attributes are filtered according to preset conditions until the number of customer attributes does not exceed the threshold.
[0053] In this embodiment, if there are too many customer attributes, more business interaction data will be queried. After the customer interaction interface is generated, the interface content is too much for the customer. Therefore, it is necessary to filter the customer attributes in advance. Specifically, any of the following methods can be used:
[0054] 1. Query the occurrence time of the business corresponding to multiple customer attributes, and filter multiple customer attributes according to the business occurrence time.
[0055] In this embodiment, customers usually pay more attention to the business that happened recently and pay less attention to the business that happened earlier. Therefore, customer attributes can be filtered according to the business occurrence time to ensure that the interaction data of the business that happened recently is queried.
[0056] 2. Identify the importance of multiple customer attributes and filter multiple customer attributes based on their importance.
[0057] In this embodiment, for customers, the importance of different customer attributes is different. For example, for financial apps, if the customer attribute is successful repayment, then this attribute will not have an adverse effect on the customer. If the customer attribute is overdue repayment, then the overdue repayment will have a significant adverse effect on the customer. It can be seen that the importance of the overdue repayment attribute is higher than that of successful repayment. Therefore, filtering is performed based on the importance of customer attributes to ensure that the queried business data are all content that has an important impact on the customer.
[0058] Step S250, detect whether the preset active / standby switch indicates to query the business interaction data from the cache, and when the active / standby switch indicates to query from the cache, query the business interaction data from the cache according to the customer attributes, the cache is used to store multiple business interaction data from different customers in the database.
[0059] Step S260: When no service interaction data is found in the cache or the active / standby switch instructs to query from the database, query the service interaction data from the database.
[0060] In this embodiment, the business data may be stored in a cache (eg, redis) and a database (DB: a database for data storage, such as mysql).
[0061] In this embodiment, the function of quick recommendation for customers is realized, and the performance of the service end in providing services to the outside world is highly required; if the effect of quick recommendation cannot be achieved, it will affect the customer experience, thereby reducing the frequency of users using the APP, and may even cause loss of users; therefore, in the case of high concurrency and big data coexistence, how to achieve intelligent and quick recommendation becomes the key point of the problem. If redis is used alone, once redis is hung up, the relevant functions of the APP end will be paralyzed. If the method of querying DB is used alone, due to the huge amount of data, the query efficiency is low, which will cause customers to wait for the page to load on the APP end. In order to overcome the above difficulties, in this embodiment, the background customer attribute configuration is adopted, and the intelligent recommendation and quick recommendation are realized through the scheme of main-standby switching (that is, when the main scheme is abnormal or hung up, the backup scheme can be switched to the main scheme at any time). The main scheme uses redis cache to cache the business interaction data in redis, and uses the performance of redis to query the business interaction data in redis. The backup scheme uses concurrent programming technology to query the business interaction data in DB, and the main and backup schemes are switched at any time to ensure the normal operation of the APP end.
[0062] Step S270, sending the business interaction data to the front end, so that the front end can use the business interaction data to generate a customer interaction interface.
[0063] A specific implementation of this embodiment is as follows:
[0064] 1. Implement business interaction data storage and query based on DB and redis. After the customer registers with real name, all business interaction data is recorded in DB and synchronized to redis cache. Data synchronization is performed between DB and redis by monitoring mysql update events and redis data synchronization technology. All customer business interaction data is stored in different databases of DB. Since there are many databases involved and the amount of data is large, there are also many interfaces to call. Java concurrent programming technology can be used to start multiple threads to concurrently call the DB interface to query data, and use the CountDownLatch feature for data aggregation.
[0065] 2. Implement intelligent recommendations based on customer attribute configuration. Based on the above content, the question and answer configuration corresponding to each customer attribute (i.e., business interaction data) can be stored in the server's management console and saved in the DB at the same time. For apps with customer question and answer functions, when a customer enters the question and answer page, the front end calls the server interface. At this time, the server queries the customer attribute question and answer configuration from the DB, stores it in redis, and sets a validity period for subsequent queries. This reduces the reading pressure on the DB, improves the system's performance, and enables the customer attribute question and answer to be changed at any time.
[0066] 3. Customer interaction process. After the user opens the APP, the APP customer service center requests the server, carrying parameters including the page source, UR number (user number assigned by the business core system for registered users who have not used real names), etc.; after receiving the parameters, the server queries the main and backup switches and priorities (pre-set main priority or backup priority); if both the main and backup switches are turned on, the one with the higher priority is the main one. If one of the switches is turned off, the one with the switch turned on is the main one, and the other is the backup one and is not used (default main plan: query redis, backup plan: query DB). Conditionally filter the data set queried by the main plan or backup plan, and return the questions and answers that hit the customer attribute configuration to the front end according to the time reverse chronological order to generate a question and answer display. Customers randomly switch questions of related attributes that they are concerned about based on the questions displayed on the page, and then click on the question they want to consult, and the system will display the corresponding answer.
[0067] The technical solution of this embodiment predicts customer problems in advance based on customer attributes and customer front-end APP click behaviors, provides guess questions and answers and solutions, and realizes the effect of one interface for one person and one solution for one person. The solution of configuring customer attributes can realize the change of customer attributes at any time without releasing a version when modifying customer attributes, reducing development manpower and operating costs; the master-slave solution can ensure the smooth execution of business logic, reduce human intervention, and reduce maintenance costs. Once the configuration is completed, only the switch needs to be switched; the redis cache technology and the CountDownLatch technology of concurrent programming can ensure the performance of the server, improve query performance, achieve fast response, reduce the waiting time of users on the page, and improve user experience. The technical solution of this embodiment quickly and flexibly realizes intelligent recommendations, thereby reducing the number of customers transferring to manual services, so as to reduce the work pressure of online customer service personnel.
[0068] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments are implemented as a program executed by a data processing device (including a computer), i.e., a computer program. When the computer program is executed, the above method provided by the present invention can be implemented. Moreover, the computer program can be stored in a computer-readable storage medium, which can be a readable storage medium such as a disk, an optical disk, a ROM, a RAM, or a storage array composed of multiple storage media, such as a disk or a tape storage array. The storage medium is not limited to centralized storage, and it can also be distributed storage, such as cloud storage based on cloud computing.
[0069] The following describes an apparatus embodiment of the present invention, which can be used to execute a method embodiment of the present invention. The details described in the apparatus embodiment of the present invention should be regarded as supplementary to the above method embodiment; details not disclosed in the apparatus embodiment of the present invention can be implemented with reference to the above method embodiment.
[0070] like Figure 3 As shown, in one embodiment of the present invention, a device for generating a customer interaction interface is provided, the device comprising:
[0071] The request receiving module 310 receives a request from the front end to obtain business interaction data corresponding to the customer. The business interaction data is used to form a customer interaction interface on the front end for the customer to perform business interaction behaviors.
[0072] In this embodiment, there is no restriction on the type of business interaction data. For example, it may be customer question and answer content. After the customer interaction interface is generated, the customer can click on various question and answer options on the interface. It may also be product information pushed to the customer. After the customer interaction interface is generated, the customer can operate on the interface to understand the detailed information of the product.
[0073] The attribute query module 320 queries the customer's customer attributes, which reflect the status of the customer's associated business.
[0074] In this embodiment, there is no restriction on the type of customer attributes. For example, for a financial APP, a customer attribute may be the customer's loan status, including overdue, successful loan, failed loan, etc., which reflects the current status of the customer's business.
[0075] The data query module 330 queries pre-stored business interaction data corresponding to the customer attributes according to the customer attributes.
[0076] The data sending module 340 sends the business interaction data to the front end so that the front end can use the business interaction data to generate a customer interaction interface.
[0077] According to the technical solution of this embodiment, when a customer's request is received, the customer attributes are first queried, and the customer attributes reflect the status of the customer's related business; further, the relevant business interaction data are queried based on the customer attributes. Since the customer attributes reflect the status of the customer's related business, the business interaction data pre-configured based on the customer attributes can reflect the related content of the business status. Since the customer is in this business status, the related content is often the content that the customer is concerned about; the customer interaction interface is generated through the queried business interaction data, so that the customer can view the content tailored for him from the interface, which truly realizes "one thousand faces for one thousand people".
[0078] like Figure 4 As shown, in one embodiment of the present invention, a device for generating a customer interaction interface is provided, the device comprising:
[0079] The attribute setting module 410 queries the associated services of the customer and determines the status of the associated services, and sets customer attributes for the customer for query according to the status of the associated services.
[0080] In this embodiment, customer attributes are customized in advance according to the customer's associated business status, and a connection is established between the customer attributes and the customer's associated business status, so that the customer attributes can accurately reflect the status of the customer's associated business.
[0081] The request receiving module 420 receives a request from the front end to obtain business interaction data corresponding to the customer. The business interaction data is used to form a customer interaction interface on the front end for the customer to perform business interaction behaviors.
[0082] The attribute query module 430 queries the customer attributes of the customer, and the customer attributes reflect the status of the customer's associated business.
[0083] The attribute filtering module 440 filters the customer attributes according to preset conditions when there are multiple customer attributes, such as when the number of customer attributes exceeds a preset threshold, until the number of customer attributes does not exceed the threshold.
[0084] In this embodiment, if there are too many customer attributes, more business interaction data will be queried. After the customer interaction interface is generated, the interface content is too much for the customer. Therefore, it is necessary to filter the customer attributes in advance. Specifically, any of the following methods can be used:
[0085] 1. Query the occurrence time of the business corresponding to multiple customer attributes, and filter multiple customer attributes according to the business occurrence time.
[0086] In this embodiment, customers usually pay more attention to the business that happened recently and pay less attention to the business that happened earlier. Therefore, customer attributes can be filtered according to the business occurrence time to ensure that the interaction data of the business that happened recently is queried.
[0087] 2. Identify the importance of multiple customer attributes and filter multiple customer attributes based on their importance.
[0088] In this embodiment, for customers, the importance of different customer attributes is different. For example, for financial apps, if the customer attribute is successful repayment, then this attribute will not have an adverse effect on the customer. If the customer attribute is overdue repayment, then the overdue repayment will have a significant adverse effect on the customer. It can be seen that the importance of the overdue repayment attribute is higher than that of successful repayment. Therefore, filtering is performed based on the importance of customer attributes to ensure that the queried business data are all content that has an important impact on the customer.
[0089] The data query module 450 detects whether the preset active / standby switch indicates to query the business interaction data from the cache, and when the active / standby switch indicates to query from the cache, queries the business interaction data from the cache according to the customer attributes. The cache is used to store multiple business interaction data from different customers in the database.
[0090] The data query module 450 queries the service interaction data from the database when no service interaction data is found in the cache or the active / standby switch instructs to query from the database.
[0091] In this embodiment, the business data may be stored in a cache (eg, redis) and a database (DB: a database for data storage, such as mysql).
[0092] In this embodiment, the function of quick recommendation for customers is realized, and the performance of the service end in providing services to the outside world is highly required; if the effect of quick recommendation cannot be achieved, it will affect the customer experience, thereby reducing the frequency of users using the APP, and may even cause loss of users; therefore, in the case of high concurrency and big data coexistence, how to achieve intelligent and quick recommendation becomes the key point of the problem. If redis is used alone, once redis is hung up, the relevant functions of the APP end will be paralyzed. If the method of querying DB is used alone, due to the huge amount of data, the query efficiency is low, which will cause customers to wait for the page to load on the APP end. In order to overcome the above difficulties, in this embodiment, the background customer attribute configuration is adopted, and the intelligent recommendation and quick recommendation are realized through the scheme of main-standby switching (that is, when the main scheme is abnormal or hung up, the backup scheme can be switched to the main scheme at any time). The main scheme uses redis cache to cache the business interaction data in redis, and uses the performance of redis to query the business interaction data in redis. The backup scheme uses concurrent programming technology to query the business interaction data in DB, and the main and backup schemes are switched at any time to ensure the normal operation of the APP end.
[0093] The data sending module 460 sends the business interaction data to the front end so that the front end can use the business interaction data to generate a customer interaction interface.
[0094] A specific implementation of this embodiment is as follows:
[0095] 1. Implement business interaction data storage and query based on DB and redis. After the customer registers with real name, all business interaction data is recorded in DB and synchronized to redis cache. Data synchronization is performed between DB and redis by monitoring mysql update events and redis data synchronization technology. All customer business interaction data is stored in different databases of DB. Since there are many databases involved and the amount of data is large, there are also many interfaces to call. Java concurrent programming technology can be used to start multiple threads to concurrently call the DB interface to query data, and use the CountDownLatch feature for data aggregation.
[0096] 2. Implement intelligent recommendations based on customer attribute configuration. Based on the above content, the question and answer configuration corresponding to each customer attribute (i.e., business interaction data) can be stored in the server's management console and saved in the DB at the same time. For apps with customer question and answer functions, when a customer enters the question and answer page, the front end calls the server interface. At this time, the server queries the customer attribute question and answer configuration from the DB, stores it in redis, and sets a validity period for subsequent queries. This reduces the reading pressure on the DB, improves the system's performance, and enables the customer attribute question and answer to be changed at any time.
[0097] 3. Customer interaction process. After the user opens the APP, the APP customer service center requests the server, carrying parameters including the page source, UR number (user number assigned by the business core system for registered users who have not used real names), etc.; after receiving the parameters, the server queries the main and backup switches and priorities (pre-set main priority or backup priority); if both the main and backup switches are turned on, the one with the higher priority is the main one. If one of the switches is turned off, the one with the switch turned on is the main one, and the other is the backup one and is not used (default main plan: query redis, backup plan: query DB). Conditionally filter the data set queried by the main plan or backup plan, and return the questions and answers that hit the customer attribute configuration to the front end according to the time reverse chronological order to generate a question and answer display. Customers randomly switch questions of related attributes that they are concerned about based on the questions displayed on the page, and then click on the question they want to consult, and the system will display the corresponding answer.
[0098] The technical solution of this embodiment predicts customer problems in advance based on customer attributes and customer front-end APP click behaviors, provides guess questions and answers and solutions, and realizes the effect of one interface for one person and one solution for one person. The solution of configuring customer attributes can realize the change of customer attributes at any time without releasing a version when modifying customer attributes, reducing development manpower and operating costs; the master-slave solution can ensure the smooth execution of business logic, reduce human intervention, and reduce maintenance costs. Once the configuration is completed, only the switch needs to be switched; the redis cache technology and the CountDownLatch technology of concurrent programming can ensure the performance of the server, improve query performance, achieve fast response, reduce the waiting time of users on the page, and improve user experience. The technical solution of this embodiment quickly and flexibly realizes intelligent recommendations, thereby reducing the number of customers transferring to manual services, so as to reduce the work pressure of online customer service personnel.
[0099] Those skilled in the art will appreciate that the modules in the above device embodiments may be distributed in the device as described, or may be changed accordingly and distributed in one or more devices different from the above embodiments. The modules in the above embodiments may be combined into one module, or may be further split into multiple submodules.
[0100] The electronic device embodiment of the present invention is described below, and the electronic device can be regarded as an implementation of the method and device embodiments of the present invention in a physical form. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.
[0101] Figure 5is a structural block diagram of an exemplary embodiment of an electronic device according to the present invention. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0102] like Figure 5 As shown, the electronic device 200 of this exemplary embodiment is in the form of a general data processing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, etc.
[0103] The storage unit 220 stores a computer-readable program, which may be a source program or a code of a read-only program. The program may be executed by the processing unit 210, so that the processing unit 210 performs the steps of various embodiments of the present invention. For example, the processing unit 210 may perform the following steps: Figure 1 or Figure 2 Steps shown.
[0104] The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and / or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203. The storage unit 220 may also include a program / utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.
[0105] Bus 230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0106] The electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, display, network device, Bluetooth device, etc.) so that a user can interact with the electronic device 200 via these external devices 300, and / or enable the electronic device 200 to communicate with one or more other data processing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 250, and may also be performed through a network adapter 260 with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet). The network adapter 260 may communicate with other modules of the electronic device 200 through the bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0107] Figure 6 Schematic diagram of a computer readable medium embodiment of the present invention. Figure 6 As shown, the computer program can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. When the computer program is executed by one or more data processing devices, the computer-readable medium is enabled to implement the above-mentioned method of the present invention, namely: receiving a request from a front end to obtain business interaction data corresponding to a customer, the business interaction data being used to form a customer interaction interface at the front end for the customer to perform business interaction behaviors; querying the customer attributes of the customer, the customer attributes reflecting the status of the customer's associated business; querying pre-stored business interaction data corresponding to the customer attributes based on the customer attributes; and sending the business interaction data to the front end for the front end to generate the customer interaction interface using the business interaction data.
[0108] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a data processing device (which can be a personal computer, a server, or a network device, etc.) to perform the above method according to the present invention.
[0109] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0110] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0111] In summary, the present invention can be implemented by a method, apparatus, electronic device or computer-readable medium that executes a computer program. In practice, a general data processing device such as a microprocessor or a digital signal processor (DSP) can be used to implement some or all functions of the present invention.
[0112] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a customer interaction interface, characterized in that: include: Receiving a request from a front end for obtaining business interaction data corresponding to a customer, wherein the business interaction data is used to form a customer interaction interface at the front end for the customer to perform business interaction behavior; Querying customer attributes of the customer, where the number of the customer attributes is multiple, and the customer attributes reflect the status of the associated business of the customer; All business interaction data after the customer's real-name registration is recorded in different databases and synchronized to the cache; the front-end calls the server interface to query the question-and-answer configuration corresponding to the customer attributes in the database, puts it into the cache and sets the validity period, so that the customer attributes do not need to be changed by issuing a version; If the number of the customer attributes exceeds a preset threshold, the customer attributes are filtered according to preset conditions, wherein the preset conditions include the order of occurrence of the business and the importance, until the number of the customer attributes does not exceed the threshold; detecting whether a preset active / standby switch indicates to query the service interaction data from a cache, and when the active / standby switch indicates to query from the cache, entering and querying the pre-stored service interaction data corresponding to and configured by the customer attributes from the cache according to the customer attributes, the cache being used to store a plurality of service interaction data from different customers in a database, and the associated content of the state reflected by the customer attributes reflected in the service interaction data; The business interaction data is sent to the front end, so that the front end uses the business interaction data to generate the customer interaction interface.
2. The method for generating a customer interaction interface according to claim 1, characterized in that: Before querying the customer attributes of the customer, the method further includes: Customize customer attributes in advance according to the status of the customer's associated business, establish a connection between customer attributes and the status of the customer's associated business, query the customer's associated business and determine the status of the associated business, and set the customer attributes for the customer for query according to the status of the associated business.
3. The method for generating a customer interaction interface according to claim 1, characterized in that: The filtering of the customer attributes according to the preset conditions includes: The occurrence time of the business corresponding to multiple customer attributes is queried, and the multiple customer attributes are filtered according to the business occurrence time to ensure that the interaction data of the business that has occurred recently is queried.
4. The method for generating a customer interaction interface according to claim 1, characterized in that: The filtering of the customer attributes according to the preset conditions includes: The importance of multiple customer attributes is identified, and the multiple customer attributes are filtered according to the importance, to ensure that the queried business data is content that has a significant impact on the customer.
5. The method for generating a customer interaction interface according to claim 1, characterized in that: The business interaction data is stored in the cache redis and the database DB.
6. The method for generating a customer interaction interface according to claim 1, characterized in that: Also includes: When the service interaction data is not found in the cache or the active / standby switch instructs to query from the database, the service interaction data is queried from the database.
7. A device for generating a customer interaction interface, characterized in that: include: A request receiving module receives a request from a front end for obtaining business interaction data corresponding to a customer, wherein the business interaction data is used to form a customer interaction interface at the front end for the customer to perform business interaction behavior; An attribute query module queries the customer attributes of the customer, where the number of the customer attributes is multiple and the customer attributes reflect the status of the associated business of the customer; An attribute filtering module, if the number of the customer attributes exceeds a preset threshold, filters the customer attributes according to preset conditions, the preset conditions including the order of business occurrence and the importance, until the number of the customer attributes does not exceed the threshold; In the data query module, all business interaction data after the customer's real-name registration is recorded in different databases and synchronized to the cache; the front end calls the server interface to query the question and answer configuration corresponding to the customer attributes in the database, puts it into the cache and sets the validity period, so that the customer attributes do not need to be changed by issuing a version; detecting whether a preset active / standby switch indicates to query the service interaction data from a cache, and when the active / standby switch indicates to query from the cache, entering and querying the pre-stored service interaction data corresponding to and configured by the customer attributes from the cache according to the customer attributes, the cache being used to store a plurality of service interaction data from different customers in a database, and the associated content of the state reflected by the customer attributes reflected in the service interaction data; The data sending module sends the business interaction data to the front end so that the front end can use the business interaction data to generate the customer interaction interface.
8. The client interaction interface generating device according to claim 7, characterized in that: Also includes: The attribute setting module customizes the customer attributes according to the customer's associated business status in advance before querying the customer attributes of the customer, establishes a connection between the customer attributes and the status of the customer's associated business, queries the customer's associated business and determines the status of the associated business, and sets the customer attributes for the customer for query according to the status of the associated business.
9. The client interaction interface generation device according to claim 7, characterized in that: The attribute filtering module queries the occurrence time of the services corresponding to the multiple customer attributes, and filters the multiple customer attributes according to the occurrence time of the services, to ensure that the interaction data of the services that have occurred recently are queried.
10. The client interaction interface generating device according to claim 7, characterized in that: The attribute filtering module identifies the importance of multiple customer attributes, and filters the multiple customer attributes according to the importance, to ensure that the queried business data is content that has a significant impact on the customer.
11. The client interaction interface generating device according to claim 7, characterized in that: The business interaction data is stored in the cache redis and the database DB.
12. The client interaction interface generating device according to claim 8, characterized in that: The data query module queries the service interaction data from the database when the service interaction data is not found in the cache or the active / standby switch instructs to query from the database.
13. An electronic device comprising: processor; as well as A memory storing computer executable instructions which, when executed, cause the processor to perform the method according to any one of claims 1-6.
14. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
