Use of iframes for replies?

Is it possible to have the bot respond with an iframe to a website?

Not out of the bot, but you could create a custom component for that, ex: https://github.com/botpress/botpress/tree/master/examples/custom-component

I figured as much but I’m very confused on what each element means. Like which command shoots messages to the bot so that It communicates. What is a recommended default setup? (structure wise, how should the module be formatted). Also, would this fall under a custom action or would it be a module? So that you could call the iframe component in a flow (same way you choose choice option) when a user triggers an intent. I’ve read the Botpress documents multiple times and searched the forums for similar issues but I’m still very confused on how to implement a custom module.

There are a couple of examples here: https://github.com/botpress/botpress/tree/master/examples

module-templates show two different examples on how to structure modules
custom-component gives a couple of ideas

The Dropdown component is developed as a custom component, and looks much like whay you are trying to achieve: https://github.com/botpress/botpress/blob/master/modules/extensions/src/views/lite/components/Dropdown.jsx

Basically:

Your content element will only have an URL, and then in your custom component, you’ll display your iframe opening that url.

Here is the relevant documentation: https://botpress.io/docs/channels/web/#creating-a-custom-component

Let me know if you need more help !

1 Like

Thank you very much!

Hie @av_botpress . Did you manage to get this component up and running. If so please share.

No unfortunately I did not. I created an API to read text in (using textract node js function) but ended up ditching the whole idea. Can’t seem to really understand the process behind it since I’m still fairly new to this idea. If you have any resources that might help please share them.

I pitched the problem to a React expert on my team. Will let you know if he has a breakthrough.

@DigiSenseiZim Did you hear anything back?

Not as yet. Remind me around the 27th