as far as I understand, for your purpose (drive FB Messenger “rich media” GUI from a CS program) you can use OOB messages processing.
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):
I hope this helps