CN110995577A - Multi-channel adaptation method and device for message and storage medium - Google Patents

Multi-channel adaptation method and device for message and storage medium Download PDF

Info

Publication number
CN110995577A
CN110995577A CN201911416993.XA CN201911416993A CN110995577A CN 110995577 A CN110995577 A CN 110995577A CN 201911416993 A CN201911416993 A CN 201911416993A CN 110995577 A CN110995577 A CN 110995577A
Authority
CN
China
Prior art keywords
message
downlink
channel
downlink message
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911416993.XA
Other languages
Chinese (zh)
Other versions
CN110995577B (en
Inventor
段雨洛
孙蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Microfountain Technology Co ltd
Original Assignee
Zhuhai Microfountain Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Microfountain Technology Co ltd filed Critical Zhuhai Microfountain Technology Co ltd
Priority to CN201911416993.XA priority Critical patent/CN110995577B/en
Publication of CN110995577A publication Critical patent/CN110995577A/en
Application granted granted Critical
Publication of CN110995577B publication Critical patent/CN110995577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a multichannel adaptation method of a message, which comprises the following steps: receiving an uplink message uploaded through an uplink message channel; judging whether the message type in the message standard used by the Chatbot is the same as the message type of the uplink message channel; if not, the uplink message is encapsulated according to the message standard used by the Chatbot; receiving a downlink message sent by Chatbot; judging whether the message standard used by the downlink message channel supports the message type of the downlink message; if so, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to the target terminal; and if not, generating an HTML static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to the target terminal. The invention can enable the message to be simultaneously adapted to a plurality of different channels, and avoids the problems of higher cost and poor reusability caused by repeatedly developing Chatbot. The invention also provides a device and a storage medium.

Description

Multi-channel adaptation method and device for message and storage medium
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for multi-channel adaptation of a message, and a storage medium.
Background
With the development of mobile communication technology, the human-computer interaction technology is more mature, and Chatbot (chat robot) is a brand new human-computer interaction mode.
In the prior art, Chatbot is developed according to message standards of different third party platforms when interacting with different third party platforms, and the developed Chatbot is only applicable to a channel of one message standard.
Therefore, in the prior art, the message body formats of different channels are not uniform, and the supported message types are not uniform, so that Chatbot adapted to different channels needs to be generated when a message is accessed to different channels, thereby causing the problems of high cost and poor reusability.
Disclosure of Invention
The embodiment of the invention provides a multi-channel adaptation method of a message, which can enable the message to be adapted to a plurality of different channels simultaneously and avoid the problems of higher cost and poor reusability caused by repeatedly developing Chatbot.
The embodiment of the invention provides a multichannel adaptation method of a message, which comprises the following steps:
receiving an uplink message uploaded through an uplink message channel;
inquiring the type of the Chatbot serving the uplink message channel, and judging whether a message type which is the same as the message type of the uplink message channel exists in the message standard used by the Chatbot;
when the message standard used by the Chatbot does not have the message type same as the message type of the uplink message channel, encapsulating the uplink message according to the message standard used by the Chatbot, and sending the encapsulated uplink message to the Chatbot;
receiving a downlink message sent by Chatbot;
inquiring a downlink message channel used by the downlink message, and judging whether the message standard used by the downlink message channel supports the message type of the downlink message;
when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
and when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal.
As an improvement of the above scheme, the method further comprises the following steps: and when the message standard used by the Chatbot has the message type same as that of the message in the uplink message channel, obtaining the message content from the uplink message, splicing the message content of the uplink message according to the message standard used by the Chatbot, and sending the packaged uplink message to the Chatbot.
As an improvement of the above scheme, the determining whether the message standard used by the downlink message channel supports the message type of the downlink message specifically includes:
judging whether a message type identical to that of the downlink message exists in a message standard used by the downlink message channel;
judging whether a message type similar to the message type of the downlink message exists in the message standard used by the downlink message channel;
judging whether the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is completely consistent;
when a first judgment condition is met, the message type of the downlink message is supported in the message standard used by the downlink message channel; and when the second judgment condition is met, the message type of the downlink message is not supported in the message standard used by the downlink message channel.
As a modification of the above, the first determination condition includes at least one of:
the message standard used by the downlink message channel has a message type which is the same as the message type of the downlink message;
the message standard used by the downlink message channel has a message type similar to that of the downlink message;
the message standard of the message type of the downlink message used in the Chatbot is completely consistent with the format information in the message standard of the downlink message channel;
the second determination condition includes:
the message standard used by the downlink message channel does not have the message type same as the message type of the downlink message, the message standard used by the downlink message channel does not have the message type similar to the message type of the downlink message, and the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is not completely consistent.
As an improvement of the above scheme, if all elements to be displayed in the downlink message have corresponding storage positions in the message standard used by the downlink message channel, or all buttons that can be clicked in the downlink message have positions that can be displayed in the message standard used by the downlink message channel, then the message standards used by the downlink message channel have message types similar to the message types of the downlink message.
As an improvement of the above scheme, the method further comprises the following steps:
when the message type of the downlink message is not completely consistent with the format information in the channel message standard of the downlink message and the message standard used by the Chatbot and the format information of the downlink message is not in the channel message standard range, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal;
and when the format information of the message type of the downlink message in the Chatbot message standard is not completely consistent with the format information in the downlink message channel message standard and the format information of the downlink message is in the channel message standard range, acquiring the message content from the downlink message, splicing the message content of the downlink message according to the message standard used by the downlink message channel, and sending the packaged downlink message to the target terminal.
As an improvement of the above scheme, the generating an HTML static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal specifically includes:
and filling the downlink message into an H5 template to generate a new HTML static file, uploading the HTML static file to a static server to generate a downlink message resource link, and sending the downlink message resource link to a target terminal.
Correspondingly, an embodiment of the present invention provides a multi-channel adaptation system for messages, including:
an uplink message receiving unit, configured to receive an uplink message uploaded through an uplink message channel;
a first judging unit, configured to query a type of Chatbot serving for the uplink message channel, and judge whether a message type that is the same as the message type of the uplink message channel exists in a message standard used by the Chatbot;
an uplink message sending unit, configured to, when there is no message type that is the same as the message type of the uplink message channel in the message standard used by the Chatbot, encapsulate the uplink message according to the message standard used by the Chatbot, and send the encapsulated uplink message to the Chatbot;
a downlink message receiving unit, configured to receive a downlink message sent by Chatbot;
a second judging unit, configured to query a downlink message channel used by the downlink message, and judge whether a message standard used by the downlink message channel supports a message type of the downlink message;
a downlink message sending unit, configured to:
when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
and when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal. Correspondingly, a third embodiment of the present invention provides a multi-channel adaptation apparatus for a message, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the multi-channel adaptation method for a message according to the first embodiment of the present invention.
Correspondingly, an embodiment four of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the multi-channel adaptation method for a message according to the embodiment one of the present invention.
Compared with the prior art, the multichannel adaptation method, the multichannel adaptation device and the storage medium for the message provided by the embodiment of the invention have the following beneficial effects:
through the message conversion between the channel and the Chatbot, the message can be simultaneously adapted to a plurality of different channels, and most message bodies in the existing channels are covered; the method can support messages in formats such as text, pictures, music, video and the like, and provide rich interactive experience for end-side users; the problem that the developed Chatbot is only suitable for the channel when the Chatbot interacts with the user through the third party channel and needs to be developed according to the standard of the channel is solved, thereby greatly improving the multiplexing property of the Chatbot, reducing the development cost of the Chatbot for butting multiple channels caused by repeated development and increasing the service coverage rate.
Drawings
Fig. 1 is a flowchart illustrating a method for multi-channel adaptation of a message according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a multi-channel adaptation system for messages according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a flowchart of a method for adapting multiple channels of messages according to an embodiment of the present invention, including:
s101, receiving an uplink message uploaded through an uplink message channel;
s102, inquiring the type of the Chatbot serving for the uplink message channel, and judging whether the message standard used by the Chatbot has the message type same as the message type of the uplink message channel;
s103, when the message standard used by the Chatbot does not have the message type same as the message type of the uplink message channel, the uplink message is encapsulated according to the message standard used by the Chatbot, and the encapsulated uplink message is sent to the Chatbot;
further, still include: and when the message standard used by the Chatbot has the message type same as that of the uplink message channel, acquiring the message content from the uplink message, splicing the message content of the uplink message according to the message standard used by the Chatbot, and sending the packaged uplink message to the Chatbot.
S104, receiving a downlink message sent by Chatbot;
s105, inquiring a downlink message channel used by the downlink message, and judging whether the message standard used by the downlink message channel supports the message type of the downlink message;
s106, when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining the message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
s107, when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal.
Further, the determining whether the message standard used by the downlink message channel supports the message type of the downlink message specifically includes:
judging whether a message type identical to that of the downlink message exists in a message standard used by the downlink message channel;
judging whether a message type similar to the message type of the downlink message exists in the message standard used by the downlink message channel;
judging whether the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is completely consistent;
when a first judgment condition is met, the message type of the downlink message is supported in the message standard used by the downlink message channel; and when the second judgment condition is met, the message type of the downlink message is not supported in the message standard used by the downlink message channel.
The first judgment condition includes at least one of:
the message standard used by the downlink message channel has a message type which is the same as the message type of the downlink message;
the message standard used by the downlink message channel has a message type similar to that of the downlink message;
the message standard of the message type of the downlink message used in the Chatbot is completely consistent with the format information in the message standard of the downlink message channel;
the second determination condition includes:
the message standard used by the downlink message channel does not have the message type same as the message type of the downlink message, the message standard used by the downlink message channel does not have the message type similar to the message type of the downlink message, and the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is not completely consistent.
Preferably, the format information in the message standard includes size or format, etc.
Further, still include: when the message standard used by the downlink message channel does not have the message type which is the same as the message type of the downlink message, judging whether the message standard used by the downlink message channel has the message type which is similar to the message type of the downlink message;
if the downlink message resource link does not exist, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal;
if the downlink message exists, the message content of the downlink message is packaged according to the similar message type, and the packaged downlink message is sent to the target terminal;
if the elements to be displayed in the downlink message have corresponding storage positions in the message standard used by the downlink message channel, or the buttons which can be clicked in the downlink message have positions which can be displayed in the message standard used by the downlink message channel, the message standards used by the downlink message channel have message types similar to the message types of the downlink message.
Further, still include:
when the message type of the downlink message is not completely consistent with the format information in the channel message standard of the downlink message and the message standard used by the Chatbot and the format information of the downlink message is not in the channel message standard range, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal;
and when the format information of the message type of the downlink message in the Chatbot message standard is not completely consistent with the format information in the downlink message channel message standard and the format information of the downlink message is in the channel message standard range, acquiring the message content from the downlink message, splicing the message content of the downlink message according to the message standard used by the downlink message channel, and sending the packaged downlink message to the target terminal.
Further, generating an HTML static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to the target terminal, specifically including:
and filling the downlink message into an H5 template to generate a new HTML static file, uploading the HTML static file to a static server to generate a downlink message resource link, and sending the downlink message resource link to the target terminal.
It should be noted that, in a specific embodiment, the uplink message channel and the downlink message channel described in the embodiment of the present invention may be the same channel that operates in two modes of receiving an uplink message and sending a downlink message.
In a specific embodiment, taking the message interaction between the WeChat and the MaaP (Messaging as a Platform), MaaPChatbot refers to Chatbot developed according to the MaaP channel standard, and follows the message style and message body format provided by the MaaP when processing the upstream message parsing and the downstream message encapsulation. Chatbot is a Chatbot developed in the channel standard for wechat public numbers, and follows the message style and message body format provided by wechat public numbers when processing upstream message parsing and downstream message encapsulation.
The MaaPChatbot docking mode refers to a set of scheme provided for the MaaPChatbot docking, and the Chatbot is required to modify a request address on the basis of the original docking and add Chatbot authentication information in an original request header, so that the original uplink message analysis and downlink message encapsulation processes are not influenced.
The chat docking mode of the WeChat is a set of scheme for providing the chat for docking, and the Chatbot is required to modify a request address on the basis of the original docking and add the Chatbot authentication information in the original request header, so that the original uplink message analysis and downlink message encapsulation processes are not influenced.
The conversion of message bodies of different channels to the MaaP channel message standard and the micro communication channel message standard is realized through the following steps:
(1) WeChat-MaaP uplink message interaction
Receiving an uplink message uploaded through a micro communication channel;
judging whether a message type identical to that of the WeChat channel exists in the message standard used by the MaaPChatbot;
when the message standard used by the MaaPChatbot does not have the message type which is the same as the message type of the WeChat channel, the uplink message is encapsulated according to the message standard used by the MaaPChatbot, and the encapsulated uplink message is sent to the MaaPChatbot for the next service processing;
and when the message standard used by the MaaPChatbot has the message type which is the same as the message type of the WeChat channel, acquiring the message content from the uplink message, splicing the message content of the uplink message according to the message standard used by the MaaPChatbot, and sending the packaged uplink message to the MaaPChatbot.
(2) MaaP-WeChat downlink message interaction
Receiving a downlink message sent by MaaPChatbot;
the following judgment is made:
a, judging whether a message type same as that of the downlink message exists in a message standard used by the downlink message channel; if the judgment result is positive, a first judgment condition is met; if not, executing the next judgment B;
B. judging whether a message type similar to the message type of the downlink message exists in the message standard used by the downlink message channel; if the judgment result is positive, a first judgment condition is met; if not, executing the next judgment C;
C. judging whether the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is completely consistent; if the judgment result is positive, a first judgment condition is met; and if not, the second judgment condition is met.
If the first judgment condition is met, namely at least one of the three judgments is met, acquiring message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the micro communication channel, and sending the encapsulated downlink message to the intelligent terminal corresponding to the micro communication channel;
and if the second judgment condition is met, namely the three judgments are not met, filling the downlink message into the H5 template to generate a new HTML static file, uploading the HTML static file to a static server to generate a downlink message resource link, and then sending the downlink message resource link to the intelligent terminal corresponding to the micro communication channel.
Therefore, the messages of different channels can be mutually converted with the MaaP message standard, and the messages of different channels can be mutually converted with the WeChat message standard.
The details of the conversion of the standards for the micro-channel messages to the maappchatbot messages are given in table 1 below:
TABLE 1
Figure BDA0002351446460000111
Figure BDA0002351446460000121
Figure BDA0002351446460000131
Referring to fig. 2, it is a schematic structural diagram of a multi-channel adaptation system for messages correspondingly provided in an embodiment of the present invention, including:
an uplink message receiving unit 201, configured to receive an uplink message uploaded through an uplink message channel;
a first judging unit 202, configured to query a type of Chatbot serving for the uplink message channel, and judge whether a message type that is the same as the message type of the uplink message channel exists in a message standard used by the Chatbot;
an uplink message sending unit 203, configured to, when there is no message type that is the same as the message type of the uplink message channel in the message standard used by the Chatbot, encapsulate the uplink message according to the message standard used by the Chatbot, and send the encapsulated uplink message to the Chatbot;
a downlink message receiving unit 204, configured to receive a downlink message sent by Chatbot;
a second determining unit 205, configured to query a downlink message channel used by the downlink message, and determine whether a message standard used by the downlink message channel supports a message type of the downlink message;
a downlink message sending unit 206, configured to:
when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
and when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal.
Correspondingly, a third embodiment of the present invention provides a multi-channel adaptation apparatus for a message, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements a multi-channel adaptation method for a message according to the first embodiment of the present invention. The multi-channel adaptation device of the message can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The multi-channel adaptation means of the message may include, but is not limited to, a processor, a memory.
Correspondingly, an embodiment four of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the multi-channel adaptation method for a message according to the embodiment one of the present invention.
Compared with the prior art, the multichannel adaptation method, the multichannel adaptation device and the storage medium for the message provided by the embodiment of the invention have the following beneficial effects:
through the message conversion between the channel and the Chatbot, the message can be simultaneously adapted to a plurality of different channels, and most message bodies in the existing channels are covered; the method can support messages in formats such as text, pictures, music, video and the like, and provide rich interactive experience for end-side users; the problem that the developed Chatbot is only suitable for the channel when the Chatbot interacts with the user through the third party channel and needs to be developed according to the standard of the channel is solved, thereby greatly improving the multiplexing property of the Chatbot, reducing the development cost of the Chatbot for butting multiple channels caused by repeated development and increasing the service coverage rate.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the multi-channel adaptation means of the message, the various parts of the multi-channel adaptation means of the whole message being connected by various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the processor may implement the various functions of the multi-channel adaptation device of messages by running or executing the computer programs and/or modules stored in the memory, as well as invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid state storage device.
Wherein the modules/units integrated by the multi-channel adaptation means of the message, if implemented in the form of software functional units and sold or used as separate products, can be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that the above-described device embodiments are merely illustrative, and units illustrated as separate components may or may not be physically separate, and components illustrated as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A method for multi-channel adaptation of a message, comprising:
receiving an uplink message uploaded through an uplink message channel;
inquiring the type of the Chatbot serving the uplink message channel, and judging whether a message type which is the same as the message type of the uplink message channel exists in the message standard used by the Chatbot;
when the message standard used by the Chatbot does not have the message type same as the message type of the uplink message channel, encapsulating the uplink message according to the message standard used by the Chatbot, and sending the encapsulated uplink message to the Chatbot;
receiving a downlink message sent by Chatbot;
inquiring a downlink message channel used by the downlink message, and judging whether the message standard used by the downlink message channel supports the message type of the downlink message;
when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
and when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal.
2. A method for multi-channel adaptation of a message as claimed in claim 1, further comprising: and when the message standard used by the Chatbot has the message type same as that of the uplink message channel, obtaining the message content from the uplink message, splicing the message content of the uplink message according to the message standard used by the Chatbot, and sending the packaged uplink message to the Chatbot.
3. The method for multi-channel adaptation of a message according to claim 1, wherein the determining whether the message standard used by the downlink message channel supports the message type of the downlink message specifically comprises:
judging whether a message type identical to that of the downlink message exists in a message standard used by the downlink message channel;
judging whether a message type similar to the message type of the downlink message exists in the message standard used by the downlink message channel;
judging whether the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is completely consistent;
when a first judgment condition is met, the message type of the downlink message is supported in the message standard used by the downlink message channel; and when the second judgment condition is met, the message type of the downlink message is not supported in the message standard used by the downlink message channel.
4. A method for multi-channel adaptation of a message as claimed in claim 3, characterized in that the first decision condition comprises at least one of the following:
the message standard used by the downlink message channel has a message type which is the same as the message type of the downlink message;
the message standard used by the downlink message channel has a message type similar to that of the downlink message;
the message standard of the message type of the downlink message used in the Chatbot is completely consistent with the format information in the message standard of the downlink message channel;
the second determination condition includes:
the message standard used by the downlink message channel does not have the message type same as the message type of the downlink message, the message standard used by the downlink message channel does not have the message type similar to the message type of the downlink message, and the format information of the message type of the downlink message in the message standard used by the Chatbot and the message standard of the downlink message channel is not completely consistent.
5. A method for multi-channel adaptation of a message as claimed in claim 3, further comprising:
if the elements to be displayed in the downlink message all have corresponding storage positions in the message standard used by the downlink message channel, or the buttons which can be clicked in the downlink message all have positions which can be displayed in the message standard used by the downlink message channel, the message standards used by the downlink message channel have message types similar to the message types of the downlink message.
6. A method for multi-channel adaptation of a message as claimed in claim 1, further comprising:
when the message type of the downlink message is not completely consistent with the format information in the channel message standard of the downlink message and the message standard used by the Chatbot and the format information of the downlink message is not in the channel message standard range, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal;
and when the format information of the message type of the downlink message in the Chatbot message standard is not completely consistent with the format information in the downlink message channel message standard and the format information of the downlink message is in the channel message standard range, acquiring the message content from the downlink message, splicing the message content of the downlink message according to the message standard used by the downlink message channel, and sending the packaged downlink message to the target terminal.
7. The method according to any one of claims 1 to 6, wherein the generating an HTML static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal includes:
and filling the downlink message into an H5 template to generate a new HTML static file, uploading the HTML static file to a static server to generate a downlink message resource link, and sending the downlink message resource link to a target terminal.
8. A system for multi-channel adaptation of messages, comprising:
an uplink message receiving unit, configured to receive an uplink message uploaded through an uplink message channel;
a first judging unit, configured to query a type of Chatbot serving for the uplink message channel, and judge whether a message type that is the same as the message type of the uplink message channel exists in a message standard used by the Chatbot;
an uplink message sending unit, configured to, when there is no message type that is the same as the message type of the uplink message channel in the message standard used by the Chatbot, encapsulate the uplink message according to the message standard used by the Chatbot, and send the encapsulated uplink message to the Chatbot;
a downlink message receiving unit, configured to receive a downlink message sent by Chatbot;
a second judging unit, configured to query a downlink message channel used by the downlink message, and judge whether a message standard used by the downlink message channel supports a message type of the downlink message;
a downlink message sending unit, configured to:
when the message type of the downlink message is supported in the message standard used by the downlink message channel, obtaining message content from the downlink message, assembling the message content of the downlink message according to the message standard used by the downlink message channel, and sending the encapsulated downlink message to a target terminal;
and when the message standard used by the downlink message channel does not support the message type of the downlink message, generating an HTML (hypertext markup language) static file according to the downlink message, uploading the HTML static file to a static server, generating a downlink message resource link, and sending the downlink message resource link to a target terminal.
9. An apparatus for multi-channel adaptation of a message, comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a multi-channel adaptation method of a message according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method for multi-channel adaptation of messages according to any one of claims 1 to 7.
CN201911416993.XA 2019-12-31 2019-12-31 Multi-channel adaptation method and device for message and storage medium Active CN110995577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911416993.XA CN110995577B (en) 2019-12-31 2019-12-31 Multi-channel adaptation method and device for message and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911416993.XA CN110995577B (en) 2019-12-31 2019-12-31 Multi-channel adaptation method and device for message and storage medium

Publications (2)

Publication Number Publication Date
CN110995577A true CN110995577A (en) 2020-04-10
CN110995577B CN110995577B (en) 2021-10-22

Family

ID=70080037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911416993.XA Active CN110995577B (en) 2019-12-31 2019-12-31 Multi-channel adaptation method and device for message and storage medium

Country Status (1)

Country Link
CN (1) CN110995577B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979284A (en) * 2021-04-27 2022-08-30 中移互联网有限公司 5G message scheduling method, device and system
CN114979981A (en) * 2022-03-11 2022-08-30 中移互联网有限公司 Message transmission method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170180284A1 (en) * 2015-03-25 2017-06-22 Pypestream Inc. Systems and methods for invoking chatbots in a channel based communication system
CN107645438A (en) * 2016-07-21 2018-01-30 北京快乐智慧科技有限责任公司 A kind of method and system of intelligent interaction robot remote communication
CN107979520A (en) * 2016-10-25 2018-05-01 腾讯科技(深圳)有限公司 Message treatment method and message processing apparatus
CN109101493A (en) * 2018-08-01 2018-12-28 东北大学 A kind of intelligence house-purchase assistant based on dialogue robot
CN110096191A (en) * 2019-04-24 2019-08-06 北京百度网讯科技有限公司 A kind of interactive method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170180284A1 (en) * 2015-03-25 2017-06-22 Pypestream Inc. Systems and methods for invoking chatbots in a channel based communication system
CN107645438A (en) * 2016-07-21 2018-01-30 北京快乐智慧科技有限责任公司 A kind of method and system of intelligent interaction robot remote communication
CN107979520A (en) * 2016-10-25 2018-05-01 腾讯科技(深圳)有限公司 Message treatment method and message processing apparatus
CN109101493A (en) * 2018-08-01 2018-12-28 东北大学 A kind of intelligence house-purchase assistant based on dialogue robot
CN110096191A (en) * 2019-04-24 2019-08-06 北京百度网讯科技有限公司 A kind of interactive method, device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979284A (en) * 2021-04-27 2022-08-30 中移互联网有限公司 5G message scheduling method, device and system
CN114979284B (en) * 2021-04-27 2023-06-30 中移互联网有限公司 5G message scheduling method, device and system
CN114979981A (en) * 2022-03-11 2022-08-30 中移互联网有限公司 Message transmission method and device, electronic equipment and storage medium
CN114979981B (en) * 2022-03-11 2023-07-21 中移互联网有限公司 Message transmission method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110995577B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US9501259B2 (en) Audio output device to dynamically generate audio ports for connecting to source devices
US9979611B2 (en) Client-server system for network services and applications for mobile telecommunications terminals
CN105426448B (en) Interface display method, apparatus and system
CN104754536A (en) Method and system for realizing communication between different languages
CN110995577B (en) Multi-channel adaptation method and device for message and storage medium
CN103974111B (en) By the method, apparatus of the data transfer on intelligent terminal to television terminal
CN108108139B (en) Screen projection access method for cloud conference
US9571430B2 (en) Systems, methods, and computer program products for automatic mapping between parlay-X short messaging service message element XML encoding and native SMPP protocol data coding scheme
CN111953709A (en) Multimedia content transmission method, multimedia content display device and electronic equipment
WO2022057677A1 (en) Vibration control method and apparatus, and electronic device and computer-readable storage medium
CN104660547B (en) A kind of service platform for realizing telecommunication
CN109684114A (en) Message distributing method, device, terminal and medium based on iOS system
CN111128159B (en) Method and system for realizing multi-channel message distribution of intelligent loudspeaker box
CN114979984A (en) Message transmission method and device
CN111147359B (en) Message conversion method, device and storage medium suitable for multiple channels
CN113473395B (en) Message processing method, device, medium and electronic equipment
CN105577603A (en) Method and device for broadcasting multimedia messages
CN116455879A (en) Method, device, medium and equipment for carrying out NLP real-time test based on fresh and WebRTC technology
CN114979256B (en) Message pushing method and device, electronic equipment and computer readable medium
EP3119067B1 (en) Client-server system for network services and applications for mobile telecommunications terminals
CN110602194B (en) IOT message subscription method, IOT message subscription device and computer readable storage medium
CN114500657B (en) Media play control method, device, electronic equipment and readable storage medium
KR102292086B1 (en) Messenger service system, method and apparatus for displaying information during voice call waiting in the system
CN110855539B (en) Device discovery method, device and storage medium
CN107733947A (en) Image acquiring method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant