The present application is based on, and claims priority from JP Application Serial Number 2023-175032, filed Oct. 10, 2023, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure relates to a print control device, a processing method, and a non-transitory computer-readable storage medium storing a program.
Recently, a chat service in which a message or the like is posted is in widespread use. Also, a chatbot that responds to a post from a user is known. In a system disclosed in JP-A-2021-60698, when a chatbot accepts a print instruction from a user via a chat service, processing to cause a printer to execute printing of a document is performed.
JP-A-2021-60698 is an example of the related art.
The user may want to change the language to use when chatting with the chatbot. In the system described in JP-A-2021-60698, the language for chat cannot be changed, resulting in poor convenience. Therefore, the provision of a technology that enables easy change of the language for chat is desired.
According to an aspect of the present disclosure, a print control device includes: a posting unit configured to post information about printing in a chat room; and a change instruction acquisition unit configured to acquire a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room, and when the change instruction is acquired, the posting unit changes the posting language from a first language used before the change instruction is acquired, to a second language, and then performs posting.
According to another aspect of the present disclosure, a processing method by a device that performs posting in a chat room includes: acquiring a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room; and when the change instruction is acquired, changing the posting language from a first language used before the change instruction is acquired, to a second language, and then performing posting in the chat room.
According to still another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a program is provided, the program causing a computer to execute: a posting step of posting information about printing in a chat room; and a change instruction acquisition step of acquiring a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room, and in the posting step, when the change instruction is acquired, the posting language is changed from a first language used before the change instruction is acquired, to a second language, and then posting is performed.
An embodiment will now be described with reference to the drawings. To clarify the explanation, suitable omissions and simplifications are made in the description and the drawings given below. In the drawings, the same elements are denoted by the same reference sign and a repeated description thereof is omitted where appropriate.
In this embodiment, the terminal device 200 is communicably connected at least to the chat server 300. The print control device 100 is communicably connected at least to the chat server 300, the web server 400, and the image forming device 500. However, when a file existing in the web server 400 need not be printed, the information processing system 10 may not include the web server 400.
The terminal device 200 is a device operated by a user U and is, for example, a smartphone, a tablet terminal, a personal computer or the like. In the terminal device 200, application software (also referred to as a chat app) to use a chat service provided by the chat server 300 is installed. The user U is a user having an account to use the chat service and can use the chat service, using the terminal device 200. The account includes identification information to identify the user, and other information associated with the identification information. Specifically, for example, the account includes a password or the like in addition to the user ID. While one terminal device 200 and one user U are illustrated in
The chat server 300 is a server providing a chat service. The chat server 300 may be formed of a plurality of servers. The chat service enables members participating in the same chat room to place a post and thus chat among the members. The chat room is a virtual space where members exchange postings. The chat room is also referred to as a talk room, a channel, or a workspace. In this embodiment, when the user U makes an input to a chat room in which the print control device 100 participates as a member, the chat server 300 transmits the content of the input to the chat room along with the identification information of the user U making the input, to the print control device 100. Therefore, the print control device 100 receives the identification information of the user U making the input and the content of the input from the chat server 300. The input to the chat room by the user U may be a posting of a text or a file in the chat room, may be a function call instruction or a change instruction, described later, or may be a print instruction. The input (posting) to the chat room by the user U is carried out using the terminal device 200 and therefore can also be said to the input (posting) to the chat room by the terminal device 200.
The print control device 100 is a device that functions as a chatbot. The chatbot is a software robot that receives data posted in the chat service and performs processing corresponding to the data. The print control device 100 has an account to use the chat service and participates as a member in the chat room in which the user U participates as a member. The print control device 100 also performs processing to cause the image forming device 500 to print a file. The print control device 100 is, for example, a server, but is not limited to the server and may be any device having functions of a computer. The print control device 100 may be formed of a plurality of computers (a plurality of servers). The print control device 100 may be referred to as an information processing device.
The web server 400 is a server where any file that can be a file to be printed exists. The web server 400 may be a cloud storage storing a file. In this embodiment, a print control unit 114, described later, of the print control device 100 may acquire a file to be printed from the web server 400, for example, using a uniform resource locator (URL) posted in the chat room.
The image forming device 500 is a device having a function of performing print processing and is specifically, for example, a printer. The image forming device 500 is registered in advance with the print control device 100 as an image forming device to be used for printing. While one image forming device 500 is illustrated in
The specific configuration of and processing by the print control device 100 will now be described.
The network interface 150 is used to communicate via the network N. The network interface 150 may include, for example, a network interface card (NIC).
The memory 130 is formed of, for example, a combination of a volatile memory and a nonvolatile memory. The memory 130 is used to store a program executed by the processor 110 and data or the like used for various processing.
The processor 110 reads out a program from the memory 130 and executes the program. The processor 110 thus implements functions of a posting unit 111, a change instruction acquisition unit 112, a print instruction acquisition unit 113, and the print control unit 114, which will be described later. The processor 110 may be, for example, a microprocessor, a microprocessor unit (MPU), or a central processing unit (CPU) or the like. The processor 110 may include a plurality of processors.
The program includes a command set (or software code) to cause a computer to execute one or more functions described in the embodiment, when read by the computer. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. Examples of the computer-readable medium or the tangible storage medium include, but are not limited to, a random-access memory (RAM), a read-only memory (ROM), a flash memory, a solid-state drive (SSD) or other memory techniques, a CD-ROM, a digital versatile disc (DVD), a Blu-ray (trademark registered) disc or other optical disc storages, a magnetic cassette, a magnetic tape, a magnetic disk storage or other magnetic storage devices. The program may be transmitted on a transitory computer-readable medium or a communication medium. Examples of the transitory computer-readable medium or the communication medium include, but are not limited to, electrical, optical, acoustic or other forms of propagation signals.
The posting unit 111, the change instruction acquisition unit 112, the print instruction acquisition unit 113, and the print control unit 114 will now be described.
The posting unit 111 posts data (information) of a text or the like in the chat room in which the print control device 100 participates as a chatbot. Specifically, the posting unit 111 transmits data to be posted to the chat server 300. For example, the posting unit 111 posts information about printing in the chat room. The information about printing may be a message prompting the user U to input an instruction about the execution of printing or the setting of printing, or may be a response message to an instruction by the user U about the execution of printing or the setting of printing. These are simply examples of the information about printing, and the information about printing is not limited to the above information. Therefore, the information about printing posted by the posting unit 111 includes any information about printing such as an advertisement about a print service. The posting unit 111 may also post various other information than the information about printing. Also, particularly in this embodiment, the posting unit 111 executes predetermined processing when the user inputs a change instruction for a posting language or a function call instruction, to the chat room. The processing by the posting unit 111 when a change instruction or a function call instruction is inputted to the chat room will be described later. The posting language refers to a natural language used when the print control device 100 as a chatbot performs posting in the chat room. The posting language can also be said to be a natural language displayed in the chat room. The posting unit 111 performs posting, using a predetermined natural language (for example, Japanese) as the default posting language.
The change instruction acquisition unit 112 acquires an instruction about change of the posting language, inputted to the chat room in which the print control device 100 participates as a chatbot. In this embodiment, the change instruction acquisition unit 112 acquires a function call instruction or a change instruction inputted to this chat room. The function call instruction is an instruction to call a posting language change function. Since a candidate language that can be set as the posting language is called by the function call instruction, as will be described later, the function call instruction may be referred to as a candidate call instruction. The function call instruction is posted in the chat room by the user U. In this embodiment, the function call instruction is a text including a keyword that is predetermined as a keyword meaning the function call instruction. As the text including this keyword is posted in the chat room, the change instruction acquisition unit 112 acquires the function call instruction. For example, when the user U posts a text of “posting language setting” in the chat room, the change instruction acquisition unit 112 acquires this text as the function call instruction. The change instruction is an instruction to change the posting language used in the chat room and is inputted to the chat room by the user U. In this embodiment, for example, the change instruction is a selection operation to a posting language option provided via an input form posted by the posting unit 111 in response to the function call instruction. That is, as the user U selects a posting language option displayed in the chat room, the change instruction acquisition unit 112 acquires the change instruction.
The processing by the posting unit 111 and the change instruction acquisition unit 112 will now be described with reference to
In
When the change instruction acquisition unit 112 acquires the function call instruction, the posting unit 111 posts a candidate language that can be used as the posting language in the chat room 50. Thus, the user U can perform an operation to change the posting language even without knowing in advance the posting language that can be set. Specifically, the posting unit 111 posts a predetermined input form 51c in the chat room 50. This predetermined input form 51c is an input form that provides, as options, candidate languages which can be used as the posting language, and that accepts an input to select one of the options. The input form may be described in the currently set posting language or may be described in a predetermined language. In
When the candidate languages that can be used as the posting language are posted in the chat room 50, the user U makes an input to designate one of the candidate languages, to the chat room 50. Specifically, the user U performs an operation to select one of the options provided by the input form 51c, at the terminal device 200. That is, the selection of an option by the user U is inputted as a change instruction to the chat room 50. In
When the change instruction acquisition unit 112 acquires the change instruction, the posting unit 111 changes the posting language. That is, the posting unit 111 changes the setting of the posting language. Specifically, the posting unit 111 changes the posting language to a natural language specified based on the change instruction. More specifically, the posting unit 111 changes the posting language in the chat room used to chat with the user U inputting the change instruction. Particularly in this embodiment, the posting unit 111 uses the language designated by the change instruction, as the posting language. More specifically, the posting unit 111 uses the language selected in the change instruction, as the posting language. That is, the posting unit 111 performs various postings, using the posting language newly set in response to the acquisition of the change instruction. In
In the above example, when the change instruction acquisition unit 112 acquires a function call instruction, the posting unit 111 posts a predetermined input form including a candidate language as an option, but the posting unit 111 may not necessarily post such an input form. For example, as shown in
When the change of the posting language according to the change instruction acquired by the change instruction acquisition unit 112 fails for some reason, the posting unit 111 may post error information in the currently set posting language in the chat room 50. This error information may include information indicating the cause of the failure in change of the posting language. For example, when the user U posts a text that does not clearly designate any one of the candidate languages in response to the text 52b posted by the posting unit 111, the change of the posting language fails. In this case, the posting unit 111 may post the error information in the currently set posting language (in the example shown in
The description goes back to the configuration of the print control device 100 shown in
The print control unit 114 causes the image forming device 500 to execute the printing of the file for which the instruction to print is given by the print instruction acquired by the print instruction acquisition unit 113. The print control unit 114 causes the image forming device 500 corresponding to the identification information of the user U giving the print instruction, to execute the printing of the file. The print control unit 114 may cause the image forming device 500 to execute the printing via another device (for example, a server) that manages or controls the printing by the image forming device 500, instead of directly instructing the image forming device 500 to print.
An example of operations of the print control device 100 will now be described.
In step S100, in response to the posting by the user U of a function call instruction, which is an instruction to call the posting language change function, in the chat room 50, the change instruction acquisition unit 112 acquires this function call instruction via the chat server 300.
Next, in step S101, the posting unit 111 posts a response message to the function call instruction, in the currently set posting language in the chat room 50. The posting of this response message may be omitted.
Next, in step S102, the posting unit 111 posts candidate languages that can be used as the posting language, in the chat room 50. As described above with reference to
After step S102, in step S103, the change instruction acquisition unit 112 acquires a change instruction including the designation of a language by the user U. When the input form is posted in step S102, the selection of an option by the user U from the options provided by the input form is acquired as the change instruction. When the text notifying the user of candidate languages that can be used as the posting language is posted in step S102, the posting of a text specifying one of the candidate languages is acquired as the change instruction.
After step S103, in step S104, the posting unit 111 changes the posting language. Specifically, from this step onward, the posting unit 111 uses the language designated by the change instruction acquired in step S103, as the posting language. In step S105, the posting unit 111 posts a response message to the change instruction, in the changed posting language in the chat room 50. The posting of this response message may be omitted.
After that, in step S106, in response to the posting of a print instruction in the chat room 50 by the user U, the print instruction acquisition unit 113 acquires this print instruction via the chat server 300. As the print instruction acquisition unit 113 acquires the print instruction, the print control unit 114 in step S107 acquires a file for which an instruction to print is given by the print instruction, and causes the image forming device 500 to execute the printing of this file. In step S108, the posting unit 111 posts a response message to the print instruction, in the changed posting language in the chat room 50. This response message may be a message notifying the user of the result of execution of the printing. The posting of this response message may be omitted.
An embodiment has been described above. In this embodiment, when a change instruction inputted to the chat room is acquired, the posting unit 111 changes the posting language from the first language used before the change instruction is acquired, to the second language, and then performs posting. That is, the posting language is changed in response to the change instruction inputted to the chat room. Therefore, according to this embodiment, the language for chat can be easily changed.
While an embodiment has been described above, the present disclosure is not limited to the above embodiment and suitable changes can be made without departing from the spirit and scope of the present disclosure. For example, in the above embodiment, the function call instruction is acquired before the acquisition of the change instruction, but the function call instruction may be not necessarily acquired. For example, when the language of the change instruction posted in the chat room is different from the currently set posting language, the posting unit 111 may change the posting language to the language of the change instruction. This will now be described further with reference to a drawing.
When a text including a predetermined keyword (for example, “Posting language change” or the like) as a keyword meaning the change instruction is posted in the chat room, the change instruction acquisition unit 112 may acquire this text as the change instruction and the posting unit 111 may change the posting language to a predetermined language. In this case, the language of the change instruction may be different from the predetermined language. For example, the user U posts a text “Posting language change” in Japanese in the chat room. In this case, the change instruction acquisition unit 112 acquires this text as the change instruction and the posting unit 111 changes the posting language to the predetermined language (for example, English). In this way, when the change instruction is acquired, the posting unit 111 may change the posting language to the predetermined language and then perform posting. The change instruction may include a keyword specifying a language in addition to the predetermined keyword as the keyword meaning the change instruction. For example, a text such as “Change posting language to English” may be used as the change instruction. In this case, the posting unit 111 may change the posting language to the language specified by the change instruction. In this way, when the change instruction is acquired, the posting unit 111 may change the posting language to the language designated by the change instruction and then perform posting. Also, in the above embodiment, only the posting language is changed in response to the change instruction, but the language of another processing may be changed as well. For example, when the print control device 100 has a transmission processing unit or the like that performs processing of transmitting information (for example, emails, data of web pages or the like) directly to the terminal device 200 without using the chat server 300, the language of the transmitted information may be changed, too, in response to the change instruction.
A part or all of the above embodiment can be described as in the appendices given below but is not limited thereto.
A print control device includes: a posting unit configured to post information about printing in a chat room; and a change instruction acquisition unit configured to acquire a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room, and when the change instruction is acquired, the posting unit changes the posting language from a first language used before the change instruction is acquired, to a second language, and then performs posting.
In the print control device according to Appendix 1, the change instruction acquisition unit acquires a function call instruction, which is an instruction to call a posting language change function, posted in the chat room before the change instruction is acquired; the posting unit posts candidate languages that can be used as the posting language in the chat room when the function call instruction is acquired; the change instruction acquisition unit acquires an input designating one of the candidate languages, as the change instruction; and the posting unit uses the second language, which is the language designated by the change instruction, as the posting language.
In the print control device according to Appendix 2, the posting unit provides candidate languages that can be used as the posting language, as options, and posts an input form that accepts an input to select one of the options, in the chat room, and the designation is performed by a selection operation from the options provided by the input form.
In the print control device according to Appendix 2, the designation is performed by a posting that specifies one of the candidate languages, in the chat room.
In the print control device according to one of Appendices 2 to 4, the posting unit posts a response message to the function call instruction, in the first language in the chat room.
In the print control device according to one of Appendices 1 to 5, the posting unit posts a response message to the change instruction, in the second language in the chat room.
In the print control device according to one of Appendices 1 to 6, when a language of the change instruction posted in the chat room is different from the first language, the posting unit changes the posting language from the first language to the second language, which is the language of the change instruction, and then performs posting.
The print control device according to one of Appendices 1 to 7 further includes a print instruction acquisition unit configured to acquire a print instruction posted in the chat room, and the posting unit posts a response message to the print instruction, in the second language in the chat room.
In the print control device according to one of Appendices 1 to 8, when a change of the posting language according to the change instruction fails, the posting unit posts error information in the first language in the chat room.
A processing method by a device that performs posting in a chat room includes: acquiring a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room; and when the change instruction is acquired, changing the posting language from a first language used before the change instruction is acquired, to a second language, and then performing posting in the chat room.
A non-transitory computer-readable storage medium storing a program is provided, the program causing a computer to execute: a posting step of posting information about printing in a chat room; and a change instruction acquisition step of acquiring a change instruction inputted to the chat room and giving an instruction to change a posting language used in the chat room, and in the posting step, when the change instruction is acquired, the posting language is changed from a first language used before the change instruction is acquired, to a second language, and then posting is performed.
Number | Date | Country | Kind |
---|---|---|---|
2023-175032 | Oct 2023 | JP | national |