Get API credentials from Supabase β usually an API key or OAuth client from your account or your IT team.
In Retell, open your agent and go to Functions β Add custom function.
Enter the endpoint URL and method, and add your credentials as headers.
Define the parameters the agent should collect from the caller and pass through.
Write the description that tells the agent when to call the function β this is what the model uses to decide.
Test it in the LLM playground, check the response parses, then publish.
Caller gives an order number β agent queries Supabase β reads back the status β writes a note to the record
Use a service-role key stored in the function's headers, and restrict it with row-level security rather than exposing broad access.












.avif)
.avif)
.avif)

.avif)
.avif)











.avif)














Start building smarter conversations today.


