I am building a chat bot that works with external data and would like to know the best way to query or receive new data without interrupting the conversation with Harry.
Right now I run the chat server through an open socket to C#. Any time I want to get or set new data to/from my external database, I have Harry send out a simple request <current time>. The C# program looks for any <> brackets and will give Harry that data back ie. <time 10:52>. At which point Harry stores this new data as a variable or fact. This works fine for simple cases, but if I wanted to do something like an alarm, where my C# program would manage the alarm, interrupt chat bot <alarm 10:58>, store the new data, maybe Harry would say something like “Your alarm went off”, I want him to be able to jump back into the previous topic and conversation we were just having. Any solutions or work around that anyone has would be very helpful!