Closed azizkhani closed 6 years ago
@azizkhani The solution is Content Renderer. This is explained here: https://botpress.io/docs/beta/getting_started/trivia_content/
Content Renderer A Content Renderer defines how a Content Type gets rendered on the different channels.
Note: This is critical because every channel is different and has a different set of functionalities. You want to be able to customize and leverage the features of the different platforms to offer the best user experience as possible.
@slvnperron I suggest that botpress create a dsl for sending different message types. As we know, the messaging features on all platforms should not exceed 30. So just after creating this dsl, for each module written, a translator is written to convert the language created into the format of the platform. Why this does not work with botpress. I think this can solve a lot of problems and transfer many of the complexities into modules.
@azizkhani Thanks for the siggestion, already in progress here: https://github.com/botpress/botpress/tree/sp-content/packages/core/botpress-builtins/src
@slvnperron is any documentation about this feature and other roadmap? I will be happy to know what is your plan and can help your team in solve issues
@azizkhani No documentation yet but working on it. Our plan is to release this with the initial public Botpress X release in the next couple days!
Done within https://github.com/botpress/botpress/pull/636
Botpress
I'm going to write a bot for several platforms. From my point of view, I have to write a bot and run on different platforms but in general I have a few basic problems.
For example, when sending a message in a telegram, the following code should be written
And in Messenger Messenger, the following code is const pickCategory = {
Well, what's the solution? Should not it be a standard for all platforms, so that when it's written and executed, it's just a setting that will be based on which bot is on? Therefore, the code is written only once and it is called only once. What is the plan to do?