Running code or an iFrame in the messenger? | Community
Skip to main content
Answered

Running code or an iFrame in the messenger?

  • June 20, 2021
  • 1 reply
  • 15365 views

Forum|alt.badge.img+1

Is it possible (or: what is the best way to...) run a small bit of code or show an iFrame in the messenger?

 

For a certain case in a custom bot, if a user chooses a certain path, I want to show the user a quick calculator.

 

The code is very simple - an HTML input, and about 5 lines of javascript. Is it possible to either put the code somewhere to show it in the bot? Or otherwise, can I use an iframe that shows a page where the calculator is hosted?

 

Thanks

Best answer by Roy

Hi @user1140​ ,

 

You should build Canvas APP for that.

 

More Information can be found here.

 

Let me know if you have any questions about this, always happy to help.

 

1 reply

Roy
Top Expert ✨
Forum|alt.badge.img+5
  • Top Expert ✨
  • Answer
  • June 21, 2021

Hi @user1140​ ,

 

You should build Canvas APP for that.

 

More Information can be found here.

 

Let me know if you have any questions about this, always happy to help.