[go: up one dir, main page]

JP2023147890A - Message relay device, message relay method, and program - Google Patents

Message relay device, message relay method, and program Download PDF

Info

Publication number
JP2023147890A
JP2023147890A JP2022055652A JP2022055652A JP2023147890A JP 2023147890 A JP2023147890 A JP 2023147890A JP 2022055652 A JP2022055652 A JP 2022055652A JP 2022055652 A JP2022055652 A JP 2022055652A JP 2023147890 A JP2023147890 A JP 2023147890A
Authority
JP
Japan
Prior art keywords
message
option
options
destination
association
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
JP2022055652A
Other languages
Japanese (ja)
Other versions
JP7146126B1 (en
Inventor
秀明 川端
Hideaki Kawabata
秀行 小頭
Hideyuki Kogashira
翔太 中村
Shota Nakamura
一平 加藤
Ippei Kato
千洋 渡辺
Chihiro Watanabe
美冬 木戸
Mifuyu Kido
雅俊 森田
Masatoshi Morita
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.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2022055652A priority Critical patent/JP7146126B1/en
Application granted granted Critical
Publication of JP7146126B1 publication Critical patent/JP7146126B1/en
Publication of JP2023147890A publication Critical patent/JP2023147890A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

【課題】ユーザから受信した返信メッセージを受信すべき装置に通知できるようにする。【解決手段】メッセージの送信先と内容と送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する配信要求受信部131と、受信したメッセージ配信要求に含まれる選択肢と、メッセージ配信装置2を識別する識別情報と、を関連付けた関連付け選択肢を生成する選択肢管理部132と、受信したメッセージ配信要求に含まれる内容と、関連付け選択肢と、を含むメッセージを当該送信先に送信する送信部133と、当該送信先のユーザが関連付け選択肢を選択することにより送信されたメッセージを受信する受信部134と、受信したメッセージに含まれる関連付け選択肢に含まれる識別情報に対応するメッセージ配信装置2に、受信したメッセージに含まれる選択肢を通知する通知部135と、を有するメッセージ中継装置1である。【選択図】図2The present invention enables a device that should receive a reply message to be notified of a reply message received from a user. SOLUTION: A delivery request receiving unit 131 that receives a message delivery request including a message destination, contents, and options available to a user at the destination, options included in the received message delivery request, and a message distribution device 2. an option management unit 132 that generates an association option associated with identification information that identifies the , and a transmission unit 133 that transmits a message including the content included in the received message delivery request and the association option to the destination. , the receiving unit 134 receives the message transmitted when the destination user selects the association option, and the message distribution device 2 corresponding to the identification information included in the association option included in the received message. The message relay device 1 includes a notification unit 135 that notifies options included in a message. [Selection diagram] Figure 2

Description

本発明は、メッセージ中継装置、メッセージ中継方法及びプログラムに関する。 The present invention relates to a message relay device, a message relay method, and a program.

企業と消費者との間のコミュニケーションチャネルとしてのメッセージングサービスが活用されている。メッセージを送受信するためのメッセージングサービスにおいて、企業が消費者に対して様々なコンテンツを提供するシステムが知られている(例えば、特許文献1を参照)。 Messaging services are being utilized as a communication channel between businesses and consumers. 2. Description of the Related Art In a messaging service for sending and receiving messages, a system is known in which a company provides various contents to consumers (see, for example, Patent Document 1).

特開2017-62850号公報JP2017-62850A

このようなメッセージングサービスにおいてはメッセージの受信者が簡易な操作で応答できるようアクションボタンが含まれる場合がある。ここで、メッセージの標準規格の制約によりアクションボタンにより応答されたメッセージと送信したメッセージの紐づけができず、受信したメッセージに対応する配信装置を特定できないという問題が生じていた。 Such messaging services may include action buttons so that message recipients can respond with simple operations. Here, due to the restrictions of the message standard, it is not possible to link the message responded to by the action button with the transmitted message, resulting in a problem that it is not possible to identify the distribution device corresponding to the received message.

そこで、本発明はこれらの点に鑑みてなされたものであり、ユーザから受信した返信メッセージを受信すべき装置に通知できるようにすることを目的とする。 The present invention has been made in view of these points, and it is an object of the present invention to enable a device that should receive a reply message to be notified of a reply message received from a user.

本発明の第1の態様のメッセージ中継装置においては、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する配信要求受信部と、受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置を識別する識別情報と、を関連付けた関連付け選択肢を生成する選択肢管理部と、前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信する送信部と、前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信する受信部と、受信したメッセージに含まれる前記関連付け選択肢に含まれる前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知する通知部と、を有する。 The message relay device according to the first aspect of the present invention includes a delivery request receiving unit that receives a message delivery request including a message destination, message content, and options available to a user of the destination from the message distribution device; , an option management unit that generates an association option that associates the option included in the received message delivery request with identification information that identifies the message delivery device; a message that includes the content and the association option; a transmitting unit that transmits a message to the destination; a receiving unit that receives a message transmitted when a user of the destination selects the association option; and a receiver that receives the message included in the association option included in the received message. The message distribution apparatus includes a notification unit that notifies the message distribution device corresponding to the information of the options included in the received message.

前記選択肢管理部は、前記メッセージ配信要求に含まれる前記選択肢のパラメータとして前記識別情報を含ませることで前記関連付け選択肢を生成してもよい。 The option management unit may generate the association option by including the identification information as a parameter of the option included in the message delivery request.

前記選択肢管理部は、前記メッセージ配信要求の送信元アカウントが所定のアカウントである場合、前記関連付け選択肢を生成し、前記メッセージ配信要求の送信元アカウントが所定のアカウントでない場合、前記選択肢管理部が前記関連付け選択肢を生成することなく、前記送信部は、前記内容と前記選択肢とを含むメッセージを前記送信先に送信してもよい。 The option management unit generates the association option when the sender account of the message delivery request is a predetermined account, and when the sender account of the message delivery request is not the predetermined account, the option manager generates the association option. The transmitter may transmit a message including the content and the options to the destination without generating the association options.

前記選択肢管理部は、前記受信したメッセージに含まれる前記関連付け選択肢に含まれる前記識別情報を削除することで前記選択肢を生成し、前記送信部に通知させてもよい。 The option management unit may generate the option by deleting the identification information included in the association option included in the received message, and may cause the transmission unit to notify the generated option.

前記送信部が送信したメッセージのメッセージ識別情報と、前記メッセージ配信要求を送信した前記メッセージ配信装置を識別する識別情報と、を関連付けて記憶部に記憶させるメッセージ管理部をさらに有し、前記通知部は、前記送信したメッセージのメッセージ識別情報を含む配信通知又は開封通知を前記受信部が受信した場合、前記配信通知又は前記開封通知に含まれる前記メッセージ識別情報に関連付けられた前記識別情報に対応する前記メッセージ配信装置に前記配信通知又は前記開封通知を受信したことを通知してもよい。 The notification unit further includes a message management unit that associates and stores message identification information of the message transmitted by the transmission unit and identification information that identifies the message distribution device that transmitted the message distribution request in a storage unit, and the notification unit corresponds to the identification information associated with the message identification information included in the delivery notification or the opening notification, when the receiving unit receives a delivery notification or an opening notification that includes message identification information of the transmitted message. The message delivery device may be notified that the delivery notification or the opening notification has been received.

本発明の第2の態様のメッセージ中継装置においては、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する配信要求受信部と、前記選択肢を所定の方法で変換した変換データを生成し、前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させる選択肢管理部と、前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信する送信部と、前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信する受信部と、受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知する通知部と、を有する。 The message relay device according to the second aspect of the present invention includes a delivery request receiving unit that receives a message delivery request including a message destination, message content, and options available to the destination user from the message distribution device; , an option management unit that generates converted data obtained by converting the options using a predetermined method, and stores the converted data in a storage unit in association with the message delivery device that has transmitted the message delivery request; a sending unit that sends a message including a choice to the destination; a receiving unit that receives a message sent when a user at the destination selects the option; The message delivery apparatus includes a notification section that notifies the message delivery device associated with the converted data converted by a predetermined method in the storage section of the options included in the received message.

前記メッセージ配信要求の送信元アカウントが所定のアカウントである場合、前記選択肢管理部は、前記関連付け選択肢を生成し、前記メッセージ配信要求の送信元アカウントが所定のアカウントでない場合、前記選択肢管理部が前記関連付け選択肢を生成することなく、前記送信部は、前記内容と前記選択肢とを含むメッセージを前記送信先に送信してもよい。 When the sender account of the message delivery request is a predetermined account, the option management section generates the association option; when the sender account of the message delivery request is not a predetermined account, the option management section generates the association option. The transmitter may transmit a message including the content and the options to the destination without generating the association options.

前記送信部が送信したメッセージのメッセージ識別情報と、前記メッセージ配信要求を送信した前記メッセージ配信装置と、を関連付けて前記記憶部に記憶させるメッセージ管理部をさらに有し、前記通知部は、前記送信したメッセージのメッセージ識別情報を含む配信通知又は開封通知を前記受信部が受信した場合、前記配信通知又は前記開封通知に含まれる前記メッセージ識別情報に関連付けられた前記メッセージ配信装置に前記配信通知又は前記開封通知を受信したことを通知してもよい。 The notification unit further includes a message management unit that associates and stores message identification information of the message transmitted by the transmission unit and the message distribution device that transmitted the message distribution request in the storage unit, and the notification unit stores the message identification information of the message transmitted by the transmission unit in the storage unit. When the receiving unit receives a delivery notification or an opening notification that includes message identification information of a message that has been sent, the delivery notification or the opening notification is sent to the message delivery device associated with the message identification information included in the delivery notification or the opening notification. It may also be possible to notify that the receipt has been received.

本発明の第3の態様のメッセージ中継方法においては、コンピュータが実行する、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置と、を識別する識別情報を関連付けた関連付け選択肢を生成するステップと、前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信するステップと、前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信するステップと、受信したメッセージに含まれる前記関連付け選択肢に関連付けられた前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、を有する。 In the message relay method of the third aspect of the present invention, a message delivery request including a message destination, message contents, and options available to a user of the destination is received from a message distribution device executed by a computer. a step of generating an association option that associates identification information that identifies the option included in the received message delivery request and the message delivery device; the content and the association option. to the destination; receiving a message sent by the destination user selecting the association option; and the identification information associated with the association option included in the received message. and notifying the message delivery device corresponding to the option included in the received message.

本発明の第4の態様のメッセージ中継方法においては、コンピュータが実行する、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、前記選択肢を所定の方法で変換した変換データを生成するステップと、前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させるステップと、前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信するステップと、前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信するステップと、受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、を有する。 In the message relay method of the fourth aspect of the present invention, a message delivery request including a message destination, message contents, and options available to a user of the destination is received from a message distribution device executed by a computer. a step of generating converted data by converting the options in a predetermined method; a step of associating the message distribution device that transmitted the message distribution request with the converted data and storing the converted data in a storage unit; , and the option included in the received message. The method further comprises the step of notifying the message distribution device associated with the converted data converted in a predetermined method in the storage unit of the options included in the received message.

本発明の第5の態様のプログラムにおいては、コンピュータに、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置と、を識別する識別情報を関連付けた関連付け選択肢を生成するステップと、前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信するステップと、前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信するステップと、受信したメッセージに含まれる前記関連付け選択肢に関連付けられた前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、を実行させる。 In the program according to the fifth aspect of the present invention, the step of receiving a message delivery request including a message destination, message content, and options available to a user of the destination from a message distribution device; generating an association option that associates identification information that identifies the option included in the message delivery request and the message delivery device; and transmitting the message including the content and the association option to the destination. a step of receiving a message sent by the destination user selecting the association option; and a step of transmitting a message corresponding to the identification information associated with the association option included in the received message. A message delivery device is caused to perform the step of notifying the option included in the received message.

本発明の第6の態様のプログラムにおいては、コンピュータに、メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、前記選択肢を所定の方法で変換した変換データを生成するステップと、前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させるステップと、前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信するステップと、前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信するステップと、受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、を実行させる。 In the program according to the sixth aspect of the present invention, the step of receiving a message delivery request from the message delivery device, which includes a message destination, message contents, and options available to the user of the destination, from the message distribution device; generating converted data obtained by converting the options in a predetermined method; storing the converted data in association with the message delivery device that transmitted the message delivery request in a storage unit; , to the destination, receiving the message sent by the destination user selecting the option, and selecting the option included in the received message in a predetermined manner. The message delivery device associated with the converted data in the storage unit is caused to perform the step of notifying the option included in the received message.

本発明によれば、ユーザから受信した返信メッセージを受信すべき装置に通知することができる。 According to the present invention, it is possible to notify a device that should receive a reply message received from a user.

第1の実施形態に係るメッセージ中継システムSの概要を説明する図である。FIG. 1 is a diagram illustrating an overview of a message relay system S according to a first embodiment. メッセージ中継装置1の構成を示すブロック図である。1 is a block diagram showing the configuration of a message relay device 1. FIG. 送信部133が送信するメッセージの一例を示す図である。3 is a diagram illustrating an example of a message transmitted by a transmitter 133. FIG. 記憶部12が記憶するメッセージIDテーブルのデータ構造の一例を示す図である。3 is a diagram showing an example of a data structure of a message ID table stored in the storage unit 12. FIG. 第1の実施形態にかかるメッセージ中継システムSにおける処理の流れを示すシーケンス図である。FIG. 2 is a sequence diagram showing the flow of processing in the message relay system S according to the first embodiment. 第2の実施形態にかかるメッセージ中継システムSAの概要を説明する図である。FIG. 2 is a diagram illustrating an overview of a message relay system SA according to a second embodiment. 記憶部12が記憶する変換データの一例を示す図である。3 is a diagram illustrating an example of conversion data stored in a storage unit 12. FIG. 第2の実施形態にかかるメッセージ中継システムSAにおける処理の流れを示すシーケンス図である。FIG. 7 is a sequence diagram showing the flow of processing in the message relay system SA according to the second embodiment.

<第1の実施形態>
[メッセージ中継装置1の概要]
図1は、第1の実施形態に係るメッセージ中継システムSの概要を説明する図である。メッセージ中継システムSは、メッセージを授受するためのシステムである。メッセージ中継システムSは、メッセージ中継装置1、メッセージ配信装置2及び情報端末3を有する。
<First embodiment>
[Overview of message relay device 1]
FIG. 1 is a diagram illustrating an overview of a message relay system S according to a first embodiment. The message relay system S is a system for exchanging messages. The message relay system S includes a message relay device 1, a message distribution device 2, and an information terminal 3.

メッセージ中継装置1は、メッセージ配信装置2及び情報端末3とメッセージを送受信するための装置である。メッセージ中継装置1は、例えばメッセージゲートウェイである。 The message relay device 1 is a device for transmitting and receiving messages to and from the message distribution device 2 and the information terminal 3. The message relay device 1 is, for example, a message gateway.

メッセージは、例えばRCS(Rich Communication Service)又はSMS(Short Message Service)に基づいてやり取りされるメッセージであるがこれに限定されない。メッセージには、ユーザが取りうるリアクションの選択肢を示す1以上のアクションボタンが含まれていてもよい。ユーザがアクションボタンを選択した場合、情報端末3は、選択されたアクションボタンに関連付けられた処理を行う。アクションボタンに関連付けられた処理は、アクションボタンに関連付けられたメッセージを送信元に対して返信すること又は情報端末3が所定の機能を起動することである。 The message is, for example, a message exchanged based on RCS (Rich Communication Service) or SMS (Short Message Service), but is not limited thereto. The message may include one or more action buttons indicating possible reaction options for the user. When the user selects an action button, the information terminal 3 performs processing associated with the selected action button. The process associated with the action button is for the message associated with the action button to be returned to the sender, or for the information terminal 3 to activate a predetermined function.

メッセージ配信装置2は、ユーザにコンテンツやサービスを提供する企業が配信するメッセージを配信し、又は企業宛てのメッセージを受信する装置である。メッセージ配信装置2は、ユーザに対して送信するメッセージの送信依頼をメッセージ中継装置1に送信し、又は、ユーザから企業に対して送信されたメッセージをメッセージ中継装置1から取得する。同一の企業が複数のメッセージ配信装置(2A、2B)からメッセージを配信してもよい。 The message distribution device 2 is a device that distributes messages distributed by companies that provide content and services to users, or receives messages addressed to companies. The message distribution device 2 transmits a request to send a message to the user to the message relay device 1, or acquires from the message relay device 1 a message sent from the user to the company. The same company may distribute messages from multiple message distribution devices (2A, 2B).

情報端末3は、企業が提供するコンテンツやサービスの消費者であるユーザが使用する端末である。情報端末3は、メッセージを送受信し、受信したメッセージを表示する。情報端末3は、ユーザの操作を受け付け、ユーザが選択したアクションボタンに関連づけられたメッセージをメッセージ中継装置1に送信する。情報端末3は、例えば、スマートフォン、タブレット等である。 The information terminal 3 is a terminal used by a user who is a consumer of content and services provided by a company. The information terminal 3 sends and receives messages and displays the received messages. The information terminal 3 accepts the user's operation and transmits a message associated with the action button selected by the user to the message relay device 1. The information terminal 3 is, for example, a smartphone, a tablet, or the like.

ところで、返信メッセージを受信した場合、メッセージ中継装置1は、メッセージに含まれるメッセージID(Identification)に基づいて受信した返信メッセージと、返信メッセージが返信の対象とするメッセージと、を紐づけることができる。ここで、メッセージIDはメッセージを識別する情報である。しかし、アクションボタンを押した場合に返信されるメッセージには、返信の対象とするメッセージとは異なるメッセージIDが含まれるため、メッセージ中継装置1は、メッセージIDに基づいて返信メッセージが返信の対象とするメッセージを特定することができない。 By the way, when a reply message is received, the message relay device 1 can link the received reply message and the message to which the reply message is a reply based on the message ID (Identification) included in the message. . Here, the message ID is information that identifies the message. However, since the message that is replied when the action button is pressed includes a message ID that is different from the message that is the target of the reply, the message relay device 1 determines whether the reply message is the target of the reply or not based on the message ID. It is not possible to specify the message to be sent.

そこで、実施形態にかかるメッセージ中継システムSは、ユーザがアクションボタンを選択した場合に返信されるメッセージにメッセージ配信装置2を識別する情報(例えば装置ID)が含まれるように構成されたメッセージを送信する。そして、受信した返信メッセージに含まれる装置IDに基づいてメッセージ配信装置2を特定する。 Therefore, the message relay system S according to the embodiment transmits a message configured such that information for identifying the message delivery device 2 (for example, device ID) is included in the message returned when the user selects an action button. do. Then, the message delivery device 2 is identified based on the device ID included in the received reply message.

以下にメッセージ中継システムSにおける処理の流れについて説明する。メッセージ中継装置1は、メッセージ配信装置2Aからメッセージ配信要求を受信する(図1における(1))。メッセージ配信要求は、メッセージの送信元企業の企業識別情報(例えばアカウント情報)、メッセージの送信先のユーザ識別情報(例えば電話番号、ユーザID又はメールアドレス)、メッセージの本文及び1以上の選択肢(選択肢A、選択肢B)を含む。メッセージ中継装置1は、受信した選択肢とメッセージ配信装置2を識別する識別情報(装置A)とを関連づけた関連付け選択肢を生成する(図1における(2))。メッセージ配信装置2を識別する識別情報は、一例として、装置IDや装置のIPアドレスである。関連付け選択肢は、一例として、操作された場合に、装置IDを関連付けた選択肢を含むメッセージを送信するよう構成されたアクションボタンである。メッセージ中継装置1は、関連付け選択肢を選択するための1以上のアクションボタン含むメッセージを情報端末3に送信する(図1における(3))。 The flow of processing in the message relay system S will be described below. The message relay device 1 receives a message distribution request from the message distribution device 2A ((1) in FIG. 1). A message delivery request includes corporate identification information (e.g., account information) of the company sending the message, user identification information (e.g., phone number, user ID, or email address) of the company to which the message is sent, the body of the message, and one or more options (choices). A, option B) included. The message relay device 1 generates an association option that associates the received option with identification information (device A) that identifies the message delivery device 2 ((2) in FIG. 1). The identification information for identifying the message distribution device 2 is, for example, a device ID or an IP address of the device. The association option is, for example, an action button configured to, when operated, send a message including the option associated with the device ID. The message relay device 1 transmits a message including one or more action buttons for selecting an association option to the information terminal 3 ((3) in FIG. 1).

メッセージ中継装置1は、メッセージに含まれるアクションボタンをユーザが選択することにより送信された関連付け選択肢(例えば選択肢A(装置A))を含むメッセージを受信する(図1における(4))。受信した関連付け選択肢に含まれる装置ID(装置A)に基づいて、通知先のメッセージ配信装置2Aを特定する(図1における(5))。メッセージ中継装置1は、ユーザが選択した選択肢を、装置IDに基づいて特定したメッセージ配信装置2Aに通知する(図1における(6))。 The message relay device 1 receives a message including an association option (for example, option A (device A)) sent by the user selecting an action button included in the message ((4) in FIG. 1). Based on the device ID (device A) included in the received association option, the message delivery device 2A as the notification destination is specified ((5) in FIG. 1). The message relay device 1 notifies the message distribution device 2A specified based on the device ID of the option selected by the user ((6) in FIG. 1).

このように、メッセージ中継装置1は、メッセージ配信装置2の装置IDを関連づけた選択肢を含むメッセージを情報端末3に送信し、情報端末3から受信した返信メッセージに含まれる装置IDに基づいて通知すべきメッセージ配信装置2を特定する。メッセージ中継装置1がこのように構成されることで、ユーザから受信した返信メッセージを受信すべき装置に通知することができる。 In this way, the message relay device 1 transmits a message including options associated with the device ID of the message distribution device 2 to the information terminal 3, and sends a notification based on the device ID included in the reply message received from the information terminal 3. Specify the message distribution device 2 that should be used. By configuring the message relay device 1 in this way, it is possible to notify the device that should receive the reply message received from the user.

[メッセージ中継装置1の構成]
図2は、実施形態にかかるメッセージ中継装置1の構成を示すブロック図である。メッセージ中継装置1は、配信要求受信部131、選択肢管理部132、送信部133、受信部134、通知部135及びメッセージ管理部136を有する。通信部11は、ネットワークを介して他の装置とデータの送受信をするための通信インターフェースである。
[Configuration of message relay device 1]
FIG. 2 is a block diagram showing the configuration of the message relay device 1 according to the embodiment. The message relay device 1 includes a distribution request receiving section 131 , a choice managing section 132 , a transmitting section 133 , a receiving section 134 , a notification section 135 , and a message managing section 136 . The communication unit 11 is a communication interface for transmitting and receiving data to and from other devices via a network.

記憶部12は、ROM(Read Only Memory)、RAM(Random Access Memory)、SSD(Solid State Drive)、ハードディスクドライブ等を含む記憶媒体である。記憶部12は、制御部13が実行するプログラムを予め記憶している。 The storage unit 12 is a storage medium including a ROM (Read Only Memory), a RAM (Random Access Memory), an SSD (Solid State Drive), a hard disk drive, and the like. The storage unit 12 stores in advance a program to be executed by the control unit 13.

制御部13は、例えばCPU(Central Processing Unit)等のプロセッサである。制御部13は、記憶部12に記憶されたプログラムを実行することにより、配信要求受信部131、選択肢管理部132、送信部133、受信部134、通知部135及びメッセージ管理部136として機能する。 The control unit 13 is, for example, a processor such as a CPU (Central Processing Unit). The control unit 13 functions as a distribution request receiving unit 131 , a choice management unit 132 , a transmitting unit 133 , a receiving unit 134 , a notification unit 135 , and a message management unit 136 by executing the program stored in the storage unit 12 .

配信要求受信部131は、メッセージ配信装置2からメッセージの送信先とメッセージの内容と送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する。メッセージの内容は、一例として、メッセージに含まれる本文、画像又はそれらの表示態様を示す情報である。 The distribution request receiving unit 131 receives a message distribution request from the message distribution device 2 that includes a message destination, message contents, and options available to the destination user. The content of the message is, for example, a main text, an image, or information indicating a display mode thereof included in the message.

「選択肢」は、「表示内容」と「返信内容」とを含む。「表示内容」は、情報端末3の画面上のアクションボタンに表示する内容を示す。「返信内容」は、情報端末3の画面上に表示されたアクションボタンが押された場合に情報端末3が送信元に対して返信するメッセージに含まれる情報を示す。選択肢がJSON(JavaScript Object Notation)で記述される場合の例を以下に示す。 The "options" include "display content" and "reply content". “Display content” indicates the content displayed on the action button on the screen of the information terminal 3. "Reply content" indicates information included in a message that the information terminal 3 replies to the sender when the action button displayed on the screen of the information terminal 3 is pressed. An example where options are described in JSON (JavaScript Object Notation) is shown below.

"suggestions": [
{

"reply": {
"displayText": "はい",
"postback": {
"data": "answer_YES"

}
}
},
{

"reply": {
“displayText”: “いいえ",
"postback": {
“data”: “answer_No"

}
}
}
]
"suggestions": [
{

"reply": {
"displayText": "Yes",
"postback": {
"data": "answer_YES"

}
}
},
{

"reply": {
“displayText”: “No”,
"postback": {
“data”: “answer_No”

}
}
}
]

上記において「reply」は選択肢の単位を示し、「display text」、「postback」はそれぞれ、「表示内容」及び「返信内容」を示す。上記は「はい」の文字列が表示され、操作された場合に「answer_YES」の文字列を返信することを示すアクションボタンと、「いいえ」の文字列が表示され、操作された場合に「answer_NO」の文字列を返信するアクションボタンと、を選択肢として表示することを示している。 In the above, "reply" indicates a unit of options, and "display text" and "postback" indicate "display content" and "reply content", respectively. In the above example, a string of "Yes" is displayed, and an action button indicating that the character string "answer_YES" will be returned when operated, and an action button that displays a string of "No" and an action button that indicates that the string of "answer_NO" will be returned when operated. ” is displayed as an option.

選択肢管理部132は、受信したメッセージ配信要求に含まれる選択肢と、メッセージ配信装置2の装置IDと、を関連付けた関連付け選択肢を生成する。選択肢管理部132は、「返信内容」と、関連付けてメッセージ配信要求を送信したメッセージ配信装置2の装置IDと、を関連付けた関連付け選択肢を生成する。選択肢管理部132は、一例として、「返信内容」に含まれるパラメータの一部として装置IDを関連付けた関連付け選択肢を生成してもよい。この場合に選択肢管理部132が生成する関連付け選択肢の一例を以下に示す。なお、以下の例において「origin」は、装置IDを示すパラメータである。 The option management unit 132 generates an association option that associates the option included in the received message delivery request with the device ID of the message delivery device 2. The option management unit 132 generates an association option that associates the "reply content" with the device ID of the message distribution device 2 that has transmitted the message distribution request in association. For example, the option management unit 132 may generate an association option in which the device ID is associated as part of the parameters included in the "reply content." An example of association options generated by the option management unit 132 in this case is shown below. Note that in the following example, "origin" is a parameter indicating the device ID.


"suggestions": [
{

"reply": {
"displayText": "はい",
"postback": {
"data": "answer_YES"
"origin: "SYSA01"

}
}
},
{

"reply": {
“displayText”: “いいえ",
"postback": {
"data": "answer_No"
"origin: "SYSA01"

}
}
}
]

"suggestions": [
{

"reply": {
"displayText": "Yes",
"postback": {
"data": "answer_YES"
"origin: "SYSA01"

}
}
},
{

"reply": {
“displayText”: “No”,
"postback": {
"data": "answer_No"
"origin: "SYSA01"

}
}
}
]

送信部133は、メッセージの内容と、関連付け選択肢と、を含むメッセージを、送信先に送信する。送信部133は、メッセージ配信要求に含まれる送信先識別情報を宛先として、メッセージを送信する。図3は、送信部133が送信するメッセージの一例を示す図である。図3に示すメッセージにおいては、送信元情報C1、メッセージの内容C2及びアクションボタンC3を含む。送信元情報C1は、メッセージの配信要求を送信した企業を示す情報である。アクションボタンC3は、選択肢管理部132が生成した関連付け選択肢に基づいて表示される。 The transmitting unit 133 transmits a message including message contents and association options to a destination. The sending unit 133 sends a message to the destination identification information included in the message delivery request. FIG. 3 is a diagram illustrating an example of a message transmitted by the transmitter 133. The message shown in FIG. 3 includes sender information C1, message content C2, and action button C3. The sender information C1 is information indicating the company that sent the message delivery request. The action button C3 is displayed based on the association options generated by the option management section 132.

ユーザが情報端末3に表示されたアクションボタンC3を押すと、情報端末3は、選択されたアクションボタンに対応するメッセージを、メッセージ中継装置1に送信する。そして、受信部134は、送信先のユーザが関連付け選択肢を選択することにより送信されたメッセージを受信する。受信部134が受信したメッセージは、ユーザが選択したアクションボタンに対応する関連付け選択肢を含む。受信したメッセージに含まれる関連付け選択肢の一例を以下に示す。 When the user presses the action button C3 displayed on the information terminal 3, the information terminal 3 transmits a message corresponding to the selected action button to the message relay device 1. Then, the receiving unit 134 receives the message sent when the destination user selects the association option. The message received by the receiving unit 134 includes an association option corresponding to the action button selected by the user. An example of association options included in the received message is shown below.

"response": {
"reply": {
"displayText": "はい",
"postback": {
"data": "answer_YES"
"Origin": "SYSA01"

}
}
},
"response": {
"reply": {
"displayText": "Yes",
"postback": {
"data": "answer_YES"
"Origin": "SYSA01"

}
}
},

通知部135は、受信したメッセージに含まれる関連付け選択肢に含まれる装置IDに対応するメッセージ配信装置2に、受信したメッセージに含まれる選択肢を通知する。通知部135は、受信した関連付け選択肢に含まれる装置IDに基づいて、受信した選択肢を通知するメッセージ配信装置2を特定する。そして、通知部135は、特定したメッセージ配信装置2に受信した選択肢を通知する。 The notification unit 135 notifies the message distribution device 2 corresponding to the device ID included in the association options included in the received message of the options included in the received message. The notification unit 135 identifies the message delivery device 2 to which the received option is to be notified based on the device ID included in the received association option. Then, the notification unit 135 notifies the specified message distribution device 2 of the received option.

メッセージ中継装置1がこのように構成されることで、ユーザから受信した返信メッセージを受信すべき装置に通知することができる。 By configuring the message relay device 1 in this way, it is possible to notify the device that should receive the reply message received from the user.

ところで、メッセージ中継装置1は、様々な態様で関連付け選択肢を生成してもよい。一例として、選択肢管理部132は、メッセージ配信要求に含まれる選択肢のパラメータとして識別IDを含ませることで関連付け選択肢を生成してもよい。具体的には、選択肢管理部132は、選択肢における「返信内容」のパラメータの値にメッセージ配信装置2を識別する情報を追記することで装置IDを関連付けた関連付け選択肢を生成する。この場合に選択肢管理部132が生成する関連付け選択肢の一例を以下に示す。 By the way, the message relay device 1 may generate association options in various ways. As an example, the option management unit 132 may generate an association option by including an identification ID as a parameter of the option included in the message delivery request. Specifically, the option management unit 132 generates an association option in which the device ID is associated by adding information that identifies the message delivery device 2 to the value of the "reply content" parameter in the option. An example of association options generated by the option management unit 132 in this case is shown below.

"suggestions": [
{

"reply": {
"displayText": "はい",
"postback": {
"data": "SYSA01_answer_YES"

}
}
},
{

"reply": {
“displayText”: “いいえ",
"postback": {
“data”: “SYSA01_answer_No"

}
}
}
]
"suggestions": [
{

"reply": {
"displayText": "Yes",
"postback": {
"data": "SYSA01_answer_YES"

}
}
},
{

"reply": {
“displayText”: “No”,
"postback": {
“data”: “SYSA01_answer_No”

}
}
}
]

なお、この場合に受信部134が情報端末3から受信する返信メッセージの一例を以下に示す。 An example of the reply message that the receiving unit 134 receives from the information terminal 3 in this case is shown below.

"response": {
"reply": {
"displayText": "はい",
"postback": {
"data": "SYSA01_answer_YES"
}
}
},
"response": {
"reply": {
"displayText": "Yes",
"postback": {
"data": "SYSA01_answer_YES"
}
}
},

メッセージ中継装置1がこのように関連付け選択肢を生成するよう構成されることで、情報端末3に送信するパラメータの種類を増やさずにメッセージを送信することが可能となり、情報端末3が意図しない動作をすることを防止することができる。 By configuring the message relay device 1 to generate association options in this way, it is possible to send messages without increasing the types of parameters to be sent to the information terminal 3, and the information terminal 3 can perform unintended operations. This can be prevented.

ところで、企業のアカウント情報と企業が利用するメッセージ配信装置2との関係が一意に定まる場合はアカウント情報に基づいてメッセージ配信装置2を特定することができる。そこで、企業のアカウント情報とメッセージ配信装置2との関係が一意に定まらない場合に関連付け選択肢を生成するようメッセージ中継装置1が構成されてもよい。 By the way, if the relationship between a company's account information and the message delivery device 2 used by the company is uniquely determined, the message delivery device 2 can be specified based on the account information. Therefore, the message relay device 1 may be configured to generate association options when the relationship between the company's account information and the message distribution device 2 cannot be uniquely determined.

選択肢管理部132は、メッセージ配信要求の送信元アカウントが所定のアカウントである場合、関連付け選択肢を生成し、メッセージ配信要求の送信元アカウントが所定のアカウントでない場合、選択肢管理部132が関連付け選択肢を生成することなく、送信部133は、内容と選択肢とを含むメッセージを送信先に送信する。所定のアカウントは、複数のメッセージ配信装置2を利用するアカウントである。例えば、記憶部12は、複数のメッセージ配信装置2を利用するアカウントのリストを記憶する。そして、選択肢管理部132は、受信したメッセージ配信要求の送信元アカウントが、記憶部12が記憶するリストに含まれている場合、関連付け選択肢を生成する。 The option management unit 132 generates an association option when the sender account of the message delivery request is a predetermined account, and the option manager 132 generates an association option when the sender account of the message delivery request is not the predetermined account. Without doing so, the transmitting unit 133 transmits a message including the content and options to the destination. The predetermined account is an account that uses a plurality of message distribution devices 2. For example, the storage unit 12 stores a list of accounts that use a plurality of message distribution devices 2. Then, if the source account of the received message delivery request is included in the list stored in the storage unit 12, the option management unit 132 generates an association option.

また、記憶部12又は不図示の外部装置は、アカウントと当該アカウントがログインしているメッセージ配信装置2とを管理していてもよい。そして、受信したメッセージの送信元アカウントのログイン状態を記憶部12又は外部装置に問い合わせ、当該アカウントが複数のサーバにログインしている場合、選択肢管理部132は、関連付け選択肢を生成するよう構成されてもよい。 Further, the storage unit 12 or an external device (not shown) may manage the account and the message distribution device 2 to which the account is logged in. Then, the option management section 132 is configured to inquire of the storage unit 12 or the external device about the login status of the sender account of the received message, and if the account is logged in to multiple servers, the option management unit 132 is configured to generate association options. Good too.

選択肢管理部132が、選択肢に関連付けたメッセージ配信装置2の装置IDをメッセージ配信装置2に通知すると、メッセージ配信装置2において意図しない動作が行われる場合がある。そこで、選択肢管理部132は、受信したメッセージに含まれる関連付け選択肢に含まれる装置IDを削除することで選択肢を生成し、送信部133に通知させる。すなわち、選択肢管理部132は、選択肢を示す項目と装置IDを示す項目とが関連付けられている場合、装置IDを示す項目を削除し、選択肢を示す項目を抽出し、送信部133に通知させる。選択肢を示す項目に選択肢を示す情報と装置IDとが埋め込まれている場合、選択肢管理部132は、装置IDを示す部分を削除し、選択肢を示す情報のみを通知する。 When the option management unit 132 notifies the message delivery device 2 of the device ID of the message delivery device 2 associated with the option, the message delivery device 2 may perform an unintended operation. Therefore, the option management unit 132 generates an option by deleting the device ID included in the association option included in the received message, and notifies the transmitting unit 133 of the option. That is, when the item indicating the option and the item indicating the device ID are associated, the option management unit 132 deletes the item indicating the device ID, extracts the item indicating the option, and notifies the transmitting unit 133. If the information indicating the option and the device ID are embedded in the item indicating the option, the option management unit 132 deletes the part indicating the device ID and notifies only the information indicating the option.

このように、メッセージ中継装置1は、返信されたメッセージに含まれる装置IDを削除して選択肢を通知することで、メッセージ配信装置2の意図しない動作を防止することができる。 In this way, the message relay device 1 can prevent unintended operation of the message delivery device 2 by deleting the device ID included in the returned message and notifying the user of the options.

また、メッセージ中継装置1は、メッセージの送信状況を、メッセージ配信要求を送信したメッセージ配信装置2に通知する必要がある。なお、送信状況は、例えば、メッセージの送信が完了したこと(送信完了通知という)、到達したこと(到達通知という)又は開封されたこと(開封通知という)を示す情報である。 Furthermore, the message relay device 1 needs to notify the message delivery device 2, which sent the message delivery request, of the message transmission status. Note that the transmission status is information indicating, for example, that the transmission of the message has been completed (referred to as a transmission completion notification), that the message has arrived (referred to as an arrival notification), or that the message has been opened (referred to as an opening notification).

具体的には、メッセージ管理部136は、送信部133が送信したメッセージのメッセージIDと、メッセージ配信要求を送信したメッセージ配信装置2の装置IDと、を関連付けて記憶部12に記憶させる。図4は、記憶部12が記憶するメッセージIDテーブルのデータ構造の一例を示す図である。メッセージIDテーブルにおいては、送信したメッセージのメッセージIDと当該メッセージの配信要求を送信したメッセージ配信装置2の装置IDとが関連付けられている。 Specifically, the message management unit 136 associates the message ID of the message sent by the sending unit 133 with the device ID of the message delivery device 2 that sent the message delivery request, and stores them in the storage unit 12. FIG. 4 is a diagram showing an example of the data structure of the message ID table stored in the storage unit 12. In the message ID table, the message ID of the transmitted message is associated with the device ID of the message distribution device 2 that transmitted the distribution request for the message.

そして、情報端末3は、受信したメッセージの送信状況を、受信したメッセージのメッセージIDに関連付けてメッセージ中継装置1に送信する。受信部134は、情報端末3が送信したメッセージIDを含む送信状況を受信する。 The information terminal 3 then transmits the transmission status of the received message to the message relay device 1 in association with the message ID of the received message. The receiving unit 134 receives the transmission status including the message ID transmitted by the information terminal 3.

通知部135は、送信したメッセージのメッセージIDを含む送信状況を受信部134が受信した場合、送信状況に含まれるメッセージIDに関連付けられた装置IDに対応するメッセージ配信装置2に送信状況を受信したことを通知する。通知部135は、メッセージの送信状況を受信した場合、メッセージ送信状況に含まれるメッセージIDにメッセージIDテーブルにおいて対応する装置IDを取得する。そして、通知部135は、装置IDに対応するメッセージ配信装置2に、送信状況を受信したことを通知する。 When the receiving unit 134 receives the transmission status including the message ID of the transmitted message, the notification unit 135 transmits the transmission status to the message distribution device 2 corresponding to the device ID associated with the message ID included in the transmission status. to notify you of this. When the notification unit 135 receives the message transmission status, it acquires the device ID corresponding to the message ID included in the message transmission status in the message ID table. Then, the notification unit 135 notifies the message distribution device 2 corresponding to the device ID that the transmission status has been received.

メッセージ中継装置1がこのように構成されることで、メッセージの送信状況を、メッセージ配信要求を送信したメッセージ配信装置2に通知することができる。 By configuring the message relay device 1 in this way, it is possible to notify the message transmission status to the message distribution device 2 that has transmitted the message distribution request.

[メッセージ中継システムSにおける処理の流れ]
図5は、メッセージ中継システムSにおける処理の流れを示すシーケンス図である。図5におけるシーケンス図は、メッセージ配信装置2から配信要求を受信するタイミングから開始している。
[Flow of processing in message relay system S]
FIG. 5 is a sequence diagram showing the flow of processing in the message relay system S. The sequence diagram in FIG. 5 starts from the timing when a distribution request is received from the message distribution device 2.

メッセージ配信装置2は、メッセージ中継装置1にメッセージ配信要求を送信する(S01)。メッセージ中継装置1は、メッセージ配信要求に含まれる選択肢とメッセージ配信装置2の装置IDとを関連付けた関連付け選択肢を生成する(S02)。メッセージ中継装置1は、関連付け選択肢を含むメッセージを情報端末3に送信する(S03)。 Message distribution device 2 transmits a message distribution request to message relay device 1 (S01). The message relay device 1 generates association options that associate the options included in the message delivery request with the device ID of the message delivery device 2 (S02). Message relay device 1 transmits a message including association options to information terminal 3 (S03).

メッセージ管理部136は、送信したメッセージのメッセージIDと、当該メッセージの配信要求を送信したメッセージ配信装置2の装置IDと、を関連付けてメッセージIDテーブルに記憶させる(S04)。そして、通知部135は、送信完了通知を通知する(S05)。 The message management unit 136 associates the message ID of the transmitted message with the device ID of the message distribution device 2 that transmitted the distribution request for the message and stores them in the message ID table (S04). Then, the notification unit 135 notifies the transmission completion notification (S05).

情報端末3は、メッセージが到達すると到達通知を送信する(S06)。通知部135は、メッセージIDテーブルを参照し、到達したメッセージに含まれるメッセージIDに対応する通知先のメッセージ配信装置2を特定する(S07)。そして、通知部135は、特定したメッセージ配信装置2に到達通知を通知する(S08)。 When the message arrives, the information terminal 3 transmits an arrival notification (S06). The notification unit 135 refers to the message ID table and identifies the message delivery device 2 of the notification destination corresponding to the message ID included in the message that has arrived (S07). Then, the notification unit 135 notifies the specified message distribution device 2 of the arrival notification (S08).

ユーザは、情報端末3を操作し、情報端末3の画面に表示された選択肢のいずれかを押し、情報端末3は、選択操作を受付ける(S09)。情報端末3は、選択された選択肢に対応する関連付け選択肢を含むメッセージをメッセージ中継装置1に送信する(S10)。そして、メッセージ中継装置1は、関連付け選択肢に含まれる装置IDに基づいて通知先のメッセージ配信装置2を特定する(S11)。そして、メッセージ中継装置1は、特定したメッセージ配信装置2に、受信したメッセージに含まれる選択肢を通知する(S12)。 The user operates the information terminal 3 and presses one of the options displayed on the screen of the information terminal 3, and the information terminal 3 accepts the selection operation (S09). The information terminal 3 transmits a message including the association option corresponding to the selected option to the message relay device 1 (S10). Then, the message relay device 1 identifies the message distribution device 2 as the notification destination based on the device ID included in the association options (S11). Then, the message relay device 1 notifies the specified message distribution device 2 of the options included in the received message (S12).

[メッセージ中継装置1による効果]
以上説明したように第1の実施形態にかかるメッセージ中継装置1においては、選択肢とメッセージ配信装置2の装置IDとを関連づけた関連付け選択肢を生成し、関連付け選択肢を含むメッセージを情報端末3に送信し、情報端末3から受信した返信メッセージに含まれる装置IDに基づいて通知すべきメッセージ配信装置2を特定する。メッセージ中継装置1がこのように構成されることで、ユーザから受信した返信メッセージを受信すべき装置に通知することができる。
[Effects of message relay device 1]
As explained above, the message relay device 1 according to the first embodiment generates association options that associate options with the device ID of the message distribution device 2, and sends a message including the association options to the information terminal 3. , the message delivery device 2 to be notified is specified based on the device ID included in the reply message received from the information terminal 3. By configuring the message relay device 1 in this way, it is possible to notify the device that should receive the reply message received from the user.

<第2の実施形態>
ところで、情報端末3に送信するメッセージに装置IDを含ませなくても、装置IDと情報端末3に送信した選択肢との関係をメッセージ中継装置1が管理することで、返信メッセージを受信した場合に通知すべき装置を特定するよう第2の実施形態にかかるメッセージ中継装置が構成されてもよい。以下の説明においては、第1の実施形態にかかるメッセージ中継装置1と異なる部分を中心に説明することとし、メッセージ中継装置1と同等の機能を有する部分については同じ符号を付し、説明を省略する。
<Second embodiment>
By the way, even if the device ID is not included in the message sent to the information terminal 3, the message relay device 1 manages the relationship between the device ID and the options sent to the information terminal 3, so that when a reply message is received, The message relay device according to the second embodiment may be configured to specify a device to be notified. In the following description, parts that are different from the message relay device 1 according to the first embodiment will be mainly explained, and parts having the same functions as the message relay device 1 will be given the same reference numerals and descriptions will be omitted. do.

図6は、第2の実施形態にかかるメッセージ中継システムSAの概要を説明する図である。メッセージ中継システムSAは、メッセージ中継装置1A、メッセージ配信装置2及び情報端末3を有する。 FIG. 6 is a diagram illustrating an overview of the message relay system SA according to the second embodiment. The message relay system SA includes a message relay device 1A, a message distribution device 2, and an information terminal 3.

まず、メッセージ中継装置1Aは、メッセージ配信要求を受信する(図6における(1))。メッセージ中継装置1Aは、受信したメッセージ配信要求に含まれる選択肢を所定の方法で変換した変換データを生成し、記憶部12に記憶させる(図6における(2))。変換データは例えば、選択肢のハッシュ値である。 First, the message relay device 1A receives a message delivery request ((1) in FIG. 6). The message relay device 1A generates conversion data by converting the options included in the received message delivery request using a predetermined method, and stores it in the storage unit 12 ((2) in FIG. 6). The conversion data is, for example, a hash value of an option.

そして、メッセージ中継装置1Aは、情報端末3に、メッセージを送信する(図6における(3))。メッセージ中継装置1Aは、ユーザが選択した選択肢を含むメッセージを情報端末3から受信する(図6における(4))。 The message relay device 1A then transmits the message to the information terminal 3 ((3) in FIG. 6). The message relay device 1A receives a message including the option selected by the user from the information terminal 3 ((4) in FIG. 6).

メッセージ中継装置1Aは、受信した選択肢から変換データを生成する(図6における(5))。メッセージ中継装置1Aは記憶部12を参照し、変換データに対応する装置IDを取得し、メッセージ配信装置2Aを通知先の装置として特定する。(図6における(6))。そして、メッセージ中継装置1Aは、特定したメッセージ配信装置2Aに選択肢を通知する(図6における(7))。 The message relay device 1A generates conversion data from the received options ((5) in FIG. 6). The message relay device 1A refers to the storage unit 12, obtains the device ID corresponding to the converted data, and specifies the message delivery device 2A as the notification destination device. ((6) in Figure 6). Then, the message relay device 1A notifies the specified message distribution device 2A of the options ((7) in FIG. 6).

選択肢管理部132は、選択肢を所定の方法で変換した変換データを生成し、メッセージ配信要求を送信したメッセージ配信装置2と変換データとを関連付けて記憶部12に記憶させる。図7は、記憶部12が記憶する変換データの一例を示す図である。図7においては、装置IDと、変換データとが関連付けられている。装置IDは、メッセージ配信要求を送信したメッセージ配信装置2の装置IDである。変換データは、例えば、メッセージ配信要求に含まれる「表示内容」と「返信内容」とを結合してなる文字列をハッシュ関数に入力して得られたハッシュ値である。 The option management unit 132 generates converted data by converting the options using a predetermined method, and stores the converted data in the storage unit 12 in association with the message distribution device 2 that transmitted the message distribution request. FIG. 7 is a diagram showing an example of conversion data stored in the storage unit 12. In FIG. 7, the device ID and conversion data are associated. The device ID is the device ID of the message distribution device 2 that sent the message distribution request. The conversion data is, for example, a hash value obtained by inputting a character string formed by combining "display content" and "reply content" included in the message delivery request into a hash function.

通知部135は、受信したメッセージに含まれる選択肢を所定の方法で変換した変換データに記憶部12において関連付けられたメッセージ配信装置2に、受信したメッセージに含まれる選択肢を通知する。通知部135は、選択肢管理部132と同じ方法で、情報端末3から受信したメッセージに含まれる選択肢から変換データを生成し、記憶部12を参照し、生成した変換データに対応するメッセージ配信装置2の装置IDを特定する。 The notification unit 135 notifies the message distribution device 2, which is associated in the storage unit 12 with conversion data obtained by converting the options included in the received message using a predetermined method, of the options included in the received message. The notification unit 135 generates converted data from the options included in the message received from the information terminal 3 using the same method as the option management unit 132, refers to the storage unit 12, and sends the message distribution device 2 corresponding to the generated converted data. Specify the device ID of the device.

[メッセージ中継システムSAにおける処理の流れ]
図8は、メッセージ中継システムSAにおける処理の流れを示すシーケンス図である。図8に示すシーケンス図においては、第1の実施形態にかかるメッセージ中継システムSと異なる部分を中心に記載し、送信状況の通知に関する処理(図5におけるS04からS08)については省略している。
[Processing flow in message relay system SA]
FIG. 8 is a sequence diagram showing the flow of processing in the message relay system SA. In the sequence diagram shown in FIG. 8, parts that are different from the message relay system S according to the first embodiment are mainly described, and processes related to transmission status notification (S04 to S08 in FIG. 5) are omitted.

メッセージ配信装置2は、メッセージ中継装置1にメッセージ配信要求を送信する(S101)。メッセージ中継装置1は、受信したメッセージ配信要求に含まれる選択肢から変換データを生成し、記憶部12に記憶する(S102)。そして、メッセージ中継装置1は、受信した選択肢を含むメッセージを情報端末3に送信する(S103)。 Message distribution device 2 transmits a message distribution request to message relay device 1 (S101). The message relay device 1 generates conversion data from the options included in the received message delivery request, and stores it in the storage unit 12 (S102). Then, the message relay device 1 transmits a message including the received options to the information terminal 3 (S103).

情報端末3は、ユーザからの選択操作を受付ける(S104)。情報端末3は、選択された選択肢を含むメッセージをメッセージ中継装置1に送信する(S105)。 The information terminal 3 accepts a selection operation from the user (S104). The information terminal 3 transmits a message including the selected option to the message relay device 1 (S105).

メッセージ中継装置1は、受信した選択肢から変換データを生成する(S106)。記憶部12を参照し、変換データに対応する通知先を特定する(S107)。そして、メッセージ中継装置1は、特定したメッセージ配信装置2に受信した選択肢を通知する(S108)。 The message relay device 1 generates conversion data from the received options (S106). The storage unit 12 is referred to and the notification destination corresponding to the converted data is specified (S107). Then, the message relay device 1 notifies the specified message distribution device 2 of the received options (S108).

[第2の実施形態による効果]
以上説明したように、第2の実施形態にかかるメッセージ中継装置1においては、装置IDと情報端末3に送信した選択肢から生成した変換データとの関係をメッセージ中継装置1が管理することで、返信メッセージを受信した場合に通知すべき装置を特定する。メッセージ中継装置1がこのように構成されることで、メッセージ配信装置2から受信した選択肢をそのまま情報端末3に送信することができ、情報端末3における意図しない動作を防止することができる。
[Effects of the second embodiment]
As explained above, in the message relay device 1 according to the second embodiment, the message relay device 1 manages the relationship between the device ID and the conversion data generated from the options sent to the information terminal 3, so that the message relay device 1 can reply Identify devices that should be notified when a message is received. By configuring the message relay device 1 in this way, the options received from the message distribution device 2 can be directly transmitted to the information terminal 3, and unintended operations in the information terminal 3 can be prevented.

なお、本発明により、国連が主導する持続可能な開発目標(SDGs)の目標9「産業と技術革新の基盤をつくろう」に貢献することが可能となる。 Furthermore, the present invention makes it possible to contribute to Goal 9 of the Sustainable Development Goals (SDGs) led by the United Nations, "Create a foundation for industry and technological innovation."

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の全部又は一部は、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を併せ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes can be made within the scope of the gist. be. For example, all or part of the device can be functionally or physically distributed and integrated into arbitrary units. In addition, new embodiments created by arbitrary combinations of multiple embodiments are also included in the embodiments of the present invention. The effects of the new embodiment resulting from the combination have the effects of the original embodiment.

1 メッセージ中継装置
2 メッセージ配信装置
3 情報端末
11 通信部
12 記憶部
13 制御部
131 配信要求受信部
132 選択肢管理部
133 送信部
134 受信部
135 通知部
136 メッセージ管理部
1 Message relay device 2 Message distribution device 3 Information terminal 11 Communication section 12 Storage section 13 Control section 131 Delivery request reception section 132 Choice management section 133 Transmission section 134 Receiving section 135 Notification section 136 Message management section

Claims (12)

メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する配信要求受信部と、
受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置を識別する識別情報と、を関連付けた関連付け選択肢を生成する選択肢管理部と、
前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信する送信部と、
前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信する受信部と、
受信したメッセージに含まれる前記関連付け選択肢に含まれる前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知する通知部と、
を有するメッセージ中継装置。
a delivery request receiving unit that receives a message delivery request including a message destination, message content, and options available to the destination user from the message distribution device;
an option management unit that generates an association option that associates the option included in the received message delivery request with identification information that identifies the message delivery device;
a transmitting unit that transmits a message including the content and the association option to the destination;
a receiving unit that receives a message sent when the destination user selects the association option;
a notification unit that notifies the message distribution device corresponding to the identification information included in the association option included in the received message of the option included in the received message;
A message relay device having a
前記選択肢管理部は、前記メッセージ配信要求に含まれる前記選択肢のパラメータとして前記識別情報を含ませることで前記関連付け選択肢を生成する、
請求項1に記載のメッセージ中継装置。
The option management unit generates the association option by including the identification information as a parameter of the option included in the message delivery request.
The message relay device according to claim 1.
前記選択肢管理部は、前記メッセージ配信要求の送信元アカウントが所定のアカウントである場合、前記関連付け選択肢を生成し、前記メッセージ配信要求の送信元アカウントが所定のアカウントでない場合、前記選択肢管理部が前記関連付け選択肢を生成することなく、前記送信部は、前記内容と前記選択肢とを含むメッセージを前記送信先に送信する、
請求項1又は2に記載のメッセージ中継装置。
The option management unit generates the association option when the sender account of the message delivery request is a predetermined account, and when the sender account of the message delivery request is not the predetermined account, the option manager generates the association option. without generating association options, the sending unit sends a message including the content and the options to the destination;
The message relay device according to claim 1 or 2.
前記選択肢管理部は、前記受信したメッセージに含まれる前記関連付け選択肢に含まれる前記識別情報を削除することで前記選択肢を生成し、前記送信部に通知させる、
請求項1から3のいずれか1項に記載のメッセージ中継装置。
The option management unit generates the option by deleting the identification information included in the association option included in the received message, and causes the transmission unit to notify it.
The message relay device according to any one of claims 1 to 3.
前記送信部が送信したメッセージのメッセージ識別情報と、前記メッセージ配信要求を送信した前記メッセージ配信装置を識別する識別情報と、を関連付けて記憶部に記憶させるメッセージ管理部をさらに有し、
前記通知部は、前記送信したメッセージのメッセージ識別情報を含む配信通知又は開封通知を前記受信部が受信した場合、前記配信通知又は前記開封通知に含まれる前記メッセージ識別情報に関連付けられた前記識別情報に対応する前記メッセージ配信装置に前記配信通知又は前記開封通知を受信したことを通知する、
請求項1から4のいずれか1項に記載のメッセージ中継装置。
further comprising a message management unit that associates and stores message identification information of the message transmitted by the transmission unit and identification information that identifies the message distribution device that transmitted the message distribution request in a storage unit;
When the receiving unit receives a delivery notification or an opening notification that includes message identification information of the transmitted message, the notification unit transmits the identification information associated with the message identification information included in the delivery notification or the opening notification. Notifying the corresponding message delivery device that the delivery notification or the opening notification has been received;
The message relay device according to any one of claims 1 to 4.
メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信する配信要求受信部と、
前記選択肢を所定の方法で変換した変換データを生成し、前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させる選択肢管理部と、
前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信する送信部と、
前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信する受信部と、
受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知する通知部と、
を有するメッセージ中継装置。
a delivery request receiving unit that receives a message delivery request including a message destination, message content, and options available to the destination user from the message distribution device;
an option management unit that generates converted data by converting the options in a predetermined method, associates the message delivery device that transmitted the message delivery request with the converted data, and stores the converted data in a storage unit;
a transmitting unit that transmits a message including the content and the options to the destination;
a receiving unit that receives a message sent when the destination user selects the option;
a notification unit that notifies the message delivery device, which is associated in the storage unit with conversion data obtained by converting the options included in the received message in a predetermined method, of the options included in the received message;
A message relay device having a
前記メッセージ配信要求の送信元アカウントが所定のアカウントである場合、前記選択肢管理部は、前記関連付け選択肢を生成し、前記メッセージ配信要求の送信元アカウントが所定のアカウントでない場合、前記選択肢管理部が前記関連付け選択肢を生成することなく、前記送信部は、前記内容と前記選択肢とを含むメッセージを前記送信先に送信する、
請求項6に記載のメッセージ中継装置。
When the sender account of the message delivery request is a predetermined account, the option management section generates the association option; when the sender account of the message delivery request is not a predetermined account, the option management section generates the association option. without generating association options, the sending unit sends a message including the content and the options to the destination;
The message relay device according to claim 6.
前記送信部が送信したメッセージのメッセージ識別情報と、前記メッセージ配信要求を送信した前記メッセージ配信装置と、を関連付けて前記記憶部に記憶させるメッセージ管理部をさらに有し、
前記通知部は、前記送信したメッセージのメッセージ識別情報を含む配信通知又は開封通知を前記受信部が受信した場合、前記配信通知又は前記開封通知に含まれる前記メッセージ識別情報に関連付けられた前記メッセージ配信装置に前記配信通知又は前記開封通知を受信したことを通知する、
請求項6又は7に記載のメッセージ中継装置。
further comprising a message management unit that associates and stores message identification information of the message transmitted by the transmission unit and the message distribution device that transmitted the message distribution request in the storage unit;
When the receiving unit receives a delivery notification or an opening notification that includes message identification information of the transmitted message, the notification unit is configured to notify the message delivery associated with the message identification information included in the delivery notification or the opening notification. Notifying the device that the delivery notification or the opening notification has been received;
The message relay device according to claim 6 or 7.
コンピュータが実行する、
メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、
受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置と、を識別する識別情報を関連付けた関連付け選択肢を生成するステップと、
前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信するステップと、
前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信するステップと、
受信したメッセージに含まれる前記関連付け選択肢に関連付けられた前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、
を有するメッセージ中継方法。
computer executes
receiving a message delivery request from the message delivery device, including a message destination, message content, and options available to the destination user;
generating an association option that associates identification information that identifies the option included in the received message delivery request and the message delivery device;
Sending a message including the content and the association option to the destination;
receiving the message sent by the destination user selecting the association option;
Notifying the message delivery device corresponding to the identification information associated with the association option included in the received message of the option included in the received message;
A message relay method having.
コンピュータが実行する、
メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、
前記選択肢を所定の方法で変換した変換データを生成するステップと、
前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させるステップと、
前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信するステップと、
前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信するステップと、
受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、
を有するメッセージ中継方法。
computer executes
receiving a message delivery request from the message delivery device, including a message destination, message content, and options available to the destination user;
generating conversion data obtained by converting the options in a predetermined manner;
a step of associating the message distribution device that transmitted the message distribution request with the conversion data and storing the converted data in a storage unit;
Sending a message including the content and the options to the destination;
receiving the message sent by the destination user selecting the option;
Notifying the message distribution device, which is associated in the storage unit with conversion data obtained by converting the options included in the received message in a predetermined method, of the options included in the received message;
A message relay method having.
コンピュータに、
メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、
受信した前記メッセージ配信要求に含まれる前記選択肢と、前記メッセージ配信装置と、を識別する識別情報を関連付けた関連付け選択肢を生成するステップと、
前記内容と、前記関連付け選択肢と、を含むメッセージを前記送信先に送信するステップと、
前記送信先のユーザが前記関連付け選択肢を選択することにより送信されたメッセージを受信するステップと、
受信したメッセージに含まれる前記関連付け選択肢に関連付けられた前記識別情報に対応する前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、
を実行させるプログラム。
to the computer,
receiving a message delivery request from the message delivery device, including a message destination, message content, and options available to the destination user;
generating an association option that associates identification information that identifies the option included in the received message delivery request and the message delivery device;
Sending a message including the content and the association option to the destination;
receiving the message sent by the destination user selecting the association option;
Notifying the message delivery device corresponding to the identification information associated with the association option included in the received message of the option included in the received message;
A program to run.
コンピュータに、
メッセージ配信装置からメッセージの送信先とメッセージの内容と前記送信先のユーザが取り得る選択肢とを含むメッセージ配信要求を受信するステップと、
前記選択肢を所定の方法で変換した変換データを生成するステップと、
前記メッセージ配信要求を送信した前記メッセージ配信装置と前記変換データとを関連付けて記憶部に記憶させるステップと、
前記内容と、前記選択肢と、を含むメッセージを前記送信先に送信するステップと、
前記送信先のユーザが前記選択肢を選択することにより送信されたメッセージを受信するステップと、
受信したメッセージに含まれる前記選択肢を所定の方法で変換した変換データに前記記憶部において関連付けられた前記メッセージ配信装置に、前記受信したメッセージに含まれる前記選択肢を通知するステップと、
を実行させるプログラム。
to the computer,
receiving a message delivery request from the message delivery device, including a message destination, message content, and options available to the destination user;
generating conversion data obtained by converting the options in a predetermined manner;
a step of associating the message distribution device that transmitted the message distribution request with the conversion data and storing the converted data in a storage unit;
Sending a message including the content and the options to the destination;
receiving the message sent by the destination user selecting the option;
Notifying the message distribution device, which is associated in the storage unit with conversion data obtained by converting the options included in the received message in a predetermined method, of the options included in the received message;
A program to run.
JP2022055652A 2022-03-30 2022-03-30 Message relay device, message relay method and program Active JP7146126B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022055652A JP7146126B1 (en) 2022-03-30 2022-03-30 Message relay device, message relay method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022055652A JP7146126B1 (en) 2022-03-30 2022-03-30 Message relay device, message relay method and program

Publications (2)

Publication Number Publication Date
JP7146126B1 JP7146126B1 (en) 2022-10-03
JP2023147890A true JP2023147890A (en) 2023-10-13

Family

ID=83462265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022055652A Active JP7146126B1 (en) 2022-03-30 2022-03-30 Message relay device, message relay method and program

Country Status (1)

Country Link
JP (1) JP7146126B1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11134264A (en) * 1997-10-29 1999-05-21 Hitachi Ltd Data conversion device, network system having data conversion device, and recording medium storing program operating on data conversion device
JP4938059B2 (en) * 2009-08-07 2012-05-23 株式会社エヌ・ティ・ティ・ドコモ Relay device and message relay method
JP6849644B2 (en) * 2018-11-28 2021-03-24 Kddi株式会社 Relay device, relay method and communication system

Also Published As

Publication number Publication date
JP7146126B1 (en) 2022-10-03

Similar Documents

Publication Publication Date Title
JP4291366B2 (en) Message management
US6671355B1 (en) Arrangement for common-format notification delivery messages based on notification device type in an IP-based notification architecture
KR101549451B1 (en) System and method for providing delivery information using mobile application
WO2015016237A1 (en) Conversation management system, conversation management device, conversation management method, and program
TWI262399B (en) Apparatus and method for forwarding e-mail
CN101552743A (en) Electronic mail gateway apparatus
US9338025B2 (en) Communication control device, message transmission method, and message transmission program
JP6377293B1 (en) Information acquisition system, information acquisition server, information acquisition method, and information acquisition program
KR100548429B1 (en) System and method for compatibility of mobile terminal message
JP2009169866A (en) E-mail client, control method therefor, and computer program
JP7146126B1 (en) Message relay device, message relay method and program
WO2019124302A1 (en) Management server, message communication method, and message communication program
JP6999056B2 (en) Message management device and message management method
JP2024100313A (en) Audio transmission device, audio transmission method, program, and recording medium
KR100913193B1 (en) Bidirectional message service relaying device between a plurality of heterogeneous messenger services and heterogeneous non-messenger services
TW202234865A (en) Message communication method and recording medium recorded with program
JP7227422B1 (en) Message relay device, message relay method and program
KR20110108123A (en) Dynamic Management System for Virtual Enterprises
JPWO2007021000A1 (en) Electronic bulletin board management apparatus and message notification method
KR101987113B1 (en) Transmission System and Method of Silent Instant Message
JP7151012B1 (en) Message relay device, message relay method and program
KR20040006174A (en) Method of Delivering Instant Messages for Portable Phone Users
JP7247403B1 (en) Data processing device, data processing method and program
CN111741169B (en) Contact system, storage medium and contact method
WO2012151811A1 (en) Method and device for processing multimedia message

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220527

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20220527

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220823

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220920

R150 Certificate of patent or registration of utility model

Ref document number: 7146126

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150