Back to blog
Didier Lopes

Author

Didier Lopes

New iframe widget connects your existing apps with AI Agents inside OpenBB

— 3 MIN

New iframe widget connects your existing apps with AI Agents inside OpenBB

Until recently, the iframe widget in OpenBB Workspace did one job. You dropped in a URL and it loaded that page inside a dashboard tile. Handy for keeping an internal tool in view, but nothing past that. The page rendered and you still worked around it.

The revamped iframe widget changes this in a meaningful way:

  1. You can have the iframe come preloaded with the right app for each dashboard, because the URL can now be set from your backend instead of being configured manually

  2. You can make the iframe drive real interactions, not just display a page, by executing JavaScript inside the widget.

  3. You can keep filters and state consistent across the dashboard, because widget parameters can now stay in sync with the iframe content.

For example, you can use it for state and filter management. The demo below shows the Terrapin app, where an iframe widget controls the parameters across the other (grouped) widgets in the dashboard.

This covers what you can do with the widget directly. The other half of the equation is the agent.

If you have an agent running in the Workspace, how does it interact with this iframe?

MCP tools associated with iframe widget

MCP servers and tools can now be associated to an iframe widget, so any agent in the can interact the underlying data. Those MCP tools expose read and write actions against the iframe, so the agent can both pull data out and drive interactions back into the embedded app.

You can drive the widget yourself through JS execution or you can also give the agent a way to read from and write to that same widget through MCP.

Read more about the technical details in our Iframe - OpenBB Docs.

Data and analytics providers can put all of this to work from within the Apps Marketplace.

In the Kalshi example, you ask questions to an agent and it answers with live numbers from the Kalshi iframe. The agent reads the table in the iframe and returns structured results through MCP tools, so it is effectively querying that app on your behalf.

The native app experience

One last thing that mattered to us was letting users port their existing applications into the Workspace, and have it look clean.

Now both the widget navbar and the border containers are hidden, so it feels like you are inside that app, with the benefit of having OpenBB Copilot (or another agent you have connected) available to you. Instead of looking like you brought your application into OpenBB Workspace, it looks like you brought OpenBB Copilot into your existing application and use case.

Here's a Streamlit app we built as a reference you can use:

The code can be seen and edited here: Streamlit — OpenBB Iframe Widget Protocol

The upgraded iframe widget is now available to all users, including the Community Edition.

→ Try it now

We can't wait to see the workflows the community builds with this new flexible widget.

Analysts shouldn't need a data scientist to get an answer

The firms that fix that first will have a structural advantage