botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
33 stars 37 forks source link

feat(studio): preview content elements from skills #382

Closed davidvitora closed 1 year ago

davidvitora commented 1 year ago

This feature allows the flow generator to return a list of content elements to be previewed in the flow editor.

Example:

image

The content element ids are saved in the node definition (same logic as transitions)

image

It can be specified in the flow generator function in the return object.

image

davidvitora commented 1 year ago

@laurentlp @EFF @slvnperron @allardy

There is also the possibility of having a "preview" property instead of "previewElements", where we could specify any kind of ActionItem to be previewed, including actions, which we can also preview today at normal nodes.

It would be something like

preview: [{
  type: sdk.NodeActionType.RenderElement,
  name: 'content-element-id-sdxsasf'
}, {
  type: sdk.NodeActionType.RunAction,
  name: 'basic-skills/choice_parse_answer'
}]