How to use Retool AI/Retool function from inside custom components?

Hello !

As mentionned above, I am wondering if it's possible and how it's possible to trigger events/function/retoolAI from inside a custom component.

Thanks a lot

Honestly I think the easiest way would be to put your function/AI call in a workflow and use the webhook endpoint to call it w a REST request:

2 Likes

Hi @CustomComponentEnjoyer,

Wrap your Retool Function / Retool AI call inside a workflow, then use the workflow’s webhook URL. From your custom component you can just make a REST request to that endpoint.

That way you don’t need to manage Retool internals β€” your component just sends data β†’ workflow runs β†’ AI/function executes β†’ returns the result.

This also keeps things modular, since you can reuse the same workflow elsewhere in your app.

Hope this helps !