Possible to use OpenAI's Agents SDK in a Retool App?

Hey all. I'm a fairly novice programmer so forgive me if this is an ignorant question. I'm learning how to code ("vibe coding") and making great progress building AI-driven internal apps with Retool.

Right now, all of my Retool Apps are leveraging AI through REST API calls. I'd like to start experimenting with OpenAI's Agents SDK but I'm a little confused about whether it's possible and if so how to do it.

I've noticed that when building Retool Workflows, it does appear possible to add NPM and Python Packages under the Libraries option.

However, when building Apps, it's a little different. When I go to Settings -> Libraries, it doesn't allow me to simply search for the package, but instead prompts me for a URL.

Can anyone help me understand how to think about this?

Perhaps the answer is to leverage the SDK in a workflow that I call from the app? I haven't made apps and workflows work together yet, but I'm sure I could figure that out if that's the right avenue to pursue.

1 Like

Retool workflows support

  • Python libraries
  • JS libaries

Retool apps only support JS libraries through CDN. You can find the links from CDNJS or NPMJS etc. For example; https://cdnjs.cloudflare.com/ajax/libs/axios/1.8.4/axios.min.js

For using it in a Retool app, you can try this
https://cdn.jsdelivr.net/npm/openai@4.87.4/index.min.js

Another solution:

Exactly like you mentioned, leverage the workflow. You have to enable webhook in the workflow, and call it as a REST endpoing in your Retool app.
:warning: Do keep in mind that there are limited workflows depending on your pricing plan!

1 Like

Makes sense. Thank you!

:wave: @jasongriffing Sounds like you have some interesting projects you're working on!

Keep an eye on our :mega: Retool Announcements - Retool Forum page, as we have some new features coming soon that I imagine you might be interested in :crossed_fingers: (also see Kent's note here: AI Agents in Retool - #9 by kent)