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
  • 2 replies
  • 51524 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.

 

2 replies

Roy
Top Expert ✨
Forum|alt.badge.img+7
  • 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.

 


  • New Participant
  • June 6, 2026

Interesting discussion. Security, performance, and user experience are important considerations whenever code execution or embedded content is involved. While interactive features can improve functionality, maintaining reliability and compatibility across different devices should always be a priority.

The growing popularity of browser-based tools shows how users increasingly prefer solutions that work instantly without requiring additional installations. For example, a TI 84 Calculator Simulator allows students to access advanced graphing and scientific calculator features directly through a web browser. As web technologies continue to evolve, finding the right balance between functionality, security, and accessibility will remain an important challenge for developers.