Hi Keunyoung
as far as I understand, for your purpose (drive FB Messenger “rich media” GUI from a CS program) you can use OOB messages processing.
See documentation:
* https://github.com/bwilcox-1234/ChatScript/blob/master/WIKI/ChatScript-Advanced-User-Manual.md#out-of-band-communication
* https://github.com/bwilcox-1234/ChatScript/blob/master/WIKI/ChatScript-Json.md#json—out-of-band-input-data
ChatScript basically exchange texts messages. Nevertheless you can also use “out of band” (OOB) messages just for your purpose.
Let say you want to put a FB Messneger “widget” like a button with label “OK”, you have to trap an OOB message, e.g.
# CS rule that output a OOB message to print a button with label “OK”
( ... ) [ button(“OK”)]
You have to insert a layer between the FB Messenger client and CS to translate an OOB command to a specific widget Messenger API
.———————————————.
| Messenger client adapter |
|——————————————- |
| GUI objects adapter |
|——————————————- |
| ChatScript Client |
.———————————————-.
|
.———————————————.
| ChatScript Server |
.———————————————-.
BTW, I’m working on a small CS client with some examples to do that (beforehand for Telegram):
https://github.com/solyaris/rChatScript
I hope this helps
regards/giorgio